/* PickleZone.eu – Design „Grundlinie“ */

@font-face {
    font-family: 'Archivo';
    src: url('../fonts/archivo-var.woff2') format('woff2');
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-style: normal;
    font-display: swap;
}

:root {
    --court: #1E4F8C;
    --kitchen: #24599A;
    --green: #2F6B4F;
    --ball: #DCF22E;
    --ink: #13233F;
    --muted: #44536B;
    --mist: #EEF2F7;
    --line: #D5DCE6;
    --white: #FFFFFF;

    --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --wrap: 1280px;
    --gutter: clamp(20px, 5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
}

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

a { color: var(--court); }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--ball); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); }

h1, h2, h3 {
    font-weight: 800;
    font-stretch: 118%;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin: 0 0 0.5em;
}
h1 { font-size: clamp(34px, 4.6vw, 54px); }
h2 { font-size: clamp(24px, 2.6vw, 32px); }
h3 { font-size: 21px; font-stretch: 112%; }

.wrap {
    width: 100%;
    max-width: calc(var(--wrap) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.wrap-text { max-width: calc(760px + 2 * var(--gutter)); }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 10;
    background: var(--ink); color: var(--white); padding: 10px 14px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 10px 18px;
    font: inherit; font-size: 15px; font-weight: 700; text-decoration: none;
    border: 0; cursor: pointer;
}
.btn-primary { background: var(--court); color: var(--white); }
.btn-primary:hover { background: var(--ink); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--court); color: var(--white); }

/* Kopfzeile */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.header-inner {
    display: flex; align-items: center; gap: 24px; min-height: 84px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-name { font-size: 22px; font-weight: 800; font-stretch: 125%; letter-spacing: -0.02em; }

.main-nav { margin-left: auto; margin-right: 44px; }
.main-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 10px 0; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current] { border-bottom-color: var(--court); }

.lang-switch { display: flex; border: 1px solid var(--ink); font-size: 14px; font-weight: 600; }
.lang-switch > * {
    display: inline-flex; align-items: center; gap: 7px;
    min-height: 40px; padding: 6px 12px; text-decoration: none; color: var(--ink);
}
.lang-switch a:hover { background: var(--mist); }
.lang-switch [aria-current] { background: #E3EBF5; color: var(--ink); font-weight: 700; box-shadow: inset 0 -3px 0 var(--court); }
.flag { width: 20px; height: 14px; flex: none; box-shadow: 0 0 0 1px rgba(19, 35, 63, 0.25); }

.nav-toggle {
    display: none; gap: 8px; margin-left: auto; min-height: 44px; padding: 8px 14px;
    font: inherit; font-weight: 700; background: var(--white); color: var(--ink); border: 1px solid var(--ink); cursor: pointer;
}

@media (max-width: 1180px) {
    .header-inner { gap: 12px 16px; }
    .lang-switch { order: 2; margin-left: auto; }
    .nav-toggle { display: inline-flex; align-items: center; order: 3; margin-left: 0; }
    .main-nav { display: none; order: 4; width: 100%; margin-left: 0; margin-right: 0; padding-bottom: 16px; }
    .nav-open .main-nav { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; width: 100%; }
    .main-nav li { border-top: 1px solid var(--line); }
    .main-nav a { display: block; padding: 14px 0; border-bottom: 0; }
}

.nav-toggle-icon { width: 20px; height: 20px; }

.visually-hidden, .sr-only {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

@media (max-width: 560px) {
    /* Schmale Handys: nur Flaggen und Menü-Symbol, Texte bleiben für Screenreader erhalten */
    .header-inner { min-height: 68px; gap: 10px; }
    .brand { gap: 10px; }
    .brand-mark { width: 36px; height: 36px; }
    .brand-name { font-size: 19px; }
    .lang-switch > * { padding: 6px 9px; min-width: 40px; justify-content: center; }
    .lang-code, .nav-toggle-label {
        position: absolute; width: 1px; height: 1px; overflow: hidden;
        clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
    }
    .nav-toggle { padding: 8px 10px; }
}

/* Startbild: das Spielfeld */
.hero { position: relative; overflow: hidden; background: var(--green); color: var(--white); }
.hero-court { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner {
    position: relative; min-height: 640px;
    display: grid; grid-template-columns: minmax(0, 460px); align-content: center; gap: 32px;
    padding-block: 72px;
}
.hero h1 { font-size: clamp(36px, 4.4vw, 52px); font-stretch: 118%; margin: 0 0 18px; }
.hero-lead { font-size: 18px; line-height: 1.55; color: #E3EAF4; margin: 0; max-width: 38ch; }
.hero-search { background: var(--white); color: var(--ink); padding: 20px; display: grid; gap: 10px; }
.hero-search label { font-size: 15px; font-weight: 700; }
.hero-search-row { display: flex; gap: 8px; }
.hero-search input {
    flex: 1; min-width: 0; min-height: 48px; padding: 10px 12px;
    font: inherit; font-size: 16px; color: var(--ink); border: 1px solid #8E9DB3;
}
.hero-search-note { margin: 0; font-size: 14px; color: var(--muted); }

@media (min-width: 900px) {
    /* Text sitzt in der linken Spielfeldhälfte, wie im Entwurf */
    .hero-inner { padding-left: calc(var(--gutter) + 56px); }
}
@media (max-width: 899px) {
    /* Auf dem Handy: ruhige Court-Fläche mit grünem Auslauf statt Spielfeldzeichnung */
    .hero { background: var(--court); border-block: 14px solid var(--green); }
    .hero-court { display: none; }
    .hero-inner { min-height: 0; padding-block: 56px; grid-template-columns: minmax(0, 1fr); }
}

/* Rubriken als Spielfeldzonen */
.zones {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    padding-block: 56px;
}
.zone {
    display: flex; flex-direction: column; gap: 10px;
    padding: 4px 24px; text-decoration: none; color: var(--ink);
    border-left: 3px solid var(--court);
}
.zone:first-child { padding-left: 0; border-left: 0; }
.zone:last-child { padding-right: 0; }
.zone-title { font-size: 21px; font-weight: 800; font-stretch: 112%; line-height: 1.15; }
.zone-text { color: var(--muted); line-height: 1.5; font-size: 16px; }
.zone-cta { margin-top: auto; font-size: 15px; font-weight: 700; color: var(--court); text-decoration: underline; }
.zone:hover .zone-cta { color: var(--ink); }

@media (max-width: 1100px) {
    /* Unter Desktop-Breite: Grundlinien oben statt Trennlinien seitlich */
    .zones { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px 32px; }
    .zone, .zone:first-child, .zone:last-child { padding: 18px 0 0; border-left: 0; border-top: 3px solid var(--court); }
}

/* Magazin */
.latest { padding-bottom: 72px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 3px solid var(--ink); padding-top: 28px; margin-bottom: 8px; }
.section-head a { font-weight: 700; }

.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.post-card { padding: 24px 0; border-bottom: 1px solid var(--line); }
.post-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 16px; background: var(--court); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-placeholder {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
    background: linear-gradient(90deg, var(--court) 0 42%, var(--kitchen) 42% 58%, var(--court) 58%);
    border: 10px solid var(--green);
}
.placeholder-mark { width: 64px; height: 64px; }

.article-figure { margin-block: 40px 0; }
.article-figure img { width: 100%; height: auto; }
.article-figure figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.post-card h3 { margin-bottom: 8px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--court); text-decoration: underline; }
.post-card p { margin: 0 0 10px; color: var(--muted); }
.post-meta { font-size: 14px; color: var(--muted); font-stretch: 90%; }
.post-meta span { margin-inline: 6px; }

@media (max-width: 900px) { .post-list { grid-template-columns: minmax(0, 1fr); } }

/* Unterseiten */
.page-head { background: var(--mist); padding-block: 56px 40px; border-bottom: 3px solid var(--court); }
.page-head h1 { margin-bottom: 12px; }
.page-lead { font-size: 19px; color: var(--muted); max-width: 60ch; margin: 0 0 12px; }
.crumb { margin: 0 0 16px; font-size: 15px; font-weight: 600; }
.page-body { padding-block: 48px 80px; }
.soon h2 { font-size: 26px; }

.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; font-weight: 700; }

.prose { padding-block: 40px 80px; }
.prose > * { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; font-size: 26px; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 3px solid var(--court); color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; font-stretch: 85%; margin-bottom: 1.4em; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }

/* Fußzeile */
.site-footer { background: var(--ink); color: #C9D3E3; font-size: 15px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-block: 56px 40px; }
.footer-brand p { max-width: 36ch; margin: 16px 0 0; }
.footer-brand .footer-cta { color: var(--ball); font-weight: 700; }
.footer-brand .footer-cta:hover { color: var(--white); }
.brand-light { color: var(--white); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: var(--white); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; color: var(--ball); }
.footer-base { padding-block: 20px 28px; border-top: 1px solid #2A3A58; font-size: 14px; }

@media (max-width: 760px) { .footer-inner { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Vorschau-Hinweis aus der Redaktion */
.preview-banner { background: var(--ball); color: var(--ink); font-weight: 700; text-align: center; padding: 10px 16px; }

/* Bilder und Bildunterschriften im Artikeltext */
.prose img { width: 100%; height: auto; margin-block: 8px; border: 1px solid var(--line); }
.prose p:has(> img) + p > em:only-child { display: block; font-size: 14px; font-style: normal; color: var(--muted); margin-top: -8px; }
