/* Maison Lala – Entwurf Seetalwebsites, Runde 2 */
:root {
  --bg: #EEECEF;
  --bg-2: #E5E2E7;
  --ink: #2A2028;
  --ink-1: rgba(42, 32, 40, .92);
  --ink-2: rgba(42, 32, 40, .68);
  --ink-3: rgba(42, 32, 40, .48);
  --line: rgba(42, 32, 40, .14);
  --accent: #5C6B2E;
  --accent-hi: #4C5925;
  --dark: #2A2028;
  --on-dark: #EEECEF;
  --tint: #E6EADB;

  --serif: "Libre Caslon Display", "Times New Roman", serif;
  --sans: "Jost", system-ui, sans-serif;
  --mono: "Fragment Mono", ui-monospace, monospace;

  --gut: 20px;
  --max: 1200px;
  --sec: 80px;
  --nav: 56px;
  --r: 4px;
  --expo: cubic-bezier(0.19, 1, 0.22, 1);
}
@media (min-width: 900px) {
  :root { --gut: 40px; --sec: 136px; --nav: 64px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav) + 8px); }
html.lenis, html.lenis body { height: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-1);
  font: 400 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 18px; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.section { padding: var(--sec) 0; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; line-height: 1.4; }
.muted { color: var(--ink-2); }
.h2 {
  margin: 0;
  font: 400 clamp(44px, 12vw, 96px)/0.96 var(--serif);
  letter-spacing: -0.03em;
  color: var(--ink);
}

/* Angebots-Balken */
.bar {
  background: var(--dark);
  color: rgba(238, 236, 239, .86);
  font: 400 12px/1 var(--mono);
  letter-spacing: .02em;
  text-align: center;
  padding: 11px var(--gut);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bar__long { display: none; }
@media (min-width: 900px) { .bar__long { display: inline; } .bar__short { display: none; } }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(238, 236, 239, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease-out;
}
.nav.is-scrolled { border-color: var(--line); }
.nav__in {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--nav);
  max-width: calc(var(--max) + 2 * var(--gut));
  margin: 0 auto;
  padding: 0 var(--gut);
}
.nav__mark { font: 400 22px/1 var(--serif); letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.nav__links { display: none; gap: 40px; font-size: 15px; }
.nav__links a { text-decoration: none; color: var(--ink-2); padding: 8px 0; transition: color 150ms ease-out; }
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  font-size: 15px; font-weight: 500; text-decoration: none;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--ink);
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.nav__cta:hover { background: var(--ink); color: var(--bg); }
@media (min-width: 900px) { .nav__links { display: flex; } }

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  border: 0; border-radius: 999px;
  background: var(--accent); color: #F3F2EC;
  font-weight: 500; font-size: 16px; text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease-out, transform 150ms ease-out;
}
.btn:hover { background: var(--accent-hi); }
.btn:active { transform: scale(.98); }
.btn--light { background: var(--on-dark); color: var(--dark); width: 100%; }
.btn--light:hover { background: #fff; }
.link {
  display: inline-block;
  padding: 10px 0 4px;
  font-weight: 500; font-size: 16px; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 300ms var(--expo);
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Einstieg ---------- */
.hero { display: grid; grid-template-columns: 1fr; padding-bottom: var(--sec); }
.hero__title, .hero .cut--hero { grid-column: 1; grid-row: 1; }
.hero__text { grid-row: 2; padding-top: 24px; }
.hero .cut--hero { margin: 0 calc(-1 * var(--gut)); }
.cut--hero .cut__frame { aspect-ratio: 4 / 5; border-radius: 0; }
.cut--hero .cut__frame img { object-position: 50% 78%; }
.cut--hero .cut__bar { padding: 16px var(--gut) 0; }
.hero__title {
  position: relative; z-index: 2;
  align-self: start;
  margin: 0;
  padding-top: 24px;
  pointer-events: none;
  font: 400 clamp(60px, 18vw, 184px)/0.9 var(--serif);
  letter-spacing: -0.04em;
  color: var(--ink);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .line > span { display: inline-block; }
.hero__title .line:nth-child(2) { padding-left: 1.15em; }
.hero__kicker { color: var(--ink-3); margin-bottom: 8px; }
.hero__lead { max-width: 30em; color: var(--ink-2); }
.hero__actions { display: flex; align-items: center; gap: 24px; margin-top: 24px; flex-wrap: wrap; }

@media (min-width: 900px) {
  .hero {
    --stage: min(44vw, 540px, calc((100svh - 230px) * .75));
    grid-template-columns: 1fr var(--stage);
    grid-template-rows: auto 1fr;
    column-gap: 64px;
    padding-top: 40px;
  }
  .hero__title { grid-column: 1 / -1; grid-row: 1; padding-top: 16px; font-size: clamp(96px, 10.4vw, 156px); }
  .hero__title .line:nth-child(2) { padding-left: calc(100% - var(--stage) + 32px); }
  .hero .cut--hero { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .cut--hero .cut__frame { aspect-ratio: 3 / 4; border-radius: var(--r); }
  .cut--hero .cut__bar { padding: 16px 0 0; }
  .hero__text { grid-column: 1; grid-row: 2; align-self: end; padding: 0 0 72px; }
  .hero__lead { font-size: 19px; max-width: 26em; }
}

/* Ansicht ganz / angeschnitten (Einstieg) */
.cut { margin: 0; }
.cut__frame { position: relative; overflow: hidden; background: var(--bg-2); cursor: pointer; }
.cut__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cut__in { clip-path: inset(0 100% 0 0); transition: clip-path 1100ms var(--expo); }
.cut.is-in .cut__in { clip-path: inset(0 0 0 0); }
.cut__knife {
  position: absolute; top: 0; bottom: 0; left: 0; width: 1px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 0 14px rgba(255, 255, 255, .7);
  opacity: 0; pointer-events: none;
}
.cut.is-cutting .cut__knife { animation: knife 1100ms var(--expo) forwards; }
@keyframes knife {
  0% { opacity: 1; transform: translateX(0); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateX(var(--w, 400px)); }
}
.cut__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 16px; color: var(--ink-2); white-space: nowrap;
}
.switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.switch button {
  border: 0; background: none; cursor: pointer;
  font-size: 14px; font-weight: 500;
  padding: 9px 16px; border-radius: 999px;
  color: var(--ink-2);
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.switch button[aria-pressed="true"] { background: var(--accent); color: #F3F2EC; }

/* Kopf eines Abschnitts */
.head { display: grid; gap: 24px; margin-bottom: 40px; }
.head__copy { display: grid; gap: 16px; max-width: 34em; }
@media (min-width: 900px) {
  .head { grid-template-columns: 1fr 1fr; gap: 64px; margin-bottom: 64px; align-items: end; }
}

/* ---------- Signature: Bühne ---------- */
.sig { padding-top: var(--sec); border-top: 1px solid var(--line); }
.run { position: relative; height: calc(8 * 80svh + 100svh); }
.stage {
  position: sticky; top: var(--nav);
  height: calc(100svh - var(--nav));
  overflow: hidden;
  background: var(--tint);
  transition: background-color 900ms var(--expo);
}
.stage__slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0;
  margin: 0 auto;
  max-width: calc(var(--max) + 2 * var(--gut));
  padding: 24px var(--gut) 88px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  gap: 16px;
  visibility: hidden;
  --k: 0;
}
.slide.is-active { visibility: visible; }

.slide__top { display: flex; justify-content: space-between; align-items: baseline; color: var(--ink-2); }
.slide__count b { font-weight: 400; color: var(--ink); }

.slide__frame {
  position: relative;
  height: min(calc(100svh - var(--nav) - 360px), 520px);
  aspect-ratio: 4 / 5;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--bg-2);
  opacity: 0;
  transform: translateY(24px) scale(.985);
  transition: opacity 500ms ease-out, transform 900ms var(--expo);
}
.slide.is-active .slide__frame { opacity: 1; transform: none; }
.slide__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.slide__in { clip-path: inset(0 calc((1 - var(--k)) * 100%) 0 0); }
.slide__knife {
  position: absolute; top: 0; bottom: 0;
  left: calc(var(--k) * 100%);
  width: 1px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 0 14px rgba(255, 255, 255, .7);
  opacity: var(--knife, 0);
  pointer-events: none;
}

.slide__text { display: grid; gap: 16px; align-content: start; }
.slide__name {
  margin: 0;
  font: 400 clamp(34px, 9.4vw, 104px)/1 var(--serif);
  letter-spacing: -0.03em;
  color: var(--ink);
  overflow: hidden;
  padding-bottom: .06em;
}
.slide__name span { display: inline-block; transform: translateY(105%); transition: transform 900ms var(--expo); }
.slide.is-active .slide__name span { transform: none; transition-delay: 80ms; }
.slide__desc {
  color: var(--ink-2); max-width: 30em; font-size: 16px;
  opacity: 0; transform: translateY(12px);
  transition: opacity 600ms ease-out, transform 900ms var(--expo);
}
.slide.is-active .slide__desc { opacity: 1; transform: none; transition-delay: 160ms; }

.meter { display: none; }
.slide__ask { justify-self: start; opacity: 0; transition: opacity 600ms ease-out; }
.slide.is-active .slide__ask { opacity: 1; transition-delay: 280ms; }

.stage__foot {
  position: absolute; left: 0; right: 0; bottom: 0;
  margin: 0 auto;
  padding-bottom: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.ticks { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex: 1; max-width: 360px; }
.ticks li { flex: 1; }
.ticks button {
  display: block; width: 100%;
  padding: 16px 0; border: 0; background: none; cursor: pointer;
}
.ticks button::before {
  content: ""; display: block; height: 2px; border-radius: 2px;
  background: linear-gradient(var(--ink), var(--ink)) 0 0 / var(--f, 0%) 100% no-repeat, var(--line);
}
.stage__hint { color: var(--ink-3); transition: opacity 400ms ease-out; }
.stage__hint.is-gone { opacity: 0; }

@media (min-width: 900px) {
  .run { height: calc(8 * 90svh + 100svh); }
  .slide {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 104px;
    row-gap: 24px;
    padding: 40px var(--gut) 104px;
    align-content: stretch;
  }
  .slide__top { grid-column: 1 / -1; }
  .slide__frame { height: calc(100svh - var(--nav) - 210px); max-height: 700px; aspect-ratio: 3 / 4; grid-row: 2; }
  .slide__text { grid-row: 2; align-content: center; gap: 24px; }
  .slide__desc { font-size: 18px; }
  .meter {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
    max-width: 360px; color: var(--ink-3);
    opacity: 0; transition: opacity 600ms ease-out;
  }
  .slide.is-active .meter { opacity: 1; transition-delay: 240ms; }
  .meter i { height: 1px; background: var(--line); position: relative; }
  .meter i::after {
    content: ""; position: absolute; left: 0; top: -0.5px; height: 2px;
    width: calc(var(--k) * 100%); background: var(--accent);
  }
  .meter .on { color: var(--ink); }
  .ticks { max-width: 480px; }
}

/* ---------- Custom Cakes: Galerie ---------- */
.custom { background: var(--bg-2); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.gallery__col { display: grid; gap: 16px; min-width: 0; will-change: transform; }
.gallery__col:nth-child(2) { padding-top: 64px; }
.tile { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.tile__img { min-width: 0; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--bg); }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1000ms var(--expo); }
.tile figcaption { color: var(--ink-2); }
.tile--ask a {
  display: grid; align-content: end; gap: 8px;
  aspect-ratio: 4 / 5; padding: 16px;
  border-radius: var(--r);
  background: var(--dark); color: var(--on-dark);
  text-decoration: none;
  transition: background-color 150ms ease-out;
}
.tile--ask a:hover { background: #3A2E37; }
.tile--ask b { font: 400 clamp(26px, 7vw, 40px)/1 var(--serif); letter-spacing: -0.02em; }
.tile--ask span { font-size: 14px; color: rgba(238, 236, 239, .68); line-height: 1.4; }
.tile--ask .arrow { font-family: var(--mono); font-size: 12px; color: var(--on-dark); margin-top: 8px; }
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .gallery__col { gap: 40px; }
  .gallery__col:nth-child(2) { padding-top: 136px; }
  .gallery__col:nth-child(3) { padding-top: 40px; }
  .tile:hover .tile__img img { transform: scale(1.04); }
  .tile--ask a { padding: 24px; }
}

/* ---------- Hochzeitstorten ---------- */
.wedding { border-bottom: 1px solid var(--line); }
.wedding__title {
  margin: 0 0 40px;
  font: 400 clamp(52px, 14.5vw, 196px)/0.92 var(--serif);
  letter-spacing: -0.04em;
  color: var(--ink);
  hyphens: manual;
}
.wedding__row { display: grid; gap: 24px; }
.wedding__copy { display: grid; gap: 16px; justify-items: start; max-width: 30em; }
.placeholder {
  justify-self: start; align-self: start;
  color: var(--ink-3);
  border: 1px dashed var(--ink-3);
  border-radius: var(--r);
  padding: 8px 16px;
}
@media (min-width: 900px) {
  .wedding__row { grid-template-columns: 1fr 1fr; gap: 64px; }
}

/* ---------- Anfrage ---------- */
.ask { background: var(--dark); color: rgba(238, 236, 239, .92); }
.ask__inner { display: grid; gap: 40px; }
.ask__title {
  margin: 0 0 24px;
  font: 400 clamp(60px, 17vw, 168px)/0.9 var(--serif);
  letter-spacing: -0.04em;
  color: var(--on-dark);
}
.ask__intro p { color: rgba(238, 236, 239, .68); max-width: 28em; }
.ask__ig { display: inline-block; margin-top: 16px; padding: 8px 0; font-size: 14px; color: var(--on-dark); }
@media (min-width: 900px) {
  .ask__inner { grid-template-columns: 1fr minmax(0, 540px); gap: 104px; align-items: start; }
  .ask__intro { position: sticky; top: calc(var(--nav) + 40px); }
}

.form { display: grid; gap: 24px; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.label { color: rgba(238, 236, 239, .48); }
.label > span { color: var(--on-dark); margin-right: 8px; }
.label em { font-style: normal; color: rgba(238, 236, 239, .86); margin-left: 8px; }
.form legend { padding: 0; margin-bottom: 8px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form input:not([type="radio"]), .form textarea {
  width: 100%; min-height: 48px; padding: 12px 0;
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(238, 236, 239, .24); border-radius: 0;
  color: var(--on-dark); font-size: 17px;
  transition: border-color 150ms ease-out;
  -webkit-appearance: none; appearance: none;
}
.form textarea { resize: vertical; min-height: 88px; line-height: 1.5; }
.form input::placeholder, .form textarea::placeholder { color: rgba(238, 236, 239, .36); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--on-dark); }
.form input[type="date"] { color-scheme: dark; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 10px 16px; border-radius: 999px;
  border: 1px solid rgba(238, 236, 239, .24); font-size: 15px;
  transition: background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out;
}
.chips label:hover span { border-color: rgba(238, 236, 239, .6); }
.chips input:checked + span { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }
.chips input:focus-visible + span { outline: 2px solid var(--on-dark); outline-offset: 2px; }

.picker__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pick { position: relative; cursor: pointer; display: block; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick img {
  width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 72%;
  border-radius: var(--r);
  opacity: .62;
  outline: 1px solid transparent; outline-offset: 2px;
  transition: opacity 150ms ease-out, outline-color 150ms ease-out;
}
.pick:hover img { opacity: .9; }
.pick input:checked + img { opacity: 1; outline: 2px solid var(--on-dark); }
.pick input:focus-visible + img { outline: 2px solid var(--on-dark); }
.pick span { position: absolute; left: 6px; top: 6px; font: 400 11px/1 var(--mono); color: var(--ink); background: rgba(238, 236, 239, .86); padding: 3px 5px; border-radius: 2px; }

.msg {
  display: grid; gap: 8px; padding: 16px;
  border-radius: var(--r);
  background: rgba(238, 236, 239, .06);
  border: 1px solid rgba(238, 236, 239, .12);
}
.msg p { white-space: pre-line; font-size: 16px; color: rgba(238, 236, 239, .86); }
.form__hint { color: rgba(238, 236, 239, .48); text-align: center; margin-top: -8px; }

/* ---------- Fuss ---------- */
.foot { background: var(--dark); color: rgba(238, 236, 239, .68); border-top: 1px solid rgba(238, 236, 239, .12); }
.foot a { display: inline-block; padding: 8px 0; }
.foot__inner { display: grid; gap: 8px; padding-top: 40px; padding-bottom: 104px; font-size: 15px; }
.foot__mark { font: 400 28px/1 var(--serif); color: var(--on-dark); }
.foot__draft { color: rgba(238, 236, 239, .48); font-size: 13px; margin-top: 16px; }
@media (min-width: 900px) {
  .foot__inner { grid-template-columns: 1fr auto auto; align-items: baseline; gap: 40px; padding-bottom: 40px; }
  .foot__draft { margin-top: 0; }
}

/* ---------- Handy-Knopf unten ---------- */
.dock {
  position: fixed; z-index: 40;
  left: var(--gut); right: var(--gut); bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; border-radius: 999px;
  background: var(--accent); color: #F3F2EC;
  font-weight: 500; text-decoration: none;
  box-shadow: 0 8px 24px rgba(42, 32, 40, .18);
  transform: translateY(calc(100% + 32px));
  transition: transform 600ms var(--expo);
}
.dock.is-on { transform: none; }
@media (min-width: 900px) { .dock { display: none; } }

/* ---------- Bewegung ---------- */
.js .hero__title .line > span { transform: translateY(105%); }
.js .hero__text > * { opacity: 0; transform: translateY(16px); }
.js .reveal-img { clip-path: inset(100% 0 0 0); }
.js .reveal-img img { transform: scale(1.15); }

.is-ready .hero__title .line > span { transform: none; transition: transform 1000ms var(--expo); }
.is-ready .hero__title .line:nth-child(2) > span { transition-delay: 90ms; }
.is-ready .hero__text > * { opacity: 1; transform: none; transition: opacity 800ms var(--expo), transform 800ms var(--expo); }
.is-ready .hero__text > :nth-child(2) { transition-delay: 120ms; }
.is-ready .hero__text > :nth-child(3) { transition-delay: 200ms; }
.js .reveal-img.is-seen { clip-path: inset(0 0 0 0); transition: clip-path 1000ms var(--expo); }
.js .reveal-img.is-seen img { transform: scale(1); transition: transform 1400ms var(--expo); }
.cut--hero .reveal-img.is-seen { transition-delay: 150ms; }
.js .cut--hero .reveal-img.is-seen .cut__in { transition: clip-path 1100ms var(--expo), transform 1400ms var(--expo); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero__title .line > span, .js .hero__text > * { transform: none; opacity: 1; }
  .js .reveal-img { clip-path: none; }
  .js .reveal-img img { transform: none; }
  .slide__frame, .slide__desc, .slide__name span { opacity: 1 !important; transform: none !important; }
}
