/* ==========================================================================
   Perlhuhn Gourmet – Konzept B: Modernes Redesign
   Palette: warmes Wald-/Olivgrün (abgeleitet von #4d7f17) + Creme/Erdtöne
   Typografie: Fraunces (Headlines) + Inter (Fließtext)
   ========================================================================== */

/* Lokal gehostete Schriften (DSGVO-sauber, keine Verbindung zu Google) */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/fraunces-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/fraunces-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/fraunces-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/fraunces-500-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/fraunces-600-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/inter-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/inter-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/inter-600-normal.woff2') format('woff2');
}

:root {
  --green: #41651e;
  --green-dark: #2f4a15;
  --green-tint: #eef3e6;
  --cream: #faf7f1;
  --paper: #ffffff;
  --ink: #26221a;
  --muted: #5d564a;
  --line: #e7e0d2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(38, 34, 26, 0.08);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  /* Ausgleich für den sticky Header: Anker-Ziele landen unterhalb der Leiste */
  scroll-padding-top: 88px;
}

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

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--ink);
}

h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); letter-spacing: -0.01em; line-height: 1.1; }
h3 { font-size: 1.25rem; }

/* Kursive Akzentwörter in Headlines (Fraunces Italic) */
h1 em, h2 em { font-style: italic; font-weight: inherit; }
h2 em { color: var(--green); }
.hero h1 em { color: inherit; }
.price-section h2 em { color: #cfe3ab; }

p { margin: 0 0 1em; }

a { color: var(--green); }
a:hover { color: var(--green-dark); }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.narrow { max-width: 720px; }

section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

/* Getupftes Trennelement (Perlhuhn-Gefieder-Motiv) */
.tuepfel {
  width: 84px;
  height: 8px;
  margin: 0 auto clamp(2.5rem, 6vw, 4.5rem);
  background-image: radial-gradient(circle at 4px 4px, #9bb56b 3px, transparent 3.5px);
  background-size: 19px 8px;
  background-repeat: repeat-x;
}

.lead { font-size: 1.1875rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  flex: none;
}

.brand img { height: 36px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; }

.main-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

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

.header-cta { flex: none; }

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn:hover { background: var(--green-dark); transform: translateY(-1px); }

.btn-lg { padding: 0.95rem 2.2rem; font-size: 1.05rem; }

.btn-ghost {
  background: transparent;
  color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.15); }

.nav-toggle { display: none; }

/* --------------------------------------------------------------------------
   Hero (Video)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(72vh, 620px);
  display: flex;
  align-items: center;
  padding: 4.5rem 0 5.5rem;
  overflow: hidden;
  color: var(--ink);
}

/* Scroll-Hinweis am unteren Hero-Rand */
.scroll-cue {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1.1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.scroll-cue:hover { color: #fff; }

.scroll-cue span { display: inline-block; animation: cue-bounce 2s ease-in-out infinite; }

@keyframes cue-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(250, 247, 241, 0.60) 0%,
    rgba(250, 247, 241, 0.60) 55%,
    rgba(250, 247, 241, 0.54) 100%
  );
}

.hero .container { position: relative; z-index: 2; }

.hero h1 {
  color: var(--ink);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  max-width: 16ch;
  margin-bottom: 0.5em;
  /* Textschutz: weicher heller Schein für Lesbarkeit über dem Video */
  text-shadow: 0 1px 2px rgba(250, 247, 241, 0.9), 0 2px 16px rgba(250, 247, 241, 0.7);
}

.hero .lead {
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 2rem;
  text-shadow: 0 1px 10px rgba(250, 247, 241, 0.85);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Bedienelemente auf hellem Overlay */
.hero .season-badge {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.hero .btn-ghost {
  color: var(--green-dark) !important;
  border-color: rgba(47, 74, 21, 0.45);
}

.hero .btn-ghost:hover { background: rgba(47, 74, 21, 0.08); }

.hero .scroll-cue { color: var(--green-dark); }
.hero .scroll-cue:hover { color: var(--ink); }

/* Saisonales Hinweis-Badge – leicht austausch-/entfernbar (siehe HTML) */
.season-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.season-badge::before { content: "❄"; font-size: 0.95em; }

/* --------------------------------------------------------------------------
   Ablauf ("So funktioniert's")
   -------------------------------------------------------------------------- */
.steps {
  margin-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 60px 240px 1fr;
  gap: 0.75rem 2rem;
  align-items: baseline;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.step .num {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1;
  color: var(--green);
}

.step h3 { margin: 0; font-size: 1.35rem; }

.step p { margin: 0; color: var(--muted); font-size: 1rem; }

/* --------------------------------------------------------------------------
   Preis
   -------------------------------------------------------------------------- */
.price-section {
  position: relative;
  overflow: hidden;
  background: var(--green-dark);
  color: #fff;
}

/* Perlhuhn-Gefieder: versetztes Punktmuster, nach rechts auslaufend */
.price-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.14) 1.7px, transparent 2.2px),
    radial-gradient(circle, rgba(255, 255, 255, 0.08) 1.4px, transparent 1.9px);
  background-size: 36px 36px;
  background-position: 0 0, 18px 18px;
  mask-image: linear-gradient(105deg, rgba(0, 0, 0, 0.9), transparent 60%);
  -webkit-mask-image: linear-gradient(105deg, rgba(0, 0, 0, 0.9), transparent 60%);
  pointer-events: none;
}

.price-section .container { position: relative; }

.price-section h2, .price-section h3 { color: #fff; }

.price-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.price-grid p { color: rgba(255, 255, 255, 0.85); }

.price-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 2.5rem 2.25rem;
  text-align: center;
}

.price-card .ab { font-size: 1rem; color: rgba(255, 255, 255, 0.75); }

.price-card .amount {
  font-family: var(--font-head);
  font-size: clamp(3rem, 6vw, 4.25rem);
  font-weight: 700;
  line-height: 1;
  margin: 0.25rem 0;
}

.price-card .amount small { font-size: 0.35em; font-weight: 500; }

.price-card .note { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); margin: 0.5rem 0 1.25rem; }

.price-card .weight {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 1.25rem;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.price-card .example {
  font-size: 1.05rem;
  color: #fff;
  margin: 0.6rem 0 0;
}

.price-card .delivery {
  margin: 1.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.15rem;
  color: #cfe3ab;
}

/* --------------------------------------------------------------------------
   Über uns / Bild-Text-Split
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: stretch;
}

/* Bild füllt die volle Höhe der Textspalte */
.split-img { display: flex; }

.split.reverse { grid-template-columns: 0.9fr 1.1fr; }

.split.reverse > .split-img { order: 2; }

.split-img img {
  border-radius: var(--radius);
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.section-cta { margin-top: 1.75rem; }

/* Dezenter Telefon-Hinweis am Formular */
.phone-line {
  font-size: 1rem;
  color: var(--muted);
  margin: 1.25rem 0 0;
}

.phone-line a {
  font-weight: 600;
  color: var(--green-dark);
  white-space: nowrap;
}

/* Überschrift im Formular */
.form-title {
  margin: 0 0 1.25rem;
  font-size: 1.45rem;
}

/* Sanftes Einblenden beim Scrollen (JS setzt .reveal/.visible) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.visible {
    opacity: 1;
    transform: none;
  }
}

.blockquote-hint {
  border-left: 3px solid var(--green);
  padding: 0.35rem 0 0.35rem 1.1rem;
  color: var(--muted);
  font-size: 0.98rem;
  margin: 1.25rem 0 0;
}

/* --------------------------------------------------------------------------
   Bestellformular
   -------------------------------------------------------------------------- */
.order-section { background: var(--paper); border-top: 1px solid var(--line); }

.order-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.order-form {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field { display: flex; flex-direction: column; gap: 0.35rem; }

.field.full { grid-column: 1 / -1; }

.field label { font-size: 0.9rem; font-weight: 600; }

.field label .opt { font-weight: 400; color: var(--muted); }

.field input,
.field textarea {
  font: inherit;
  font-size: 1.05rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}

.field .error {
  display: none;
  font-size: 0.85rem;
  color: #a33b2a;
}

.field.invalid input,
.field.invalid textarea { border-color: #a33b2a; }

.field.invalid .error { display: block; }

.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 1.25rem 0;
}

.consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--green);
  flex: none;
}

.consent.invalid { color: #a33b2a; }

.form-success {
  display: none;
  background: var(--green-tint);
  border: 1px solid #c4d8a4;
  color: var(--green-dark);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  font-weight: 500;
}

.form-error-global {
  display: none;
  background: #fbeae6;
  border: 1px solid #e5b8ad;
  color: #a33b2a;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
}

.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }

.contact-list li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-list li:last-child { border-bottom: none; }

.contact-list .label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  min-width: 70px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 0;
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

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

.footer-brand img { height: 28px; width: auto; opacity: 0.9; }

.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; margin-left: 1.25rem; }

.site-footer a:hover { color: #fff; text-decoration: underline; }

/* --------------------------------------------------------------------------
   Rechtsseiten
   -------------------------------------------------------------------------- */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }

.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); }

.legal h2 { font-size: 1.5rem; margin-top: 2.25rem; }

.legal h3 { font-size: 1.2rem; margin-top: 1.75rem; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  /* Kürzere Blöcke: nächste Sektion bleibt sichtbar */
  section { padding: 2.5rem 0; }

  .hero { min-height: min(70vh, 560px); padding: 3.5rem 0 4.5rem; }

  .brand img { height: 28px; }

  .header-cta {
    margin-left: auto;
    padding: 0.6rem 1.1rem;
    font-size: 0.9rem;
  }

  /* Bilder flacher, spart einen halben Bildschirm pro Sektion */
  .split-img img { aspect-ratio: 16 / 10; min-height: 0; height: auto; }

  /* Preis-Karte mobil kompakter, Text linksbündig gegen unschöne Umbrüche */
  .price-card { padding: 1.5rem 1.25rem; text-align: left; }

  .price-card .amount { font-size: 2.75rem; }

  .step {
    grid-template-columns: 56px 1fr;
    gap: 0.35rem 1.25rem;
  }

  .step .num { grid-row: span 2; font-size: 2rem; }

  .price-grid,
  .split,
  .split.reverse,
  .order-wrap { grid-template-columns: 1fr; }

  .split.reverse > .split-img { order: 0; }

  .form-grid { grid-template-columns: 1fr; }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
  }

  .nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 4%;
  }

  .main-nav.open { display: flex; }

  .main-nav a { padding: 0.85rem 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
  .scroll-cue span { animation: none; }
}

/* ---------- Hinweiskasten: TK-Perlhühner außerhalb der Festtage ---------- */
.tk-hinweis {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--green-tint);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
}
.tk-hinweis h3 {
  font-family: var(--font-head);
  color: var(--green-dark);
  margin: 0 0 0.5rem;
}
.tk-hinweis p { margin: 0; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 2rem auto 0;
}
.faq-list details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
}
.faq-list summary {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--green-dark);
  cursor: pointer;
  padding: 1rem 1.25rem;
  list-style-position: inside;
}
.faq-list summary:hover { color: var(--green); }
.faq-list details[open] summary { border-bottom: 1px solid var(--line); }
.faq-list details p {
  margin: 0;
  padding: 1rem 1.25rem;
  color: var(--muted);
}
