/* =========================================================
   Lokale Schriften (kein Datenabfluss an Google/Adobe)
   ========================================================= */
@font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/fraunces-latin-400-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/fraunces-latin-600-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Nunito Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/nunito-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Nunito Sans";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/nunito-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Nunito Sans";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/nunito-sans-latin-700-normal.woff2") format("woff2");
}

/* =========================================================
   Kita Wilde Wiese – Stylesheet
   Palette: Wiese, Natur, warmes Sonnengelb als Akzent
   ========================================================= */

:root {
    --green-deep:   #2e4a2b;  /* dunkles Blattgrün – Text, Footer */
    --green-mid:    #5a8a4a;  /* Wiesengrün – Akzente, Links */
    --green-soft:   #e8f0e0;  /* heller Wiesenschimmer – Flächen */
    --sun:          #f4b942;  /* warmes Sonnengelb – Call-to-Action */
    --sun-deep:     #e09c1f;  /* dunkleres Gelb – Hover */
    --cream:        #fbfaf5;  /* heller Hintergrund */
    --ink:          #29331f;  /* Fließtext */
    --muted:        #6b7560;  /* Sekundärtext */
    --white:        #ffffff;

    --radius:       16px;
    --radius-lg:    28px;
    --maxw:         1100px;
    --shadow:       0 6px 28px rgba(46, 74, 43, 0.10);
    --font-display: "Fraunces", Georgia, serif;
    --font-body:    "Nunito Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--green-deep); line-height: 1.15; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: 0 0 0.5em; }
h3 { font-size: 1.3rem; margin: 0 0 0.4em; }

p { margin: 0 0 1.1em; }

a { color: var(--green-mid); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--green-deep); }

.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--sun); color: var(--green-deep);
    padding: 10px 18px; border-radius: 0 0 var(--radius) 0; font-weight: 700; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header / Navigation ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(251, 250, 245, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--green-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: var(--green-deep); }
.brand-logo { height: 48px; width: auto; display: block; }
.brand-mark { font-size: 1.5rem; }

.primary-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
    display: block; padding: 10px 16px; border-radius: 999px; text-decoration: none;
    color: var(--green-deep); font-weight: 600; transition: background 0.18s ease;
}
.primary-nav a:hover { background: var(--green-soft); }
.primary-nav a[aria-current="page"] { background: var(--green-deep); color: var(--cream); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--green-deep); border-radius: 3px; transition: 0.2s; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(170deg, var(--green-soft) 0%, var(--cream) 70%);
    padding: clamp(48px, 8vw, 96px) 0 clamp(80px, 10vw, 140px);
}
.hero-inner { max-width: 720px; }
.eyebrow {
    display: inline-block; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    font-size: 0.8rem; color: var(--green-mid); margin-bottom: 14px;
}
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 56ch; }

.hero-meadow { position: absolute; left: 0; right: 0; bottom: -2px; line-height: 0; }
.hero-meadow svg { width: 100%; height: clamp(50px, 8vw, 90px); display: block; }
.hero-meadow path { fill: var(--cream); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block; font-family: var(--font-body); font-weight: 700; font-size: 1rem;
    padding: 14px 28px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
    transition: transform 0.15s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary { background: var(--sun); color: var(--green-deep); box-shadow: 0 4px 14px rgba(224, 156, 31, 0.35); }
.btn-primary:hover { background: var(--sun-deep); color: var(--green-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--green-deep); border: 2px solid var(--green-mid); }
.btn-ghost:hover { background: var(--green-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

/* ---------- Sektionen ---------- */
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section-tint { background: var(--green-soft); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 32px; }
.card { background: var(--white); border-radius: var(--radius-lg); padding: 32px 28px; box-shadow: var(--shadow); }
.card .icon { font-size: 2rem; display: block; margin-bottom: 12px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-top: 28px; list-style: none; padding: 0; }
.facts li { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.facts dt { font-weight: 700; color: var(--green-mid); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.facts dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 1.15rem; color: var(--green-deep); }

.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.4em; }

/* ---------- Meadow-Divider (Footer) ---------- */
.meadow-divider { line-height: 0; }
.meadow-divider svg { width: 100%; height: 60px; display: block; }
.meadow-divider path { fill: var(--green-deep); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: #d8e4d0; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; padding: 48px 24px 24px; max-width: var(--maxw); margin: 0 auto; }
.footer-brand { font-family: var(--font-display); font-size: 1.25rem; color: var(--white); margin-bottom: 8px; }
.site-footer a { color: var(--sun); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 18px 24px 32px; font-size: 0.85rem; }
.footer-bottom p { margin: 0; }

/* ---------- Formular ---------- */
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow); max-width: 760px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; color: var(--green-deep); font-size: 0.95rem; }
.field .req { color: var(--sun-deep); }
.field input, .field select, .field textarea {
    font-family: var(--font-body); font-size: 1rem; padding: 12px 14px;
    border: 2px solid var(--green-soft); border-radius: var(--radius); background: var(--cream);
    color: var(--ink); transition: border-color 0.16s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-mid); }
.field textarea { resize: vertical; min-height: 110px; }
.field .hint { font-size: 0.82rem; color: var(--muted); }
.field.error input, .field.error select, .field.error textarea { border-color: #c0492f; background: #fcefea; }
.field .err-msg { color: #c0492f; font-size: 0.82rem; font-weight: 600; }

.alert { border-radius: var(--radius); padding: 18px 22px; margin-bottom: 28px; font-weight: 600; }
.alert-success { background: #e3f3da; color: #2e4a2b; border: 1px solid #aacf97; }
.alert-error { background: #fcefea; color: #8f2f1c; border: 1px solid #e3a695; }

.checkbox-field { display: flex; align-items: flex-start; gap: 12px; grid-column: 1 / -1; }
.checkbox-field input { width: 20px; height: 20px; margin-top: 3px; flex-shrink: 0; }
.checkbox-field label { font-weight: 400; font-size: 0.92rem; color: var(--ink); }

/* visuell versteckt, aber für Bots als Falle sichtbar */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
    .nav-toggle { display: flex; }
    .primary-nav { position: absolute; top: 72px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--green-soft); display: none; }
    .primary-nav.open { display: block; }
    .primary-nav ul { flex-direction: column; padding: 12px 24px 20px; gap: 4px; }
    .primary-nav a { padding: 12px 16px; }
    .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Formular: erweiterte Elemente ---------- */
.form-section-title {
    font-size: 1.3rem; margin: 2rem 0 1rem; padding-bottom: 8px;
    border-bottom: 2px solid var(--green-soft); color: var(--green-deep);
}
.form-section-title:first-of-type { margin-top: 0; }
.hint-inline { font-weight: 400; font-size: 0.85rem; color: var(--muted); }

.info-box {
    background: var(--green-soft); border-left: 4px solid var(--green-mid);
    border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin: 20px 0;
}
.info-box strong { display: block; color: var(--green-deep); margin-bottom: 6px; font-family: var(--font-display); }
.info-box p { margin: 0; font-size: 0.9rem; color: var(--ink); }

.radio-group { margin: 18px 0; }
.radio-group.error { padding: 12px; border-radius: var(--radius); background: #fcefea; }
.radio-legend { display: block; font-weight: 700; color: var(--green-deep); font-size: 0.95rem; margin-bottom: 8px; }
.radio-opt { display: inline-flex; align-items: center; gap: 7px; margin-right: 20px; font-size: 0.95rem; cursor: pointer; }
.radio-opt.block { display: flex; margin: 0 0 8px; }
.radio-opt input { width: 18px; height: 18px; }

.conditional { display: none; margin: 14px 0; padding: 16px; background: var(--cream); border: 1px dashed var(--green-soft); border-radius: var(--radius); }
.conditional.show { display: block; }

/* ---------- Vollbild-Hero (Startseite) ---------- */
.hero-full {
    position: relative;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    background-image: image-set(url("/img/hero.webp") type("image/webp"), url("/img/hero.jpg") type("image/jpeg"));
    background-image: url("/img/hero.jpg");
    background-image: -webkit-image-set(url("/img/hero.webp") 1x);
    background-size: cover;
    background-position: center 40%;
    overflow: hidden;
}
/* WebP bevorzugt, JPG-Fallback via mehrfacher Deklaration */
.hero-full {
    background-image: url("/img/hero.webp"), url("/img/hero.jpg");
}
.hero-full-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(30,46,28,0.55) 0%, rgba(30,46,28,0.30) 45%, rgba(30,46,28,0.65) 100%);
}
.hero-full-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 48px 24px;
    max-width: 760px;
}
.hero-full-content h1 {
    color: #fff;
    text-shadow: 0 2px 18px rgba(0,0,0,0.35);
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    margin-bottom: 0.3em;
}
.eyebrow-light { color: #f4d98a; }
.lead-light {
    color: #f3f1e8;
    font-size: clamp(1.15rem, 2.4vw, 1.5rem);
    text-shadow: 0 1px 10px rgba(0,0,0,0.3);
    margin-bottom: 0;
}
.btn-light {
    background: rgba(255,255,255,0.95);
    color: var(--green-deep);
    border: 2px solid transparent;
}
.btn-light:hover {
    background: #fff;
    color: var(--green-deep);
    transform: translateY(-2px);
}

/* ---------- Bildergalerie ---------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 28px;
}
.gallery-item { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    aspect-ratio: 4 / 3;
    transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* ---------- Footer: Gehostet von Infomaniak ---------- */
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.hosted-by {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #d8e4d0;
    font-size: 0.8rem;
    opacity: 0.85;
    transition: opacity 0.18s ease;
}
.hosted-by:hover { opacity: 1; color: #d8e4d0; }
.hosted-by img { height: 30px; width: auto; display: block; }

@media (max-width: 600px) {
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}
