:root {
  --butter: #F5EEDB;
  --butter-2: #EDE3C9;
  --sahne: #FBF6EC;
  --kakao: #3B2A23;
  --t1: rgba(59, 42, 35, .92);
  --t2: rgba(59, 42, 35, .68);
  --t3: rgba(59, 42, 35, .48);
  --linie: rgba(59, 42, 35, .16);
  --himbeere: #B5345C;
  --himbeere-dunkel: #962746;
  --serif: "Gloock", Georgia, serif;
  --sans: "Karla", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --expo: cubic-bezier(0.19, 1, 0.22, 1);
  --rand: 20px;
  --luft: 72px;
}
@media (min-width: 900px) { :root { --rand: 40px; --luft: 120px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--butter); color: var(--t1); font: 400 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.rahmen { max-width: 1200px; margin: 0 auto; padding: 0 var(--rand); }
.mono { font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--t2); margin: 0; }

/* Kopf: Name erscheint erst, wenn das grosse Logo weg ist */
.kopf {
  position: fixed; inset: 0 0 auto; z-index: 100; height: 64px;
  display: flex; align-items: center; gap: 24px;
  padding: 0 max(var(--rand), calc((100vw - 1200px) / 2 + var(--rand)));
  border-bottom: 1px solid transparent;
  transition: background-color 250ms ease-out, border-color 250ms ease-out;
}
.kopf.ist-gescrollt { background: rgba(245, 238, 219, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--linie); }
.kopf-marke { font: 400 19px/1 var(--serif); color: var(--kakao); text-decoration: none; opacity: 0; transform: translateY(8px); transition: opacity 250ms ease-out, transform 250ms ease-out; }
.kopf.ist-gescrollt .kopf-marke { opacity: 1; transform: none; }
.kopf-marke em { font-style: normal; color: var(--t2); }
.kopf-nav { display: none; margin-left: auto; gap: 24px; font-size: 15px; }
.kopf-nav a { text-decoration: none; color: var(--t2); transition: color 150ms ease-out; }
.kopf-nav a:hover { color: var(--kakao); }
.kopf .knopf { margin-left: auto; }
@media (min-width: 900px) { .kopf-nav { display: flex; } .kopf .knopf { margin-left: 0; } }
@media (max-width: 420px) { .kopf-marke em { display: none; } }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px;
  border-radius: 999px; background: var(--himbeere); color: #FBF6EC; text-decoration: none;
  font: 600 16px/1 var(--sans); border: 0; cursor: pointer;
  transition: background-color 150ms ease-out, transform 150ms ease-out;
}
.knopf:hover { background: var(--himbeere-dunkel); }
.knopf:active { transform: scale(.98); }
.knopf-klein { min-height: 40px; padding: 0 16px; font-size: 14px; }
.textlink { display: inline-flex; align-items: center; min-height: 44px; color: var(--t1); font-weight: 500; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Einstieg: das Logo ist die Hauptsache */
.einstieg {
  position: relative; min-height: 100svh; padding: 80px var(--rand) 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  overflow: hidden;
}
.einstieg-ort { margin-bottom: 8px; }
.logo-titel { margin: 0; line-height: 0; }
.logo-bild { width: min(72vw, 290px); height: auto; margin: 16px 0 24px; }
.lead { font-size: 18px; color: var(--t2); max-width: 32ch; margin: 0 0 24px; }
.einstieg-aktion { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; position: relative; z-index: 2; }

/* Vitrine: freigestellte Torten */
.vitrine { position: relative; width: 100%; max-width: 520px; height: 240px; margin-top: 24px; flex: none; }
.vitrine::after { content: ""; position: absolute; left: -20%; right: -20%; bottom: 0; height: 1px; background: var(--linie); }
.schwebt { position: absolute; bottom: 0; height: auto; filter: drop-shadow(0 16px 18px rgba(59, 42, 35, .18)); will-change: transform; }
.s1 { left: 0; width: 30%; }
.s2 { left: 33%; width: 34%; z-index: 1; }
.s3 { right: 0; width: 30%; }
.s4, .s5 { display: none; }
@media (min-width: 900px) {
  .einstieg { padding-top: 96px; justify-content: center; }
  .logo-bild { width: min(28vw, 360px); }
  .vitrine { position: absolute; inset: 0; max-width: none; height: auto; margin: 0; pointer-events: none; }
  .vitrine::after { display: none; }
  .schwebt { bottom: auto; }
  .s1 { left: 5%; top: 46%; width: 13vw; max-width: 200px; }
  .s3 { left: 19%; right: auto; top: 18%; width: 9vw; max-width: 140px; }
  .s5 { display: block; left: 4%; top: 12%; width: 10vw; max-width: 150px; }
  .s2 { left: auto; right: 5%; top: 42%; width: 14vw; max-width: 210px; }
  .s4 { display: block; right: 19%; top: 14%; width: 9vw; max-width: 140px; }
}

/* Titel */
.titel-2 { font: 400 44px/1.02 var(--serif); letter-spacing: -0.02em; color: var(--kakao); margin: 0 0 16px; }
@media (min-width: 900px) { .titel-2 { font-size: 72px; } }
.zeile { display: block; overflow: hidden; padding-bottom: .06em; }
.zeile > span { display: block; }
.einleitung { color: var(--t2); max-width: 46ch; margin: 0; }
.kopfzeile { display: grid; gap: 8px; margin-bottom: 40px; }
@media (min-width: 900px) { .kopfzeile { grid-template-columns: 1fr 1fr; align-items: end; margin-bottom: 64px; } }

.abschnitt { padding: var(--luft) 0; }

/* Katalog */
.katalog { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 16px; }
.k-breit { grid-column: 1 / -1; }
.teller { position: relative; aspect-ratio: 1 / 1.08; display: flex; align-items: flex-end; justify-content: center; }
.teller::before {
  content: ""; position: absolute; left: 6%; right: 6%; bottom: 0; aspect-ratio: 1; border-radius: 50%;
  background: var(--teller); transition: transform 600ms var(--expo);
}
.teller img { position: relative; height: 88%; width: auto; max-width: 88%; object-fit: contain; margin-bottom: 6%;
  filter: drop-shadow(0 14px 14px rgba(59, 42, 35, .16)); transition: transform 600ms var(--expo); }
.k-breit .teller { aspect-ratio: 2 / 1.08; }
.k-breit .teller::before { left: 25%; right: 25%; }
.k-breit .teller img { max-width: 60%; }
.katalog li:hover .teller img { transform: translateY(-8px) rotate(-2deg); }
.katalog li:hover .teller::before { transform: scale(1.04); }
.k-name { margin: 16px 0 0; font: 400 22px/1.15 var(--serif); color: var(--kakao); text-align: center; }
.k-innen { margin: 8px auto 0; max-width: 28ch; font: 400 13px/1.4 var(--sans); color: var(--t2); text-align: center; }
.k-innen span { display: block; font: 500 10px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--himbeere); }
@media (min-width: 900px) {
  .katalog { grid-template-columns: repeat(4, 1fr); gap: 64px 24px; }
  .k-breit { grid-column: span 2; }
  .k-name { font-size: 26px; }
}

/* Innenleben */
.innen { background: var(--butter-2); }
.innen-raster { display: grid; gap: 64px; }
@media (min-width: 900px) { .innen-raster { grid-template-columns: 1.25fr .75fr; align-items: center; gap: 104px; } }
.innen .einleitung { margin-bottom: 40px; }
.sorten { width: 100%; border-collapse: collapse; font-size: 15px; }
.sorten th { text-align: left; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--t3); padding: 0 8px 16px 0; }
.sorten td { padding: 16px 8px 16px 0; border-top: 1px solid var(--linie); vertical-align: top; color: var(--t2); transition: color 150ms ease-out; }
.sorten td:first-child { font: 400 18px/1.3 var(--serif); color: var(--kakao); }
.sorten tbody tr { cursor: pointer; }
.sorten tbody tr:hover td, .sorten tbody tr.ist-aktiv td { color: var(--t1); }
.sorten tbody tr.ist-aktiv td:first-child { color: var(--himbeere); }
@media (max-width: 599px) {
  .sorten thead { display: none; }
  .sorten tr { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--linie); padding: 16px 0; }
  .sorten td { border: 0; padding: 0 8px 0 0; }
  .sorten td:first-child { grid-column: 1 / -1; margin-bottom: 8px; }
}

/* Querschnitt */
.schnitt { margin: 0; display: grid; justify-items: center; gap: 24px; position: sticky; top: 104px; }
.schnitt-buehne { position: relative; width: min(280px, 60vw); padding-bottom: 16px; }
.schnitt-torte { position: relative; z-index: 1; width: 86%; margin: 0 auto; aspect-ratio: 1 / .92; display: flex; flex-direction: column; border-radius: 40px 40px 8px 8px; overflow: hidden; background: var(--sahne); box-shadow: 0 24px 30px -24px rgba(59, 42, 35, .4); }
.schicht { display: block; transform-origin: bottom; }
.creme-oben { flex: .9; background: var(--sahne); }
.biskuit { flex: 3; background: var(--b, #C9A27A); transition: background-color 600ms var(--expo), transform 700ms var(--expo); }
.fuellung { flex: 1.1; background: var(--f, #6E3B3B); transition: background-color 600ms var(--expo), transform 700ms var(--expo); }
.schnitt-teller { position: absolute; left: 0; right: 0; bottom: 4px; height: 24px; border-radius: 50%; background: var(--sahne); box-shadow: 0 8px 16px -8px rgba(59, 42, 35, .35); }
.schnitt-text { display: grid; gap: 8px; text-align: center; max-width: 280px; font: 400 20px/1.25 var(--serif); color: var(--kakao); }
@media (max-width: 899px) { .schnitt { position: static; } }

/* Bestellen */
.bestellen-raster { display: grid; gap: 40px; }
@media (min-width: 900px) { .bestellen-raster { grid-template-columns: .8fr 1.2fr; gap: 104px; } }
.hinweis { margin-top: 24px; }
.formular { display: grid; gap: 24px; }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend, .feld > span { font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--t3); margin-bottom: 8px; padding: 0; }
.chips legend { width: 100%; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 8px 16px; border: 1px solid var(--linie); border-radius: 999px; font-size: 15px; cursor: pointer; transition: background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out; }
.chips input:checked + span { background: var(--kakao); color: var(--butter); border-color: var(--kakao); }
.chips input:focus-visible + span { outline: 2px solid var(--himbeere); outline-offset: 2px; }
.felder { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feld { display: grid; }
.feld input, .feld select { font: 400 16px/1.3 var(--sans); color: var(--t1); background: var(--sahne); border: 1px solid var(--linie); border-radius: 8px; padding: 16px; width: 100%; min-width: 0; transition: border-color 150ms ease-out; }
.feld input:focus, .feld select:focus { outline: none; border-color: var(--himbeere); }
.zettel { position: relative; background: var(--sahne); border-radius: 8px; padding: 24px; padding-right: 96px; border: 1px dashed var(--linie); transform: rotate(-1deg); }
.zettel-stempel { position: absolute; right: 16px; top: 16px; width: 64px; height: auto; opacity: .85; }
.zettel-kopf { margin-bottom: 8px; text-transform: none; letter-spacing: 0; }
.zettel p:last-child { margin: 0; color: var(--t1); }
.formular-aktion { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.kopiert { color: var(--himbeere); }

/* Fuss */
.fuss { background: var(--kakao); color: rgba(245, 238, 219, .68); padding: 64px 0 40px; }
.fuss-raster { display: grid; justify-items: center; gap: 40px; text-align: center; }
.fuss-logo { width: min(56vw, 240px); height: auto; }
.fuss-zeile { display: grid; gap: 8px; font-size: 15px; }
.fuss-zeile p { margin: 0; }
.fuss-zeile a { display: inline-block; padding: 8px 0; color: rgba(245, 238, 219, .92); }

/* Bewegung */
.js .logo-bild { clip-path: inset(100% 0 0 0); animation: zeichnen 1800ms var(--expo) 150ms forwards; }
@keyframes zeichnen { to { clip-path: inset(0 0 0 0); } }
.js .einstieg-ort, .js .lead, .js .einstieg-aktion { opacity: 0; transform: translateY(12px); animation: auf 900ms var(--expo) forwards; }
.js .lead { animation-delay: 700ms; }
.js .einstieg-aktion { animation-delay: 820ms; }
@keyframes auf { to { opacity: 1; transform: none; } }
.js .schwebt { opacity: 0; translate: 0 64px; rotate: 6deg; transition: opacity 900ms var(--expo), translate 1400ms var(--expo), rotate 1400ms var(--expo); }
.js .vitrine.ist-da .schwebt { opacity: 1; translate: 0 0; rotate: 0deg; }
.js .vitrine.ist-da .s2 { transition-delay: 90ms; } .js .vitrine.ist-da .s3 { transition-delay: 180ms; }
.js .vitrine.ist-da .s4 { transition-delay: 270ms; } .js .vitrine.ist-da .s5 { transition-delay: 360ms; }
.js .zeile > span { transform: translateY(105%); transition: transform 900ms var(--expo); }
.js .zeile.ist-sichtbar > span { transform: none; }
.js .katalog li { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--expo), transform 800ms var(--expo); }
.js .katalog li.ist-sichtbar { opacity: 1; transform: none; }
.js .schnitt .schicht:not(.creme-oben) { transform: scaleY(0); }
.js .schnitt.ist-sichtbar .schicht { transform: none; }
.js .schnitt.ist-sichtbar .schicht:nth-child(5) { transition-delay: 90ms; }
.js .schnitt.ist-sichtbar .schicht:nth-child(4) { transition-delay: 180ms; }
.js .schnitt.ist-sichtbar .schicht:nth-child(3) { transition-delay: 270ms; }
.js .schnitt.ist-sichtbar .schicht:nth-child(2) { transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .logo-bild, .js .einstieg-ort, .js .lead, .js .einstieg-aktion { animation: none; clip-path: none; opacity: 1; transform: none; }
  .js .schwebt, .js .zeile > span, .js .katalog li, .js .schnitt .schicht { opacity: 1 !important; translate: none !important; rotate: none !important; transform: none !important; transition: none !important; }
}
