/* Hebamme weltweit – Entwurf C: hell, weich, Schwarzweiß mit Aquarell-Türkis. Nah an der alten Seite, nur aufgeräumt. */

@font-face { font-family: "Jost"; src: url("../fonts/jost.woff2") format("woff2"); font-weight: 300 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }

:root {
  --bg: #f7f5f2;
  --paper: #ffffff;
  --mist: #ebe8e3;
  --ink: #2b2f30;
  --muted: #5b6262;
  --aqua: #dff2ed;
  --aqua-2: #9fdccf;
  --teal: #1d756d;
  --teal-hover: #155b55;

  --step-small: 0.9375rem;
  --step-body: clamp(1rem, 0.96rem + 0.15vw, 1.0625rem);
  --step-lead: clamp(1.125rem, 1rem + 0.35vw, 1.3125rem);
  --step-head: clamp(1.75rem, 1.3rem + 1vw, 2.375rem);
  --step-hero: clamp(2.25rem, 1.4rem + 2.4vw, 3.5rem);

  --pad: clamp(24px, 4.4vw, 72px);
  --gap: clamp(96px, 10vw, 150px);
  --r: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Jost", "Futura", "Avenir Next", system-ui, sans-serif; font-weight: 300; font-size: var(--step-body); line-height: 1.6; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
h1, h2, h3 { font-weight: 300; line-height: 1.15; letter-spacing: 0.005em; text-wrap: balance; }
strong { font-weight: 500; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
::selection { background: var(--aqua-2); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
[id] { scroll-margin-top: 24px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 50; background: var(--paper); padding: 12px 16px; }
.skip:focus { top: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; background: var(--teal); color: #fff; border: 0; border-radius: 999px; font: inherit; font-weight: 400; font-size: var(--step-small); letter-spacing: 0.02em; text-decoration: none; cursor: pointer; transition: background-color 180ms ease, transform 140ms var(--ease); }
.btn:hover { background: var(--teal-hover); }
.btn:active { transform: scale(0.97); }
.tlink { font-size: var(--step-small); font-weight: 400; color: var(--teal); }

/* Die geteilte Bühne */
.split { display: grid; grid-template-columns: 46fr 54fr; }
.stage { position: sticky; top: 0; height: 100svh; padding: 16px 0 16px 16px; }
.stage img { position: absolute; inset: 16px 0 16px 16px; width: calc(100% - 16px); height: calc(100% - 32px); object-fit: cover; border-radius: var(--r); opacity: 0; transition: opacity 1.4s ease; }
.stage img.is-on { opacity: 1; }
.col { min-width: 0; }
.m-pic { display: none; }

.top { position: fixed; top: 0; right: 0; width: 54%; z-index: 20; display: flex; justify-content: flex-end; padding: 20px var(--pad); background: var(--bg); transition: transform 400ms var(--ease); }
.top.is-away { transform: translateY(-110%); }
.main1, .main2 { padding-top: 70px; }
.top nav { display: flex; gap: 26px; flex-wrap: wrap; justify-content: flex-end; }
.top a { font-size: var(--step-small); font-weight: 400; text-decoration: none; color: var(--muted); transition: color 180ms ease; }
.top a:hover { color: var(--ink); }
.top .top__cta { color: var(--teal); }

.col section, .foot { padding: 0 var(--pad); max-width: calc(48ch + 2 * var(--pad)); margin-inline: auto; }
.col section + section { margin-top: var(--gap); }
.split--2 .col { padding-top: var(--gap); }

/* Start */
.hero { min-height: calc(100svh - 70px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: 24px 64px !important; }
.hero__logo { width: 170px; height: auto; margin-bottom: 36px; }
.hero__h { font-size: var(--step-hero); text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.1; }
.hero__lead { margin-top: 22px; font-size: var(--step-lead); line-height: 1.55; max-width: 34ch; }
.hero .btn { margin-top: 32px; }
.hero__by { margin-top: 40px; display: flex; align-items: center; gap: 12px; font-size: var(--step-small); color: var(--muted); }
.hero__by img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

/* Wünsche */
.wish h2, .route h2, .pkgs h2, .notes h2, .write h2 { font-size: var(--step-head); }
.wish__list { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 14px; font-size: var(--step-lead); line-height: 1.45; }
.wish__list li { position: relative; padding-left: 30px; }
.wish__list li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 14px; height: 14px; border-radius: 50%; background: var(--aqua-2); }
.wish__end { margin-top: 28px; }

/* Brief */
.letter__face { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.letter__body { margin-top: 24px; display: grid; gap: 1em; font-size: var(--step-lead); line-height: 1.6; }
.letter__body p:first-child { font-style: italic; }
mark { background: var(--aqua); color: inherit; padding: 0 0.15em; border-radius: 3px; }
.letter__sign { margin-top: 28px; font-size: 1.5rem; font-style: italic; }
.letter__sign span { display: block; font-style: normal; font-size: var(--step-small); color: var(--muted); margin-top: 2px; }
.letter__film { margin-top: 48px; }
.letter__film video { width: 100%; aspect-ratio: 1280 / 548; border-radius: var(--r); background: #000; }
.letter__film figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }

/* Weg als Zettel */
.route__intro { margin-top: 16px; }
.slip { margin-top: 32px; background: var(--paper); padding: 28px 28px 44px; font-variant-numeric: tabular-nums;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), 97.5% 100%, 95% calc(100% - 10px), 92.5% 100%, 90% calc(100% - 10px), 87.5% 100%, 85% calc(100% - 10px), 82.5% 100%, 80% calc(100% - 10px), 77.5% 100%, 75% calc(100% - 10px), 72.5% 100%, 70% calc(100% - 10px), 67.5% 100%, 65% calc(100% - 10px), 62.5% 100%, 60% calc(100% - 10px), 57.5% 100%, 55% calc(100% - 10px), 52.5% 100%, 50% calc(100% - 10px), 47.5% 100%, 45% calc(100% - 10px), 42.5% 100%, 40% calc(100% - 10px), 37.5% 100%, 35% calc(100% - 10px), 32.5% 100%, 30% calc(100% - 10px), 27.5% 100%, 25% calc(100% - 10px), 22.5% 100%, 20% calc(100% - 10px), 17.5% 100%, 15% calc(100% - 10px), 12.5% 100%, 10% calc(100% - 10px), 7.5% 100%, 5% calc(100% - 10px), 2.5% 100%, 0 calc(100% - 10px)); }
.slip h3 { font-size: var(--step-body); font-weight: 500; margin-top: 26px; }
.slip h3:first-child { margin-top: 0; }
.slip__row { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.slip__row i { flex: 1; min-width: 20px; height: 4px; background-image: radial-gradient(circle, var(--aqua-2) 2px, transparent 2.4px); background-size: 9px 4px; background-repeat: repeat-x; transform: translateY(-3px); } /* taste-skill-ignore: Punktlinie wie auf einem gedruckten Zettel */
.slip__row span:last-child { white-space: nowrap; color: var(--muted); }
.slip__end { margin: 28px -28px 0; padding: 12px 28px; background: var(--teal); color: #fff; font-weight: 400; }

/* Begleitungen */
.plan { margin-top: 28px; background: var(--aqua); border-radius: var(--r); padding: 22px 24px; display: grid; gap: 10px; }
.plan label { font-weight: 400; }
.plan input { font: inherit; padding: 11px 14px; min-height: 48px; border: 2px solid transparent; border-radius: 10px; background: var(--paper); color: var(--ink); width: 100%; max-width: 260px; }
.plan input:focus-visible { outline: none; border-color: var(--teal); }
.pk { margin-top: 12px; background: var(--paper); border-radius: var(--r); padding: 20px 24px; transition: background-color 300ms ease, box-shadow 300ms ease; }
.plan + .pk { margin-top: 20px; }
.pk__top { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 4px; font-size: var(--step-lead); }
.pk__top strong { font-weight: 400; }
.pk__top span { font-size: var(--step-small); color: var(--muted); white-space: nowrap; }
.pk p:last-child { color: var(--ink); }
.pk.is-match { background: var(--aqua); outline: 2px solid var(--teal); outline-offset: -2px; }
.pkgs__note { margin-top: 20px; }

/* Fragen als Lesetext */
.notes__text { margin-top: 24px; display: grid; gap: 18px; }
.notes__text strong { font-weight: 500; }

/* Schreiben */
.write > p { margin-top: 14px; }
#zeit { color: var(--muted); }
.form { margin-top: 24px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--step-small); font-weight: 400; }
.field input, .field textarea { font: inherit; padding: 12px 14px; border: 2px solid transparent; border-radius: 10px; background: var(--paper); color: var(--ink); width: 100%; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--teal); }
.field [aria-invalid="true"] { border-color: #a3321e; }
.form__err { color: #8f2b18; font-size: var(--step-small); }
.form__err:empty { display: none; }
.form .btn { justify-self: start; }

/* Fuß */
.foot { margin-top: var(--gap); padding-bottom: 48px !important; font-size: var(--step-small); color: var(--muted); display: grid; gap: 18px; }
.foot__logo { width: 90px; }
.foot__legal { display: flex; gap: 18px; flex-wrap: wrap; }
.foot__made { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 18px; margin-top: 6px; font-size: 0.875rem; }
.foot__made a { color: var(--teal); }

/* Unterseiten */
.top__home { margin-right: auto; display: none; }
.top__cta-m, .top__menu { display: none; }
.top__home img { width: 56px; height: auto; }
.top:has(.top__home) { justify-content: space-between; align-items: center; }
.top:has(.top__home) .top__home { display: block; }
.top--start .top__home { display: none !important; }
.top--start { justify-content: flex-end !important; }
.top a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--aqua-2); text-decoration-thickness: 2px; }
.page-intro { padding-top: 12svh !important; padding-bottom: 8svh !important; }
.page-h { font-size: var(--step-hero); }
.page-lead { margin-top: 18px; font-size: var(--step-lead); line-height: 1.55; max-width: 36ch; }
.docs h2, .reads h2, .recs h2, .legal h2 { font-size: var(--step-head); }
.docs > p, .reads > p { margin-top: 12px; }
.doc { display: flex; gap: 18px; align-items: center; margin-top: 16px; padding: 18px 22px; background: var(--paper); border-radius: var(--r); text-decoration: none; transition: background-color 200ms ease, transform 200ms var(--ease); }
.docs > p + .doc { margin-top: 28px; }
.doc:hover { background: var(--aqua); transform: translateX(4px); }
.doc__icon { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--aqua); display: grid; place-items: center; transition: background-color 200ms ease; }
.doc:hover .doc__icon { background: var(--paper); }
.doc__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.doc__text { display: grid; font-size: var(--step-small); color: var(--muted); }
.doc__text strong { font-size: var(--step-lead); font-weight: 400; color: var(--ink); }
.read { margin-top: 32px; }
.reads > p + .read { margin-top: 36px; }
.read h3 { font-size: var(--step-lead); font-weight: 400; line-height: 1.35; }
.read h3 a { text-decoration-color: var(--aqua-2); text-decoration-thickness: 2px; text-underline-offset: 5px; transition: color 180ms ease; }
.read h3 a:hover { color: var(--teal); }
.read p { margin-top: 8px; }
.read .read__src { margin-top: 6px; font-size: var(--step-small); color: var(--muted); }
.rec { margin-top: 28px; display: grid; grid-template-columns: 140px 1fr; gap: 22px; align-items: start; }
.recs h2 + .rec { margin-top: 32px; }
.rec img { width: 140px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.rec h3 { font-size: var(--step-lead); font-weight: 400; line-height: 1.3; }
.rec p { margin-top: 6px; }
.rec .tlink { display: inline-block; margin-top: 8px; }
.recs__end { margin-top: 40px; }
.legal { padding-top: 10svh !important; }
.legal h1 { font-size: var(--step-head); }
.legal h2 { font-size: var(--step-lead); font-weight: 400; margin-top: 36px; }
.legal p, .legal ul { margin-top: 10px; }
.legal ul { padding-left: 1.2em; }
.legal__stand { margin-top: 36px !important; color: var(--muted); font-size: var(--step-small); }

/* Der Film: Fenster, das zum Vollbild aufzieht */
.film { position: relative; height: 220svh; margin-top: var(--gap); }
.film__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.film__stage::before { content: ""; position: absolute; inset: 0; background: #141b1c; opacity: var(--dark, 0); pointer-events: none; }
.film__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; background: #1b2324;
  clip-path: inset(var(--t, 30%) var(--s, 28%) var(--b, 22%) var(--s, 28%) round var(--rad, 18px)); }
.film.is-playing .film__v { clip-path: none; object-fit: contain; background: #141b1c; }
.film.is-playing .film__stage::before { opacity: 1; }
.film__copy { position: absolute; left: 0; right: 0; top: 12svh; text-align: center; padding: 0 24px; opacity: var(--fade, 1); }
.film__h { font-size: var(--step-head); }
.film__sub { margin: 10px auto 0; max-width: 46ch; color: var(--muted); }
.film__play { position: absolute; left: 50%; top: 70%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 14px; padding: 10px 26px 10px 10px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--ink); font: inherit; font-weight: 400; cursor: pointer; transition: transform 180ms var(--ease), background-color 180ms ease; }
.film__play:hover { background: #fff; transform: translate(-50%, -50%) scale(1.03); }
.film__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; }
.film__icon svg { width: 22px; height: 22px; fill: currentColor; margin-left: 3px; }
.film.is-playing .film__play, .film.is-playing .film__copy { display: none; }
html:not(.js) .film { height: auto; }
html:not(.js) .film__stage { position: relative; }
html:not(.js) .film__v { clip-path: none; }

/* Bewegung */
html.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }
html.js .hero > *:not(.m-pic) { animation: up 1s var(--ease) both; }
html.js .hero > :nth-child(2) { animation-delay: 0.1s; } html.js .hero > :nth-child(3) { animation-delay: 0.2s; }
html.js .hero > :nth-child(4) { animation-delay: 0.3s; } html.js .hero > :nth-child(5) { animation-delay: 0.4s; }
html.js .hero__logo { animation: bloom 1.6s var(--ease) both !important; }
@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bloom { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }

/* Telefon und Tablet: das Foto steht über jedem Abschnitt */
@media (max-width: 900px) {
  .split { display: block; }
  .stage { display: none; }
  .m-pic { display: block; margin: 0 calc(var(--pad) * -1) 28px; }
  .m-pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; max-height: 56svh; }
  .hero .m-pic { order: -1; margin-top: -24px; margin-bottom: 32px; width: calc(100% + 2 * var(--pad)); }
  .hero { min-height: auto; }
  /* Handy: feste schmale Leiste, Menü klappt auf */
  .top, .top--start { position: fixed; top: 0; left: 0; right: 0; width: auto; height: 60px; padding: 0 var(--pad); padding-top: env(safe-area-inset-top); display: flex; align-items: center; justify-content: flex-start !important; gap: 12px; background: rgba(247, 245, 242, 0.97); }
  .top .top__home, .top--start .top__home { display: block !important; margin-right: auto; }
  .top__home img { width: 42px; }
  .top .top__cta-m { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 999px; background: var(--teal); color: #fff; font-size: var(--step-small); font-weight: 400; text-decoration: none; }
  .top__menu { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; background: none; border: 0; font: inherit; font-size: var(--step-small); font-weight: 400; color: var(--ink); cursor: pointer; }
  .top__burger { position: relative; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: background-color 200ms ease; }
  .top__burger::before, .top__burger::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 250ms var(--ease); }
  .top__burger::before { transform: translateY(-6px); }
  .top__burger::after { transform: translateY(6px); }
  .top.is-open .top__burger { background: transparent; }
  .top.is-open .top__burger::before { transform: rotate(45deg); }
  .top.is-open .top__burger::after { transform: rotate(-45deg); }
  .top nav { position: absolute; top: 100%; left: 0; right: 0; display: grid; justify-content: stretch; justify-items: start; gap: 0; padding: 8px var(--pad) 20px; background: var(--bg); border-radius: 0 0 var(--r) var(--r); box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.25); opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden; transition: opacity 200ms ease, transform 250ms var(--ease), visibility 0s linear 250ms; }
  .top.is-open nav { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity 200ms ease, transform 250ms var(--ease); }
  .top nav a { padding: 12px 0; font-size: var(--step-lead); color: var(--ink); }
  .top nav .top__cta { color: var(--teal); }
  .main1, .main2 { padding-top: 60px; }
  .split--2 .main2 { padding-top: 0; }
  body.admin-bar .top { top: 46px; }
  [id] { scroll-margin-top: 76px; }
  .hero__logo { width: 120px; margin-bottom: 24px; }
  .rec { grid-template-columns: 96px 1fr; gap: 16px; }
  .rec img { width: 96px; }
  .page-intro { padding-top: 0 !important; }
  /* Handy: kein Aufziehen. Eine Filmkarte im Format des Films, Titel darüber, Knopf darauf. */
  .film { height: auto; padding: 0 var(--pad) 56px; }
  .film.is-playing .film__copy { display: block; }
  .film__stage { position: relative; height: auto; overflow: visible; display: flex; flex-direction: column; }
  .film__stage::before { display: none; }
  .film__copy { position: static; order: -1; text-align: left; padding: 0; margin-bottom: 20px; opacity: 1 !important; }
  .film__sub { margin-left: 0; }
  .film__v, .film.is-playing .film__v { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 1280 / 548; clip-path: none !important; border-radius: var(--r); object-fit: cover; object-position: 60% 40%; }
  .film.is-playing .film__v { object-fit: contain; background: #141b1c; }
  .film__play { top: auto; bottom: 14px; left: 14px; transform: none; padding: 6px 18px 6px 6px; gap: 10px; }
  .film__play:hover { transform: scale(1.03); }
  .film__icon { width: 44px; height: 44px; }
  .film__icon svg { width: 18px; height: 18px; }
  .split--2 .col { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  html.js .hero > *, html.js .hero__logo { animation: none !important; }
  .stage img { transition: none; }
  .film { height: auto; }
  .film__stage { position: relative; }
  .film__v { clip-path: none; }
}

/* WordPress */
body.admin-bar .top { top: 32px; }
@media (max-width: 782px) { body.admin-bar .top { top: 0; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__ok { margin-top: 18px; padding: 14px 18px; background: var(--aqua); border-radius: var(--r); }
.form__note { font-size: var(--step-small); color: var(--muted); }
.rec__leer { width: 140px; aspect-ratio: 1; border-radius: 50%; background: var(--aqua); }
.legal__text > * + * { margin-top: 10px; }
.legal__text h2 { font-size: var(--step-lead); font-weight: 400; margin-top: 36px; }
.legal__text ul { padding-left: 1.2em; }
.legal__text a { color: var(--teal); }
@media (max-width: 900px) { .rec__leer { width: 96px; } }

/* Unterlagen */
.docs__liste { margin-top: 28px; }
.docs__liste .doc:first-child { margin-top: 0; }
.docs__hinweis { margin-top: 24px; font-size: var(--step-small); color: var(--muted); max-width: 46ch; }
.docs .btn { margin-top: 24px; }
.prep { margin-top: 48px; padding: 24px; background: var(--aqua); border-radius: var(--r); }
.prep h3 { font-size: var(--step-lead); font-weight: 400; }
.prep > p { margin-top: 6px; }
.prep .doc--klein { margin-top: 12px; padding: 12px 16px; background: var(--paper); }
.prep .doc--klein .doc__icon { width: 40px; height: 40px; }
.prep .doc--klein .doc__text strong { font-size: var(--step-body); }
.prep__seite { margin-top: 14px !important; font-size: var(--step-small); }
.prep__seite a, .slip__row a { color: var(--teal); }
.slip__row a { text-underline-offset: 3px; }
