/* Blommor & Bröd — Föhr
   Papier, Schreibmaschine, Tusche. */

@font-face {
  font-family: "Bebas Neue";
  src: url("../assets/fonts/bebas-neue-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("../assets/fonts/courier-prime-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("../assets/fonts/courier-prime-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("../assets/fonts/courier-prime-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

@property --lean { syntax: "<angle>"; inherits: true; initial-value: 0deg; }

:root {
  --rose: #ce989b;
  --rose-tief: #b98084;
  --sonne: #fccb66;
  --tusche: #1e1a18;
  --papier: #f7ede3;
  --rand: clamp(7px, 1.3vw, 18px);          /* Abstand des Rahmens zum Fensterrand */
  --seite: clamp(1.4rem, 6vw, 6.5rem);      /* Seitenrand des Inhalts */
  --display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --mono: "Courier Prime", "Courier New", Courier, monospace;
  --bg: var(--rose);
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--rose);
  color: var(--tusche);
  font: 400 clamp(0.95rem, 0.88rem + 0.3vw, 1.12rem) / 1.7 var(--mono);
  overflow-x: hidden;
}

/* Papierkorn */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 40;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .22 0 0 0 0 .2 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--tusche); color: var(--sonne); }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; }
a:hover { background: var(--sonne); text-decoration-color: transparent; }
:focus-visible { outline: 2px dashed var(--tusche); outline-offset: 3px; }

h1, h2, h3, p, ul, figure, address { margin: 0; padding: 0; }
address { font-style: normal; }
ul { list-style: none; }

.sprung {
  position: fixed; left: 50%; top: 0; z-index: 90;
  transform: translate(-50%, -120%);
  background: var(--tusche); color: var(--papier);
  padding: 0.5em 1em; text-decoration: none;
}
.sprung:focus { transform: translate(-50%, var(--rand)); background: var(--tusche); }

/* ───────── Rahmen & Ecken-Navigation ───────── */

.rahmen {
  position: fixed; inset: var(--rand); z-index: 60;
  border: 1.5px solid var(--tusche);
  pointer-events: none;
  view-transition-name: rahmen;
}

.ecken { position: relative; z-index: 70; view-transition-name: ecken; }
.ecken a {
  position: fixed; z-index: 70;
  font: 400 clamp(1rem, 0.9rem + 0.5vw, 1.35rem) / 1 var(--display);
  letter-spacing: 0.07em;
  text-decoration: none;
  white-space: nowrap;
  color: var(--papier);
  background: var(--tusche);
  padding: 0.62em 0.9em 0.5em;
  transition: padding 0.25s ease, background-color 0.2s, color 0.2s;
}
.ecken a:nth-child(1) { top: var(--rand); left: var(--rand); }
.ecken a:nth-child(2) { top: var(--rand); right: var(--rand); }
.ecken a:nth-child(3) { bottom: calc(var(--rand) + env(safe-area-inset-bottom, 0px)); left: var(--rand); }
.ecken a:nth-child(4) { bottom: calc(var(--rand) + env(safe-area-inset-bottom, 0px)); right: var(--rand); }
.ecken a:hover { background: var(--sonne); color: var(--tusche); padding-inline: 1.3em; }
.ecken a[aria-current="page"] { background: var(--sonne); color: var(--tusche); }

/* ───────── Tuschezeichnungen (generiert) ───────── */

.stiel-svg { overflow: visible; position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }
.stiel-svg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.stiel-svg .h { stroke: var(--bg); stroke-width: 5.5; }
.stiel-svg .l { stroke: var(--tusche); stroke-width: 1.7; }
.stiel-svg .f { fill: var(--bg); stroke: none; opacity: 0; transition: opacity 0.4s linear calc(var(--t) * 1.7s + 0.2s); }
.stiel-svg .h, .stiel-svg .l {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.95s cubic-bezier(0.3, 0.6, 0.3, 1) calc(var(--t) * 1.7s);
}
.stiel-svg .spross { transition-duration: 1.9s; transition-delay: 0s; }
.gewachsen .stiel-svg .h, .gewachsen .stiel-svg .l { stroke-dashoffset: 0; }
.gewachsen .stiel-svg .f { opacity: 1; }

.wiegt { transform-origin: 50% 100%; animation: wiegen var(--takt, 5s) ease-in-out var(--versatz, 0s) infinite alternate; }
@keyframes wiegen {
  from { transform: rotate(calc(var(--lean) * var(--gewicht, 1) - 1.4deg)); }
  to   { transform: rotate(calc(var(--lean) * var(--gewicht, 1) + 1.4deg)); }
}

.kontur path { fill: none; stroke: var(--tusche); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.fleck path { fill: var(--sonne); }

/* ───────── Start ───────── */

.buehne {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-content: center;
  padding: 5.5rem var(--seite) 24svh;
  overflow: hidden;
  cursor: crosshair;
  transition: --lean 1.1s ease-out;
}

.claim {
  position: relative; z-index: 2;
  font: 400 min(16.5vw, 26svh) / 0.9 var(--display);
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.claim span { display: block; width: max-content; }
.claim span:nth-child(2) { margin-left: 11vw; }
.claim span:nth-child(3) { margin-left: 27vw; }

.ort {
  font-weight: 700; letter-spacing: 0.34em; text-transform: uppercase;
  font-size: 0.82em;
}
.buehne .ort {
  position: absolute; z-index: 3;
  left: calc(var(--rand) + 1.1rem); top: 50%;
  writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg);
}

.siegel {
  position: absolute; z-index: 4;
  right: 7vw; top: 8svh;
  width: min(31vw, 48svh);
  aspect-ratio: 1;
  rotate: 7deg;
}
.siegel img { position: relative; width: 100%; filter: drop-shadow(0 1px 0 rgba(30, 26, 24, 0.25)); }
.siegel .kontur { position: absolute; inset: -9%; width: 118%; height: 118%; max-width: none; overflow: visible; }

.wiese { position: absolute; z-index: 3; inset: 0; pointer-events: none; }
.halm { position: absolute; bottom: 0; }

/* ───────── Kopf der Unterseiten ───────── */

.kopf {
  display: grid; justify-items: center; gap: 0.9rem;
  padding: clamp(4.6rem, 9vw, 6.5rem) var(--seite) 0;
  text-align: center;
}
.kopf img { width: clamp(104px, 13vw, 164px); }
.kopf .spk { width: clamp(170px, 20vw, 260px); }
.kopf a:hover { background: none; }
.kopf a img { transition: rotate 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); }
.kopf a:hover img { rotate: -8deg; }

.blatt { padding: clamp(2.5rem, 6vw, 5rem) var(--seite) clamp(5rem, 12vw, 10rem); }

.titel {
  font: 400 clamp(4.2rem, 17vw, 17rem) / 0.83 var(--display);
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.titel span { display: block; }

.text p + p { margin-top: 1.5em; }
.text p { max-width: 58ch; hyphens: auto; }
.auftakt { font-size: 1.22em; line-height: 1.55; }

/* ───────── Café ───────── */

.cafe { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(2rem, 6vw, 6rem); }
.cafe .titel { grid-column: 1 / -1; position: relative; z-index: 2; font-size: clamp(4rem, 15.5vw, 15.5rem); }
.cafe .titel span:nth-child(2) { margin-left: 9vw; }
.cafe .titel span:nth-child(3) { margin-left: 3vw; font-size: 0.47em; line-height: 1; margin-top: 0.12em; }
.cafe .text { padding-top: clamp(3rem, 7vw, 6rem); position: relative; }
.cafe .fenster {
  position: sticky; top: 4.5rem; align-self: start;
  margin-top: clamp(-11rem, -9vw, -3rem);
  z-index: 1;
}
.fenster img { position: relative; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; rotate: 1.6deg; }
.fenster .fleck { position: absolute; inset: -14% -16% -10% -18%; width: 134%; height: 124%; max-width: none; overflow: visible; }
.fenster .kontur { position: absolute; inset: -20% -22% -16% -24%; width: 146%; height: 136%; max-width: none; overflow: visible; }

.aehren { position: relative; height: clamp(150px, 20vw, 240px); width: min(100%, 420px); margin: 2.6rem 0 1.8rem; border-bottom: 1.5px solid var(--tusche); }
.aehren .halm { bottom: 0; }

/* ───────── Blumen ───────── */

.blumen .titel span:nth-child(2) { text-align: right; }
.herbar { margin-top: clamp(3rem, 8vw, 7rem); display: grid; row-gap: clamp(2.5rem, 7vw, 6rem); }
.bogen { display: grid; grid-template-columns: clamp(64px, 16vw, 230px) minmax(0, 58ch); column-gap: clamp(1.2rem, 5vw, 5rem); align-items: end; }
.bogen .stiel { position: relative; height: clamp(210px, 30vw, 430px); border-bottom: 1.5px solid var(--tusche); }
.bogen p { hyphens: auto; padding-bottom: 0.2em; }
@media (min-width: 900px) {
  .bogen:nth-child(even) { justify-content: end; grid-template-columns: minmax(0, 58ch) clamp(64px, 16vw, 230px); }
  .bogen:nth-child(even) .stiel { order: 2; }
  .bogen:nth-child(3) { margin-left: 9vw; }
  .bogen:nth-child(4) { margin-right: 7vw; }
}

/* ───────── Heiraten ───────── */

.kranz { position: relative; width: min(100%, 84svh, 760px); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.kranz svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: kreisen 240s linear infinite; }
@keyframes kreisen { to { transform: rotate(360deg); } }
.kranz .titel { position: relative; text-align: center; font-size: clamp(3.4rem, min(13.5vw, 13.5svh), 8.4rem); }

.heiraten .text { max-width: 1240px; margin: clamp(2rem, 6vw, 5rem) auto 0; display: grid; row-gap: clamp(3rem, 8vw, 7rem); }
.heiraten .text p { max-width: 52ch; }
.paar { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.paar.zwei { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
.paar.zwei > div { padding-top: clamp(2rem, 7vw, 7rem); }
.abzug { position: relative; z-index: 1; background: var(--papier); padding: clamp(6px, 0.9vw, 12px); box-shadow: 0 1px 0 rgba(30, 26, 24, 0.35), 0 14px 30px -18px rgba(30, 26, 24, 0.6); }
.abzug img { width: 100%; }
.abzug.a { rotate: 2.2deg; margin-right: -2vw; }
.abzug.b { rotate: -2.6deg; margin-left: -2vw; }
.abzug.c { rotate: 1.6deg; width: 78%; margin: clamp(2.5rem, 5vw, 4.5rem) 0 0 auto; }
.heiraten .einzeln { margin-left: auto; margin-right: 8%; }

.schluss {
  clear: both;
  font: 400 clamp(2.6rem, 8.6vw, 8.6rem) / 0.9 var(--display);
  text-transform: uppercase;
  max-width: 14em;
  margin: clamp(3rem, 8vw, 7rem) auto 0;
  padding-top: clamp(2rem, 5vw, 4rem);
  text-wrap: balance;
}
.horizont { width: 100%; height: 44px; margin-top: clamp(1.5rem, 4vw, 3rem); overflow: visible; }
.horizont path { fill: none; stroke: var(--tusche); stroke-width: 1.6; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* ───────── Rechtliches ───────── */

.akte .titel { font-size: clamp(3rem, 12vw, 10rem); overflow-wrap: anywhere; hyphens: auto; }
.akte .text { margin-top: clamp(2rem, 5vw, 4rem); max-width: 72ch; overflow-wrap: anywhere; }
.akte .text h2 { font: 400 clamp(1.7rem, 3.4vw, 2.6rem) / 1 var(--display); letter-spacing: 0.03em; margin: 2.2em 0 0.5em; }
.akte .text p, .akte .text ul { max-width: none; margin-top: 1em; }
.akte .text ul { list-style: "– "; padding-left: 1.4em; }
.akte .text li + li { margin-top: 0.4em; }

/* ───────── Besuch uns ───────── */

.besuch { position: relative; z-index: 2; --bg: var(--sonne); }
.besuch .huegel { width: 100%; height: clamp(54px, 9vw, 150px); margin-bottom: -1px; }
.besuch .huegel path { fill: var(--sonne); }
.start .besuch { margin-top: calc(clamp(54px, 9vw, 150px) * -0.8); }

.besuch-innen { background: var(--sonne); padding: clamp(1rem, 3vw, 3rem) var(--seite) clamp(5.5rem, 9vw, 7rem); }
.besuch h2 { font: 400 clamp(4.6rem, 15vw, 15rem) / 0.82 var(--display); text-transform: uppercase; }
.besuch h2 span { display: block; text-align: right; }

.besuch-raster {
  margin-top: clamp(2.5rem, 6vw, 5rem);
  display: grid; gap: clamp(2.2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 4fr);
  align-items: start;
}
.besuch-raster > div:nth-child(2) { margin-top: clamp(0rem, 6vw, 6rem); }
.besuch-raster > div:nth-child(3) { margin-top: clamp(0rem, 2vw, 2rem); }
.besuch h3 { font: 700 0.82em / 1.2 var(--mono); letter-spacing: 0.34em; text-transform: uppercase; margin-bottom: 1.1rem; }
.besuch h3::after { content: ""; display: block; width: 2.6em; border-bottom: 1.5px solid var(--tusche); margin-top: 0.7rem; }
.besuch p + p { margin-top: 0.5em; }
.besuch .name { font: 400 clamp(1.7rem, 2.9vw, 2.7rem) / 0.98 var(--display); letter-spacing: 0.02em; text-wrap: balance; }
.besuch strong { font-weight: 700; background: linear-gradient(transparent 58%, var(--rose) 58%, var(--rose) 92%, transparent 92%); padding: 0 0.12em; }
.besuch a:hover { background: var(--tusche); color: var(--sonne); }
.fernruf { display: block; width: max-content; font: 400 clamp(2.6rem, 5vw, 4.6rem) / 1 var(--display); letter-spacing: 0.02em; text-decoration: none; margin: 0.05em 0 0.15em; }

.stempel {
  display: inline-block;
  font: 400 clamp(2.4rem, 3.7vw, 3.7rem) / 1 var(--display);
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.24em 0.42em 0.14em;
  border: 3px solid var(--tusche);
  outline: 1.5px solid var(--tusche); outline-offset: 4px;
  rotate: -5deg;
  margin: 0.9rem 0 1.6rem 0.4rem;
  filter: url(#rau);
  opacity: 0.9;
}

.fuss { margin-top: clamp(3.5rem, 8vw, 7rem); padding-top: 1.6rem; border-top: 1.5px solid var(--tusche); display: grid; gap: 1.4rem; grid-template-columns: 1fr auto; align-items: end; }
.fuss ul { display: flex; flex-wrap: wrap; gap: 0.3em 1.6em; }
.fuss .marke { text-align: right; font-size: 0.86em; letter-spacing: 0.12em; line-height: 1.5; }

/* ───────── Schmal ───────── */

@media (max-width: 760px) {
  .buehne { align-content: end; padding: 4.6rem var(--seite) 30svh; }
  .claim { font-size: min(23.5vw, 17svh); }
  .claim span:nth-child(2) { margin-left: 22vw; }
  .claim span:nth-child(3) { margin-left: 0; }
  .buehne .ort { position: static; writing-mode: initial; transform: none; margin-bottom: 1.1rem; }
  .siegel { width: min(46vw, 30svh); right: 8vw; top: 4.4rem; }

  .cafe { display: flex; flex-direction: column; }
  .cafe .fenster { order: 2; }
  .cafe .text { order: 3; }
  .cafe .titel { font-size: 21.5vw; }
  .cafe .titel span:nth-child(2) { margin-left: 0; text-align: right; }
  .cafe .titel span:nth-child(3) { margin-left: 0; font-size: 0.5em; }
  .cafe .fenster { position: relative; top: 0; margin: 3.2rem 9vw 0.5rem 5vw; }
  .cafe .text { padding-top: 3.4rem; }

  .blumen .titel { font-size: 24vw; }
  .bogen { align-items: start; }
  .bogen .stiel { height: 230px; }

  .paar, .paar.zwei { grid-template-columns: 1fr; row-gap: 2.6rem; }
  .paar.zwei > div { padding-top: 0; }
  .abzug.a { margin: 0 -0.4rem 0 1.2rem; }
  .abzug.b { margin: 0 1.6rem 0 -0.4rem; }
  .abzug.c { width: 82%; }
  .heiraten .einzeln { margin-right: 0; }

  .besuch-raster { grid-template-columns: 1fr; }
  .besuch-raster > div:nth-child(n) { margin-top: 0; }
  .fuss { grid-template-columns: 1fr; }
  .fuss .marke { text-align: left; }
}

@media (max-width: 760px) and (max-height: 620px) {
  .siegel { width: 26svh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wiegt, .kranz svg { animation: none; }
  .stiel-svg .h, .stiel-svg .l, .stiel-svg .f { transition: none; }
  @view-transition { navigation: none; }
}

/* ───────── Einwilligung (Cookie-Zettel) ───────── */

.zettel {
  position: fixed; z-index: 80;
  left: calc(var(--rand) + 1.2rem);
  bottom: calc(var(--rand) + 4.2rem + env(safe-area-inset-bottom, 0px));
  width: min(27rem, calc(100vw - 2 * var(--rand) - 2.4rem));
  background: var(--papier);
  border: 1.5px solid var(--tusche);
  padding: 1.3rem 1.4rem 1.4rem;
  font-size: 0.86rem; line-height: 1.6;
  box-shadow: 0 1px 0 rgba(30, 26, 24, 0.35), 0 18px 34px -18px rgba(30, 26, 24, 0.7);
  rotate: -1.4deg;
  translate: 0 1.5rem; opacity: 0;
  transition: translate 0.45s cubic-bezier(0.3, 1.4, 0.5, 1), opacity 0.3s;
}
.zettel.da { translate: 0 0; opacity: 1; }
/* Klebestreifen */
.zettel::before {
  content: ""; position: absolute; top: -0.75rem; left: 50%;
  width: 5.5rem; height: 1.5rem; translate: -50% 0; rotate: 2.5deg;
  background: var(--sonne); opacity: 0.92;
  box-shadow: 0 1px 0 rgba(30, 26, 24, 0.25);
}
.zettel h2 { font: 400 2.1rem / 1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.5rem; }
.zettel-wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-top: 1.1rem; }
.zettel button {
  font: 400 1.15rem / 1 var(--display); letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--papier); background: var(--tusche);
  border: 1.5px solid var(--tusche); border-radius: 0;
  padding: 0.75em 0.6em 0.62em; cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.zettel button:hover { background: var(--sonne); color: var(--tusche); }

button[data-cookies] {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.22em;
}
.besuch button[data-cookies]:hover { background: var(--tusche); color: var(--sonne); }
.akte button[data-cookies]:hover { background: var(--sonne); text-decoration-color: transparent; }

.insta { display: grid; justify-items: start; gap: 0.1em; margin-top: 0.3rem; }
.insta a { font: 400 clamp(1.9rem, 2.9vw, 2.8rem) / 1.05 var(--display); letter-spacing: 0.02em; text-decoration: none; overflow-wrap: anywhere; }
.insta span { font-size: 1.1em; line-height: 1; }

@media (max-width: 760px) {
  .zettel { left: 50%; margin-left: calc(min(27rem, 100vw - 2 * var(--rand) - 2.4rem) / -2); }
}
@media (prefers-reduced-motion: reduce) { .zettel { transition: none; } }
