/* =========================================================
   MOUGELLERIE · DESIGNSYSTEM „VERT NUIT“
   Alle Werte als CSS-Variablen, siehe Designsystem-Doku.
   Schriften werden selbst gehostet (DSGVO: kein Google-Fonts-CDN).
   ========================================================= */

/* ---------- Schriften (selbst gehostet) ---------- */
@font-face {
  font-family: "Mougellerie Logo";
  src: url("../fonts/MougellerieLogo-Regular.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  font-weight: 700;
  font-style: normal;
  src: url("../fonts/fraunces-latin-700-normal.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-weight: 600;
  font-style: normal;
  src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-weight: 600;
  font-style: italic;
  src: url("../fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  font-weight: 400;
  font-style: normal;
  src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  font-weight: 600;
  font-style: normal;
  src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  font-weight: 700;
  font-style: normal;
  src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2");
  font-display: swap;
}

:root {
  /* ---------- Farben ---------- */
  --c-flaschengruen: #0C1F16; /* Seitenhintergrund */
  --c-tanne:         #142C20; /* Karten, abgesetzte Flächen */
  --c-nacht:         #07140E; /* tiefste Fläche, Footer-Variante */
  --c-rosa:          #F7AEBB; /* Buttons, Infoleiste, Logo */
  --c-puder:         #FFEDEE; /* Überschriften, Fließtext */
  --c-salbei:        #BFCCC3; /* Sekundärtext, Hinweise */
  --c-creme:         #FBF6F1; /* helle Kontrast-Sektion */
  --c-teig:          #EDC07C; /* Crêpe-Platzhalter */
  --c-kruste:        #D9A45B;
  --c-rosa-tief:     #E28C9C; /* Schattenkante unter Rosa-Flächen */
  --c-tanne-hell:    #1B3829; /* gehobene Fläche, Hover */

  /* Rollen (im Code bitte diese benutzen) */
  --bg:        var(--c-flaschengruen);
  --surface:   var(--c-tanne);
  --ink:       var(--c-puder);
  --muted:     var(--c-salbei);
  --accent:    var(--c-rosa);
  --on-accent: var(--c-flaschengruen);

  /* ---------- Schriften ---------- */
  --f-logo:    "Mougellerie Logo", Georgia, serif;
  --f-display: "Fraunces", Georgia, serif;                   /* Überschriften, 700 */
  --f-accent:  "Cormorant Garamond", Georgia, serif;         /* kursives Betonungswort, Logo-Unterzeile, 600 */
  --f-text:    "Manrope", system-ui, -apple-system, sans-serif; /* Text, Navigation, Buttons */

  /* ---------- Schriftgrößen (Desktop → Mobil, fließend) ---------- */
  --t-h1:    clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);    /* 40 → 72 px */
  --t-h2:    clamp(2rem, 1.4rem + 2.4vw, 3.5rem);      /* 32 → 56 px */
  --t-h3:    clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); /* 22 → 28 px */
  --t-lead:  clamp(1.125rem, 1.08rem + 0.2vw, 1.25rem);/* 18 → 20 px */
  --t-body:  clamp(1rem, 0.98rem + 0.1vw, 1.0625rem);  /* 16 → 17 px */
  --t-small: 0.9375rem;                                /* 15 px */
  --t-ui:    1rem;                                     /* 16 px, fett */

  --lh-display: 1.0;
  --lh-h3:      1.15;
  --lh-lead:    1.5;
  --lh-body:    1.6;
  --track-display: -0.025em;

  /* ---------- Abstände (8-px-Raster) ---------- */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 40px; --s-6: 64px; --s-7: 96px; --s-8: 112px;
  --section: clamp(72px, 3rem + 6vw, 160px);

  /* ---------- Raster ---------- */
  --container: 1360px;
  --gutter: 24px;
  --margin: clamp(20px, 1rem + 1vw, 32px);
  --measure: 65ch;

  /* ---------- Formen ---------- */
  --r-surface: 20px;
  --r-pill: 999px;
  --btn-h: 52px;

  /* ---------- Tiefe: Schatten ---------- */
  --sh-ink:  7 20 14;     /* RGB von Nacht */
  --sh-warm: 92 58 32;    /* RGB für Schatten auf Crème */
  --shadow-1: 0 1px 2px rgb(var(--sh-ink) / .35), 0 6px 14px -4px rgb(var(--sh-ink) / .40);
  --shadow-2: 0 2px 4px rgb(var(--sh-ink) / .30), 0 16px 32px -10px rgb(var(--sh-ink) / .60);
  --shadow-3: 0 4px 8px rgb(var(--sh-ink) / .30), 0 32px 64px -16px rgb(var(--sh-ink) / .75);
  --shadow-warm: 0 2px 4px rgb(var(--sh-warm) / .06), 0 22px 48px -18px rgb(var(--sh-warm) / .28);
  --shadow-rosa: 0 2px 4px rgb(var(--sh-ink) / .30), 0 10px 24px -8px rgb(247 174 187 / .45);
  --shadow-crepe: 0 14px 22px -8px rgb(120 42 58 / .45), 0 46px 70px -24px rgb(120 42 58 / .55);
  --edge-light: inset 0 1px 0 rgb(255 237 238 / .07);
  --recess: inset 0 2px 14px rgb(0 0 0 / .45);

  /* ---------- Wellen ---------- */
  --wave-h: clamp(40px, 2rem + 3.6vw, 96px);
  --wave-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 64C240 4 480 4 720 64S1200 124 1440 64V120H0Z'/%3E%3C/svg%3E");

  /* ---------- Bewegung ---------- */
  --crepe-turn: 0.3; /* Grad pro gescrolltem Pixel */
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--margin); }

/* ---------- Typografie ---------- */
.h1, .h2, .h3 { margin: 0; font-family: var(--f-display); font-weight: 700; letter-spacing: var(--track-display); text-wrap: balance; }
.h1 { font-size: var(--t-h1); line-height: var(--lh-display); }
.h2 { font-size: var(--t-h2); line-height: var(--lh-display); }
.h3 { font-size: var(--t-h3); line-height: var(--lh-h3); letter-spacing: -0.02em; }
.h1 em, .h2 em, .h3 em { font-family: var(--f-accent); font-style: italic; font-weight: 600; letter-spacing: 0; font-size: 1.1em; }
.lead { margin: 0; font-size: var(--t-lead); line-height: var(--lh-lead); max-width: 34ch; }
.text { margin: 0; max-width: var(--measure); text-wrap: pretty; }
.small { font-size: var(--t-small); line-height: 1.45; color: var(--muted); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; flex-direction: column; color: var(--accent); text-decoration: none; line-height: 1; }
.logo__name { font-family: var(--f-logo); font-size: var(--logo-size, 46px); line-height: 1.26; white-space: nowrap; }
.logo__tag {
  font-family: var(--f-accent); font-weight: 600; white-space: nowrap;
  font-size: calc(var(--logo-size, 46px) * 0.245);
  letter-spacing: 0.208em;
  margin-left: calc(var(--logo-size, 46px) * 1.675);
  margin-top: calc(var(--logo-size, 46px) * 0.05);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: var(--btn-h); padding: 0 30px; border: 0; border-radius: var(--r-pill);
  font: 700 var(--t-ui)/1 var(--f-text); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s var(--ease);
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); transition-duration: .08s; }
.btn--primary   { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-rosa), inset 0 -3px 0 var(--c-rosa-tief); }
.btn--primary:hover { background: #FAC3CD; color: var(--on-accent); box-shadow: 0 4px 8px rgb(var(--sh-ink) / .3), 0 18px 32px -10px rgb(247 174 187 / .55), inset 0 -3px 0 var(--c-rosa-tief); }
.btn--primary:active { box-shadow: 0 1px 2px rgb(var(--sh-ink) / .3), inset 0 2px 6px rgb(160 70 90 / .35); }
.btn--secondary { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1), var(--edge-light); }
.btn--secondary:hover { background: var(--c-tanne-hell); color: var(--ink); box-shadow: var(--shadow-2), var(--edge-light); }
.btn--secondary:active { box-shadow: var(--recess); }
.btn--dark      { background: var(--c-flaschengruen); color: var(--c-creme); box-shadow: 0 2px 4px rgb(var(--sh-warm) / .18), 0 12px 24px -10px rgb(var(--sh-ink) / .55); }
.btn--dark:hover { background: var(--c-tanne); color: var(--c-creme); box-shadow: 0 4px 8px rgb(var(--sh-warm) / .18), 0 20px 34px -12px rgb(var(--sh-ink) / .6); }
.btn--dark:active { box-shadow: inset 0 2px 8px rgb(0 0 0 / .5); }
.btn--sm { height: 46px; padding: 0 24px; }
.link { font-weight: 700; text-underline-offset: 6px; }

/* ---------- Flächen ---------- */
.surface { background: var(--surface); border-radius: var(--r-surface); padding: var(--s-4); box-shadow: var(--shadow-2), var(--edge-light); }
.surface--raised { background: var(--c-tanne-hell); box-shadow: var(--shadow-3), var(--edge-light); }
.surface--recessed { background: var(--c-nacht); box-shadow: var(--recess); }
.section--creme { background: var(--c-creme); color: var(--c-flaschengruen); }
.section--rosa  { background: var(--accent); color: var(--on-accent); }
.section--nacht { background: var(--c-nacht); color: var(--ink); }
.section--gruen { background: var(--bg); color: var(--ink); }

/* ---------- Wellen-Übergänge ---------- */
.wave-top, .wave-bottom { position: relative; }
.wave-top::before, .wave-bottom::before {
  content: ""; position: absolute; left: 0; right: 0; pointer-events: none;
  -webkit-mask: var(--wave-mask) 0 100% / 100% 100% no-repeat;
          mask: var(--wave-mask) 0 100% / 100% 100% no-repeat;
}
.wave-top::before    { bottom: calc(100% - 2px); height: var(--wave-h); background: inherit; z-index: 2; }
.wave-bottom::before { top: calc(100% - 1px);    height: var(--wave-h); background: inherit; z-index: 2; transform: scaleY(-1); }
.before-wave { padding-bottom: calc(var(--section) + var(--wave-h)) !important; }
.wave-cast-up   { filter: drop-shadow(0 -10px 18px rgb(var(--sh-warm) / .22)); }
.wave-cast-down { filter: drop-shadow(0 12px 18px rgb(var(--sh-ink) / .45)); }

/* =========================================================
   WEBSITE-BAUSTEINE
   ========================================================= */

/* Navigation */
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); height: 96px; }
.nav__links { display: flex; align-items: center; gap: 36px; }
.nav__links a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav__links a:not(.btn):hover { color: var(--accent); }

/* Hero mit drehender Crêpe */
.hero { position: relative; overflow: hidden; min-height: 640px; }
.hero__content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); max-width: 640px; padding-block: var(--s-7) var(--s-8); }
.hero__content .btn { margin-top: var(--s-1); }
.hero__disc {
  position: absolute; right: -150px; top: 10px;
  width: 680px; aspect-ratio: 1; border-radius: 50%; background: var(--accent);
  box-shadow: var(--shadow-3), inset 0 -22px 44px rgb(190 96 116 / .35), inset 0 18px 30px rgb(255 228 233 / .45);
}
.crepe {
  position: absolute; right: -112px; top: 48px;
  width: 604px; aspect-ratio: 1; border-radius: 50%;
  box-shadow: var(--shadow-crepe);
}
.crepe::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  box-shadow: inset -26px -34px 60px rgb(140 82 26 / .38), inset 22px 24px 44px rgb(255 246 220 / .42);
}
.crepe__spin {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  will-change: transform; transform: rotate(var(--rot, 0deg));
}
.crepe__spin img { width: 100%; height: 100%; object-fit: cover; }
.crepe--placeholder {
  background: var(--c-teig); border: 8px solid var(--c-kruste);
}
.crepe--placeholder span { position: absolute; border-radius: 50%; background: #C98B3E; opacity: .5; }

/* Infoleiste */
.strip { background: var(--accent); color: var(--on-accent); --wave-h: clamp(28px, 1.4rem + 2vw, 56px); padding-bottom: var(--wave-h); }
.strip__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 68px; flex-wrap: wrap; padding-block: var(--s-2); }
.strip span { font-weight: 700; white-space: nowrap; display: inline-block; }

/* Kategorien als Kreise */
.categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); padding-block: var(--section); }
.category { display: flex; flex-direction: column; align-items: center; gap: var(--s-2); text-decoration: none; color: var(--ink); }
.category__img { width: min(200px, 100%); aspect-ratio: 1; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--muted); font-size: var(--t-small); overflow: hidden; box-shadow: var(--shadow-2), var(--edge-light); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.category__img img { width: 100%; height: 100%; object-fit: cover; }
.category:hover .category__img { transform: translateY(-6px) scale(1.03); box-shadow: var(--shadow-3), var(--edge-light); }
.category__name { text-align: center; line-height: 1.2; font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }

/* Karte / Menü */
.menu { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s-6); padding-block: var(--section); }
.menu__intro { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); }
.menu__list { display: flex; flex-direction: column; gap: 36px; margin: 0; padding: var(--s-5) var(--s-6); list-style: none; background: #FFFDFA; border-radius: var(--r-surface); box-shadow: var(--shadow-warm); }
.menu__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-3); align-items: baseline; }
.menu__item .h3 { font-size: 28px; }
.menu__price { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Footer */
.footer { display: flex; flex-direction: column; align-items: center; gap: var(--s-5); padding-block: var(--section); }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 36px; }
.footer__links a { color: var(--ink); text-decoration: none; font-weight: 600; }

/* Unterseiten (Impressum, Datenschutz) */
.page { padding-block: var(--s-6) var(--section); display: flex; flex-direction: column; gap: var(--s-3); }
.page .h1 { font-size: var(--t-h2); }
.page h2 { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em; font-size: var(--t-h3); margin: var(--s-4) 0 0; }
.page p { max-width: var(--measure); margin: 0; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .nav__links a:not(.btn) { display: none; }
  .hero { min-height: 0; }
  .hero__content { padding-block: var(--s-6) 380px; }
  .hero__disc { width: 440px; right: -120px; top: auto; bottom: -70px; }
  .crepe { width: 390px; right: -95px; top: auto; bottom: -45px; }
  .strip__inner { justify-content: flex-start; gap: var(--s-1) var(--s-4); }
  .categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu { grid-template-columns: 1fr; gap: var(--s-5); }
  .menu__list { padding: var(--s-4) var(--s-3); }
}

@media (prefers-reduced-motion: reduce) {
  .crepe__spin { transform: none !important; }
  .btn, .category__img { transition: none; }
  .btn:hover, .category:hover .category__img { transform: none; }
}
