/* ==========================================================================
   gelierhilfe.de – Stylesheet
   Schriften: Fredoka (Überschriften), Open Sans (Text) – lokal eingebunden
   ========================================================================== */

/* --- Schriften ---------------------------------------------------------- */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/fredoka-latin.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: 'Fredoka';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/fredoka-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/opensans-latin.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: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/opensans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Design-Tokens ------------------------------------------------------ */
:root {
  --orange: #ff8f43;
  --orange-dunkel: #b35a00;   /* barrierefreie Variante für Text auf Weiß */
  --teal: #45adac;
  --teal-dunkel: #2f7a79;     /* barrierefreie Variante für Text auf Weiß */
  --rot: #f75959;
  --rot-dunkel: #c62828;
  --dunkel: #424242;
  --text: #5a5a5a;
  --text-hell: #6f6f6f;
  --creme: #f7ebe4;
  --pfirsich: #ffe2ce;
  --linie: #e8e8e8;
  --weiss: #fff;
  --auf-orange: #4a2500;      /* dunkler Text auf orangem Grund (Kontrast 6.0:1) */
  --auf-pfirsich: #a04f00;    /* dunkler Text auf pfirsichfarbenem Grund (4.7:1) */

  --radius: 14px;
  --radius-gross: 22px;
  --schatten: 0 4px 18px rgba(66, 66, 66, .09);
  --schatten-hoch: 0 12px 34px rgba(66, 66, 66, .14);
  --breite: 1180px;
  --abstand: clamp(3.5rem, 8vw, 6.5rem);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 100px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fredoka', 'Open Sans', system-ui, sans-serif;
  font-weight: 600;
  color: var(--dunkel);
  line-height: 1.18;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.25rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1.15em; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal-dunkel); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange-dunkel); }

/* Sichtbarer Fokus – Pflicht für Tastaturbedienung */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--teal-dunkel);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Hilfsklassen ------------------------------------------------------- */
.container { width: min(100% - 2.5rem, var(--breite)); margin-inline: auto; }
.nur-fuer-screenreader {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprungmarke {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--weiss); color: var(--dunkel); font-weight: 700;
  padding: .8rem 1.3rem; border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--schatten-hoch); transition: top .18s ease;
}
.sprungmarke:focus { top: 0; }

.abschnitt { padding-block: var(--abstand); }
.abschnitt--creme { background: var(--creme); }

.ueberzeile {
  display: inline-block;
  font-family: 'Fredoka', sans-serif;
  font-size: .9rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--auf-pfirsich);
  background: var(--pfirsich);
  padding: .45rem 1.1rem; border-radius: 999px;
  margin-bottom: 1.1rem;
}
.abschnitt-kopf { max-width: 46rem; margin-inline: auto; text-align: center; }
.abschnitt-kopf p { color: var(--text); font-size: 1.09rem; margin-bottom: 0; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: 'Fredoka', sans-serif; font-size: 1.02rem; font-weight: 600;
  padding: .9rem 1.9rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--schatten-hoch); }
.btn--primaer { background: var(--orange); color: var(--auf-orange); }
.btn--primaer:hover { background: #ffa055; color: var(--auf-orange); }
.btn--sekundaer { background: transparent; color: var(--dunkel); border-color: var(--dunkel); }
.btn--sekundaer:hover { background: var(--dunkel); color: var(--weiss); }
.btn--weiss { background: var(--weiss); color: var(--dunkel); }
.btn--weiss:hover { background: var(--creme); color: var(--dunkel); }
.btn--gross { font-size: 1.14rem; padding: 1.05rem 2.4rem; }

/* --- Kopfbereich -------------------------------------------------------- */
.kopf {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie);
}
.kopf__inner { display: flex; align-items: center; gap: 1.5rem; padding-block: .75rem; }
.kopf__logo { flex: 0 0 auto; }
.kopf__logo img { width: 190px; height: auto; }
.kopf__rechts { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; }

.hauptnav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.hauptnav a {
  font-family: 'Fredoka', sans-serif; font-weight: 500; font-size: 1rem;
  color: var(--dunkel); text-decoration: none; padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.hauptnav a:hover, .hauptnav a[aria-current="page"] {
  color: var(--orange-dunkel); border-bottom-color: var(--orange);
}

.menue-schalter {
  display: none; flex-direction: column; gap: 5px; justify-content: center;
  width: 46px; height: 46px; padding: 0 10px;
  background: var(--creme); border: 0; border-radius: 12px; cursor: pointer;
}
.menue-schalter span {
  display: block; height: 3px; border-radius: 2px; background: var(--dunkel);
  transition: transform .2s ease, opacity .2s ease;
}
.menue-schalter[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menue-schalter[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menue-schalter[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .kopf__logo img { width: 150px; }
  .menue-schalter { display: flex; }
  .kopf__rechts .btn { display: none; }
  .hauptnav {
    position: absolute; inset: 100% 0 auto 0;
    background: var(--weiss); border-bottom: 1px solid var(--linie);
    box-shadow: var(--schatten); padding: 1rem 1.25rem 1.6rem;
    display: none;
  }
  .hauptnav[data-offen="true"] { display: block; }
  .hauptnav ul { flex-direction: column; gap: 0; }
  .hauptnav li + li { border-top: 1px solid var(--linie); }
  .hauptnav a { display: block; padding: .95rem .25rem; border-bottom: 0; }
  .hauptnav .nav-kaufen { margin-top: 1rem; }
  .hauptnav .nav-kaufen a {
    background: var(--orange); color: var(--auf-orange); text-align: center;
    border-radius: 999px; font-weight: 600;
  }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(rgba(255, 255, 255, .82), rgba(255, 245, 238, .88)),
              image-set(url('../img/hero-1920.webp') type('image/webp'));
  background-size: cover; background-position: center;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(5rem, 10vw, 8rem);
  overflow: hidden;
}
.hero__grid {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { margin-bottom: .5em; }
.hero h1 .akzent { color: var(--orange-dunkel); }
.hero__text { font-size: 1.14rem; max-width: 34rem; color: var(--text); }
.hero__fussnote { font-size: .92rem; color: var(--text-hell); margin-bottom: 1.8rem; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__bild { justify-self: center; }
.hero__bild img { width: min(100%, 380px); filter: drop-shadow(0 18px 30px rgba(66, 66, 66, .22)); }
.hero__welle { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; display: block; }

/* --- Kalorienvergleich -------------------------------------------------- */
.vergleich {
  background: var(--weiss); border-radius: var(--radius-gross);
  box-shadow: var(--schatten); padding: clamp(1.6rem, 4vw, 2.5rem);
  max-width: 40rem; margin: 3rem auto 0;
}
.vergleich h3 { text-align: center; margin-bottom: 1.6rem; }
.vergleich__zeile + .vergleich__zeile { margin-top: 1.25rem; }
.vergleich__kopf {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; margin-bottom: .4rem;
}
.vergleich__name { font-family: 'Fredoka', sans-serif; font-weight: 500; color: var(--dunkel); }
.vergleich__wert { font-family: 'Fredoka', sans-serif; font-weight: 600; white-space: nowrap; }
.vergleich__balken { height: 14px; border-radius: 999px; background: var(--linie); overflow: hidden; }
.vergleich__fuellung { height: 100%; border-radius: 999px; }
.vergleich__zeile--rot .vergleich__wert { color: var(--rot-dunkel); }
.vergleich__zeile--rot .vergleich__fuellung { background: var(--rot); width: 100%; }
.vergleich__zeile--orange .vergleich__wert { color: var(--orange-dunkel); }
.vergleich__zeile--orange .vergleich__fuellung { background: var(--orange); width: 61.5%; }
.vergleich__zeile--teal .vergleich__wert { color: var(--teal-dunkel); }
.vergleich__zeile--teal .vergleich__fuellung { background: var(--teal); width: 3.5%; min-width: 14px; }

/* --- Vorteilskacheln ---------------------------------------------------- */
.kacheln {
  list-style: none; margin: 3.2rem 0 0; padding: 0;
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}
.kachel {
  background: var(--weiss); border: 1px solid var(--linie);
  border-radius: var(--radius-gross); padding: 2rem 1.7rem;
  box-shadow: var(--schatten); transition: transform .18s ease, box-shadow .18s ease;
}
.kachel:hover { transform: translateY(-4px); box-shadow: var(--schatten-hoch); }
.kachel__icon {
  width: 56px; height: 56px; border-radius: 16px; margin-bottom: 1.1rem;
  display: grid; place-items: center; background: var(--pfirsich); color: var(--auf-pfirsich);
}
.kachel__icon svg { width: 28px; height: 28px; }
.kachel:nth-child(2n) .kachel__icon { background: #daf0ef; color: var(--teal-dunkel); }
.kachel h3 { margin-bottom: .45rem; }
.kachel p { margin-bottom: 0; font-size: 1rem; }

/* --- Schritte ----------------------------------------------------------- */
.schritte {
  list-style: none; margin: 3.2rem 0 0; padding: 0;
  display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  counter-reset: schritt;
}
.schritt {
  position: relative; background: var(--weiss); border-radius: var(--radius-gross);
  padding: 2.6rem 1.8rem 2rem; box-shadow: var(--schatten); border: 1px solid var(--linie);
}
.schritt__nr {
  position: absolute; top: -22px; left: 1.8rem;
  font-family: 'Fredoka', sans-serif; font-size: 2.6rem; font-weight: 700;
  color: var(--orange); line-height: 1;
  -webkit-text-stroke: 1px var(--weiss);
}
.schritt h3 { margin-bottom: .5rem; }
.schritt p { margin-bottom: 0; font-size: 1rem; }
.tipp {
  margin: 2.2rem auto 0; max-width: 44rem; text-align: center;
  background: var(--pfirsich); border-radius: var(--radius);
  padding: 1.1rem 1.5rem; font-size: 1rem; color: var(--dunkel);
}
.tipp strong { font-family: 'Fredoka', sans-serif; }

/* --- Rezepte ------------------------------------------------------------ */
.rezepte {
  list-style: none; margin: 3.2rem 0 0; padding: 0;
  display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.rezept {
  background: var(--weiss); border-radius: var(--radius-gross); overflow: hidden;
  box-shadow: var(--schatten); border: 1px solid var(--linie);
  display: flex; flex-direction: column;
}
.rezept img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
.rezept__inhalt { padding: 1.6rem 1.6rem 1.9rem; }
.rezept h3 { margin-bottom: .5rem; }
.rezept p { margin-bottom: 0; font-size: 1rem; }
.claim {
  margin-top: 3.2rem; text-align: center;
  background: var(--weiss); border-radius: var(--radius-gross);
  padding: clamp(2rem, 5vw, 3rem); box-shadow: var(--schatten);
}
.claim h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.claim p { max-width: 38rem; margin-inline: auto; }

/* --- Nährwerte ---------------------------------------------------------- */
.naehrwerte__grid {
  display: grid; gap: 2rem; margin-top: 3.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .naehrwerte__grid { grid-template-columns: 1fr 1fr; } }
.info-karte {
  background: var(--weiss); border: 1px solid var(--linie);
  border-radius: var(--radius-gross); padding: 1.9rem; box-shadow: var(--schatten);
}
.info-karte + .info-karte { margin-top: 1.6rem; }
.info-karte h3 { margin-bottom: .6rem; }
.info-karte p:last-child { margin-bottom: 0; }
.info-karte p { font-size: 1rem; }

.tabelle-wrap { overflow-x: auto; }
table.naehrwerte {
  width: 100%; border-collapse: collapse; font-size: 1rem; background: var(--weiss);
}
table.naehrwerte caption {
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.15rem;
  color: var(--dunkel); text-align: left; padding: 0 0 .9rem;
}
table.naehrwerte th, table.naehrwerte td { padding: .8rem .9rem; text-align: left; }
table.naehrwerte thead th {
  background: var(--dunkel); color: var(--weiss);
  font-family: 'Fredoka', sans-serif; font-weight: 500;
}
table.naehrwerte tbody tr { border-bottom: 1px solid var(--linie); }
table.naehrwerte tbody tr:nth-child(odd) { background: #fbf7f5; }
table.naehrwerte td:last-child, table.naehrwerte th:last-child { text-align: right; white-space: nowrap; }
table.naehrwerte .einzug td:first-child { padding-left: 2rem; color: var(--text-hell); }

/* --- Kaufen ------------------------------------------------------------- */
.kaufen {
  position: relative;
  background: linear-gradient(rgba(247, 235, 228, .93), rgba(247, 235, 228, .96)),
              image-set(url('../img/kaufen-bg-1920.webp') type('image/webp'));
  background-size: cover; background-position: center;
}
.produkt-box {
  display: grid; gap: clamp(1.8rem, 4vw, 3rem); align-items: center;
  background: var(--weiss); border-radius: var(--radius-gross);
  box-shadow: var(--schatten-hoch); padding: clamp(1.8rem, 4vw, 3rem);
  grid-template-columns: 1fr; text-align: center;
}
@media (min-width: 800px) {
  .produkt-box { grid-template-columns: 300px 1fr; text-align: left; }
}
.produkt-box img { width: min(100%, 260px); margin-inline: auto; }
.produkt-box h2 { margin-bottom: .3rem; }
.produkt-box__meta {
  font-family: 'Fredoka', sans-serif; font-size: 1.08rem;
  color: var(--teal-dunkel); margin-bottom: 1.5rem;
}
.produkt-box__hinweis { font-size: 1rem; margin: 1.4rem 0 0; }

.shops { display: grid; gap: 2rem; margin-top: 3rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .shops { grid-template-columns: 1fr 1fr; } }
.shop-gruppe {
  background: var(--weiss); border-radius: var(--radius-gross);
  padding: 1.9rem; box-shadow: var(--schatten);
}
.shop-gruppe h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.2rem; }
.shop-gruppe ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.shop-gruppe a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 1.2rem; border-radius: var(--radius);
  background: var(--creme); color: var(--dunkel);
  font-family: 'Fredoka', sans-serif; font-weight: 500; text-decoration: none;
  transition: background-color .16s ease, transform .16s ease;
}
.shop-gruppe a:hover { background: var(--pfirsich); transform: translateX(3px); color: var(--dunkel); }
.shop-gruppe a::after { content: '→'; color: var(--orange-dunkel); font-size: 1.1rem; }

/* --- FAQ ---------------------------------------------------------------- */
.faq-kategorie { margin-top: 3rem; }
.faq-kategorie > h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  padding-bottom: .6rem; border-bottom: 3px solid var(--pfirsich);
}
.faq-liste { display: grid; gap: .9rem; margin-top: 1.6rem; }
.faq-eintrag {
  background: var(--weiss); border: 1px solid var(--linie);
  border-radius: var(--radius); box-shadow: var(--schatten); overflow: hidden;
}
.faq-eintrag h3 { margin: 0; font-size: 1.08rem; }
.faq-frage {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 1.2rem 1.4rem; font: inherit;
  font-family: 'Fredoka', sans-serif; font-weight: 500; color: var(--dunkel);
}
.faq-frage:hover { background: #fdf9f7; }
.faq-frage__icon {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: var(--pfirsich); color: var(--auf-pfirsich);
  display: grid; place-items: center; font-size: 1.2rem; line-height: 1;
  transition: transform .2s ease;
}
.faq-frage[aria-expanded="true"] .faq-frage__icon { transform: rotate(45deg); }
.faq-antwort { padding: 0 1.4rem 1.4rem; font-size: 1rem; }
.faq-antwort > *:last-child { margin-bottom: 0; }
.faq-antwort[hidden] { display: none; }

.faq-bilder {
  display: grid; gap: 1.4rem; margin-top: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.faq-bilder img { border-radius: var(--radius-gross); box-shadow: var(--schatten); width: 100%; }

/* --- Rechtstexte -------------------------------------------------------- */
.rechtstext { max-width: 52rem; }
.rechtstext h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.rechtstext h3 {
  margin-top: 2.2rem; font-size: 1.25rem;
  padding-bottom: .4rem; border-bottom: 2px solid var(--pfirsich);
}
.rechtstext p { font-size: 1rem; }
.rechtstext a { word-break: break-word; }

/* --- Fuß ---------------------------------------------------------------- */
.fuss { background: var(--dunkel); color: #d9d9d9; padding-block: 3.5rem 2rem; }
.fuss a { color: #ffd0ac; }
.fuss a:hover { color: var(--weiss); }
.fuss__grid {
  display: grid; gap: 2.2rem; grid-template-columns: 1fr;
}
@media (min-width: 760px) { .fuss__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.fuss img { width: 180px; margin-bottom: 1rem; }
.fuss h2 {
  color: var(--weiss); font-size: 1.15rem; margin-bottom: .9rem;
}
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.fuss p { font-size: .97rem; }
.fuss__unten {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #5a5a5a;
  display: flex; flex-wrap: wrap; gap: 1rem 1.8rem; align-items: center;
  font-size: .92rem;
}
.fuss__unten p { margin: 0; }

/* --- Druck -------------------------------------------------------------- */
@media print {
  .kopf, .fuss, .hero__welle, .menue-schalter { display: none; }
  body { color: #000; font-size: 11pt; }
}
