/* ==========================================================================
   base.css – Design-System der Regionalseiten
   Tokens (von den Themes überschrieben), Fonts, Reset, Typografie, Buttons,
   Formulare, Utilities, Reveal-Animationen. Keine externen Ressourcen.
   Namensschema: camelCase-BEM (.block__element--modifier, Zustände .isX)
   ========================================================================== */

@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/outfit-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/outfit-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('../fonts/manrope-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('../fonts/manrope-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/fraunces-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 100 900; font-display: swap; src: url('../fonts/fraunces-latin-wght-italic.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Marke (Themes überschreiben) */
  --brand: #7fb61e;
  --brand-deep: #587d14;
  --brand-dark: #4f7211;
  --brand-tint: color-mix(in srgb, var(--brand) 12%, #fff);
  --brand-soft: color-mix(in srgb, var(--brand) 28%, #fff);
  --accent: #bc4f1d;
  --accent-deep: color-mix(in srgb, var(--accent) 85%, #000);
  --accent-tint: color-mix(in srgb, var(--accent) 10%, #fff);
  --dark: #26312c;
  --dark-2: color-mix(in srgb, var(--dark) 85%, #fff);
  --paper: #f4f6f3;

  /* Flächen und Text */
  --bg: #ffffff;
  --bg-alt: var(--paper);
  --line: #e3e6e6;
  --line-strong: #ccd2d1;
  --ink: #2b3330;
  --ink-soft: #5a615e;
  --muted: #6b7270;
  --heading: #1f2a25;
  --ok: #3f7a35;
  --warn: #b8860b;
  --error: #c0392b;
  --whatsapp: #25d366;
  --gold: #d9a441;

  /* Typografie */
  --font-heading: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-accent: 'Fraunces', Georgia, serif;
  --heading-weight: 600;
  --heading-tracking: -0.02em;
  --heading-transform: none;
  --fs-xs: 0.8rem;
  --fs-sm: 0.925rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.2rem;
  --fs-lg: 1.45rem;
  --fs-xl: clamp(1.7rem, 1.1rem + 1.9vw, 2.4rem);
  --fs-2xl: clamp(2.1rem, 1.4rem + 2.8vw, 3.3rem);
  --fs-3xl: clamp(2.5rem, 1.5rem + 4.2vw, 4.6rem);

  /* Abstände: bewusst großzügig */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6.5rem;
  --section-y: clamp(4rem, 8vw, 8rem);
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --content: 1240px;
  --content-narrow: 820px;

  /* Form */
  --radius: 12px;
  --radius-sm: calc(var(--radius) * 0.5);
  --radius-lg: calc(var(--radius) * 1.6);
  --radius-pill: 999px;
  --shadow-soft: 0 1px 2px rgba(20, 30, 25, 0.04), 0 10px 30px -18px rgba(20, 30, 25, 0.25);
  --shadow-card: 0 2px 4px rgba(20, 30, 25, 0.05), 0 20px 50px -28px rgba(20, 30, 25, 0.35);
  --shadow-elev: 0 6px 14px rgba(20, 30, 25, 0.08), 0 36px 80px -36px rgba(20, 30, 25, 0.45);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.5, 0, 0.1, 1);
  --dur-fast: 0.18s;
  --dur: 0.4s;
  --dur-slow: 0.9s;
  --z-header: 90;
  --z-menu: 300;
  --z-bar: 80;
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font-body); font-size: var(--fs-base); line-height: 1.65; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-deep); text-decoration: none; transition: color var(--dur-fast); }
a:hover { color: var(--brand-dark); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: var(--heading-weight); letter-spacing: var(--heading-tracking); text-transform: var(--heading-transform); color: var(--heading); line-height: 1.12; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-md); line-height: 1.25; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }
small { font-size: var(--fs-sm); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-xl) 0; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand-soft); color: var(--heading); }
.icon { width: 1.2em; height: 1.2em; flex: none; vertical-align: -0.22em; }
.visuallyHidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skipLink { position: absolute; left: -999px; top: 10px; z-index: 999; background: var(--bg); color: var(--heading); padding: 0.6rem 1rem; border-radius: var(--radius-sm); box-shadow: var(--shadow-card); }
.skipLink:focus { left: 10px; }

/* --- Raster ----------------------------------------------------------------- */
.container { width: min(100% - 2 * var(--gutter), var(--content)); margin-inline: auto; }
.container--narrow { max-width: var(--content-narrow); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: #dfe6e2; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lead { color: #cfd8d3; }
.grid { display: grid; gap: var(--space-lg); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-md); align-items: center; }
.cluster--center { justify-content: center; }
.stack { display: grid; gap: var(--space-md); }
.textCenter { text-align: center; }

/* --- Typografie-Bausteine --------------------------------------------------- */
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 0 var(--space-md); font-family: var(--font-heading); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-deep); }
.eyebrow::before { content: ''; width: 1.6rem; height: 2px; background: var(--brand); border-radius: 2px; }
.eyebrow--light { color: var(--brand-soft); }
.eyebrow--light::before { background: var(--brand); }
.eyebrow--center { justify-content: center; width: 100%; }
.eyebrow .icon { width: 1.1em; height: 1.1em; }
.lead { font-size: var(--fs-md); line-height: 1.6; color: var(--ink-soft); max-width: 62ch; }
.note { font-size: var(--fs-sm); color: var(--muted); }
.textLink { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; color: var(--brand-deep); border-bottom: 2px solid transparent; transition: border-color var(--dur-fast); }
.textLink:hover { border-bottom-color: var(--brand); }
.prose { max-width: 72ch; }
.prose h2 { margin-top: var(--space-2xl); font-size: var(--fs-lg); }
.prose h2:first-of-type { margin-top: 0; }
.prose p { margin-bottom: 1.2em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.emptyNote { color: var(--muted); font-style: italic; }
.sectionHead { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.sectionHead p:not(.eyebrow) { color: var(--ink-soft); font-size: var(--fs-md); }
.sectionHead--center { margin-inline: auto; text-align: center; }
.sectionHead--center .eyebrow { justify-content: center; }
.sectionHead--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-lg); flex-wrap: wrap; }
.sectionHead--row > div { max-width: 60ch; }

/* --- Buttons ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; padding: 0.85rem 1.5rem; border-radius: var(--radius); border: 2px solid transparent; font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-sm); letter-spacing: 0.01em; line-height: 1.2; cursor: pointer; text-decoration: none; background: var(--brand-deep); color: #fff; transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur), background var(--dur-fast), color var(--dur-fast); white-space: nowrap; position: relative; overflow: hidden; }
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.7s var(--ease-snap); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); color: #fff; }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--brand-deep); }
.btn--accent { background: var(--accent); box-shadow: 0 10px 24px -14px var(--accent); }
.btn--accent:hover { background: var(--accent-deep); }
.btn--ghost { background: transparent; color: var(--heading); border-color: var(--line-strong); }
.btn--ghost:hover { color: var(--heading); border-color: var(--heading); box-shadow: none; background: var(--bg); }
.btn--light { background: rgba(255, 255, 255, 0.92); color: var(--heading); }
.btn--light:hover { background: #fff; color: var(--heading); }
.btn--whatsapp { background: var(--whatsapp); color: #0b2b16; }
.btn--whatsapp:hover { background: #1fbf5b; color: #0b2b16; }
.btn--lg { padding: 1.05rem 1.9rem; font-size: var(--fs-base); }
.btn--sm { padding: 0.55rem 1rem; font-size: var(--fs-xs); border-radius: var(--radius-sm); }
.btn--block { width: 100%; }
.btn.isLoading { opacity: 0.6; pointer-events: none; }
.btn .icon { width: 1.15em; height: 1.15em; }

/* --- Karten ----------------------------------------------------------------- */
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow-soft); }
.card--tint { background: var(--brand-tint); border-color: var(--brand-soft); }
.badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.8rem; border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 700; background: var(--bg-alt); color: var(--ink-soft); }
.badge--licence { background: var(--brand-tint); color: var(--brand-deep); }
.infoBox { display: flex; gap: 0.6rem; padding: 0.9rem 1.1rem; border-radius: var(--radius); background: var(--accent-tint); color: var(--ink); border-left: 4px solid var(--accent); font-size: var(--fs-sm); }
.infoBox .icon { color: var(--accent); flex: none; margin-top: 0.15rem; }

/* --- Listen ------------------------------------------------------------------ */
.checkList { display: grid; gap: 0.6rem; margin: var(--space-lg) 0; }
.checkList li { display: flex; gap: 0.7rem; align-items: flex-start; line-height: 1.5; }
.checkList .icon { color: var(--brand); flex: none; margin-top: 0.25rem; width: 1.1em; height: 1.1em; }
.checkList--2col { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 0.6rem 2rem; }
.checkList--light .icon { color: var(--brand); }
.tagList { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag { padding: 0.4rem 0.8rem; border-radius: var(--radius-pill); background: var(--bg-alt); border: 1px solid var(--line); font-size: var(--fs-sm); }
.hoursList li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); font-size: var(--fs-sm); }
.hoursList li span:last-child { text-align: right; }

/* --- Formulare --------------------------------------------------------------- */
.form { display: grid; gap: var(--space-md); }
.form__title { margin: 0; }
.form__intro { color: var(--ink-soft); margin: 0; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.form__grid > * { grid-column: 1 / -1; }
.form__grid > .field--half { grid-column: span 1; }
@media (max-width: 560px) { .form__grid > .field--half { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.field__label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.field__req { color: var(--accent); }
.field__input { font: inherit; font-size: var(--fs-base); padding: 0.85rem 1rem; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); color: var(--ink); width: 100%; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.field__input:focus { outline: none; border-color: var(--brand-deep); box-shadow: 0 0 0 4px var(--brand-tint); }
textarea.field__input { resize: vertical; min-height: 6rem; line-height: 1.5; }
select.field__input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a615e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 1.1rem; padding-right: 2.6rem; }
.field.hasError .field__input { border-color: var(--error); }
.field__error { font-size: var(--fs-xs); color: var(--error); font-weight: 600; }
.field__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); }
.field__hint { font-size: var(--fs-xs); color: var(--muted); }
.checkField { display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--fs-sm); line-height: 1.5; cursor: pointer; }
.checkField input { width: 1.2rem; height: 1.2rem; margin-top: 0.15rem; accent-color: var(--brand-deep); flex: none; }
.checkField.hasError span { color: var(--error); }
.checkField a { text-decoration: underline; }
.honeypot { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; flex-wrap: wrap; gap: var(--space-md); align-items: center; }
.form__hint { margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.formMsg { margin: 0; padding: 0; font-weight: 600; font-size: var(--fs-sm); display: none; }
.formMsg.isOk, .formMsg.isError { display: block; padding: 0.9rem 1.1rem; border-radius: var(--radius); }
.formMsg.isOk { background: #ecf5ea; color: var(--ok); }
.formMsg.isError { background: #fbeae8; color: var(--error); }
.form.isSent .form__grid, .form.isSent .form__actions { display: none; }
.searchBox { position: relative; display: block; }
.searchBox .icon { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.searchBox .field__input { padding-left: 2.6rem; }

/* --- Akkordeon --------------------------------------------------------------- */
.accordion { display: grid; gap: 0.6rem; }
.accordion__item { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow var(--dur); }
.accordion__item[open] { box-shadow: var(--shadow-soft); border-color: var(--brand-soft); }
.accordion__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-md); color: var(--heading); }
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary .icon { color: var(--brand-deep); transition: transform var(--dur) var(--ease-spring); flex: none; }
.accordion__item[open] summary .icon { transform: rotate(180deg); }
.accordion__body { padding: 0 1.3rem 1.3rem; color: var(--ink-soft); }

/* --- Toast, Hinweise ---------------------------------------------------------- */
.toast { position: fixed; left: 50%; bottom: 5.5rem; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--dark); color: #fff; padding: 0.8rem 1.3rem; border-radius: var(--radius); box-shadow: var(--shadow-elev); transition: opacity var(--dur), transform var(--dur) var(--ease-spring); z-index: 500; font-size: var(--fs-sm); max-width: min(90vw, 480px); text-align: center; }
.toast.isVisible { opacity: 1; transform: translate(-50%, 0); }

/* --- Reveal-Animationen ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-slow) var(--ease-spring), transform var(--dur-slow) var(--ease-spring); transition-delay: calc(var(--i, 0) * 70ms); will-change: opacity, transform; }
.reveal--right { transform: translateX(40px); }
.reveal--left { transform: translateX(-40px); }
.reveal--scale { transform: scale(0.94); }
.reveal.isVisible, .no-js .reveal { opacity: 1; transform: none; }
.revealGroup .reveal:nth-child(2) { transition-delay: 80ms; }
.revealGroup .reveal:nth-child(3) { transition-delay: 160ms; }
.revealGroup .reveal:nth-child(4) { transition-delay: 240ms; }
.revealGroup .reveal:nth-child(5) { transition-delay: 320ms; }
.revealGroup .reveal:nth-child(6) { transition-delay: 400ms; }
.revealGroup .reveal:nth-child(n+7) { transition-delay: 460ms; }
[data-split] .word { display: inline-block; opacity: 0; transform: translateY(0.6em) rotate(2deg); transition: opacity 0.7s var(--ease-spring), transform 0.7s var(--ease-spring); transition-delay: calc(var(--w) * 45ms); }
.isVisible[data-split] .word { opacity: 1; transform: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); } 70% { box-shadow: 0 0 0 14px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, [data-split] .word { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
