/* Zöld Tanya — Basis-Stylesheet
   Farbwerte per Pixel-Analyse aus den echten Logo-Dateien extrahiert
   (siehe roadmap.md Abschnitt 10) — nicht raten, hier ändern wenn sich
   die Marke ändert. */

:root {
    --color-forest: #2b3320;   /* Haupt-Hintergrundfarbe, dunkles Flaschengrün */
    --color-forest-light: #3a4429;
    --color-gold: #cdb98a;     /* Wortmarke */
    --color-cream: #e8d89a;    /* Ring/Konturen, helle Akzente */
    --color-sage: #6b7a3f;     /* Tagline, zweite Akzentfarbe */
    --color-paper: #faf8f2;    /* heller Hintergrund für Fließtext-Bereiche */
    --color-text: #22261a;

    --font-display: "Cormorant Garamond", Georgia, serif;
    --font-body: "Jost", "Segoe UI", sans-serif;

    --max-width: 1180px;
    --radius: 4px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-paper);
    line-height: 1.5;
}

a { color: inherit; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ---------- Header ---------- */
.site-header {
    background: var(--color-forest);
    color: var(--color-cream);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.brand-badge {
    height: 42px;
    width: auto;
    border-radius: 50%;
    flex-shrink: 0;
    display: block;
}

.brand-lockup {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.brand-text {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-gold);
    font-size: 1.2rem;
    line-height: 1;
}

.brand-sub {
    display: block;
    font-family: var(--font-body);
    font-size: 0.55rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-sage);
}

nav.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

nav.main-nav a {
    text-decoration: none;
    color: var(--color-cream);
}

nav.main-nav a:hover {
    color: var(--color-gold);
}

.lang-switch {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8rem;
    margin-left: 1.5rem;
}

.lang-switch a {
    text-decoration: none;
    color: var(--color-sage);
}

.lang-switch a.active {
    color: var(--color-gold);
    font-weight: 600;
}

/* ---------- Hero / Startseite — Banner-Bild, Text steht im Bild ---------- */
.hero {
    background-color: var(--color-forest);
    background-image: url('/assets/img/hero-banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 360px;
    max-height: 360px;
    overflow: hidden;
}

@media (max-width: 720px) {
    .hero {
        height: 220px;
        max-height: 220px;
    }
}

/* Zwei gleichwertige Einstiegskacheln (siehe roadmap.md Abschnitt 11) */
.entry-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin: 1.5rem 0 2rem;
}

.entry-tile {
    position: relative;
    display: block;
    text-decoration: none;
    color: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 220px;
    height: 220px;
    background-color: var(--color-forest-light);
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

@media (min-width: 721px) {
    .entry-tile {
        min-height: 280px;
        height: auto;
        max-height: 45vh;
    }
}

@media (max-width: 720px) {
    .entry-tiles { grid-template-columns: 1fr; }
    nav.main-nav ul { flex-wrap: wrap; gap: 0.75rem; }
}

.entry-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(43,51,32,0.15) 0%, rgba(43,51,32,0.85) 100%);
}

.entry-tile .entry-tile-label {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 1;
    padding: 1.25rem 1.5rem;
}

.entry-tile-label h2 {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-gold);
    margin: 0 0 0.35rem;
    font-size: 1.45rem;
}

.entry-tile-label span {
    font-size: 0.85rem;
    color: var(--color-cream);
}

/* ---------- Sections ---------- */
.section {
    padding: 3rem 0;
}

.section h2.section-title {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-forest);
    border-bottom: 2px solid var(--color-sage);
    display: inline-block;
    padding-bottom: 0.25rem;
    margin-bottom: 1.5rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.card {
    background: #fff;
    border: 1px solid #e6e1d3;
    border-radius: var(--radius);
    overflow: hidden;
}

.card img { width: 100%; display: block; }

.card-body { padding: 1rem; }

.card-body .card-track {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-sage);
}

.card-body h3 {
    font-family: var(--font-display);
    margin: 0.35rem 0;
    font-size: 1.15rem;
}

.card-body p {
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
    color: var(--color-text);
}

/* ---------- Seiten-Intro / Zweispalter / CTA (Dorf & später andere) ---------- */
.page-intro-text {
    font-size: 1.1rem;
    max-width: 42rem;
    margin: 0 0 1rem;
    line-height: 1.6;
}

.page-intro-text p {
    margin: 0 0 1rem;
}

.page-intro-text p:last-child {
    margin-bottom: 0;
}

.section-note {
    margin-top: 1.25rem;
}

/* Mobile first: Bild oben, Text darunter */
.split-block {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.split-block-media {
    width: 100%;
}

.split-block-body p {
    margin: 0 0 1rem;
}

.split-block-body p:last-child {
    margin-bottom: 0;
}

.img-placeholder {
    aspect-ratio: 4 / 3;
    width: 100%;
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, var(--color-forest-light) 0%, var(--color-forest) 100%);
    color: var(--color-sage);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (min-width: 720px) {
    /* Desktop: Text links, Bild rechts */
    .split-block {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        gap: 2rem;
        align-items: start;
    }

    .split-block-body {
        order: -1;
    }
}

.cta-box {
    background: var(--color-forest);
    color: var(--color-cream);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
}

.cta-box-title {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-gold);
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
}

.cta-box p {
    max-width: 36rem;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    background: var(--color-gold);
    color: var(--color-forest);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius);
    font-weight: 500;
}

.btn:hover {
    background: var(--color-cream);
}

/* ---------- Dorfkarte (Leaflet) ---------- */
.map-intro {
    max-width: 42rem;
    margin: 0 0 1.25rem;
}

.map-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.map-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid #e6e1d3;
    border-radius: var(--radius);
}

.map-filters-title {
    width: 100%;
    margin: 0 0 0.25rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-forest);
}

.map-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
}

.map-filter input {
    margin: 0;
}

.map-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    flex-shrink: 0;
    box-sizing: border-box;
    border: 2px solid #faf8f2;
    box-shadow: 0 0 0 1px rgba(43, 51, 32, 0.2);
    font-size: 13px;
    line-height: 1;
}

.map-swatch--wanderweg { background: var(--color-sage); }
.map-swatch--feuerstelle { background: var(--color-gold); }
.map-swatch--wasserstelle { background: var(--color-cream); }
.map-swatch--aussichtspunkt { background: var(--color-forest-light); }
.map-swatch--poi { background: var(--color-forest); }

.map-canvas {
    width: 100%;
    height: 60vh;
    min-height: 280px;
    max-height: 520px;
    border-radius: var(--radius);
    border: 1px solid #e6e1d3;
    background: #e6e1d3;
    z-index: 0; /* Leaflet-Panes nicht über Header legen */
}

.map-canvas--error {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 720px) {
    .map-layout {
        flex-direction: row;
        align-items: stretch;
        gap: 1.25rem;
    }

    .map-filters {
        flex-direction: column;
        flex-wrap: nowrap;
        width: 200px;
        flex-shrink: 0;
        gap: 0.75rem;
    }

    .map-filters-title {
        width: auto;
        margin-bottom: 0.35rem;
    }

    .map-canvas {
        flex: 1;
        height: 70vh;
        max-height: 640px;
    }
}

/* Leaflet DivIcon — runde Farbmarker mit Emoji-Platzhalter
   (werden durch Zweig-Stil-Icons aus GIMP ersetzt, siehe .cursorrules) */
.poi-marker {
    background: transparent !important;
    border: none !important;
    width: 28px !important;
    height: 28px !important;
}

.poi-marker-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(43, 51, 32, 0.35);
    overflow: hidden;
    line-height: 1;
}

.poi-marker-symbol {
    display: block;
    font-size: 14px;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    transform: translateY(0.5px);
}

.leaflet-popup-content {
    margin: 0.75rem 0.9rem;
    font-family: var(--font-body);
    color: var(--color-text);
    min-width: 160px;
}

.poi-popup-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--color-forest);
    letter-spacing: 0.03em;
}

.poi-popup-desc {
    margin: 0.4rem 0 0;
    font-size: 0.88rem;
    line-height: 1.45;
}

.poi-popup-hint {
    margin: 0.55rem 0 0;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--color-sage);
    font-style: italic;
}

/* ---------- Bild des Tages ---------- */
.bdt {
    background: var(--color-forest-light);
    color: var(--color-cream);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}

.bdt img { width: 100%; max-width: 360px; object-fit: cover; }

.bdt .bdt-caption { padding: 1.25rem; }

.bdt .bdt-label {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gold);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-forest);
    color: var(--color-sage);
    font-size: 0.85rem;
    padding: 2rem 0;
    margin-top: 3rem;
}

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

.site-footer .footer-cols {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.footer-brand strong {
    color: var(--color-gold);
    font-family: var(--font-display);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ---------- Coming-Soon (Vorhang + Hero + FB-Karten) ---------- */
html.cs-busy {
    overflow: hidden;
}

body.coming-soon {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--color-paper);
}

.cs-page {
    flex: 1;
}

.cs-curtain {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: auto;
}

.cs-curtain__panel {
    position: absolute;
    left: 0;
    width: 100%;
    background: var(--color-forest);
    overflow: hidden;
    transition: transform 0.95s cubic-bezier(0.77, 0, 0.18, 1);
}

.cs-curtain__panel--top {
    top: 0;
    bottom: 50%;
}

.cs-curtain__panel--bottom {
    top: 50%;
    bottom: 0;
}

.cs-curtain.is-open .cs-curtain__panel--top {
    transform: translateY(-100%);
}

.cs-curtain.is-open .cs-curtain__panel--bottom {
    transform: translateY(100%);
}

.cs-curtain--done,
.cs-curtain--skip {
    display: none;
}

.cs-curtain__seal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: opacity 0.4s ease;
}

.cs-curtain__seal img {
    display: block;
    width: 140px;
    height: 140px;
}

.cs-curtain.is-open .cs-curtain__seal {
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    .cs-curtain {
        display: none;
    }
}

.cs-hero__banner {
    background-color: var(--color-forest);
    background-image: url('/assets/img/hero-banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 220px;
}

.cs-hero__copy {
    background: var(--color-forest);
    color: var(--color-cream);
    padding: 2rem 0 2.4rem;
}

.cs-hero__copy h1 {
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-gold);
    font-size: 1.85rem;
    margin: 0 0 0.85rem;
    line-height: 1.15;
}

.cs-hero__copy p {
    margin: 0 0 0.9rem;
    max-width: 40rem;
    line-height: 1.6;
    font-size: 1.02rem;
}

.cs-hero__copy p:last-child {
    margin-bottom: 0;
}

.cs-feed {
    padding-top: 2.5rem;
}

.cs-feed-empty {
    max-width: 36rem;
    color: var(--color-text);
}

.cs-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.cs-card-grid .card img,
.cs-card-grid .img-placeholder {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    width: 100%;
}

.cs-card-link {
    margin-top: 0.85rem;
}

.cs-card-link a {
    color: var(--color-sage);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
}

.cs-card-link a:hover {
    color: var(--color-forest);
}

.cs-footer {
    margin-top: 0;
}

@media (min-width: 720px) {
    .cs-hero__banner {
        height: 360px;
    }

    .cs-hero__copy {
        padding: 2.75rem 0 3rem;
    }

    .cs-hero__copy h1 {
        font-size: 2.4rem;
    }

    .cs-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cs-curtain__seal img {
        width: 160px;
        height: 160px;
    }
}

@media (min-width: 1000px) {
    .cs-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
