/* TeX Gyre Heros (Helvetica-Nachbau) und Termes (Times-Nachbau) – GUST Font License, assets/fonts/GUST-FONT-LICENSE.txt */
@font-face { font-family: "TeX Gyre Heros"; src: url("assets/fonts/texgyreheros-regular.otf") format("opentype"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "TeX Gyre Heros"; src: url("assets/fonts/texgyreheros-bold.otf") format("opentype"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "TeX Gyre Termes"; src: url("assets/fonts/texgyretermes-regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }

/* Farben aus dem Foto: heller Himmel, dunkler Mantel, warmes Holz */
:root {
  --bg: #f3f0e9;
  --sky: #eceaeb;
  --paper: #eeeae3;          /* Baumwollkarton, warmes Hellgrau */
  --paper-hi: 255 253 249;   /* Lichtkante der Prägung */
  --ink: #1a1f2b;
  --ink-soft: #5d6372;
  --press: #1f2b45;          /* Druckfarbe auf der Karte, auch Farbschnitt der Kante */
  --sand: #a8824f;
  --sand-light: #ecd6b3;
  --night: 15 18 26;

  --font: "TeX Gyre Heros", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "TeX Gyre Termes", "Times New Roman", Times, serif;
  --spring: cubic-bezier(.2, .9, .25, 1.15);

  /* Baumwollpapier (Letterpress): sanfte Faserwölbungen + feines Korn + leichte Wolkigkeit */
  --relief: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='760' height='492'%3E%3Cfilter id='p' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.13' numOctaves='5' seed='11'/%3E%3CfeDiffuseLighting lighting-color='%23fff' surfaceScale='.75' diffuseConstant='1.02'%3E%3CfeDistantLight azimuth='235' elevation='68'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .39 0 0 0 0 .34 .9 0 0 0 -.33'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --clouds: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='760' height='492'%3E%3Cfilter id='c' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.02' numOctaves='3' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .46 0 0 0 0 .4 .6 0 0 0 -.22'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.icon {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; border-radius: 8px; }

/* ---------- Szene: Foto blendet aus, Karte kommt von unten ---------- */
.scene { position: relative; height: 240vh; height: 240svh; }
.stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}
/* Studio-Hintergrund wie bei einem Produkt-Rendering */
.ambient {
  position: absolute; inset: 0; z-index: 0; opacity: 0;
  background:
    radial-gradient(70% 55% at 50% 42%, rgb(255 253 249 / .95), rgb(255 253 249 / 0) 70%),
    radial-gradient(60% 40% at 15% 15%, rgb(236 214 179 / .35), transparent 70%),
    radial-gradient(50% 40% at 90% 85%, rgb(176 196 204 / .3), transparent 70%),
    linear-gradient(#ebe6dd, #dcd6cb);
}

.hero { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.photo {
  position: absolute; inset: 0;
  background: var(--sky);
  will-change: opacity, transform;
}
.photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 40% 0;
}
.photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgb(var(--night) / 0) 45%,
    rgb(var(--night) / .5) 68%,
    rgb(var(--night) / .88) 100%);
}
.blur, .fade { display: none; }

.hero-text {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 24px calc(env(safe-area-inset-bottom) + 108px);
  color: #fff;
  will-change: transform, opacity;
}
.eyebrow {
  margin-bottom: .7rem;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase;
  opacity: .7;
}
.name {
  font-weight: 700;
  font-size: clamp(2.2rem, 10.5vw, 3rem);
  line-height: 1;
  letter-spacing: -.025em;
}
.claim {
  display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem;
  margin-top: .9rem;
  font-size: .78rem; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase;
  color: rgb(255 255 255 / .85);
}
/* feine senkrechte Haarlinie statt Punkt */
.claim span + span::before {
  content: ""; display: inline-block;
  width: 1px; height: 1em; margin-right: .7rem;
  background: currentColor; opacity: .45;
  vertical-align: -.15em;
}

.scroll-hint {
  position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 28px);
  display: grid; place-items: center;
  width: 48px; height: 48px; margin-left: -24px;
  border: 1px solid rgb(255 255 255 / .3); border-radius: 50%;
  background: rgb(255 255 255 / .12);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: #fff;
  pointer-events: auto;
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-hint .icon { animation: nudge 1.8s ease-in-out infinite; }
}
@keyframes nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }

/* ---------- Karte ---------- */
.card-zone {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 30px;
  padding: calc(env(safe-area-inset-top) + 20px) 16px calc(env(safe-area-inset-bottom) + 20px);
  pointer-events: none;
}
.card-zone.ready { pointer-events: auto; }

.greeting {
  max-width: 42ch;
  text-align: center;
  font-size: 1rem;
  color: var(--ink-soft);
}

.card-fade {
  --w: min(90vw, 380px);
  --step: .6px;                 /* Abstand der Kantenschichten – dicht, damit die Kante massiv wirkt */
  position: relative;
  width: var(--w);
  aspect-ratio: 85 / 55;
  perspective: 1200px;
  touch-action: pan-y;
  pointer-events: auto;
  -webkit-user-select: none; user-select: none;   /* auf der Karte lässt sich nichts markieren */
  -webkit-touch-callout: none;          /* auch klickbar, solange die Karte noch auf dem Startbild liegt */
  container-type: inline-size;
}
.card {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  --gx: 50%; --gy: 30%;
}
.edge {
  position: absolute; inset: 0;
  border-radius: 3.2cqw;
  background: linear-gradient(90deg, #26324f, var(--press) 40%, #2b3858);
  transform: translateZ(calc(var(--i) * var(--step)));
}
.face {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center;
  border: 0; padding: 0;
  border-radius: 3.2cqw;
  overflow: hidden;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  background:
    linear-gradient(158deg, rgb(var(--paper-hi) / .55) 0%, rgb(var(--paper-hi) / 0) 45%, rgb(90 80 65 / .07) 100%),
    var(--paper);
  color: var(--press);
  font-family: var(--serif);
  text-align: center;
  /* Lichtkante oben, leichter Schatten unten – liest sich als Papierstärke */
  box-shadow:
    inset 0 1px 0 rgb(var(--paper-hi) / .9),
    inset 0 -1px 1px rgb(90 80 65 / .16);
}
.front { transform: translateZ(calc(4.5 * var(--step))); cursor: pointer; }
.back { transform: rotateY(180deg) translateZ(calc(4.5 * var(--step))); }

/* Papierstruktur liegt ÜBER dem Druck – so wirkt die Farbe ins Papier gepresst */
.face::after {
  content: "";
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: var(--grain), var(--relief), var(--clouds);
  background-size: 180px 180px, 100% 100%, 100% 100%;   /* große Flächen statt Kacheln – keine Nähte */
  mix-blend-mode: multiply;
  opacity: .55;
}
/* Lichtreflex, wandert mit der Neigung */
.glare {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background:
    radial-gradient(circle at var(--gx) var(--gy), rgb(255 255 255 / .7), rgb(255 255 255 / 0) 50%),
    linear-gradient(115deg, rgb(255 255 255 / 0) 35%, rgb(255 255 255 / .18) 50%, rgb(255 255 255 / 0) 65%);
  mix-blend-mode: soft-light;
}

/* Letterpress: dunkle Kante oben, helle Kante unten = in das Papier geprägt */
.sig, .cta, .back-head, .menu, .turn-back { position: relative; z-index: 1; }
.sig {
  width: 40%; height: auto;
  margin: auto;
  transform: translateY(-4%);
  filter:
    drop-shadow(0 -.6px 0 rgb(10 14 26 / .45))
    drop-shadow(0 .8px 0 rgb(var(--paper-hi) / .9));
  -webkit-user-drag: none; user-select: none;
}
.cta {
  position: absolute; left: 0; right: 0; bottom: 6.5cqw;
  display: flex; align-items: center; justify-content: center; gap: .55em;
  font-size: max(10px, 2.9cqw);
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--press);
  opacity: .82;
  text-shadow: 0 -.5px 0 rgb(10 14 26 / .3), 0 1px .3px rgb(var(--paper-hi) / .95);
}
.cta .icon { width: 1.3em; height: 1.3em; stroke-width: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  .cta .icon { animation: turn-hint 3.2s var(--spring) infinite 2.5s; }
}
@keyframes turn-hint { 0%, 70% { transform: rotate(0); } 85% { transform: rotate(200deg); } 100% { transform: rotate(360deg); } }

/* Rückseite: Name oben, Symbole mittig */
.back { justify-content: center; gap: 6cqw; padding: 6cqw; }
.back-head { text-align: center; }
.back-name {
  font-size: max(17px, 5.4cqw);
  line-height: 1.1;
  letter-spacing: .01em;
  text-shadow: 0 -.5px 0 rgb(10 14 26 / .35), 0 1px .3px rgb(var(--paper-hi) / .95);
}
.back-role {
  margin-top: .45em;
  font-size: max(9px, 2.5cqw);
  letter-spacing: .3em; text-transform: uppercase;
  opacity: .75;
  text-shadow: 0 1px .3px rgb(var(--paper-hi) / .95);
}
/* kurze geprägte Linie unter dem Namen */
.back-head::after {
  content: ""; display: block;
  width: 9cqw; height: 1px; margin: 3cqw auto 0;
  background: var(--press); opacity: .35;
  box-shadow: 0 1px 0 rgb(var(--paper-hi) / .9);
}
.menu { display: flex; justify-content: center; gap: 5cqw; }
.menu a, .menu button {
  display: flex; flex-direction: column; align-items: center; gap: 2.4cqw;
  min-width: 16cqw;
  padding: 1cqw 0;
  border: 0; background: none;
  font-family: var(--serif);
  font-size: max(9px, 2.3cqw);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--press);
  text-decoration: none;
  text-shadow: 0 1px .3px rgb(var(--paper-hi) / .95);
  transition: transform .25s var(--spring);
}
.menu a:active, .menu button:active { transform: scale(.94); }
/* blind geprägtes Feld (ohne Farbe ins Papier gedrückt), darin das Symbol in Druckfarbe */
.chip {
  --chip: max(42px, 12cqw);
  display: grid; place-items: center; flex: none;
  width: var(--chip); height: var(--chip);
  border-radius: 20%;
  background: rgb(90 80 65 / .06);
  color: var(--press);
  box-shadow:
    inset 0 1.5px 2.5px rgb(60 50 35 / .34),
    inset 0 -1px 0 rgb(var(--paper-hi) / .85),
    0 1px 0 rgb(var(--paper-hi) / .95),
    0 -.5px 0 rgb(60 50 35 / .14);
  transition: background .25s ease;
}
.chip .icon {
  width: calc(var(--chip) * .44); height: calc(var(--chip) * .44);
  stroke-width: 1.35;
  filter: drop-shadow(0 .7px 0 rgb(var(--paper-hi) / .9));
}
.menu a:hover .chip, .menu button:hover .chip { background: rgb(90 80 65 / .11); }

.turn-back {
  position: absolute; top: 3.5cqw; right: 3.5cqw;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: none;
  color: var(--press); opacity: .6;
}
.turn-back .icon { width: 18px; height: 18px; transform: scaleX(-1); }

/* Schatten: Kontaktschatten + weicher Raumschatten */
.card-shadow {
  position: absolute; inset: 0;
  will-change: transform, opacity;
}
.card-shadow::before, .card-shadow::after {
  content: ""; position: absolute; border-radius: 6cqw;
}
.card-shadow::before {
  inset: 10% 4% -6%;
  background: rgb(var(--night) / .26);
  filter: blur(26px);
}
.card-shadow::after {
  inset: 70% 8% -2%;
  background: rgb(var(--night) / .35);
  filter: blur(8px);
}

/* Unter der Karte */
.below { display: flex; align-items: center; gap: 10px; }
.btn-save {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 54px; padding: 0 1.6rem;
  border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 12px 30px -14px rgb(var(--night) / .7), inset 0 1px 0 rgb(255 255 255 / .12);
  transition: transform .3s var(--spring), box-shadow .3s ease;
}
.btn-save:hover { transform: translateY(-2px); }
.btn-save:active { transform: scale(.97); }
.btn-round {
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border: 1px solid rgb(26 31 43 / .1); border-radius: 50%;
  background: rgb(255 255 255 / .6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink);
  transition: transform .3s var(--spring);
}
.btn-round:active { transform: scale(.94); }
.btn-round.small { width: 40px; height: 40px; background: rgb(26 31 43 / .06); border: 0; }

.reveal { will-change: transform, opacity; }

.about-cue {
  display: flex; align-items: center; gap: .35rem;
  padding: .4rem .8rem;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
}
.about-cue .icon { width: 16px; height: 16px; }
.wallet-btn {
  display: flex; align-items: center; gap: .5rem;
  min-height: 44px; padding: 0 1.1rem;
  border-radius: 999px;
  background: #000; color: #fff;
  font-size: .9rem; font-weight: 600;
  text-decoration: none;
}
.wallet-btn[hidden] { display: none; }
.wallet-btn .icon { width: 18px; height: 18px; }

/* ---------- Über mich ---------- */
.about {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  background: linear-gradient(#dcd6cb, #e9e4da 30%, var(--bg));
}
.about-inner {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 32px;
  width: 100%; max-width: 1080px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 40px) 24px 12px;
}
/* Fotoabzug: weißer Rand, Papierstruktur, echter Schatten */
.print {
  position: relative;
  width: min(54vw, 230px);
  padding: 3.2% 3.2% 11%;
  background: #f7f4ee;
  border-radius: 2px;
  box-shadow:
    0 1px 1px rgb(var(--night) / .12),
    0 10px 18px -6px rgb(var(--night) / .3),
    0 34px 60px -20px rgb(var(--night) / .35);
  transform: rotate(-3deg);
  transition: transform 1s var(--spring), opacity .8s ease;
}
/* leichter Glanz auf dem Fotopapier */
.print::after {
  content: ""; position: absolute; inset: 3.2% 3.2% 11%; pointer-events: none;
  background: linear-gradient(135deg, rgb(255 255 255 / .16), rgb(255 255 255 / 0) 40%);
}
.print img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.about:not(.in) .print { opacity: 0; transform: translateY(60px) rotate(-10deg); }
.about.in .print:hover { transform: rotate(-1deg) scale(1.02); }

.about-text { width: 100%; max-width: 30rem; }
.about-text .eyebrow { color: var(--ink-soft); opacity: 1; }
.about-text h2 {
  font-size: clamp(1.6rem, 6.4vw, 2.4rem);
  line-height: 1.12; letter-spacing: -.02em;
}
.about-lead { margin-top: .9rem; color: var(--ink-soft); font-size: 1rem; }
.values { margin-top: 1.4rem; border-top: 1px solid rgb(26 31 43 / .12); }
.values div {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem;
  padding: .8rem 0;
  border-bottom: 1px solid rgb(26 31 43 / .12);
}
.values dt { font-family: var(--serif); font-size: 1.15rem; color: var(--press); }
.values dd { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.about-text > * { transition: opacity .7s ease, transform .7s var(--spring); }
.about:not(.in) .about-text > * { opacity: 0; transform: translateY(18px); }
.about-text > :nth-child(2) { transition-delay: .06s; }
.about-text > :nth-child(3) { transition-delay: .12s; }
.about-text > :nth-child(4) { transition-delay: .18s; }
.about-text > :nth-child(5) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .about:not(.in) .print, .about:not(.in) .about-text > * { opacity: 1; transform: none; }
}

.site-footer {
  display: flex; justify-content: center; align-items: baseline; gap: .6rem;
  padding: 16px 16px calc(env(safe-area-inset-bottom) + 20px);
  font-size: .8rem; color: var(--ink-soft);
}
.site-footer a { text-decoration: none; padding: .3rem; }

/* kleine Handys */
@media (max-width: 899px) and (max-height: 700px) {
  .card-zone { gap: 18px; }
  .hero-text { padding-bottom: calc(env(safe-area-inset-bottom) + 96px); }
  .about-inner { gap: 22px; padding-top: 28px; }
  .print { width: min(44vw, 190px); }
  .values div { padding: .6rem 0; }
}

/* ---------- Computer ---------- */
@media (min-width: 900px) {
  .photo { right: auto; width: 52vw; background: var(--bg); }
  .photo img { object-position: 40% 22%; }
  .photo::after { display: none; }

  /* rechter Rand: Unschärfe nimmt stufenweise zu und läuft in den Hintergrund aus */
  .blur, .fade { display: block; position: absolute; top: 0; bottom: 0; right: 0; pointer-events: none; }
  .blur { width: 50%; }
  .b1 {
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 35%);
    mask-image: linear-gradient(to right, transparent 0%, #000 35%);
  }
  .b2 {
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    -webkit-mask-image: linear-gradient(to right, transparent 25%, #000 65%);
    mask-image: linear-gradient(to right, transparent 25%, #000 65%);
  }
  .b3 {
    -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px);
    -webkit-mask-image: linear-gradient(to right, transparent 50%, #000 85%);
    mask-image: linear-gradient(to right, transparent 50%, #000 85%);
  }
  .fade {
    right: -1px; width: 62%;
    background: linear-gradient(to right,
      rgb(243 240 233 / 0) 0%,
      rgb(243 240 233 / .3) 35%,
      rgb(243 240 233 / .8) 70%,
      var(--bg) 100%);
  }

  .hero-text {
    left: 50vw; right: 0; top: 0; bottom: 0;
    display: flex; flex-direction: column; justify-content: center;
    padding: 0 6vw 0 4vw;
    color: var(--ink);
  }
  .eyebrow { margin-bottom: 1.2rem; }
  .name { font-size: clamp(3.2rem, 5.4vw, 5.6rem); }
  /* Werte untereinander – gibt der rechten Seite Gewicht */
  .claim {
    flex-direction: column; align-items: flex-start; gap: .05em;
    width: min(100%, 26rem);
    margin-top: 2.2rem; padding-top: 1.8rem;
    border-top: 1px solid rgb(26 31 43 / .15);
    font-family: var(--serif);
    font-size: clamp(1.6rem, 2.5vw, 2.4rem); font-weight: 400;
    letter-spacing: 0; text-transform: none; line-height: 1.2;
    color: var(--ink-soft);
  }
  .claim span + span::before { display: none; }

  .scroll-hint {
    left: auto; right: 40px; bottom: 36px; margin: 0;
    border-color: rgb(26 31 43 / .12); background: rgb(255 255 255 / .55); color: var(--ink);
  }

  .card-zone { gap: 44px; }
  .card-fade { --w: min(580px, 46vw, calc((100vh - 300px) * 1.545)); --step: .8px; }
  .sig { width: 36%; }

  .about-inner { flex-direction: row; gap: 7vw; padding: 60px 6vw 20px; }
  .print { width: min(32vw, 400px); flex: none; }
  .about-text h2 { font-size: clamp(2rem, 3vw, 2.8rem); }
}

/* ---------- Rückruf-Dialog ---------- */
dialog {
  width: 100%; max-width: 100%;
  margin: auto 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}
dialog::backdrop { background: rgb(var(--night) / .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet {
  display: flex; flex-direction: column; gap: .8rem;
  padding: 20px 16px calc(env(safe-area-inset-bottom) + 18px);
  border-radius: 24px 24px 0 0;
  background: var(--bg);
}
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet-head h2 { font-weight: 700; font-size: 1.4rem; letter-spacing: -.01em; }
.sheet-text { color: var(--ink-soft); font-size: .95rem; margin-top: -.3rem; }
.field { display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.field input {
  min-height: 50px; padding: 0 14px;
  border: 1px solid rgb(26 31 43 / .15); border-radius: 14px;
  background: #fff; color: var(--ink);
  font: 400 1rem var(--font); /* 16px+ verhindert Zoom auf dem iPhone */
}
.field input:focus { outline: 2px solid var(--sand); outline-offset: 0; border-color: transparent; }
.btn-solid, .btn-ghost {
  min-height: 52px; border-radius: 999px;
  font-weight: 600; font-size: 1rem;
}
.btn-solid { border: 0; background: var(--ink); color: var(--paper); margin-top: .3rem; }
.btn-ghost { border: 1px solid rgb(26 31 43 / .18); background: transparent; }
.sheet-note { font-size: .75rem; color: var(--ink-soft); text-align: center; }

dialog[open] .sheet { animation: sheet-up .4s var(--spring); }
@keyframes sheet-up { from { transform: translateY(100%); } }

@media (min-width: 600px) {
  dialog { width: min(440px, calc(100% - 32px)); margin: auto; }
  .sheet { border-radius: 24px; padding: 26px; box-shadow: 0 30px 80px -30px rgb(0 0 0 / .5); }
  dialog[open] .sheet { animation: pop .35s var(--spring); }
  @keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.96); } }
}

/* ---------- Hinweis-Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 24px); z-index: 60;
  transform: translate(-50%, 20px);
  padding: .7rem 1.1rem;
  border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: .9rem;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .35s var(--spring);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Unterseiten (Link-Generator, Impressum, Datenschutz) ---------- */
.page { min-height: 100svh; background: var(--bg); }
.page-inner {
  max-width: 680px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 28px) 16px calc(env(safe-area-inset-bottom) + 40px);
}
.page .page-sig { width: 130px; height: auto; margin: 0 0 1.4rem; }
.page h1 { font-weight: 700; font-size: 2rem; line-height: 1.15; letter-spacing: -.02em; }
.page h2 { font-weight: 700; font-size: 1.15rem; margin: 2rem 0 .5rem; }
.page p, .page li { color: var(--ink-soft); }
.page p + p { margin-top: .7rem; }
.page ul { padding-left: 1.2rem; margin-top: .5rem; }
.back-link { display: inline-block; margin-bottom: 1.5rem; font-size: .9rem; color: var(--ink-soft); text-decoration: none; }
.todo { background: #fbe9a8; color: var(--ink); padding: 0 .2em; border-radius: 3px; }

/* Link-Generator */
.tool .page-inner { max-width: 460px; display: flex; flex-direction: column; gap: 1rem; }
.tool .page-inner > p:first-of-type { margin-top: -.5rem; }
.seg {
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 4px; gap: 4px;
  border-radius: 999px; background: rgb(26 31 43 / .06);
}
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span {
  display: grid; place-items: center; min-height: 44px;
  border-radius: 999px; font-weight: 600; color: var(--ink-soft);
}
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .1); }
.seg input:focus-visible + span { outline: 2px solid var(--sand); }
.preview {
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: var(--ink); color: #fff;
}
.preview small { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.preview p { margin-top: .4rem; color: var(--sand-light); font-family: var(--serif); font-size: 1.15rem; }
.preview code { display: block; margin-top: .7rem; font-size: .75rem; color: rgb(255 255 255 / .6); word-break: break-all; }
.page .sheet-note { margin-top: .3rem; }
