/* ==========================================================================
   Schafe im Weinberg – IG Beweidung Weinberge, Korb im Remstal
   Zentrales Stylesheet (Onepager)
   Farbpalette: #F2C849, #261A02, #A67E4E, #F2CEA2, #734D2D, ergänzt #717336
   Hellere Flächen sind Tints der Palette (#F9EDD9, #FBF5EC).
   ========================================================================== */

:root {
  --tinte: #261A02;        /* Text, dunkle Flächen */
  --braun: #734D2D;        /* Akzentbraun (Überschriften H3, Flächen) */
  --braun-mittel: #A67E4E; /* Sekundärakzent */
  --gold: #F2C849;         /* Goldakzent */
  --gold-dunkel: #DFAE2E;  /* dunklerer Gold-Tint für Hover */
  --beige: #F2CEA2;        /* Beige (Flächen, Icons) */
  --beige-hell: #F9EDD9;   /* heller Beige-Tint */
  --creme: #FBF5EC;        /* Seitenhintergrund */
  --weiss: #FFFFFF;
  --olive: #717336;        /* Ergänzung: grüner Anker */
  --olive-dunkel: #5B5D2B; /* dunklerer Olive-Tint für Hover */
  --grau: #7A6A52;         /* warmer Nebentext-Tint */
  --linie: #EAD9BC;
  --schatten: 0 1px 3px rgba(38, 26, 2, 0.08), 0 10px 28px rgba(38, 26, 2, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--tinte);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  line-height: 1.2;
  color: var(--tinte);
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.25rem; margin-top: 0; color: var(--braun); }

p { margin: 0 0 1em; }
a { color: var(--olive); }
a:hover { color: var(--braun); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.schmal { max-width: 780px; }

/* Anker unter dem Sticky-Header positionieren */
section[id] { scroll-margin-top: 5.5rem; }

/* Sprunglink */
.sprunglink {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--weiss);
  color: var(--tinte);
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 0 0 0.4rem 0;
}
.sprunglink:focus { left: 0; }

/* Kopf und Navigation */
.seitenkopf {
  background: rgba(38, 26, 2, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.seitenkopf .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  padding: 0.6rem 1.5rem;
}
.marke {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  line-height: 1.25;
}
.marke-bild { width: 2.5rem; height: 2.5rem; display: block; }
.marke-texte { display: flex; flex-direction: column; }
.marke-name {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--creme);
}
.marke-unter {
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold);
}
.hauptnav { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.hauptnav a {
  color: var(--beige);
  text-decoration: none;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.hauptnav a:hover { background: rgba(242, 206, 162, 0.16); color: var(--weiss); }
.hauptnav a[aria-current] {
  background: var(--gold);
  color: var(--tinte);
  font-weight: 600;
}

/* Hero mit Fotobild und Parallax */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--tinte); /* Fallback, solange das Foto lädt */
  min-height: 86vh;
  display: flex;
  align-items: center;
}
.hero-bild {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(38, 26, 2, 0.66) 0%,
    rgba(38, 26, 2, 0.28) 55%,
    rgba(38, 26, 2, 0.62) 100%);
}
.hero-inhalt {
  position: relative;
  z-index: 2;
  padding-top: clamp(3.5rem, 8vw, 6rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
  max-width: 780px;
}
.hero .ueberzeile { color: var(--gold); }
.hero h1 { color: var(--creme); text-shadow: 0 2px 18px rgba(38, 26, 2, 0.45); }
.hero .akzent { color: var(--gold); }
.hero .unterzeile { color: var(--beige-hell); }
.ueberzeile {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--braun-mittel);
  margin-bottom: 0.6rem;
}
.akzent { color: var(--braun-mittel); font-style: italic; }
.unterzeile { font-size: clamp(1.15rem, 2.3vw, 1.4rem); max-width: 38ch; }
.hero-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}
.statistiken {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 2.2rem;
  margin-top: 2rem;
  background: rgba(38, 26, 2, 0.35);
  border: 1px solid rgba(242, 200, 73, 0.22);
  border-radius: 0.9rem;
  padding: 0.85rem 1.3rem;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  max-width: max-content;
}
.statistiken > div { display: flex; align-items: baseline; gap: 0.5rem; }
.hero .stat-zahl { color: var(--gold); }
.hero .stat-text { color: var(--beige); }
.stat-zahl {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--braun);
  line-height: 1;
  margin: 0;
}
.stat-text { font-size: 0.85rem; color: var(--grau); margin: 0; }

/* Schaltflächen */
.button {
  display: inline-block;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  background: var(--olive);
  color: var(--creme);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.button:hover { background: var(--olive-dunkel); color: var(--weiss); transform: translateY(-1px); }
.button-gold { background: var(--gold); color: var(--tinte); }
.button-gold:hover { background: var(--gold-dunkel); color: var(--tinte); }

/* Abschnitte */
.abschnitt { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.abschnitt-weiss { background: var(--weiss); }
/* Beige-Flächen sind durch Olivgrün ersetzt; die Klasse behält ihren
   Namen, damit das HTML unverändert bleibt. Text und Links innerhalb
   dieser Abschnitte fahren für den Kontrast auf helle Töne. */
.abschnitt-beige { background: var(--olive); color: var(--creme); }
.abschnitt-beige h2 { color: var(--weiss); }
.abschnitt-beige a { color: var(--gold); }
.abschnitt-beige figure.foto figcaption { color: var(--beige-hell); }

.abschnitt-kopf { margin-bottom: 1.25rem; }
.abschnitt-kopf h2 { margin: 0; }

/* Karten (Projekt-Blöcke) */
.karten {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.karte {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-top: 4px solid var(--gold);
  border-radius: 1rem;
  box-shadow: var(--schatten);
  padding: 1.75rem;
}
.karte p:last-child { margin-bottom: 0; }

/* Vorteile */
.vorteil-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.vorteil { display: flex; gap: 1.1rem; align-items: flex-start; }
.vorteil-icon {
  flex: 0 0 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vorteil-icon svg { width: 1.6rem; height: 1.6rem; stroke: var(--braun); fill: none; }
.vorteil h3 { margin-bottom: 0.25rem; }
.vorteil p { margin-bottom: 0; }

/* Fotos */
figure.foto { margin: 1.75rem 0; }
figure.foto img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  border-radius: 1rem;
  box-shadow: var(--schatten);
}
figure.foto figcaption { font-size: 0.85rem; color: var(--grau); margin-top: 0.4rem; }

/* Bildleiste (Karussell). Grundmechanik: normales horizontales
   Scrollen (Wischen, Mausrad mit Shift, Pfeiltasten-Buttons).
   Die Leiste läuft per JavaScript endlos weiter. */
.karussell { position: relative; margin-top: 2rem; }
.karussell-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.25rem;
  scrollbar-width: none; /* Leiste ohne sichtbaren Scrollbalken (Firefox) */
  -ms-overflow-style: none;
}
.karussell-track::-webkit-scrollbar { display: none; } /* Chrome, Safari, Edge */
.karussell-track figure {
  flex: 0 0 min(460px, 78vw);
  margin: 0;
  scroll-snap-align: start;
}
.karussell-track img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  border-radius: 1rem;
  box-shadow: var(--schatten);
}
.karussell-track img.hoch { object-position: 50% 30%; }
.karussell-track figcaption { font-size: 0.85rem; color: var(--grau); margin-top: 0.4rem; }
.karussell-pfeil {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--gold);
  color: var(--tinte);
  font-size: 1.7rem;
  line-height: 1;
  box-shadow: var(--schatten);
  z-index: 2;
  padding: 0;
}
.karussell-pfeil:hover { background: var(--gold-dunkel); }
.karussell-zurueck { left: -0.75rem; }
.karussell-vor { right: -0.75rem; }

/* Pressestimmen: kompakte Kartenserie. Jede Karte zeigt einen
   verkleinerten Zeitungsseiten-Ausschnitt (oben ausgerichtet, die
   Schlagzeile bleibt sichtbar), darunter Titel, Quelle und den
   Verweis auf die vollständige Seite als PDF. */
.presse-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem 1.5rem;
  margin-top: 2rem;
}
@media (min-width: 560px) {
  .presse-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .presse-grid { grid-template-columns: repeat(4, 1fr); gap: 1.75rem 1.25rem; }
}
.presse-artikel { margin: 0; }
.presse-artikel a {
  display: block;
  aspect-ratio: 3 / 2;
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: 0.5rem;
  padding: 0.35rem;
  box-shadow: var(--schatten);
  overflow: hidden;
  transition: transform 0.2s ease;
}
.presse-artikel a:hover { transform: scale(1.02); }
.presse-artikel a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.presse-artikel figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
}
.presse-artikel .presse-titel {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: inherit;
}
.presse-artikel .presse-quelle {
  font-size: 0.8rem;
  margin: 0.25rem 0 0;
  color: var(--beige);
}

/* Neuigkeiten */
.news {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: 1rem;
  box-shadow: var(--schatten);
  padding: 1.6rem 1.9rem;
  margin-bottom: 1.5rem;
}
.news-datum {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--braun-mittel);
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.news h3 { font-size: 1.35rem; margin-bottom: 0.35em; color: var(--tinte); }
.news p:last-child { margin-bottom: 0; }

/* Bankverbindung */
.bank {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-left: 5px solid var(--gold);
  border-radius: 0.75rem;
  box-shadow: var(--schatten);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.bank div { margin-bottom: 0.75rem; }
.bank div:last-child { margin-bottom: 0; }
.bank dt {
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grau);
}
.bank dd { margin: 0; font-size: 1.1rem; }

/* Kontakt: Fotoband mit Winterbild und dezenter Parallax-Wirkung.
   background-attachment: fixed erzeugt den Effekt auf Desktop-Rechnern;
   Mobilgeräte (iOS) und „Bewegung reduzieren“ zeigen das Bild ruhend. */
.cta-band {
  position: relative;
  background-color: var(--braun);
  background-image: url("../bilder/Schafe_DSC_0849_Jessica_Morfis.jpg");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  color: #F7EBD6;
  text-align: center;
  padding: clamp(3.5rem, 9vw, 6rem) 0;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(38, 26, 2, 0.72) 0%,
    rgba(38, 26, 2, 0.55) 45%,
    rgba(38, 26, 2, 0.72) 100%);
}
.cta-band .wrap { position: relative; }
.cta-band h2 { color: var(--creme); }
.cta-band .ueberzeile { color: var(--gold); margin-bottom: 0.8rem; }
.cta-band .cta-knoepfe {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.75rem;
}
.cta-band p:last-child { margin-bottom: 0; }

/* Fußbereich */
.fuss { background: var(--tinte); color: #D9CBAF; padding: 2.75rem 0 1.5rem; }
.fuss a { color: var(--gold); text-decoration: none; }
.fuss a:hover { text-decoration: underline; }
.fuss .wrap { text-align: center; }
.fuss-titel {
  font-weight: 700;
  color: var(--creme);
  margin-bottom: 0.4rem;
  font-family: Georgia, "Times New Roman", serif;
}
.fuss p { margin-bottom: 0.4rem; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss .fuss-links {
  display: flex;
  gap: 0.5rem 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.75rem;
}
.fuss ul li { margin-bottom: 0.35rem; }
.fuss-unterzeile {
  border-top: 1px solid rgba(242, 200, 73, 0.25);
  margin-top: 2rem;
  padding-top: 1.1rem;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.fuss-unterzeile p { margin: 0; }
.fuss-unterzeile .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }

/* Schmale Bildschirme */
@media (max-width: 860px) {
  .karten, .vorteil-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .seitenkopf .wrap { justify-content: center; text-align: center; }
  .marke { justify-content: center; }
  .statistiken { gap: 0.75rem 1.5rem; padding: 0.75rem 1.1rem; }
  .karussell-track figure { flex: 0 0 82vw; }
  .karussell-zurueck { left: 0; }
  .karussell-vor { right: 0; }
  .hero { min-height: 0; }
  .cta-band { background-attachment: scroll; } /* iOS: Parallax aus */
}

/* Weniger Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bild { transform: none !important; }
  .button, .hauptnav a { transition: none; }
  .cta-band { background-attachment: scroll; }
}
