/* ==========================================================================
   SIRUPINE – GEMEINSAMES STYLESHEET
   Dieses Stylesheet wird von ALLEN Seiten eingebunden.
   Änderungen hier wirken sich auf die ganze Website aus.

   Die Farbpalette wurde aus dem Produktetikett (Zitronenmelisse-Minze)
   abgeleitet: Weiss/Creme bleibt die dominante Grundfläche, das frühere
   Grün wurde durch das Etikett-Gelb ersetzt, das frühere Dunkelgrün durch
   ein aus dem Etikett-Pink abgedunkeltes Beerenpink (für AA-Kontrast bei
   Headlines/Buttons). Das kräftige Etikett-Pink selbst kommt nur gezielt
   als Akzent bei Hover-States, aktiven Elementen, Icons und einer feinen
   Trennlinie zum Einsatz.
   ========================================================================== */

/* --- 1. Grundeinstellungen & Design-Variablen -------------------------- */
/* Alle Farben und Werte sind hier als Variablen definiert.
   So kannst du z. B. das Pink an EINER Stelle ändern und es
   wirkt sich überall aus. */
:root {
  /* Markenpalette (aus dem Etikett Zitronenmelisse-Minze abgeleitet) */
  --farbe-creme: #f6f4ea;          /* Haupt-Hintergrund, warmes Cremeweiss */
  --farbe-weiss: #ffffff;
  --farbe-gelb: #f8c947;           /* Etikett-Gelb – nur als Fläche (dunkler Text/Icon drauf), NICHT als Text auf Weiss */
  --farbe-gelb-hell: #ffd96f;      /* offizielles CD-Gelb (C0 M15 Y65 K0) – helle Bild-Panels & Rahmen */
  --farbe-dunkel: #7d1a4f;         /* Etikett-Pink, abgedunkelt – Header/Footer/Headlines, ~9.8:1 Kontrast auf Weiss */
  --farbe-akzent-pink: #e8368f;    /* Etikett-Pink, Originalton – NUR gezielter Akzent (Hover, Icons, Trennlinie) */
  --farbe-erde: #cca830;           /* Gold – Akzent, exakt der Sirup-Farbton aus dem Foto */
  --farbe-text: #22302a;           /* dunkler Fliesstext */
  --farbe-text-hell: #4f5f56;

  /* Typografie */
  --schrift-headline: "Fraunces", Georgia, serif;
  --schrift-text: "Nunito Sans", "Segoe UI", Arial, sans-serif;

  /* Abstände & Rundungen, damit alles einheitlich aussieht */
  --radius: 14px;
  --schatten: 0 10px 30px rgba(90, 20, 55, 0.14);
  --max-breite: 1180px;
}

/* Modernes Box-Modell für alle Elemente */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--schrift-text);
  color: var(--farbe-text);
  background-color: var(--farbe-creme);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--schrift-headline);
  color: var(--farbe-dunkel);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p {
  margin: 0 0 1em;
}

/* Wiederverwendbarer Container, der den Inhalt zentriert und begrenzt */
.container {
  width: 100%;
  max-width: var(--max-breite);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Sichtbar nur für Screenreader (Barrierefreiheit) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- 2. Buttons ---------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.85em 1.8em;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn:disabled {
  background-color: var(--farbe-text-hell);
  color: var(--farbe-weiss);
  cursor: not-allowed;
  transform: none;
  opacity: 0.7;
}

.btn-primary {
  background-color: var(--farbe-dunkel);
  color: var(--farbe-weiss);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--farbe-akzent-pink);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--farbe-weiss);
  color: var(--farbe-weiss);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background-color: var(--farbe-weiss);
  color: var(--farbe-dunkel);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--farbe-dunkel);
  color: var(--farbe-dunkel);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background-color: var(--farbe-akzent-pink);
  border-color: var(--farbe-akzent-pink);
  color: var(--farbe-weiss);
}

/* Deutlich sichtbarer Fokus-Rahmen für Tastatur-Nutzung (Barrierefreiheit) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--farbe-erde);
  outline-offset: 2px;
}

/* --- 3. Kopfzeile / Navigation ------------------------------------------- */
.kopfzeile {
  background-color: var(--farbe-creme);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid rgba(232, 54, 143, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 48px;
  width: auto;
  margin-left: 20px;
}

/* Der Hamburger-Button ist standardmässig (auf Desktop) versteckt */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background-color: var(--farbe-dunkel);
  border-radius: 2px;
}

.nav-liste {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-liste a {
  text-decoration: none;
  font-weight: 600;
  color: var(--farbe-text);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav-liste a:hover,
.nav-liste a:focus-visible,
.nav-liste a[aria-current="page"] {
  color: var(--farbe-akzent-pink);
  border-bottom-color: var(--farbe-akzent-pink);
}

/* --- 4. Hero-Bereich (Startseite) -----------------------------------------
   Aufgebaut wie ein kleines Messestand-Poster: links eine ruhige,
   dunkle Petrol-Fläche mit Logo/Text, rechts die Alpen-Illustration.
   Dadurch ist der Text IMMER gut lesbar, unabhängig vom Bildinhalt. */
.hero {
  color: var(--farbe-weiss);
  background-color: var(--farbe-dunkel);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    min-height: clamp(420px, 60vh, 620px);
  }
}

.hero-inhalt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  padding: clamp(2.5rem, 6vw, 4rem) 1.25rem;
  max-width: var(--max-breite);
  margin: 0 auto;
  width: 100%;
}

.hero-logo {
  height: 64px;
  width: auto;
  border-radius: 10px;
  margin-bottom: 0.4rem;
}

.hero-inhalt h1 {
  color: var(--farbe-weiss);
  margin-bottom: 0.2em;
  line-height: 1;
}

.hero-schriftzug {
  height: clamp(4.5rem, 11vw, 7.5rem);
  width: auto;
}

.hero-slogan {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  max-width: 40ch;
  color: var(--farbe-gelb-hell);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-bild-wrapper {
  background-color: var(--farbe-gelb-hell);
}

.hero-bild {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

/* --- 5. Allgemeine Abschnitte -------------------------------------------- */
.section {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.section-alt {
  background-color: var(--farbe-weiss);
}

.section-kopf {
  max-width: 65ch;
  margin-bottom: 2.5rem;
}

.section-kopf.zentriert {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--farbe-erde);
  margin-bottom: 0.6rem;
}

/* --- 6. Rasterlayouts (Grids) --------------------------------------------- */
.raster {
  display: grid;
  gap: 1.75rem;
}

.raster-2 {
  grid-template-columns: 1fr;
}

.raster-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .raster-2 { grid-template-columns: 1fr 1fr; align-items: center; }
  .raster-3 { grid-template-columns: repeat(3, 1fr); }
}

/* --- 7. Karten (Cards) ----------------------------------------------------- */
.karte {
  background-color: var(--farbe-weiss);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--schatten);
}

.karte-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--farbe-akzent-pink);
}

/* Hervorgehobene Karte (z. B. "Bio" im Abschnitt "Warum Sirupine?") –
   heller Goldrahmen und wärmerer Schatten heben sie von den anderen ab. */
.karte-bio {
  border: 2px solid var(--farbe-erde);
  box-shadow: 0 14px 34px rgba(204, 168, 48, 0.28);
}

.karte-bio .karte-icon {
  width: 56px;
  height: 56px;
  color: var(--farbe-erde);
}

/* --- 8. Fusszeile (Footer) --------------------------------------------------- */
.fusszeile {
  background-color: var(--farbe-dunkel);
  color: var(--farbe-gelb-hell);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.fusszeile a {
  color: var(--farbe-weiss);
  text-decoration: none;
}

.fusszeile a:hover,
.fusszeile a:focus-visible {
  text-decoration: underline;
}

.fusszeile-raster {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

@media (min-width: 640px) {
  .fusszeile-raster { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .fusszeile-raster { grid-template-columns: repeat(4, 1fr); }
}

.fusszeile h3 {
  color: var(--farbe-weiss);
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}

.fusszeile ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.fusszeile-social {
  display: flex;
  gap: 0.9rem;
  margin-top: 0.8rem;
}

.fusszeile-social a {
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.fusszeile-social a svg {
  width: 18px;
  height: 18px;
}

.fusszeile-social a:hover,
.fusszeile-social a:focus-visible {
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.7);
}

.fusszeile-unten {
  padding-top: 1.5rem;
  font-size: 0.85rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
}

/* --- 9. Mobile Navigation (Hamburger-Menü) ---------------------------------- */
@media (max-width: 780px) {
  .nav-toggle {
    display: flex;
  }

  .nav-liste {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background-color: var(--farbe-creme);
    border-bottom: 1px solid rgba(90, 20, 55, 0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav-liste.offen {
    max-height: 320px;
  }

  .nav-liste li {
    width: 100%;
  }

  .nav-liste a {
    display: block;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(90, 20, 55, 0.08);
  }

  .hero-inhalt {
    align-items: center;
    text-align: center;
  }

  .hero-slogan {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }
}

/* ==========================================================================
   SEITENSPEZIFISCHE STILE
   ========================================================================== */

/* --- Über uns: Team-Karten --- */
.team-raster {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .team-raster { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .team-raster { grid-template-columns: repeat(3, 1fr); }
}

.team-karte {
  text-align: center;
}

/* Einzelne Karte, die allein in ihrer Zeile steht (z. B. das 7. Team-Mitglied) –
   über die volle Zeilenbreite spannen und darin zentrieren. */
.team-karte-mitte {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
  max-width: 300px;
}

.team-foto {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid var(--farbe-gelb-hell);
}

.werte-liste {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.werte-liste li {
  padding-left: 2rem;
  position: relative;
}

.werte-liste li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--farbe-dunkel);
  font-weight: 700;
}

/* --- Shop: Produktkarte --- */
.produkt-karte {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  background-color: var(--farbe-weiss);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .produkt-karte { grid-template-columns: 1fr 1fr; }
}

.produkt-bild {
  background-color: var(--farbe-weiss);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: 1.5rem;
}

/* Karte für das freigestellte Flaschenbild (z. B. auf der Startseite) */
.produkt-schaufenster {
  background-color: var(--farbe-gelb-hell);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.produkt-bild img {
  max-height: 470px;
  width: auto;
  max-width: 100%;
}

.produkt-schaufenster img {
  max-height: 380px;
  width: auto;
  max-width: 100%;
}

.produkt-inhalt {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.produkt-preis {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--farbe-erde);
  margin: 0.4rem 0 1rem;
}

.produkt-badge {
  display: inline-block;
  background-color: var(--farbe-akzent-pink);
  color: var(--farbe-weiss);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35em 0.9em;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}

.produkt-liste {
  padding-left: 1.2rem;
  margin: 0 0 1.5rem;
  color: var(--farbe-text-hell);
}

.hinweis-box {
  background-color: #fff6e6;
  border: 1px solid #f0dca8;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 3rem;
  font-size: 0.95rem;
}

.hinweis-box strong {
  color: var(--farbe-erde);
}

/* --- Kontakt: Formular --- */
.kontakt-raster {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}

@media (min-width: 780px) {
  .kontakt-raster { grid-template-columns: 3fr 2fr; }
}

.formular {
  display: grid;
  gap: 1.25rem;
}

.formular-feld {
  display: grid;
  gap: 0.4rem;
}

.formular-feld label {
  font-weight: 700;
  font-size: 0.95rem;
}

.formular-feld input,
.formular-feld textarea {
  font-family: var(--schrift-text);
  font-size: 1rem;
  padding: 0.75em 1em;
  border: 1.5px solid var(--farbe-gelb-hell);
  border-radius: 10px;
  background-color: var(--farbe-weiss);
  color: var(--farbe-text);
}

.formular-feld input:invalid[data-beruehrt="true"],
.formular-feld textarea:invalid[data-beruehrt="true"] {
  border-color: #c0503f;
}

.fehlermeldung {
  color: #c0503f;
  font-size: 0.85rem;
  min-height: 1.1em;
}

.formular-status {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  background-color: var(--farbe-gelb-hell);
  color: var(--farbe-dunkel);
  font-weight: 600;
  display: none;
}

.formular-status.sichtbar {
  display: block;
}

.kontakt-info-karte {
  background-color: var(--farbe-weiss);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--schatten);
  display: grid;
  gap: 1rem;
  align-content: start;
}

.kontakt-info-karte a {
  font-weight: 700;
  color: var(--farbe-dunkel);
}

.kontakt-info-karte a:hover,
.kontakt-info-karte a:focus-visible {
  color: var(--farbe-akzent-pink);
}

/* --- Impressum & Datenschutz: schmalere Lesebreite für Fliesstext --- */
.rechtstext {
  max-width: 65ch;
}

.rechtstext h2 {
  margin-top: 2rem;
}

.rechtstext .hinweis-box {
  margin-top: 2rem;
}
