/*
Theme Name: SAJO Blog
Theme URI: https://www.sajo-innovation.de/blog
Author: SAJO Innovation
Description: SAJO Blog Theme – rekonstruiertes Layout basierend auf dem Original-Theme
Version: 1.0.0
Text Domain: sajo-blog
*/

/* =============================================
   RESET & BASE
   ============================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Source Sans Pro", Sans-serif; /*Arial, Helvetica, sans-serif;*/
    font-size: 15px;
    color: #333;
    background: #f0f0f0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: #1E124A;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
    background-color: #1E124A;
    padding: 12px 20px;
    position: relative;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.header-logo a {
    display: inline-block;
}

.header-logo img {
    width: 166px;
    height: auto;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

/* WPML im Header */
.header-right .wpml-ls {
    color: #fff;
}

.wpml-ls-legacy-list-horizontal.wpml-ls-statics-footer {
  margin-bottom: 0px;
}

.header-right .wpml-ls a {
    color: #fff;
    font-size: 18px;
    text-decoration: none;
}

.header-right .wpml-ls a:hover {
    text-decoration: underline;
}

.header-right .wpml-ls-legacy-list-horizontal ul {
    list-style: none;
    display: flex;
    gap: 10px;
    align-items: center;
}

.header-right .wpml-ls-legacy-list-horizontal li {
    display: flex;
    align-items: center;
}

.header-right .wpml-ls-legacy-list-horizontal .wpml-ls-flag {
    margin-right: 4px;
    vertical-align: middle;
}

/* Suchformular */
.header-search-form {
    width: 200px;
	margin-right: 17px;
}

.header-search-form form {
    display: flex;
    align-items: center;
    background: #fff;
    border: none;
    overflow: hidden;
}

.header-search-form .search-icon {
    padding: 6px 8px;
    color: #888;
    font-size: 13px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.header-search-form input[type="search"] {
    flex: 1;
    border: none;
    outline: none;
    padding: 6px 8px 6px 0;
    font-size: 13px;
    background: transparent;
    min-width: 0;
}

.header-search-form button[type="submit"] {
    display: none;
}

/* =============================================
   CONTENT AREA (Hintergrundbild)
   ============================================= */
.site-content {
    flex: 1;
    background-image: url('https://www.sajo-innovation.de/blog/wp-content/uploads/2020/02/IMG_1551-scaled.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    padding: 30px 15px;
	background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* =============================================
   SINGLE POST LAYOUT (2-spaltig + Sidebar)
   ============================================= */
.post-layout {
    display: flex;
    align-items: flex-start;
}

.post-thumbnail-col {
    width: 275px;
    flex-shrink: 0;
    overflow: hidden;
	padding-right: 20px;
}

.post-thumbnail-cols img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-thumbnail-cols .no-thumbnail {
    width: 275px;
    height: 100%;
    min-height: 250px;
    background: #e0e0e0;
}

.post-content-col {
    background: #fff;
    flex: 1;
    padding: 25px 30px;
    min-width: 0;
    align-self: stretch;
}

.post-content-col h1 {
    font-size: 2.2rem;
	font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 15px;
    line-height: 1;
	word-wrap: break-word;
}

.post-content-col .entry-content {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

.post-content-col .entry-content p {
    margin-bottom: 12px;
}

.post-content-col .entry-content ul,
.post-content-col .entry-content ol {
    margin: 10px 0 10px 25px;
}

.post-content-col .entry-content img {
    max-width: 100%;
    height: auto;
}

/* =============================================
   SIDEBAR
   ============================================= */
.post-sidebar {
    width: 24%;
	margin-left: 20px;
    flex-shrink: 0;
    background: #fff;
    border-left: 1px solid #e8e8e8;
    padding: 20px;
    align-self: flex-start;
}

.sidebar-read-more {
  margin: 10px 0 20px;
  display: block;
}

.sidebar-posts-list {
    list-style: none;
}

.sidebar-posts-list li {
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.sidebar-posts-list li:last-child {
    border-bottom: none;
}

.sidebar-post-title a {
    font-size: 18px;
	font-weight: bold;
	color: #333;
	line-height: 1.2;
	display: block;
	font-weight: 500;
}

.sidebar-post-title a:hover {
    text-decoration: underline;
}

.sidebar-post-date {
    font-size: 12px;
    color: #888;
    margin-top: 3px;
}

.sidebar-archive-btn {
    display: block;
    background: #6d6d6d;
    color: #fff;
    text-align: center;
    padding: 10px 15px;
    margin-top: 15px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: background 0.2s;
}

.sidebar-archive-btn:hover {
    background: #1E124A;
    color: #fff;
    text-decoration: none;
}

/* =============================================
   ARCHIVE / SUCHE (4-spaltig)
   ============================================= */
.archive-header {
    padding: 0 0 20px;
    margin-bottom: 2px;
}

.archive-header h1 {
    font-size: 2.2rem;
    color: #1E124A;
	font-weight: 500;
}

.archive-search-info {
    font-size: 18px;
    color: #1e124a;
    margin-top: 5px;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: #ffffff;
}

.archive-post-card {
    background: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.archive-post-card h3 {
    font-size: 18px;
	font-weight: 600;
    color: #1E124A;
    margin-bottom: 6px;
    line-height: 1.4;
}

.archive-post-card h3 a {
    color: #1E124A;
}

.archive-post-card h3 a:hover {
    text-decoration: underline;
}

.archive-post-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.archive-post-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 12px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.archive-read-more {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: #1E124A;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.archive-read-more:hover {
    text-decoration: underline;
}

.archive-no-posts {
    background: #fff;
    padding: 30px;
    text-align: center;
    color: #666;
}

.page-numbers {
  background: #ddd;
  padding: 4px 10px;
}

/* =============================================
   SEITEN (1-spaltig)
   ============================================= */
.page-layout {
    background: #fff;
    padding: 30px;
}

.page-layout h1 {
    font-size: 2.2rem;
	font-weight: 500;
    color: #1E124A;
    margin-bottom: 20px;
}

.page-layout .entry-content {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.page-layout .entry-content p {
    margin-bottom: 15px;
}

.page-layout .entry-content h2 {
    font-size: 20px;
    margin: 20px 0 10px;
    color: #1E124A;
}

.page-layout .entry-content ul,
.page-layout .entry-content ol {
    margin: 10px 0 10px 25px;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background-color: #1E124A;
    padding: 25px 20px;
    text-align: center;
    color: #fff;
    margin-top: auto;
}

/* Footer Navigation */
.footer-nav {
    margin-bottom: 15px;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px 30px;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    display: inline;
}

.footer-nav a {
    color: #fff;
    font-size: 18px;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
}

.footer-nav a:hover {
    text-decoration-color: #fff;
}

/* WPML im Footer */
.footer-wpml {
    margin-top: 12px;
}

.footer-wpml .wpml-ls a {
    color: #ccc;
    font-size: 13px;
}

.footer-wpml .wpml-ls a:hover {
    color: #fff;
}

.footer-wpml .wpml-ls-legacy-list-horizontal ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-wpml .wpml-ls-legacy-list-horizontal li {
    display: flex;
    align-items: center;
}

.footer-wpml .wpml-ls-legacy-list-horizontal .wpml-ls-flag {
    margin-right: 4px;
    vertical-align: middle;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .post-layout {
        flex-direction: column;
    }

    .post-thumbnail-col {
        width: 100%;
		margin-bottom: 15px;
    }

    .post-sidebar {
        width: 100%;
        border-left: none;
        margin-top: 15px;
		margin-left: 0;
    }

    .archive-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
	
	.header-lang {
	  margin: auto;
	}

    .header-right {
        align-items: flex-start;
        width: 100%;
    }

    .header-search-form {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .footer-nav ul {
        flex-direction: column;
        gap: 8px;
    }
}
