/*
 Theme Name:     MS SOE
 Theme URI:      https://michael-schmidt-soe.de
 Author:         Michael Schmidt
 Author URI:     https://michael-schmidt-soe.de
 Description:    Politik-Theme für Michael Schmidt, Stadtrat Neustadt in Sachsen.
 Version:        1.0.3
 Requires at least: 6.0
 Requires PHP:   7.4
 License:        GNU General Public License v2 or later
 License URI:    http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:    ms-soe
 */

/* ============================================================
 *  1. SCHRIFTEN (CUSTOM FONTS)
 *  ============================================================ */
@font-face {
    font-family: 'HelveticaNeueLTPro';
    src: url('assets/fonts/HelveticaNeueLTPro45Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HelveticaNeueLTPro';
    src: url('assets/fonts/HelveticaNeueLTPro45Light.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HelveticaNeueLTPro';
    src: url('assets/fonts/HelveticaNeueLTPro85Heavy.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
 *  2. DESIGN TOKENS (Variablen)
 *  ============================================================ */
:root {
    --ink:              #14161c;
    --ink-soft:         #22252e;
    --paper:            #ffffff;
    --paper-alt:        #f4f4f6;
    --line:             #e2e3e8;
    --line-dark:        #33363f;
    --text:             #1b1d23;
    --text-muted:       #5c6070;
    --text-on-dark:     #f2f3f5;
    --text-on-dark-mut: #a8acb8;
    --accent:           #e8541f;
    --accent-hover:     #c8431a;
    --accent-contrast:  #ffffff;
    --font-sans: 'HelveticaNeueLTPro', "Segoe UI", system-ui, sans-serif;
    --font-display: var(--font-sans);
    --step--1: clamp(0.82rem, 0.80rem + 0.10vw, 0.88rem);
    --step-0:  clamp(1.00rem, 0.97rem + 0.15vw, 1.06rem);
    --step-1:  clamp(1.15rem, 1.10rem + 0.30vw, 1.30rem);
    --step-2:  clamp(1.40rem, 1.30rem + 0.60vw, 1.75rem);
    --step-3:  clamp(1.80rem, 1.60rem + 1.10vw, 2.50rem);
    --step-4:  clamp(2.30rem, 1.90rem + 2.20vw, 3.60rem);
    --leading-tight:  1.15;
    --leading-normal: 1.62;
    --space-xs:  0.50rem;
    --space-s:   0.75rem;
    --space-m:   1.25rem;
    --space-l:   2.00rem;
    --space-xl:  3.50rem;
    --space-2xl: 6.00rem;
    --container: 1140px;
    --header-height: 72px;
    --radius-s:    4px;
    --radius-m:    10px;
    --radius-pill: 999px;
}

/* ============================================================
 *  3. GRUNDLAGEN (Reset)
 *  ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: var(--step-0);
    line-height: var(--leading-normal);
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* ============================================================
 *  4. HEADER & NAVIGATION (KORRIGIERT)
 *  ============================================================ */
.site-header {
    background: var(--ink);
    color: var(--text-on-dark);
    position: relative;
    z-index: 100;
    padding: 0 var(--space-m);
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center; /* ← ZENTRIERT DEN GESAMTEN HEADER INHALT */
    gap: var(--space-l);
}

/* Logo optional ausblenden (falls nicht benötigt) */
.site-branding {
    display: none; /* ← AUSKOMMENTIEREN FÜR SICHTBAR: display: flex; */
}

/* Alternative: Logo zeigen aber kleiner */
/* .site-branding { display: flex; align-items: center; } */
/* .custom-logo, .custom-logo-link img { */
/*   max-height: 32px; */
/*   width: auto; */
/* } */

.main-navigation ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--text-on-dark);
    text-decoration: none;
    font-size: var(--step--1);
    font-weight: 600;
    padding-block: var(--space-xs);
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    border-bottom-color: var(--accent);
}

/* ===============================================
 *  RESPONSIVE FÜR ZENTRIERTES MENÜ
 *  =============================================== */
@media (max-width: 680px) {
    .site-header {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-s);
        min-height: auto;
        padding: var(--space-s) var(--space-m);
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        display: none;
    }

    .main-navigation.is-open ul {
        display: flex;
    }

    .main-navigation a {
        display: block;
        padding-block: var(--space-s);
        text-align: center;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
 *  5. HERO SECTION
 *  ============================================================ */
.hero {
    background: var(--ink);
    color: var(--text-on-dark);
    padding-block: var(--space-2xl) var(--space-xl);
}

.hero-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-l);
    align-items: end;
    min-height: clamp(420px, 62vh, 640px);
}

.hero-content {
    max-width: 34ch;
    padding-bottom: var(--space-l);
}

.hero-eyebrow {
    font-size: var(--step--1);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-on-dark-mut);
    margin-bottom: var(--space-m);
}

.hero-title {
    font-family: var(--font-display);
    font-size: var(--step-4);
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin: 0 0 var(--space-m);
}

.hero-text {
    font-size: var(--step-1);
    color: var(--text-on-dark-mut);
    margin: 0 0 var(--space-l);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.85em 1.5em;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: var(--accent-contrast);
    font-size: var(--step--1);
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}

.hero-cta:hover {
    background: var(--accent-hover);
    color: var(--accent-contrast);
    transform: translateY(-1px);
}

.hero-image {
    align-self: end;
    justify-self: center;
    max-width: 520px;
}

.hero-image img {
    width: 100%;
    object-fit: contain;
    object-position: bottom;
}

/* ============================================================
 *  6. SECTIONS (Generisch)
 *  ============================================================ */
.section {
    padding-block: var(--space-xl);
}

.section-alt {
    background: var(--paper-alt);
}

.section-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-m);
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--step-3);
    line-height: var(--leading-tight);
    margin: 0 0 var(--space-s);
}

.section-lead {
    font-size: var(--step-1);
    color: var(--text-muted);
    margin: 0 0 var(--space-l);
}

/* ============================================================
 *  7. POST-LISTE (Kommentare/Blog)
 *  ============================================================ */
.post-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-m);
}

.post-item {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: var(--space-m);
    align-items: start;
    padding-bottom: var(--space-m);
    border-bottom: 1px solid var(--line);
}

.post-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.post-date {
    font-size: var(--step--1);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding-top: 0.25em;
}

.post-title {
    font-size: var(--step-2);
    line-height: 1.22;
    margin: 0 0 var(--space-xs);
}

.post-title a {
    color: var(--text);
    text-decoration: none;
}

.post-title a:hover {
    color: var(--accent);
}

.post-excerpt {
    margin: 0;
    color: var(--text-muted);
    max-width: 70ch;
}

.post-more {
    margin-top: var(--space-l);
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.85em 1.5em;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-size: var(--step--1);
    font-weight: 700;
    transition: background 0.15s ease, transform 0.15s ease;
}

.btn {
    background: var(--accent);
    color: var(--accent-contrast);
}

.btn:hover {
    background: var(--accent-hover);
    color: var(--accent-contrast);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text);
}

.btn-ghost:hover {
    background: var(--paper-alt);
    border-color: var(--text-muted);
    color: var(--text);
}

/* ============================================================
 *  8. KONTAKT
 *  ============================================================ */
.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-m);
}

.contact-label {
    display: block;
    font-size: var(--step--1);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.contact-value {
    font-weight: 600;
}

/* ============================================================
 *  9. FOOTER
 *  ============================================================ */
.site-footer {
    background: var(--ink);
    color: var(--text-on-dark-mut);
    padding-block: var(--space-xl) var(--space-m);
    font-size: var(--step--1);
    margin-top: var(--space-xl);
}

.site-footer a {
    color: var(--text-on-dark);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.footer-widgets {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-m);
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: var(--space-l);
    padding-bottom: var(--space-l);
    border-bottom: 1px solid var(--line-dark);
}

.footer-widgets h4 {
    color: var(--text-on-dark);
    font-size: var(--step--1);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 var(--space-s);
}

.footer-widgets ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-xs);
}

.footer-note {
    max-width: 62ch;
    margin-top: var(--space-m);
    opacity: 0.85;
}

.footer-copyright {
    margin-top: var(--space-m);
}

/* ============================================================
 *  10. RESPONSIVE
 *  ============================================================ */
@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hero-content {
        max-width: none;
    }

    .hero-image {
        max-width: 380px;
    }
}

@media (max-width: 680px) {
    :root {
        --space-xl: 2rem;
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-s);
        min-height: auto;
        padding: var(--space-s) var(--space-m);
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        display: none;
    }

    .main-navigation.is-open ul {
        display: flex;
    }

    .main-navigation a {
        display: block;
        padding-block: var(--space-s);
    }

    .post-item {
        grid-template-columns: 1fr;
        gap: var(--space-xs);
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
 *  11. DRUCK
 *  ============================================================ */
@media print {
    .site-header, .site-footer, .hero-cta {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
        font-size: 11pt;
    }
}
