:root {
  --nacht: #191513;
  --nacht-hell: #26201D;
  --creme: #F6EBDD;
  --rot: #B3141F;
  --rot-hell: #C91C28;
  --rot-tief: #8A0E1A;
  --gold: #E3B458;
  --schoko: #2B1210;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --schrift: "Pinyon Script", "Snell Roundhand", cursive;

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

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--nacht); }
body {
  margin: 0;
  background: var(--nacht);
  color: var(--creme);
  font: 400 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd, fieldset { margin: 0; padding: 0; border: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.seife :focus-visible, .karte :focus-visible { outline-color: var(--rot); }

.rand { max-width: 1200px; margin-inline: auto; padding-inline: var(--rand); }
.nur-leser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1; letter-spacing: -0.02em; }
h2 { font-size: clamp(44px, 7vw, 96px); }
.gross { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; letter-spacing: -0.01em; }
.name { font-family: var(--schrift); font-weight: 400; letter-spacing: 0; }

.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  background: var(--rot); color: var(--creme);
  border: 0; border-radius: 999px;
  font-weight: 500; font-size: 17px; text-decoration: none; cursor: pointer;
  transition: background-color 150ms ease-out, transform 150ms ease-out;
}
.knopf:hover { background: var(--rot-hell); }
.knopf:active { transform: scale(0.98); }
.textlink {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
  text-decoration-color: var(--gold);
  transition: opacity 150ms ease-out;
}
.textlink:hover { opacity: 0.68; }

/* Balken ganz oben */
.balken {
  background: var(--rot-tief); color: var(--creme);
  text-align: center; font-size: 14px; line-height: 1.3;
  padding: 8px var(--rand);
}

/* Einstieg */
.einstieg { position: relative; display: flex; flex-direction: column; overflow: hidden; }
.kopf { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; height: 64px; width: 100%; }
.marke { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--serif); font-size: 24px; letter-spacing: -0.01em; text-decoration: none; line-height: 1; }
.kopf nav { display: flex; gap: 32px; font-size: 15px; }
.kopf nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; opacity: 0.82; transition: opacity 150ms ease-out; }
.kopf nav a:hover { opacity: 1; }
.kopf nav a:not(:last-child) { display: none; }

.einstieg-raster { position: relative; z-index: 2; width: 100%; padding-top: 24px; }
h1 { font-size: clamp(44px, 12vw, 56px); }
.maske { display: block; overflow: hidden; padding-bottom: 0.08em; }
.maske-name { padding: 0.34em 0 0.3em 0.06em; margin: -0.22em 0 0 -0.06em; }
.zeile { display: block; }

.namensfeld {
  display: inline-flex; align-items: baseline; gap: 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  padding: 0 4px 0 0; cursor: text;
  transition: border-color 150ms ease-out;
}
.namensfeld:focus-within { border-bottom-color: var(--gold); }
.namensfeld input {
  font-family: var(--schrift); font-size: 1.7em; line-height: 1.1; letter-spacing: 0;
  color: var(--gold);
  background: none; border: 0; padding: 0 0.12em 0 0.04em; margin: 0; outline: 0;
  width: 4ch; min-width: 2ch; max-width: calc(100vw - 2 * var(--rand) - 44px);
  caret-color: var(--creme);
}
.stift { width: 20px; height: 20px; flex: none; color: var(--gold); opacity: 0.8; align-self: center; }

.hinweis { margin-top: 8px; font-size: 14px; opacity: 0.6; }
.lead { margin-top: 16px; max-width: 30em; font-size: 17px; opacity: 0.88; }
.einstieg-knopf { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.beleg { font-size: 14px; opacity: 0.6; }

.einstieg-foto { order: 3; display: block; margin-top: -24px; pointer-events: none; }
.einstieg-foto img {
  width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 82%, transparent 100%);
}

@media (min-width: 900px) {
  .einstieg { min-height: calc(100svh - 36px); min-height: max(640px, calc(100svh - 36px)); }
  .kopf { height: 80px; }
  .kopf nav a:not(:last-child) { display: inline-flex; }
  .einstieg-foto { order: 0; position: absolute; inset: 0; margin: 0; z-index: 0; }
  .einstieg-foto img {
    width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%;
    -webkit-mask-image: none; mask-image: none;
  }
  .einstieg::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
      linear-gradient(to top, var(--nacht) 0, transparent 22%);
  }
  .einstieg-raster { flex: 1; display: flex; align-items: center; padding-block: 40px 104px; }
  .einstieg-text { max-width: min(460px, 36vw); }
  h1 { font-size: clamp(48px, 5.4vw, 84px); white-space: nowrap; }
  .namensfeld input { max-width: 32vw; }
  .stift { width: 26px; height: 26px; }
  .hinweis { margin-top: 16px; }
  .lead { font-size: 19px; margin-top: 40px; }
  .einstieg-knopf { margin-top: 40px; }
}

/* Nach Anlass */
.anlass { padding-block: var(--luft); }
.anlass-kopf { display: grid; gap: 24px; }
.sprung { display: flex; flex-wrap: wrap; gap: 8px; }
.sprung a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--creme) 26%, transparent); border-radius: 999px;
  font-size: 15px; text-decoration: none;
  transition: border-color 150ms ease-out, background-color 150ms ease-out, color 150ms ease-out;
}
.sprung a:hover { background: var(--creme); border-color: var(--creme); color: var(--nacht); }

.kapitel { margin-top: 64px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--creme) 16%, transparent); scroll-margin-top: 16px; }
.kapitel-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 24px; margin-bottom: 24px; }
.kapitel h3 { font-size: clamp(36px, 5.4vw, 72px); }
.widmung { font-size: 15px; opacity: 0.9; white-space: nowrap; }
.widmung .name { font-size: clamp(34px, 4vw, 52px); line-height: 1.2; color: var(--gold); padding-left: 0.12em; }

.reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.reihe + .reihe { margin-top: 16px; }
.reihe figure { min-width: 0; }
.bild { overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 5; background: var(--nacht-hell); }
.bild img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--expo); }
.reihe:first-of-type figure:first-child { grid-column: 1 / -1; }
.reihe:first-of-type figure:first-child .bild { aspect-ratio: var(--r); }
figcaption { margin-top: 8px; font-size: 14px; line-height: 1.35; opacity: 0.64; }
.kachel {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  padding: 24px; border: 1px solid color-mix(in srgb, var(--gold) 42%, transparent); border-radius: 4px;
}
.kachel p { font-family: var(--serif); font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; }
.reihe:only-of-type .kachel { grid-column: auto; padding: 16px; }
.reihe:only-of-type .kachel p { font-size: 20px; }

@media (hover: hover) {
  .bild:hover img { transform: scale(1.04); }
}
@media (min-width: 900px) {
  .anlass-kopf { grid-template-columns: 1fr auto; align-items: end; }
  .kapitel { margin-top: 104px; padding-top: 40px; }
  .kapitel-kopf { margin-bottom: 40px; }
  .reihe { display: flex; gap: 24px; align-items: flex-start; }
  .reihe + .reihe { margin-top: 24px; }
  .reihe figure { flex: var(--r) 1 0; }
  .reihe .bild, .reihe:first-of-type figure:first-child .bild { aspect-ratio: var(--r); }
  .kachel, .reihe:only-of-type .kachel { flex: 0.75 1 0; aspect-ratio: 3 / 4; padding: 32px; }
  .kachel p, .reihe:only-of-type .kachel p { font-size: clamp(26px, 2.5vw, 34px); }
}

html.bewegt .kapitel .bild { clip-path: inset(100% 0 0 0); transition: clip-path 1100ms var(--expo); transition-delay: calc(var(--i, 0) * 90ms); }
html.bewegt .kapitel .bild img { transform: scale(1.16); transition: transform 1500ms var(--expo); transition-delay: calc(var(--i, 0) * 90ms); }
html.bewegt .kapitel .bild.da { clip-path: inset(0 0 0 0); }
html.bewegt .kapitel .bild.da img { transform: none; }
html.bewegt .kapitel .kachel { opacity: 0; transition: opacity 900ms ease-out; transition-delay: calc(var(--i, 0) * 90ms); }
html.bewegt .kapitel .kachel.da { opacity: 1; }

/* Rosen aus Seife */
.seife { background: var(--creme); color: var(--schoko); padding-block: var(--luft); }
.seife-raster { display: grid; gap: 40px; }
.seife-bild { overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 3; }
.seife-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 48%; transform: scale(1.9); transform-origin: 58% 52%; }
.seife-text h2 { color: var(--rot); max-width: 8em; }
.seife-text .gross { margin-top: 24px; max-width: 22em; }
.seife-text p:last-child { margin-top: 16px; max-width: 34em; opacity: 0.78; }
@media (min-width: 900px) {
  .seife-raster { grid-template-columns: 5fr 6fr; gap: 104px; align-items: center; }
  .seife-bild { aspect-ratio: 4 / 5; }
}

/* Bestellen */
.bestellen { background: var(--rot-tief); color: var(--creme); padding-block: var(--luft); }
.bestell-raster { display: grid; gap: 40px; }
.bestell-kopf .gross { margin-top: 24px; max-width: 20em; }
.fakten { margin-top: 40px; border-top: 1px solid color-mix(in srgb, var(--creme) 24%, transparent); }
.fakten div { display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid color-mix(in srgb, var(--creme) 24%, transparent); }
.fakten dt { opacity: 0.7; flex: none; }
.fakten dd { text-align: right; }

.wunsch { display: grid; gap: 40px; align-content: start; }
legend, .feld > span { display: block; font-size: 15px; opacity: 0.72; margin-bottom: 8px; padding: 0; }
.wahl { display: flex; flex-wrap: wrap; gap: 8px; }
.wahl label { position: relative; cursor: pointer; }
.wahl input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wahl span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--creme) 40%, transparent); border-radius: 999px;
  transition: background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out;
}
.wahl label:hover span { border-color: var(--creme); }
.wahl input:checked + span { background: var(--creme); border-color: var(--creme); color: var(--schoko); }
.wahl input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }

.felder { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; align-items: end; }
.feld.breit { grid-column: 1 / -1; }
.feld input {
  width: 100%; min-height: 48px; padding: 8px 0;
  background: none; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--creme) 50%, transparent); border-radius: 0;
  color: var(--creme); color-scheme: dark; font-size: 18px;
  transition: border-color 150ms ease-out;
}
.feld input::placeholder { color: color-mix(in srgb, var(--creme) 50%, transparent); }
.feld input:focus { outline: 0; border-bottom-color: var(--gold); }
#name2 { font-family: var(--schrift); font-size: 32px; line-height: 1; color: var(--gold); padding-block: 0; }

.karte {
  position: relative; align-self: start;
  background: var(--creme); color: var(--schoko);
  padding: 48px 24px 24px; border-radius: 4px;
  transform: rotate(-1deg);
  box-shadow: 0 24px 40px -24px rgba(25, 21, 19, 0.6);
}
.karte::before {
  content: ""; position: absolute; left: 24px; top: 20px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--rot-tief); box-shadow: 0 0 0 2px var(--gold);
}
.karte-titel { font-size: 15px; opacity: 0.6; }
.karte-text { margin-top: 8px; font-family: var(--serif); font-size: 26px; line-height: 1.25; letter-spacing: -0.01em; min-height: 6.4em; }
.karte-text b { font-family: var(--schrift); font-weight: 400; font-size: 1.4em; line-height: 0.9; color: var(--rot); padding-inline: 0.08em; }
.karte-knoepfe { margin-top: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.karte .knopf { width: 100%; text-align: center; padding-inline: 16px; }
.karte .textlink { text-decoration-color: currentColor; }
.karte-klein { margin-top: 16px; font-size: 14px; line-height: 1.45; opacity: 0.68; }

@media (min-width: 900px) {
  .bestell-raster { grid-template-columns: 1fr 1fr; gap: 64px 104px; }
  .bestell-kopf { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 104px; align-items: end; }
  .bestell-kopf h2 { grid-column: 1 / -1; }
  .bestell-kopf .gross { margin-top: 0; }
  .fakten { margin-top: 0; }
  .karte { position: sticky; top: 40px; padding: 64px 40px 40px; }
  .karte::before { left: 40px; top: 28px; }
  .karte-text { font-size: 32px; }
}

/* Fuss */
.fuss { padding-block: 64px 40px; overflow: hidden; }
.fuss-name { font-family: var(--schrift); font-size: clamp(72px, 19vw, 240px); line-height: 1.1; color: var(--gold); white-space: nowrap; margin-left: -0.04em; }
.fuss-raster { margin-top: 24px; display: grid; gap: 16px; font-size: 16px; }
.fuss-raster a { display: block; padding-block: 8px; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.fuss-raster br { display: none; }
.entwurf { opacity: 0.7; font-size: 14px; }
.entwurf a { display: inline; }
@media (min-width: 900px) {
  .fuss-raster { grid-template-columns: 1fr 1fr 1fr; align-items: end; }
  .entwurf { text-align: right; }
}

/* Bewegung beim Laden */
@media (prefers-reduced-motion: no-preference) {
  .zeile { animation: steig 1100ms var(--expo) both; }
  .maske-name .zeile { animation-delay: 90ms; }
  .hinweis, .lead, .einstieg-knopf { animation: blende 900ms ease-out 450ms both; }
  .einstieg-foto { animation: blende 1400ms ease-out both; }
  .einstieg-foto img { animation: zoom 2000ms var(--expo) both; }
}
@keyframes steig { from { transform: translateY(115%); } to { transform: none; } }
@keyframes blende { from { opacity: 0; } }
@keyframes zoom { from { scale: 1.08; } to { scale: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bild img { transition: none; }
}
