/* Feldbund: Musterseite Floristik. Farben kommen aus dem Laden: Seidenpapier, Stiel, Eukalyptus, Anemone. */
@font-face { font-family: "Young Serif"; src: url("fonts/young-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --papier: #efe6e4;
  --papier-hell: #f8f3f1;
  --stiel: #20352a;
  --stiel-weich: #4d6558;
  --eukalyptus: #8fa898;
  --anemone: #b8324a;
  --anemone-dunkel: #9c2840;
  --aktion: var(--anemone);
  --aktion-hover: var(--anemone-dunkel);
  --rand: clamp(1rem, 4vw, 3.5rem);
  --abstand: clamp(4.5rem, 11vw, 9rem);
  --ruhig: cubic-bezier(.45, .05, .25, 1);
  --zeit: 1s;
  --schrift-titel: "Young Serif", Georgia, serif;
  --schrift-text: "Figtree", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--papier); color: var(--stiel);
  font: 400 1.0625rem/1.6 var(--schrift-text);
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--anemone); outline-offset: 3px; border-radius: 2px; }
.buehne-dunkel :focus-visible, .geschichte :focus-visible { outline-color: var(--papier); }
h1, h2, h3 { font-family: var(--schrift-titel); font-weight: 400; line-height: 1.1; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 5.4vw, 4rem); }
h3 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.2; }
p { margin: 0; }
.fliesstext { max-width: 58ch; }

/* Muster-Hinweis */
.muster-hinweis {
  background: var(--stiel); color: var(--papier);
  font-size: .75rem; line-height: 1.35; padding: .4rem .5rem; text-align: center;
}

/* Kopf */
.kopf {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .55rem var(--rand);
}
.marke { display: block; text-decoration: none; font-family: var(--schrift-titel); font-size: 1.4rem; line-height: 1.1; }
.marke small { display: block; font: 400 .8125rem/1.3 var(--schrift-text); }
.kopf nav { display: flex; align-items: center; gap: clamp(.25rem, 2vw, 1.5rem); }
.kopf nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .25rem; text-decoration: none; font-size: .9375rem; }
.kopf nav a:hover, .kopf nav a[aria-current] { text-decoration: underline; }
.kopf .nur-breit { display: none; }

/* Anruf */
.anruf {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 52px;
  padding: .7rem 1.5rem; border-radius: 999px; background: var(--aktion); color: #fff;
  font-weight: 600; text-decoration: none; transition: background-color var(--zeit) var(--ruhig);
}
.anruf:hover { background: var(--aktion-hover); }
.anruf svg { width: 1.1em; height: 1.1em; flex: none; }
.anrufleiste {
  position: fixed; inset: auto 0 0 0; z-index: 20; padding: .55rem var(--rand) calc(.55rem + env(safe-area-inset-bottom));
  background: var(--papier-hell); box-shadow: 0 -1px 0 rgb(32 53 42 / .16);
  view-transition-name: anrufleiste;
}
.anrufleiste .anruf { width: 100%; }
body { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }

.anruf-hinweis {
  max-width: 34rem; padding: 1rem 1.2rem; background: var(--stiel); color: var(--papier); border-radius: 12px; font-size: .9375rem;
}
.anruf-hinweis button { display: block; margin-top: .4rem; padding: .35rem 0; background: none; border: 0; color: inherit; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.hat-js .anruf-hinweis {
  position: fixed; left: var(--rand); right: var(--rand); bottom: calc(5.2rem + env(safe-area-inset-bottom)); z-index: 30; margin-inline: auto;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--zeit) var(--ruhig), transform var(--zeit) var(--ruhig), visibility 0s linear var(--zeit);
}
.hat-js .anruf-hinweis.offen { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

/* Erster Bildschirm */
.start { display: grid; }
.start__bild { order: -1; width: 100%; height: 38svh; min-height: 210px; object-fit: cover; object-position: 50% 42%; background: #e9e6e3; }
.start__text { padding: 1.4rem var(--rand) 0; }
.start h1 { font-size: clamp(2.05rem, 9vw, 3.3rem); }
.start__satz { margin-top: .85rem; max-width: 42ch; }
.start__aktion { display: none; }
.start__zeiten { margin-top: .85rem; font-size: .9375rem; color: var(--stiel-weich); }

/* Anlässe */
.abschnitt { padding: var(--abstand) var(--rand) 0; }
.abschnitt > h2 { max-width: 16ch; }
.abschnitt__satz { margin-top: 1rem; max-width: 52ch; }
.anlaesse {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.25rem 1rem; margin-top: 2.5rem;
}
.anlass { display: block; text-decoration: none; }
.anlass img { width: 100%; object-fit: cover; background: #e9e6e3; }
.anlass h3 { margin-top: .85rem; }
.anlass p { margin-top: .25rem; font-size: .9875rem; color: var(--stiel-weich); }
.anlass:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.anlass--hochzeit, .anlass--firma { grid-column: 1 / -1; }
.anlass--hochzeit img { aspect-ratio: 4 / 5; view-transition-name: bild-hochzeit; object-position: 50% 45%; }
.anlass--trauer img { aspect-ratio: 3 / 4; view-transition-name: bild-trauer; object-position: 62% 40%; }
.anlass--geschenk img { aspect-ratio: 3 / 4; object-position: 50% 15%; }
.anlass--firma img { aspect-ratio: 3 / 2; }

/* Scroll-Erzählung: ohne JavaScript stehen Bild und Text einfach untereinander */
.geschichte { margin-top: var(--abstand); background: var(--stiel); color: var(--papier); }
.geschichte__text { padding: 0 var(--rand); }
.geschichte h2 { padding-top: clamp(3rem, 8vw, 6rem); max-width: 12ch; }
.geschichte__satz { margin-top: 1rem; max-width: 40ch; }
.schritte { list-style: none; margin: 0; padding: 0; }
.schritt { padding: 2.5rem 0 1.5rem; }
.schritt figure { margin: 0 calc(var(--rand) * -1) 1.5rem; }
.schritt img, .buehne img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.schritt__nummer { display: block; font-family: var(--schrift-titel); font-size: 1.05rem; color: var(--eukalyptus); }
.schritt h3 { margin-top: .2rem; font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.schritt p { margin-top: .75rem; max-width: 40ch; }
.geschichte__ende { padding: 1rem 0 clamp(3rem, 8vw, 6rem); }

.geschichte.lebt .buehne {
  position: sticky; top: 0; z-index: 2; height: 46svh; overflow: hidden; background: var(--stiel);
}
.geschichte.lebt .buehne figure {
  position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.1s var(--ruhig);
}
.geschichte.lebt .buehne figure.aktiv { opacity: 1; }
.geschichte.lebt .buehne img { transform: scale(1.035); transition: transform 1.8s var(--ruhig); }
.geschichte.lebt .buehne figure.aktiv img { transform: none; }
.geschichte.lebt .schritt { min-height: 66svh; padding: 2.25rem 0 0; opacity: .6; transition: opacity var(--zeit) var(--ruhig); }
.geschichte.lebt .schritt.aktiv { opacity: 1; }

/* Text-Effekt: Überschriften erscheinen Wort für Wort, einmalig */
.wort { display: inline-block; opacity: 0; transform: translateY(.14em); transition: opacity 1s var(--ruhig), transform 1s var(--ruhig); transition-delay: calc(var(--i) * 70ms); }
.da .wort { opacity: 1; transform: none; }

/* Saison */
.saison { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 1rem; margin-top: 2.5rem; }
.saison figure { margin: 0; }
.saison figure:first-child { grid-column: 1 / -1; }
.saison img { width: 100%; object-fit: cover; aspect-ratio: 4 / 5; background: #e9e6e3; }
.saison figure:first-child img { aspect-ratio: 4 / 3; }
.saison figcaption { margin-top: .6rem; }
.saison figcaption b { display: block; font-family: var(--schrift-titel); font-weight: 400; font-size: 1.25rem; line-height: 1.25; }
.saison figcaption span { font-size: .9375rem; color: var(--stiel-weich); }

/* Laden */
.laden { display: grid; gap: 2.5rem; margin-top: 2.5rem; }
.rahmen {
  display: grid; place-content: center; aspect-ratio: 4 / 3; padding: 1.5rem; text-align: center;
  border: 1.5px dashed var(--stiel-weich); background: var(--papier-hell);
}
.rahmen strong { font-family: var(--schrift-titel); font-weight: 400; font-size: 1.5rem; line-height: 1.2; }
.rahmen span { display: block; margin-top: .5rem; max-width: 34ch; font-size: .9375rem; color: var(--stiel-weich); }
.angaben { margin: 0; }
.angaben > div { padding: .95rem 0; border-top: 1px solid rgb(32 53 42 / .22); }
.angaben dt { font-weight: 600; }
.angaben dd { margin: .1rem 0 0; }
.randnotiz { margin-top: 1rem; font-size: .9375rem; color: var(--stiel-weich); max-width: 56ch; }

/* Fragen */
.fragen { margin-top: 2.25rem; max-width: 50rem; }
.fragen details { border-top: 1px solid rgb(32 53 42 / .22); }
.fragen details:last-child { border-bottom: 1px solid rgb(32 53 42 / .22); }
.fragen summary {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; min-height: 52px; padding: .85rem 0;
  list-style: none; cursor: pointer; font-weight: 600; font-size: 1.0625rem; line-height: 1.35;
}
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; font-family: var(--schrift-titel); font-size: 1.35rem; line-height: 1; transition: transform var(--zeit) var(--ruhig); }
.fragen details[open] summary::after { transform: rotate(45deg); }
.fragen p { padding: 0 2rem 1.15rem 0; max-width: 62ch; }
.fragen details::details-content {
  block-size: 0; overflow: clip;
  transition: block-size var(--zeit) var(--ruhig), content-visibility var(--zeit) allow-discrete;
}
.fragen details[open]::details-content { block-size: auto; block-size: calc-size(auto, size); }

/* Kontakt und Fuß */
.kontakt { margin-top: var(--abstand); padding: clamp(3rem, 8vw, 6rem) var(--rand); background: var(--papier-hell); }
.kontakt h2 { max-width: 14ch; }
.kontakt__zeile { margin-top: 1.5rem; }
.kontakt address { font-style: normal; margin-top: 1.5rem; }
.kontakt .anruf { margin-top: 1.5rem; }
.fuss { padding: 2rem var(--rand) 2.5rem; font-size: .875rem; color: var(--stiel-weich); }
.fuss p + p { margin-top: .4rem; }

/* Unterseiten */
.seite-kopf { display: grid; }
.seite-kopf__bild { order: -1; width: 100%; height: 44svh; min-height: 230px; object-fit: cover; }
.seite-hochzeit .seite-kopf__bild { view-transition-name: bild-hochzeit; object-position: 50% 42%; }
.seite-trauer .seite-kopf__bild { view-transition-name: bild-trauer; object-position: 62% 36%; }
.seite-kopf__text { padding: 1.4rem var(--rand) 0; }
.seite-kopf h1 { font-size: clamp(2.05rem, 7.4vw, 4rem); }
.seite-kopf p { margin-top: .85rem; max-width: 46ch; }
.ablauf { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; gap: 1.75rem; counter-reset: ablauf; }
.ablauf li { counter-increment: ablauf; }
.ablauf li::before { content: counter(ablauf); display: block; font-family: var(--schrift-titel); font-size: 1.05rem; color: var(--stiel-weich); }
.ablauf p { margin-top: .35rem; max-width: 44ch; }
.teile { display: grid; gap: 2.25rem; margin-top: 2.25rem; }
.teile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.preise { margin: 0; }
.preise > div { display: flex; justify-content: space-between; gap: 1.5rem; padding: .85rem 0; border-top: 1px solid rgb(32 53 42 / .22); }
.preise dd { margin: 0; white-space: nowrap; }

/* Trauer: alles eine Stufe stiller, kein Rot, keine Bewegung am Text */
.seite-trauer { --papier: #e9e9e4; --papier-hell: #f3f3ef; --aktion: var(--stiel); --aktion-hover: #2d4739; --abstand: clamp(4rem, 9vw, 7rem); }
.seite-trauer h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }

/* Ab Tablet: Bild und Text nebeneinander */
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .anrufleiste { display: none; }
  .hat-js .anruf-hinweis { bottom: 1.5rem; }
  .kopf { padding-block: .9rem; }
  .kopf .nur-breit { display: inline-flex; }
  .marke { font-size: 1.6rem; }
  .kopf__telefon { font-weight: 600; }

  .start, .seite-kopf { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-left: var(--rand); }
  .start__bild, .seite-kopf__bild { order: 0; height: min(84svh, 860px); }
  .start__text, .seite-kopf__text { padding: 0 0 2rem; }
  .start h1 { font-size: clamp(2.8rem, 5vw, 4.9rem); }
  .start__satz { font-size: 1.1875rem; }
  .start__aktion { display: block; margin-top: 1.75rem; }

  .anlaesse { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3.5rem clamp(1rem, 2vw, 1.75rem); }
  /* Zwei bündige Reihen: gleiche Bildhöhe, breit und schmal wechseln sich ab */
  .anlass--hochzeit, .anlass--firma { grid-column: span 8; }
  .anlass--trauer, .anlass--geschenk { grid-column: span 4; }
  .anlass img { height: clamp(380px, 39vw, 620px); aspect-ratio: auto; }
  .anlass--hochzeit img { object-position: 50% 38%; }

  .geschichte__text { padding: 0 clamp(2rem, 4vw, 4rem) 0 var(--rand); }
  .schritt { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
  .schritt figure { margin: 0; aspect-ratio: 4 / 5; }
  .geschichte.lebt { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .geschichte.lebt .buehne { order: 2; height: 100svh; }
  .geschichte.lebt .schritt { display: flex; flex-direction: column; justify-content: center; min-height: 92svh; padding: 0; }

  .saison { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); align-items: end; }
  .saison figure:first-child { grid-column: 1 / span 6; }
  .saison figure:nth-child(2) { grid-column: 7 / span 3; }
  .saison figure:nth-child(3) { grid-column: 10 / span 3; }

  .laden { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
  .rahmen { aspect-ratio: 16 / 9; }
  .fragen summary { font-size: 1.125rem; }
  .ablauf { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
  .teile { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
}

/* Seitenübergang */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: 1s; animation-timing-function: var(--ruhig); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 1s; animation-timing-function: var(--ruhig); }
::view-transition-old(bild-hochzeit), ::view-transition-new(bild-hochzeit),
::view-transition-old(bild-trauer), ::view-transition-new(bild-trauer) { height: 100%; width: 100%; object-fit: cover; overflow: clip; }

/* Bewegung reduzieren: alles sofort da */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after, ::details-content { transition: none !important; animation: none !important; }
  .wort { opacity: 1; transform: none; }
}
