/* Testballon. Drei Farben, zwei Schriften, ein Licht. */

@font-face {
  font-family: "Instrument Serif";
  src: url("schrift/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("schrift/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("schrift/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --nacht: #0b1220;
  --nacht-tief: #070c16;
  --papier: #f4eee3;
  --tinte: #15171c;
  --licht: #ffb85c;
  --licht-hell: #ffdca8;
  --rand: clamp(1.25rem, 4.2vw, 4.5rem);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --grotesk: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Grosse Bildschirme: die Grundschrift wächst ab rund 1800 px Breite mit, höchstens
   auf 137,5 %. An die Höhe gekoppelt, damit ein breites, niedriges Fenster nicht
   überläuft. Alles Übrige steht in rem und zieht mit. */
html { font-size: clamp(100%, min(.889vw, 1.75vh), 137.5%); }
body {
  margin: 0;
  background: var(--nacht);
  color: var(--papier);
  font-family: var(--grotesk);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--licht); outline-offset: 4px; border-radius: 4px; }

/* ── Das Licht: Zeichen des Assistenten (das Logo ist seit 15.11.2026 das Fenster, logo.svg) ─────────────────────── */
.licht {
  display: inline-block;
  width: .5em; height: .5em;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #fff3dc 0%, var(--licht) 55%, #f09a2e 100%);
  box-shadow: 0 0 .5em .08em rgba(255, 184, 92, .75), 0 0 1.6em .3em rgba(255, 170, 70, .35);
  animation: atmen 4.5s ease-in-out infinite;
}
@keyframes atmen {
  0%, 100% { box-shadow: 0 0 .5em .08em rgba(255, 184, 92, .75), 0 0 1.6em .3em rgba(255, 170, 70, .35); }
  50%      { box-shadow: 0 0 .7em .14em rgba(255, 190, 100, .9), 0 0 2.4em .55em rgba(255, 170, 70, .45); }
}

/* ── Kopf ─────────────────────────────────────────────────────────────────── */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: clamp(1rem, 2.4vw, 1.75rem) var(--rand);
  pointer-events: none;
}
.kopf > * { pointer-events: auto; }
.marke {
  display: inline-flex; align-items: center; gap: .42em;
  font-family: var(--serif); font-size: clamp(1.7rem, 2.2vw, 2.1rem); line-height: 1;
  text-decoration: none; letter-spacing: .005em;
  color: var(--papier);
  mix-blend-mode: normal;
  transition: color .4s;
}
/* Marke im Kopf (Aera 3, 16.11.2026): Zeichen und Wort als eine Zeichnung in Linie.
   Die Linie traegt die Farbe des Kopfs; «a» und letztes «i» sind innen gefuellt.
   Ton: das Master-Violett von dihai, #6737b7 (OKLCH 0.47 / 0.19 / 295). Cedi, 16.11.2026:
   auf dunklem und auf hellem Grund genau dasselbe Violett, keine hellere Fassung. */
.marke .logo { height: 1.5em; width: auto; flex: none; display: block; overflow: visible; }
.marke .logo .mai { fill: #6737b7; }
.marke .logo .mai.voll { stroke: #6737b7; }
.knopf {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .62em 1.15em;
  border-radius: 99px;
  border: 1px solid rgba(244, 238, 227, .38);
  background: rgba(11, 18, 32, .28);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: .92rem; font-weight: 500; letter-spacing: .01em;
  text-decoration: none; color: var(--papier);
  transition: background .25s, border-color .25s, color .25s, transform .25s;
}
.knopf:hover { background: var(--licht); border-color: var(--licht); color: var(--tinte); }
.kopf.hell .marke { color: var(--tinte); }
/* dihai: die zwei Buchstaben «ai» im Text tragen das Master-Violett #6737b7 wie die Fuellung
   im Logo (seit 16.11.2026; vorher Himmelblau #4aa8ff / #0f6fd1, Wahl nbad / nbap):
   aufrecht, eine Farbe, kein Verlauf, kein Strich. Auf jedem Grund derselbe Wert.
   Bekannt: auf Nachtblau #0b1220 nur 2.5:1 Kontrast; so von Cedi verlangt. */
.ai { color: #6737b7; }
.fuss .ai { font-weight: 650; }
.kopf.hell .knopf { border-color: rgba(21, 23, 28, .32); background: rgba(244, 238, 227, .6); color: var(--tinte); }
.kopf.hell .knopf:hover { background: var(--tinte); border-color: var(--tinte); color: var(--papier); }
.kopf.ende .knopf { opacity: 0; pointer-events: none; }

/* Grund hinter dem Kopf, sobald Text darunter durchläuft */
.kopf::before {
  content: ""; position: absolute; inset: 0 0 -1.6rem 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7, 12, 22, .92) 0%, rgba(7, 12, 22, .7) 55%, rgba(7, 12, 22, 0) 100%);
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
.kopf.unten::before { opacity: 1; }
.kopf.hell::before { background: linear-gradient(180deg, rgba(244, 238, 227, .96) 0%, rgba(244, 238, 227, .78) 55%, rgba(244, 238, 227, 0) 100%); }

/* Sprungmarken */
.marken { display: flex; gap: clamp(1rem, 2vw, 1.9rem); margin: 0 clamp(1rem, 2.4vw, 2.2rem) 0 auto; }
.marken a {
  font-size: .92rem; font-weight: 500; text-decoration: none; letter-spacing: .01em;
  color: rgba(244, 238, 227, .62); padding: .3em 0;
  transition: color .3s;
}
.marken a:hover { color: var(--papier); }
.marken a.an { color: var(--licht); }
.kopf.hell .marken a { color: rgba(21, 23, 28, .56); }
.kopf.hell .marken a:hover { color: var(--tinte); }
.kopf.hell .marken a.an { color: #b96a08; }
.inhaltknopf { display: none; }

/* ── Auftakt: die ganze Botschaft auf einem Bildschirm ─────────────────────── */
.auftakt {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--nacht-tief);
}
.bilder, .schleier { position: absolute; inset: 0; }
.bilder img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 72% 50%;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.1s ease, transform 7s ease-out;
  will-change: opacity, transform;
}
.bilder img.an { opacity: 1; transform: scale(1); }
.bilder img[data-szene="haus"] { object-position: 62% 50%; }
.schleier {
  background:
    linear-gradient(90deg, rgba(7, 12, 22, .9) 0%, rgba(7, 12, 22, .74) 30%, rgba(7, 12, 22, .28) 56%, rgba(7, 12, 22, 0) 74%),
    linear-gradient(0deg, rgba(7, 12, 22, .55) 0%, rgba(7, 12, 22, 0) 30%),
    linear-gradient(180deg, rgba(7, 12, 22, .5) 0%, rgba(7, 12, 22, 0) 22%);
}
/* Voruebergehender Kleber unter der Menueleiste (Cedi 20.11.2026): wie ein Zettel, leicht schraeg
   aufgeklebt. Papier und Tinte der Seite, keine neue Farbe. */
.kleber {
  position: absolute; z-index: 4;
  top: clamp(4.9rem, 7.2vw, 6.6rem); right: var(--rand);
  width: min(17.5rem, 60vw);
  padding: .8rem 1rem .85rem;
  background: var(--papier); color: var(--tinte);
  font-family: var(--grotesk); font-size: .86rem; font-weight: 500; line-height: 1.38;
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 10px 26px rgba(0, 0, 0, .38);
  transform: rotate(2.4deg); transform-origin: 80% 0;
}
.kleber::before {
  content: ""; position: absolute; left: 50%; top: -.55rem;
  width: 4.2rem; height: 1.1rem; margin-left: -2.1rem;
  background: rgba(255, 220, 168, .58); transform: rotate(-3deg);
}
.kleber span { display: block; margin-top: .35em; font-weight: 650; }
.text {
  position: relative; z-index: 2;
  width: min(100%, calc(41rem + var(--rand)));
  padding: 7.5rem 0 4.5rem var(--rand);
  font-family: var(--serif);
}
.text h1 {
  font-weight: 400;
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  line-height: 1.0;
  letter-spacing: -.012em;
  margin-bottom: .55em;
  text-wrap: balance;
}
.text p {
  font-size: clamp(1.32rem, 1.9vw, 1.78rem);
  line-height: 1.26;
  color: rgba(244, 238, 227, .88);
  margin-bottom: .95em;
  max-width: 33em;
  text-wrap: pretty;
}
.satz {
  text-decoration: none;
  color: var(--papier);
  background-image: linear-gradient(rgba(244, 238, 227, .42), rgba(244, 238, 227, .42));
  background-repeat: no-repeat; background-size: 100% 1px; background-position: 0 96%;
  transition: color .35s, text-shadow .35s, background-image .35s;
  -webkit-tap-highlight-color: transparent;
}
.satz.an, .satz:hover {
  color: var(--licht-hell);
  background-image: linear-gradient(var(--licht), var(--licht));
  text-shadow: 0 0 1.1em rgba(255, 184, 92, .55);
}
.text .weiter { margin: 1.5em 0 0; font-family: var(--grotesk); font-size: .95rem; }
.pfeil {
  text-decoration: none; color: rgba(244, 238, 227, .72); font-weight: 500;
  display: inline-flex; gap: .5em; align-items: center;
  transition: color .25s;
}
.pfeil span { display: inline-block; animation: wippen 2.2s ease-in-out infinite; }
.pfeil:hover { color: var(--licht-hell); }
@keyframes wippen { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(.3em); } }

/* Einblenden beim Laden */
.text > * { opacity: 0; transform: translateY(14px); animation: herein .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.text > *:nth-child(1) { animation-delay: .15s; }
.text > *:nth-child(2) { animation-delay: .5s; }
.text > *:nth-child(3) { animation-delay: .8s; }
.text > *:nth-child(4) { animation-delay: 1.1s; }
.text > *:nth-child(5) { animation-delay: 1.5s; }
@keyframes herein { to { opacity: 1; transform: none; } }

/* ── Gespräch: was man sagt, was zurückkommt ───────────────────────────────── */
.gespraech {
  position: absolute; z-index: 3;
  right: var(--rand); bottom: clamp(2rem, 9vh, 5.5rem);
  width: min(23.5rem, 34vw);
  display: flex; flex-direction: column; gap: .55rem;
  pointer-events: none;
}
.blase {
  max-width: 92%;
  padding: .78rem 1.05rem .82rem;
  border-radius: 1.3rem;
  font-size: 1rem; line-height: 1.38;
  -webkit-backdrop-filter: blur(22px) saturate(1.35); backdrop-filter: blur(22px) saturate(1.35);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .28);
  opacity: 0; transform: translateY(10px) scale(.97);
  transition: opacity .45s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
}
.blase.da { opacity: 1; transform: none; }
.blase.du {
  align-self: flex-end;
  background: rgba(244, 238, 227, .9);
  color: var(--tinte);
  border-bottom-right-radius: .4rem;
}
.blase.es {
  align-self: flex-start;
  display: flex; gap: .7rem; align-items: flex-start;
  background: rgba(14, 18, 28, .62);
  border: 1px solid rgba(255, 196, 120, .34);
  color: #fff6e6;
  border-bottom-left-radius: .4rem;
}
.blase.es .licht { flex: none; width: .55rem; height: .55rem; margin-top: .42rem; }
.tippt { display: inline-flex; gap: .28rem; padding: .42rem 0 .3rem; }
.tippt i { width: .4rem; height: .4rem; border-radius: 50%; background: rgba(255, 220, 168, .85); animation: tippen 1.1s ease-in-out infinite; }
.tippt i:nth-child(2) { animation-delay: .15s; }
.tippt i:nth-child(3) { animation-delay: .3s; }
@keyframes tippen { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-.22rem); } }

/* ── Reichweite: der eine Regler ───────────────────────────────────────────── */
.reichweite {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  background: radial-gradient(120% 90% at 72% 50%, #111c33 0%, var(--nacht) 48%, var(--nacht-tief) 100%);
  overflow: hidden;
}
.kugel { position: absolute; inset: 0; width: 100%; height: 100%; }
.spalte {
  position: relative; z-index: 2;
  width: min(100%, calc(33rem + var(--rand)));
  padding: 6rem 0 6rem var(--rand);
}
.reichweite h2, .dabei h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.5rem, 4.6vw, 4.2rem);
  line-height: 1.02; letter-spacing: -.012em;
  text-wrap: balance;
}
.regler { margin-top: 2.6rem; --anteil: 0; }
.spur {
  position: relative; height: 2.25rem;
  margin: 0 12.5%;
  cursor: pointer; touch-action: none;
}
.spur::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: rgba(244, 238, 227, .2); border-radius: 2px;
}
.glut {
  position: absolute; left: 0; top: 50%; height: 2px; margin-top: -1px;
  width: calc(var(--anteil) * 100%);
  background: linear-gradient(90deg, rgba(255, 184, 92, .5), var(--licht));
  box-shadow: 0 0 12px rgba(255, 184, 92, .7);
  transition: width .6s cubic-bezier(.3, .8, .2, 1);
}
.griff {
  position: absolute; top: 50%; left: calc(var(--anteil) * 100%);
  width: 1.15rem; height: 1.15rem; margin: -.575rem 0 0 -.575rem;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #fff3dc 0%, var(--licht) 60%, #f09a2e 100%);
  box-shadow: 0 0 14px 3px rgba(255, 184, 92, .8), 0 0 44px 10px rgba(255, 170, 70, .35);
  transition: left .6s cubic-bezier(.3, .8, .2, 1);
}
.stufen { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: .35rem; }
.stufen button {
  padding: .5rem .2rem; text-align: center;
  font-size: .98rem; font-weight: 500;
  color: rgba(244, 238, 227, .5);
  transition: color .3s;
}
.stufen button:hover { color: rgba(244, 238, 227, .85); }
.stufen button[aria-checked="true"] { color: var(--licht-hell); }
.zeile {
  margin-top: 1.5rem; min-height: 2.7em;
  font-family: var(--serif); font-size: clamp(1.32rem, 1.9vw, 1.7rem); line-height: 1.26;
  color: rgba(244, 238, 227, .92);
  transition: opacity .25s;
}
.zeile.weg { opacity: 0; }
.ordnertitel { margin-top: 2.4rem; font-size: .95rem; color: rgba(244, 238, 227, .58); }
.ordner { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.ordner button {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .9rem .5rem .75rem;
  border-radius: 99px; border: 1px solid rgba(244, 238, 227, .2);
  font-size: .92rem; color: rgba(244, 238, 227, .78);
  transition: border-color .3s, color .3s, background .3s;
}
.ordner button:hover { border-color: rgba(244, 238, 227, .5); color: var(--papier); }
.ordner button.an { border-color: var(--licht); color: var(--licht-hell); background: rgba(255, 184, 92, .1); }
.mappe {
  width: .95rem; height: .72rem; border-radius: 2px; position: relative;
  background: currentColor; opacity: .75;
}
.mappe::before {
  content: ""; position: absolute; left: 0; top: -.16rem; width: 45%; height: .2rem;
  border-radius: 2px 2px 0 0; background: currentColor;
}
.siehst { margin-top: 2.4rem; font-family: var(--serif); font-size: clamp(1.32rem, 1.9vw, 1.7rem); color: rgba(244, 238, 227, .88); }

/* ── Botschaften: ein Bildschirm, ein Satz, ein Griff ────────────────────────
   Höhe gedeckelt: auf grossen Bildschirmen wächst der Inhalt nicht mit, sonst
   steht zwischen zwei Themen eine halbe Wand leer. */
.botschaft {
  position: relative;
  min-height: 100vh; min-height: min(100svh, 54rem);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(2rem, 5vw, 5.5rem); align-items: center;
  padding: 7rem var(--rand) 5.5rem;
  background: radial-gradient(120% 90% at 76% 50%, #111c33 0%, var(--nacht) 48%, var(--nacht-tief) 100%);
  overflow: hidden;
  scroll-margin-top: 0;
}
.botschaft.hell { background: var(--papier); color: var(--tinte); }
.botschaft.warm { background: #efe5d3; }
.botschaft > .wort h2, .gaestebuch h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.5rem, 4.6vw, 4.2rem);
  line-height: 1.02; letter-spacing: -.012em;
  text-wrap: balance;
}
.botschaft > .wort p {
  margin-top: 1.5rem; max-width: 30em;
  font-family: var(--serif); font-size: clamp(1.32rem, 1.9vw, 1.7rem); line-height: 1.26;
  color: rgba(244, 238, 227, .88); text-wrap: pretty;
}
.botschaft.hell > .wort p { color: rgba(21, 23, 28, .8); }
.botschaft > .wort p.schluss {
  margin-top: 2rem; padding-left: 1rem; border-left: 2px solid var(--licht);
  font-family: var(--grotesk); font-size: 1rem; font-weight: 500; line-height: 1.45;
  color: rgba(244, 238, 227, .78); max-width: 26em;
}
.botschaft.hell > .wort p.schluss { color: rgba(21, 23, 28, .74); border-left-color: #e08a1c; }
.botschaft > .bild { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.15rem; }
.botschaft svg { display: block; width: 100%; max-width: 39rem; height: auto; overflow: visible; }

.punktlinie { fill: none; stroke: rgba(244, 238, 227, .52); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 0 7; transition: stroke .4s, opacity .6s; }
.punktlinie.fein { stroke-width: 1.7; opacity: .55; }
.punktlinie.boden { opacity: .45; }
.hell .punktlinie { stroke: rgba(21, 23, 28, .55); }

.still {
  font-size: .88rem; font-weight: 500; color: rgba(244, 238, 227, .56);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em;
  transition: color .25s;
}
.still:hover { color: var(--papier); }
.hell .still { color: rgba(21, 23, 28, .55); }
.hell .still:hover { color: var(--tinte); }
[hidden] { display: none !important; }

.bildzeile, .kennt, .bogenzeile, .kettenzeile {
  font-family: var(--serif); font-size: clamp(1.18rem, 1.55vw, 1.42rem); line-height: 1.28;
  text-align: center; max-width: 27em; min-height: 2.6em;
  color: rgba(244, 238, 227, .9); text-wrap: balance;
}
.hell .bildzeile, .hell .bogenzeile { color: rgba(21, 23, 28, .82); }

.wahl { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem; }
.wahl .frage { font-size: .95rem; color: rgba(21, 23, 28, .62); margin-right: .4rem; }
.wahl button {
  padding: .52rem 1rem; border-radius: 99px; border: 1px solid rgba(244, 238, 227, .24);
  font-size: .92rem; font-weight: 500; color: rgba(244, 238, 227, .78);
  transition: border-color .3s, color .3s, background .3s;
}
.wahl button:hover { border-color: rgba(244, 238, 227, .55); color: var(--papier); }
.wahl button[aria-pressed="true"] { border-color: var(--licht); color: var(--licht-hell); background: rgba(255, 184, 92, .1); }
.hell .wahl button { border-color: rgba(21, 23, 28, .26); color: rgba(21, 23, 28, .72); }
.hell .wahl button:hover { border-color: rgba(21, 23, 28, .6); color: var(--tinte); }
.hell .wahl button[aria-pressed="true"] { border-color: var(--tinte); background: var(--tinte); color: var(--papier); }

/* Gespräche ausserhalb des Auftakts stehen im Fluss */
.gespraech.fest { position: static; width: min(24rem, 100%); pointer-events: auto; }
.hell .blase { box-shadow: 0 8px 26px rgba(21, 23, 28, .1); -webkit-backdrop-filter: none; backdrop-filter: none; }
.hell .blase.du { background: var(--tinte); color: var(--papier); }
.hell .blase.es { background: #fffaf1; border-color: rgba(224, 138, 28, .55); color: var(--tinte); }
.hell .tippt i { background: rgba(21, 23, 28, .55); }

/* Zugang: der Schwarm wird ein Licht, daneben das eine Blatt */
.zugang .bild { display: block; min-height: min(62svh, 31rem); }
.schwarm { position: absolute; inset: 0; width: 100%; height: 100%; }
.tagblatt {
  position: absolute; right: 0; top: 50%; width: min(19.5rem, 56%);
  padding: 1.5rem 1.6rem 1.6rem;
  background: #fffaf1; border-radius: .5rem;
  box-shadow: 0 1px 0 rgba(21, 23, 28, .08), 0 22px 50px rgba(21, 23, 28, .13);
  font-size: 1rem; color: rgba(21, 23, 28, .8);
  opacity: 0; transform: translateY(calc(-50% + 16px));
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.tagblatt.da { opacity: 1; transform: translateY(-50%); }
.tagblatt p { padding: .55rem 0; border-bottom: 1px solid rgba(21, 23, 28, .1); }
.tagblatt b { font-weight: 600; color: var(--tinte); margin-right: .45em; }
.tagblatt .tag { font-family: var(--serif); font-size: 1.7rem; line-height: 1; color: var(--tinte); padding: 0 0 .8rem; }
.tagblatt .sonst { border: 0; padding-bottom: 0; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: rgba(21, 23, 28, .6); }
.zerstreuen { position: absolute; left: 0; bottom: -2.4rem; }

/* Zeit: der Tagesbogen */
.bogen { width: 100%; max-width: 31rem; }
.bogen .punkt { fill: rgba(21, 23, 28, .3); opacity: 0; transition: opacity .5s; }
.bogen.da .punkt { opacity: 1; }
.bogen .blitz { cursor: pointer; outline: none; }
.bogen .blitz .kern { fill: #f09a2e; filter: drop-shadow(0 0 5px rgba(240, 154, 46, .85)); transform-box: fill-box; transform-origin: center; transition: transform .3s; }
.bogen .blitz:hover .kern, .bogen .blitz:focus-visible .kern, .bogen .blitz.an .kern { transform: scale(1.45); }
.bogen .blitz .treffer { fill: transparent; }
.bogen text { font-family: var(--grotesk); font-size: 13px; font-weight: 600; fill: rgba(21, 23, 28, .78); text-anchor: middle; }
.bogen text.uhr { font-weight: 500; font-size: 12px; fill: rgba(21, 23, 28, .45); }
.bogen text.leben { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 38px; fill: var(--tinte); }
.lernen { min-height: 14rem; }

/* Bereiche: das Haus im Schnitt */
.bereich { cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.bereich .flaeche { fill: rgba(255, 184, 92, 0); transition: fill .45s; }
.bereich:hover .flaeche { fill: rgba(255, 184, 92, .06); }
.bereich.an .flaeche { fill: rgba(255, 184, 92, .13); }
.bereich.an .wand, .bereich:focus-visible .wand { stroke: var(--licht); }
.bereich.zu .wand { stroke: #ff6a5a; }
.bereich text { font-family: var(--grotesk); font-size: 13.5px; font-weight: 500; fill: rgba(244, 238, 227, .62); text-anchor: middle; transition: fill .4s; }
.bereich.an text { fill: var(--licht-hell); }
.lampe { fill: var(--licht); opacity: .32; transition: opacity .4s; }
.bereich.an .lampe { opacity: 1; filter: drop-shadow(0 0 6px rgba(255, 184, 92, .95)); }
.fremd { fill: #a9bdf0; opacity: 0; }
.tuer { min-height: 8rem; }

/* Gästebuch: die Kette, die niemand umschreibt */
.gaestebuch {
  --riss: #ff6a5a; background: var(--nacht-tief);
  min-height: 100vh; min-height: min(100svh, 54rem); display: flex; align-items: center;
  padding: 7.5rem var(--rand) 6rem;
}
.gaestebuch .innen { width: 100%; max-width: 76rem; margin: 0 auto; }
.gaestebuch h2 { font-size: clamp(2.1rem, 3.7vw, 3.3rem); max-width: 17em; }
.gaestebuch .unter { margin-top: 1rem; font-family: var(--serif); font-size: clamp(1.32rem, 1.9vw, 1.7rem); color: rgba(244, 238, 227, .78); }
.kette { list-style: none; margin: 3.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kette button { display: block; width: 100%; text-align: left; padding: 0 .9rem .6rem 0; border-radius: 4px; }
.glied { display: block; position: relative; height: 12px; margin-bottom: 1rem; }
.glied::before {
  content: ""; position: absolute; left: 0; top: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--licht); box-shadow: 0 0 10px 1px rgba(255, 184, 92, .7);
  transition: background .3s, box-shadow .3s;
}
.glied::after {
  content: ""; position: absolute; left: 18px; right: -.9rem; top: 5px; height: 2px; border-radius: 2px;
  background: rgba(255, 184, 92, .55); transform-origin: left center;
  transition: transform .5s cubic-bezier(.3, 1.4, .5, 1), background .3s, opacity .3s;
}
.kette li:last-child .glied::after { display: none; }
.kette .wann, .kette .wer, .kette .was { display: block; }
.kette .wann { font-size: .8rem; font-variant-numeric: tabular-nums; color: rgba(244, 238, 227, .5); }
.kette .wer { margin-top: .2rem; font-size: .98rem; font-weight: 600; color: var(--papier); }
.kette .was { font-size: .95rem; color: rgba(244, 238, 227, .7); }
.kette button:hover .wer { color: var(--licht-hell); }
.kette li.gefaelscht .glied::before, .kette li.gerissen .glied::before { background: var(--riss); box-shadow: 0 0 10px 1px rgba(255, 106, 90, .6); }
.kette li.gefaelscht .glied::after { background: var(--riss); transform: rotate(16deg) scaleX(.55); opacity: .8; }
.kette li.gerissen .glied::after { background: var(--riss); transform: rotate(-9deg) scaleX(.7); opacity: .55; }
.kette li.gefaelscht .was { text-decoration: line-through; text-decoration-color: var(--riss); color: var(--riss); }
.kette li.gerissen .wer, .kette li.gerissen .was, .kette li.gerissen .wann { color: rgba(255, 106, 90, .78); }
.kettenzeile { margin-top: 2.6rem; text-align: left; max-width: 34em; min-height: 2.6em; }
.flicken { margin-top: .6rem; }

/* Auszug: alles kommt mit */
.zuegeln .lichter circle { fill: var(--licht); filter: drop-shadow(0 0 4px rgba(255, 184, 92, .9)); transition: transform 1.1s cubic-bezier(.5, 0, .2, 1); }
.zuegeln .heim { transition: opacity .8s; }
.auszug[data-z="aus"] .heim { opacity: .16; }
.dateien { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0; padding: 0; }
.dateien li {
  padding: .5rem .95rem; border-radius: .45rem; border: 1px dashed rgba(244, 238, 227, .22);
  font-size: .92rem; font-weight: 500; color: rgba(244, 238, 227, .42);
  transition: border-color .5s, color .5s, background .5s;
}
.dateien small { display: block; font-size: .78rem; font-weight: 400; opacity: .8; }
.auszug:not([data-z="drin"]) .dateien li { border: 1px solid rgba(255, 184, 92, .6); color: var(--licht-hell); background: rgba(255, 184, 92, .08); }
.auszug:not([data-z="drin"]) .dateien li:nth-child(2) { transition-delay: .25s; }
.auszug:not([data-z="drin"]) .dateien li:nth-child(3) { transition-delay: .5s; }

/* Einzug: drei Arten zu wohnen */
.dreihaeuser text { font-family: var(--grotesk); font-size: 14.5px; font-weight: 600; fill: var(--tinte); text-anchor: middle; }
.dreihaeuser text.klein { font-size: 12px; font-weight: 450; fill: rgba(21, 23, 28, .58); }
.dreihaeuser .meins { fill: #f09a2e; filter: drop-shadow(0 0 5px rgba(240, 154, 46, .9)); }
.dreihaeuser .unseres { fill: #fffaf1; stroke: var(--tinte); stroke-width: 1.6; transition: opacity .6s, transform .6s; transform-box: fill-box; transform-origin: center; }
.einzug[data-wer="ich"] .unseres { opacity: 0; transform: scale(.2); }

/* ── Dabei ─────────────────────────────────────────────────────────────────── */
.dabei {
  position: relative;
  min-height: 100vh; min-height: min(100svh, 58rem);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 7rem var(--rand) 3.5rem;   /* unten 3.5 statt 6 rem, seit das Newsletter-Feld im Schluss steht: er soll auf einen Bildschirm passen */
  background: var(--papier); color: var(--tinte);
}
.licht.gross { width: 1.15rem; height: 1.15rem; margin-bottom: 2.4rem; }
/* Schluss: das Zeichen allein (Fenster mit Pflanze), ohne Schriftzug; Linie in Tinte. Cedi, 18.11.2026. */
.dabei .zeichen { width: clamp(4.2rem, 6.4vw, 6rem); height: auto; margin-bottom: 2.2rem; display: block; overflow: visible; }
/* Im Schlusstitel traegt «ai» das Violett, aber das Gewicht des Titels. */
.dabei h2 .ai { font-weight: inherit; }
.dabei h2 { font-size: clamp(3.2rem, 8.4vw, 7.6rem); line-height: .95; }
.dabei p { margin-top: 1.7rem; font-family: var(--serif); font-size: clamp(1.32rem, 1.9vw, 1.78rem); color: rgba(21, 23, 28, .72); }
.knopf.dunkel {
  margin-top: 2.6rem; padding: .95em 1.7em; font-size: 1.05rem;
  background: var(--tinte); border-color: var(--tinte); color: var(--papier);
}
.knopf.dunkel:hover { background: var(--licht); border-color: var(--licht); color: var(--tinte); transform: translateY(-2px); }

/* Newsletter im Schluss, unter dem Knopf (Cedi 18.11.2026): ein Satz, ein Feld, ein Knopf.
   Leise gehalten. Der grosse Knopf darueber ist bis Januar 2027 ausgeblendet. Die Rueckmeldung kommt
   ohne Skript: das Relais leitet auf #danke, #fehler oder #spaeter, nur das Ziel wird sichtbar. */
.post { margin-top: 2.5rem; width: min(100%, 31rem); font-size: .92rem; color: rgba(21, 23, 28, .72); scroll-margin-top: 40vh; }
.post label { display: block; line-height: 1.45; }
.post .zeile { display: flex; gap: .5rem; margin-top: .85rem; }
.post input[type="email"] {
  flex: 1 1 auto; min-width: 0; min-height: 2.75rem;
  padding: .5em 1.1em;
  border: 1px solid rgba(21, 23, 28, .32); border-radius: 99px;
  background: rgba(255, 255, 255, .55); color: var(--tinte);
  font-family: var(--grotesk); font-size: 1rem; line-height: 1.2;
}
.post input[type="email"]::placeholder { color: rgba(21, 23, 28, .5); font-family: var(--grotesk); }
.post input[type="email"]:focus-visible { outline: 2px solid var(--tinte); outline-offset: 2px; border-radius: 99px; }
.post button {
  min-height: 2.75rem; padding: .5em 1.3em;
  border: 1px solid var(--tinte); border-radius: 99px;
  background: transparent; color: var(--tinte);
  font-family: var(--grotesk); font-size: .95rem; font-weight: 500; line-height: 1.2; letter-spacing: .01em; cursor: pointer;
  transition: background .25s, color .25s;
}
.post button:hover { background: var(--tinte); color: var(--papier); }
.post button:focus-visible { outline: 2px solid var(--tinte); outline-offset: 2px; border-radius: 99px; }
/* Der Honigtopf: fuer Menschen weg, fuer Formularausfueller da. */
.post .falle { display: none; }
.post .meldung { display: none; scroll-margin-top: 45vh; }
.post .meldung:target { display: block; margin-top: .9rem; color: var(--tinte); font-weight: 500; }
.post a { color: inherit; text-decoration: underline; text-decoration-color: rgba(21, 23, 28, .32); text-underline-offset: .22em; }
.post a:hover, .post a:focus-visible { color: var(--tinte); text-decoration-color: currentColor; }
.post .klein { display: inline-block; margin-top: .9rem; font-size: .8rem; color: rgba(21, 23, 28, .6); }
/* Niedrige, breite Bildschirme (Laptop, 900 px hoch): mit dem Feld fuellt der Schluss die
   Hoehe ganz. Titel und Abstaende etwas kleiner, damit das Zeichen am Seitenende nicht
   unter die Navigation geraet. */
@media (min-width: 821px) and (max-height: 960px) {
  .dabei { padding-top: 8.5rem; }
  .dabei .zeichen { margin-bottom: 1.4rem; }
  .dabei h2 { font-size: clamp(3.2rem, 6.6vw, 6rem); }
  .knopf.dunkel { margin-top: 2rem; }
  .post { margin-top: 2rem; }
}

.fuss {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 2rem;
  padding: 1.4rem var(--rand) 1.8rem;
  background: var(--papier); color: rgba(21, 23, 28, .6);
  font-size: .85rem;
}
/* Links im Fuss: Absender (Firmenseite) und Housekeeping. */
.fuss a { color: inherit; text-decoration: underline; text-decoration-color: rgba(21, 23, 28, .32); text-underline-offset: .22em; }
.fuss a:hover, .fuss a:focus-visible { color: var(--tinte); text-decoration-color: currentColor; }

/* Aufsteigen beim Scrollen */
.steigt { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.steigt.sichtbar { opacity: 1; transform: none; }

/* ── Schmal ────────────────────────────────────────────────────────────────── */
/* Breite Bildschirme: Schrift ist gewachsen, der Höhendeckel zieht enger, sonst
   wächst der Leerraum zwischen den Themen einfach mit. */
@media (min-width: 1800px) {
  .botschaft, .gaestebuch { min-height: min(100svh, 46rem); }
  .dabei { min-height: min(100svh, 50rem); }
}

@media (max-width: 820px) {
  .auftakt { display: block; }
  .bilder { bottom: auto; height: 60svh; }
  .bilder img { object-position: 70% 40%; }
  .schleier {
    background:
      linear-gradient(180deg, rgba(7, 12, 22, .55) 0%, rgba(7, 12, 22, 0) 16%, rgba(7, 12, 22, 0) 36svh, var(--nacht-tief) 60svh);
  }
  .text { width: 100%; padding: 47svh var(--rand) 3rem; }
  /* Handy (Cedi 20.11.2026): links unter dem Logo, Neigung gespiegelt; rechts verdeckte er die Koepfe. */
  .kleber { top: 4.6rem; left: var(--rand); right: auto; width: min(15rem, 62vw); font-size: .78rem; padding: .65rem .8rem .7rem;
    transform: rotate(-2.4deg); transform-origin: 20% 0; }
  .kleber::before { transform: rotate(3deg); }
  .text h1 { font-size: clamp(2.5rem, 10.5vw, 3.4rem); }
  .gespraech {
    left: var(--rand); right: var(--rand); width: auto;
    top: 5rem; bottom: auto; height: calc(46svh - 6rem);
    justify-content: flex-end;
  }
  .blase { font-size: .93rem; padding: .62rem .9rem .66rem; }

  .kopf { gap: .6rem; }
  .kopf .knopf { padding: .55em .95em; font-size: .88rem; }
  .inhaltknopf {
    display: inline-flex; position: relative; z-index: 2; margin-left: auto;
    padding: .55em .2em; font-size: .9rem; font-weight: 500; color: rgba(244, 238, 227, .85);
  }
  .kopf.hell .inhaltknopf { color: rgba(21, 23, 28, .8); }
  .kopf .marke, .kopf .knopf { position: relative; z-index: 2; }
  .marken {
    position: fixed; inset: 0; z-index: 1; margin: 0;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: .2rem;
    padding: 5rem var(--rand) 3rem;
    background: var(--nacht-tief);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .kopf.offen .marken { opacity: 1; visibility: visible; }
  .marken a, .kopf.hell .marken a { font-family: var(--serif); font-size: 2.5rem; font-weight: 400; line-height: 1.25; color: rgba(244, 238, 227, .82); }
  .marken a.an, .kopf.hell .marken a.an { color: var(--licht); }

  .botschaft { display: block; min-height: 0; padding: 6.2rem var(--rand) 4.6rem; }
  .botschaft > .bild { margin-top: 2.6rem; }
  .botschaft > .wort h2 { font-size: clamp(2.3rem, 9.6vw, 3.1rem); }
  .zugang .bild { min-height: 27rem; margin-top: 1rem; }
  .tagblatt { left: 0; right: 0; top: auto; bottom: 0; width: auto; transform: translateY(16px); }
  .tagblatt.da { transform: none; }
  .gaestebuch { display: block; min-height: 0; padding: 5.4rem var(--rand) 5rem; }
  .bereich text { font-size: 16px; }
  .dreihaeuser text { font-size: 19px; }
  .dreihaeuser text.klein { font-size: 15px; }
  .bogen text { font-size: 15px; }
  .bogen text.uhr { font-size: 14px; }
  .bogen text.leben { font-size: 38px; }
  .kette { grid-template-columns: 1fr; margin-top: 2.2rem; }
  .kette button { display: grid; grid-template-columns: 1.9rem 4.6rem 1fr; column-gap: .2rem; padding: 0 0 1.15rem; align-items: baseline; }
  .glied { grid-row: 1 / span 2; align-self: stretch; height: auto; margin: 0; }
  .glied::before { top: .3rem; }
  .glied::after { left: 5px; right: auto; top: 1.35rem; bottom: -1.25rem; width: 2px; height: auto; transform-origin: center top; }
  .kette .wann { grid-row: 1 / span 2; font-size: .82rem; }
  .kette .wer { margin-top: 0; }
  .kette .was { grid-column: 3; }

  .reichweite { display: block; }
  .kugel { height: 46svh; inset: 0 0 auto 0; }
  .spalte { width: 100%; padding: 43svh var(--rand) 4.5rem; }
  .spur { margin: 0 12.5%; }
  .stufen button { font-size: .88rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; }
  .text > *, .steigt { opacity: 1; transform: none; }
  .bogen .punkt { opacity: 1; }
}
