/* JAAS – Cakes by Jetmira & Selmina · Entwurf Seetalwebsites, 14.10.2026 */

:root {
  --bg: #F3EADC;        /* Buttercreme */
  --paper: #FBF6EC;
  --ink: #2B1D17;       /* Kakao */
  --ink-2: rgba(43, 29, 23, .70);
  --ink-3: rgba(43, 29, 23, .48);
  --line: rgba(43, 29, 23, .14);
  --gold: #8C6427;      /* Knöpfe */
  --gold-l: #B48A45;    /* das eine Detail: Krone, &, JAAS unten */

  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Figtree", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;

  --gut: 20px;
  --sec: 72px;
  --expo: cubic-bezier(0.19, 1, 0.22, 1);
}
@media (min-width: 900px) { :root { --gut: 40px; --sec: 120px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
@media (min-width: 900px) { body { font-size: 18px; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; text-transform: uppercase; }
.muted { color: var(--ink-2); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gut); }
.h2 {
  font: 500 clamp(44px, 11vw, 96px)/1 var(--serif);
  letter-spacing: -0.03em;
}

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  border: 1px solid var(--gold); border-radius: 999px;
  background: var(--gold); color: var(--paper);
  font: 500 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out, transform 150ms ease-out;
}
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn:active { transform: scale(.98); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink-3); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.link { display: inline-block; padding: 12px 0 2px; text-decoration: none; border-bottom: 1px solid var(--ink-3); padding-bottom: 2px; transition: border-color 150ms ease-out; }
.link:hover { border-color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Leiste */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 56px; padding: 0 max(var(--gut), calc((100vw - 1200px) / 2 + var(--gut)));
  background: rgba(243, 234, 220, .86);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
}
.bar__mark { font: 500 22px/1 var(--serif); letter-spacing: .04em; text-decoration: none; padding: 12px 0; }
.bar__nav { display: none; gap: 40px; }
.bar__nav a { font-size: 15px; text-decoration: none; color: var(--ink-2); transition: color 150ms ease-out; }
.bar__nav a:hover { color: var(--ink); }
.bar__cta { font-size: 15px; font-weight: 500; text-decoration: none; padding: 12px 0; background: linear-gradient(var(--ink), var(--ink)) 0 calc(100% - 10px) / 100% 1px no-repeat; }
@media (min-width: 900px) { .bar__nav { display: flex; } }

/* ---------- 1 · Einstieg ---------- */
.hero {
  height: 100svh; min-height: 620px;
  padding: 72px var(--gut) 24px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-areas: "by" "stage" "foot";
  max-width: calc(1200px + 2 * var(--gut)); margin: 0 auto;
}
.hero__by { grid-area: by; color: var(--ink-2); margin-bottom: 8px; }
.hero__names, .hero__cake { grid-area: stage; }
.hero__names {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  font: 500 clamp(76px, 20.5vw, 184px)/0.9 var(--serif);
  letter-spacing: -0.035em;
  min-height: 0;
}
.mask { display: block; overflow: hidden; padding-bottom: .06em; }
.mask--r { text-align: right; }
.name { display: inline-block; }
.hero__amp {
  display: inline-block; margin-left: .1em; vertical-align: .55em;
  font: italic 400 .42em/1 var(--serif); color: var(--gold-l); letter-spacing: 0;
}
.hero__cake {
  position: relative; z-index: 2;
  align-self: center; justify-self: center;
  height: 100%; max-height: 78%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  pointer-events: none;
  min-height: 0;
}
.hero__plate { height: 100%; min-height: 0; display: flex; align-items: flex-end; }
.hero__plate img {
  height: 100%; width: auto; max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 24px rgba(43, 29, 23, .16));
}
.crown { width: clamp(52px, 13vw, 96px); color: var(--gold-l); flex: none; margin-bottom: 8px; }
.hero__foot {
  grid-area: foot;
  display: grid; gap: 24px; padding-top: 24px;
}
.hero__lead { font: 400 21px/1.3 var(--serif); letter-spacing: -0.01em; max-width: 30ch; }
.hero__lead span { font: 400 16px/1.5 var(--sans); color: var(--ink-2); letter-spacing: 0; }
.hero__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

@media (min-width: 900px) {
  .hero { padding-top: 88px; padding-bottom: 40px; }
  .hero__cake { max-height: 96%; }
  .hero__names { z-index: 3; }  /* Schrift liegt über der Torte, wie bei Casa Momo */
  .hero__foot { grid-template-columns: 1fr auto; align-items: end; padding-top: 0; margin-top: -1.2em; }
  .hero__lead { font-size: 28px; }
  .hero__lead span { font-size: 17px; }
}
/* Querformat-Handy: weniger Höhe, Torte kleiner */
@media (max-height: 560px) { .hero__cake { max-height: 64%; } }

/* Ladebewegung */
.js .name { transform: translateY(105%); }
.js .hero__foot { opacity: 0; }
.js .hero__plate { opacity: 0; transform: translateY(32px) scale(.96); }
.js .crown { opacity: 0; transform: translateY(-120px) rotate(-14deg); }
.is-in .name { transform: none; transition: transform 1100ms var(--expo); }
.is-in .mask--r .name { transition-delay: 90ms; }
.is-in .hero__plate { opacity: 1; transform: none; transition: opacity 900ms var(--expo) 200ms, transform 1300ms var(--expo) 200ms; }
.is-in .crown { opacity: 1; transform: none; transition: opacity 300ms ease-out 900ms, transform 900ms cubic-bezier(.34, 1.4, .64, 1) 900ms; }
.is-in .hero__foot { opacity: 1; transition: opacity 800ms ease-out 1000ms; }

/* ---------- 2 · Vitrine ---------- */
.vitrine { padding: var(--sec) 0; }
.vitrine__head { display: grid; gap: 16px; margin-bottom: 40px; }
.vitrine__head .muted { max-width: 40ch; }
.shelf { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.shelf::-webkit-scrollbar { display: none; }
.shelf__track {
  list-style: none; margin: 0;
  display: flex; gap: 24px;
  padding: 0 var(--gut);
  width: max-content;
}
.cake { width: 62vw; max-width: 300px; scroll-snap-align: start; scroll-margin-left: var(--gut); }
.cake__img {
  position: relative;
  height: 340px;
  display: flex; align-items: flex-end; justify-content: center;
  border-bottom: 1px solid var(--gold-l);
  padding-bottom: 8px;
}
.cake__img::after { /* Schatten auf dem Tablar */
  content: ""; position: absolute; left: 18%; right: 18%; bottom: 2px; height: 14px;
  background: radial-gradient(closest-side, rgba(43, 29, 23, .22), transparent);
  z-index: 0;
}
.cake__img img {
  position: relative; z-index: 1;
  max-height: 100%; width: auto; max-width: 100%;
  object-fit: contain;
  transition: transform 600ms var(--expo);
}
.cake:hover .cake__img img { transform: translateY(-8px); }
.cake__name { font: 500 32px/1.1 var(--serif); letter-spacing: -0.02em; margin-top: 16px; }
.cake__note { color: var(--ink-2); margin-top: 8px; font-size: 12px; }

/* Computer: Vitrine fährt beim Scrollen seitwärts */
.vitrine.is-pinned { padding: 0; }
.vitrine.is-pinned .vitrine__sticky {
  position: sticky; top: 0; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.vitrine.is-pinned .shelf { overflow: visible; }
.vitrine.is-pinned .shelf__track { padding-left: max(var(--gut), calc((100vw - 1200px) / 2 + var(--gut))); padding-right: 40vw; will-change: transform; }
@media (min-width: 900px) {
  .cake { width: 300px; }
  .cake__img { height: min(420px, 46vh); }
  .vitrine__head { grid-template-columns: 1fr auto; align-items: end; }
}

/* ---------- 3 · Tortengeschmäcker ---------- */
.taste { padding: var(--sec) 0; background: var(--paper); }
.taste__head { display: grid; gap: 16px; margin-bottom: 40px; }
.taste__head .muted { max-width: 44ch; }
.taste .h2 { font-size: min(9.4vw, 96px); }
.taste__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .taste__grid { grid-template-columns: 5fr 6fr; gap: 64px; }

}

/* der Schnitt */
.slice { width: min(100%, 440px); margin: 0 auto; }
.slice__box {
  display: flex; flex-direction: column;
  border: 12px solid #FFFBF3; border-bottom: 0;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  box-shadow: 0 24px 40px -24px rgba(43, 29, 23, .35);
}
.slice__layer { transition: background-color 600ms var(--expo), height 600ms var(--expo); }
.slice__top { height: 24px; background: #FFFBF3; }
.sp {
  height: clamp(64px, 17vw, 88px);
  background-color: var(--sp, #F1D9A0);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.22) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(0,0,0,.07) 0 2px, transparent 3px),
    radial-gradient(circle at 45% 80%, rgba(255,255,255,.18) 0 1.5px, transparent 2.5px);
  background-size: 22px 18px, 26px 21px, 17px 15px;
}
.sp.is-marmor {
  background-image:
    linear-gradient(172deg, transparent 0 30%, rgba(107, 63, 42, .85) 31% 36%, transparent 37% 100%),
    linear-gradient(186deg, transparent 0 58%, rgba(107, 63, 42, .7) 59% 63%, transparent 64% 100%),
    radial-gradient(ellipse 70% 30% at 40% 80%, rgba(107, 63, 42, .75) 0 40%, transparent 42%);
  background-size: 140px 100%, 190px 100%, 230px 100%;
}
.cr {
  height: clamp(20px, 5vw, 28px);
  background-color: var(--cr, #7B4A33);
}
.cr.is-flakes { /* Oreo-Krümel, Kokosflocken */
  background-image: radial-gradient(circle, var(--fleck) 0 1.6px, transparent 2.2px);
  background-size: 11px 9px;
}
.slice.is-pop .sp, .slice.is-pop .cr { animation: pop 600ms var(--expo); }
@keyframes pop { 0% { transform: scaleY(.86); } 100% { transform: none; } }
.slice .crown--slice { display: block; width: 72px; margin: 0 auto 8px; }
.slice__piping {
  height: 18px; margin: 0 4px -2px;
  background: radial-gradient(circle at 50% 100%, #FFFBF3 0 11px, transparent 11.5px) 0 0 / 22px 18px repeat-x;
  filter: drop-shadow(0 -1px 0 rgba(43, 29, 23, .06));
}
.slice__board { height: 12px; margin: 0 -16px; background: #E6D8C2; border-radius: 0 0 8px 8px; }

.combo { color: var(--ink-3); }
.taste__name { font: 500 clamp(30px, 7.4vw, 48px)/1.05 var(--serif); letter-spacing: -0.02em; margin: 8px 0 40px; min-height: 2.1em; }
.chips { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.chips__label { color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.chips__row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px 0 12px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 15px; background: var(--bg);
  transition: border-color 150ms ease-out, background-color 150ms ease-out, color 150ms ease-out;
}
.chip span::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  background: var(--c); box-shadow: inset 0 0 0 1px rgba(43, 29, 23, .18);
}
.chip:hover span { border-color: var(--ink-3); }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Anfrage */
.order {
  margin-top: var(--sec);
  display: grid; gap: 40px;
  padding-top: 40px; border-top: 1px solid var(--line);
}
.order__title { font: 500 40px/1 var(--serif); letter-spacing: -0.02em; }
.order__fields { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 8px; }
.field:nth-child(1), .field:nth-child(2) { grid-column: 1 / -1; }
.field span { color: var(--ink-2); font-size: 12px; }
.field input, .field select {
  font: 400 17px/1.3 var(--sans); color: var(--ink);
  min-height: 52px; padding: 0 16px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  width: 100%; appearance: none; -webkit-appearance: none;
  transition: border-color 150ms ease-out;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); }
.order__out { display: grid; gap: 16px; align-content: start; }
.order__label { color: var(--ink-2); }
.order__msg {
  background: #FFFBF3; border: 1px solid var(--line); border-radius: 8px;
  padding: 24px; white-space: pre-line;
  font-size: 16px; line-height: 1.55;
}
.order__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.order__hint { font-size: 15px; }
@media (min-width: 900px) {
  .order { grid-template-columns: 1fr 1fr 1fr; column-gap: 64px; }
  .order__title { grid-column: 1 / -1; }
  .order__fields { grid-column: 1; align-content: start; }
  .order__out { grid-column: 2 / -1; }
}

/* ---------- 4 · Die zwei ---------- */
.duo { padding: var(--sec) 0; }
.duo__grid { display: grid; gap: 40px; align-items: center; }
.duo__logo { width: min(72vw, 360px); border-radius: 50%; }
.duo__text { display: grid; gap: 24px; max-width: 34em; }
.duo__text p { color: var(--ink-2); }
.quote { margin: 16px 0 0; padding-left: 24px; border-left: 1px solid var(--gold-l); }
.quote p { font: italic 400 clamp(28px, 6vw, 40px)/1.15 var(--serif); color: var(--ink); letter-spacing: -0.01em; }
.quote cite { display: block; font-style: normal; color: var(--ink-3); margin-top: 16px; font-size: 12px; }
@media (min-width: 900px) { .duo__grid { grid-template-columns: 5fr 7fr; gap: 104px; } .duo__logo { width: 100%; max-width: 420px; } }

/* ---------- 5 · Kontakt ---------- */
.contact { padding: var(--sec) 0; border-top: 1px solid var(--line); }
.contact__tel {
  display: inline-block; margin: 24px 0 64px;
  font: 400 clamp(44px, 12vw, 128px)/1 var(--serif); letter-spacing: -0.03em;
  text-decoration: none; white-space: nowrap;
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat;
  transition: background-size 600ms var(--expo);
}
.contact__tel:hover { background-size: 100% 1px; }
.contact__list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact__list div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact__list dt { color: var(--ink-2); font-size: 12px; padding-top: 4px; }
.contact__list a { display: inline-block; padding: 4px 0; text-decoration-color: var(--ink-3); text-underline-offset: 3px; }
@media (min-width: 900px) { .contact__list { grid-template-columns: 1fr 1fr; column-gap: 64px; } .contact__list div { grid-template-columns: 160px 1fr; } }

/* ---------- Fuss ---------- */
.foot { background: var(--ink); color: var(--paper); padding: 64px 0 40px; overflow: hidden; }
.foot__word {
  font: 500 34vw/0.8 var(--serif); letter-spacing: -0.03em;
  color: var(--gold-l); text-align: center; margin-bottom: 40px;
}
.foot__row { display: grid; gap: 8px; font-size: 15px; }
.foot__row a { display: inline-block; padding: 8px 0; }
.foot .muted { color: rgba(251, 246, 236, .6); }
@media (min-width: 900px) { .foot__word { font-size: min(30vw, 420px); } .foot__row { grid-template-columns: 1fr auto; } }

/* Einblenden beim Scrollen */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 900ms var(--expo), transform 900ms var(--expo); }
.js [data-reveal].is-seen { opacity: 1; transform: none; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 30;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper); padding: 16px 24px; border-radius: 999px;
  transition: opacity 300ms ease-out, transform 300ms var(--expo);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .name, .js .hero__plate, .js .crown { transform: none !important; }
  .js .hero__foot, .js .hero__plate, .js .crown, .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
