/*
 * eliasconrad.eu - redesigned start page (index-neu.html).
 * Type, colour, spacing and motion values were measured on the reference the owner picked;
 * all markup, styles and scripts here are written for this site.
 */

@font-face {
  font-family: "Open Runde";
  font-weight: 400;
  font-display: swap;
  src: url("assets/neu/fonts/OpenRunde-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Open Runde";
  font-weight: 500;
  font-display: swap;
  src: url("assets/neu/fonts/OpenRunde-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "Open Runde";
  font-weight: 600;
  font-display: swap;
  src: url("assets/neu/fonts/OpenRunde-Semibold.woff2") format("woff2");
}

@font-face {
  font-family: "Open Runde";
  font-weight: 700;
  font-display: swap;
  src: url("assets/neu/fonts/OpenRunde-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "Homemade Apple";
  font-weight: 400;
  font-display: swap;
  src: url("assets/neu/fonts/HomemadeApple-Regular.woff2") format("woff2"), url("assets/neu/fonts/HomemadeApple-Regular.ttf") format("truetype");
}

:root {
  --bg: #f7f7f7;
  --primary: #ed4407;
  --primary-ink: #fff;
  --ink: #111;
  --muted: #6b6b6b;
  --card: #fff;
  --line: #e6e6e6;
  --soft: #efefef;
  --gruen: #1da462;
  --blau: #2f6bff;
  /* Darker than the measured #e89b12 so the amber headline reaches 3:1 on white. */
  --gelb: #c27c00;

  --sans: "Open Runde", ui-rounded, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --hand: "Homemade Apple", "Bradley Hand", cursive;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.display {
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

/* Words split by neu.js so they can rise one by one. */
[data-w] {
  display: inline-block;
  white-space: pre;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

/* Letters of the page title, set apart only while they spring in. */
[data-b] {
  display: inline-block;
  will-change: transform, opacity;
}

.wort-akzent {
  color: var(--primary);
}

.wort-linie {
  position: relative;
}

.wort-linie [data-ul] {
  position: absolute;
  inset-inline: 0;
  bottom: -0.04em;
  height: 0.1em;
  border-radius: 999px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
}

.farbe-rot {
  color: var(--primary);
}

.farbe-gruen {
  color: var(--gruen);
}

.farbe-blau {
  color: var(--blau);
}

.farbe-gelb {
  color: var(--gelb);
}

/* ---------------------------------------------------------------------------
 * Buttons and pills
 * ------------------------------------------------------------------------ */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.15s;
}

.knopf:hover {
  background: #d63c05;
}

.knopf:active {
  transform: scale(0.98);
}

.knopf-klein {
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.knopf-gross {
  height: 56px;
  padding: 0 36px;
  font-size: 18px;
}

.pille {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.15s;
}

.pille:hover {
  background: var(--soft);
}

.punkt {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  vertical-align: middle;
}

.punkt-rot {
  background: var(--primary);
}

.punkt-blau {
  background: var(--blau);
}

/* Static on purpose: the label next to it is a note, not live data. */
.punkt-live {
  background: var(--gruen);
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

/* ---------------------------------------------------------------------------
 * Intro
 * ------------------------------------------------------------------------ */

/* Hidden by default: the head script switches it on only when scripts run and motion is allowed. */
.intro {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  touch-action: none;
}

.mit-intro .intro {
  display: block;
}

.intro-flaeche {
  position: absolute;
  inset: -128px 0 0;
  border-radius: 0 0 56px 56px;
  background: var(--bg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.14);
  will-change: transform;
}

.intro-buehne {
  position: absolute;
  inset: 128px 0 0;
  display: grid;
  place-items: center;
  padding: 0 24px;
  text-align: center;
  perspective: 900px;
}

.intro-buehne > * {
  grid-area: 1 / 1;
}

.intro-lader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.intro-figur {
  width: 144px;
  will-change: transform;
}

.intro-laden {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.intro-hallo,
.intro-zeile {
  visibility: hidden;
}

.intro-hallo {
  max-width: 12ch;
  font-size: clamp(3rem, 6.4vw, 4.5rem);
}

.intro-zeile {
  max-width: 16ch;
  margin-inline: auto;
  font-size: clamp(2.4rem, 5.2vw, 3.75rem);
  line-height: 1;
}

.intro-gross {
  max-width: none;
  font-size: clamp(3.4rem, 8.4vw, 6rem);
}

.intro-stapel {
  position: relative;
  width: 100%;
  max-width: 448px;
  height: 64vh;
  will-change: transform;
}

.polaroid {
  background: #fff;
  padding: 10px 10px 36px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.intro-stapel .polaroid {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(62vw, 270px);
  visibility: hidden;
  will-change: transform;
}

.polaroid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ---------------------------------------------------------------------------
 * Navigation
 * ------------------------------------------------------------------------ */

.nav-halter {
  position: fixed;
  inset: 20px 0 auto;
  z-index: 50;
  padding: 0 12px;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  height: 56px;
  margin: 0 auto;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.nav-marke {
  display: flex;
  align-items: center;
  padding: 0 8px 0 12px;
}

/* The wordmark is a mask, so it takes the colour of whatever it sits on. */
.wortmarke {
  display: block;
  width: 132px;
  aspect-ratio: 1039 / 189;
  background: currentColor;
  -webkit-mask: url("assets/neu/logo/wortmarke-tasse.webp") center / contain no-repeat;
  mask: url("assets/neu/logo/wortmarke-tasse.webp") center / contain no-repeat;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.nav-links a,
.nav-sprache {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s;
}

.nav-links a:hover,
.nav-sprache:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-rechts {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.nav-sprache {
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.8);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ---------------------------------------------------------------------------
 * Page frame and hero
 * ------------------------------------------------------------------------ */

.seite {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding-bottom: 64px;
}

.held {
  padding: 144px 20px 0;
  text-align: center;
}

.marke-pille {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px 6px 10px;
  line-height: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.held-titel {
  max-width: 14ch;
  margin: 20px auto 0;
  font-size: 3rem;
  perspective: 900px;
}

.held-text {
  max-width: 44ch;
  margin: 20px auto 0;
  font-size: 18px;
  line-height: 28px;
  color: var(--muted);
}

.held-knopf {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}

.pille-gross {
  height: 56px;
  padding: 0 28px;
  font-size: 18px;
}

.held-live {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.live-zeile {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  font-size: 14px;
  color: var(--muted);
}

.live-zeile b {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.logo-reihe {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.logo-stapel {
  display: flex;
}

.logo-stapel img {
  width: 28px;
  height: 28px;
  margin-left: -8px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--soft);
  box-shadow: 0 0 0 2px var(--bg);
}

.logo-stapel img:first-child {
  margin-left: 0;
}

/* ---------------------------------------------------------------------------
 * Globe
 * ------------------------------------------------------------------------ */

.welt {
  position: relative;
  left: 50%;
  width: 100vw;
  height: clamp(520px, 40vw, 850px);
  margin-top: 32px;
  overflow: hidden;
  transform: translateX(-50%);
}

.welt-kugel {
  position: absolute;
  left: 50%;
  top: 0;
  width: clamp(1100px, 85vw, 1800px);
  aspect-ratio: 1 / 1;
  transform: translateX(-50%);
}

/* Touch screens only (added by neu.js): a note that the globe turns under a finger, gone after the first swipe. */
.welt-wink {
  position: absolute;
  right: 16px;
  top: 156px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.84);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  pointer-events: none;
  transition: opacity 0.4s ease, translate 0.4s ease;
}

.welt-wink svg {
  width: 18px;
  height: 11px;
}

.mit-bewegung .welt-wink svg {
  animation: welt-wink 1.6s ease-in-out infinite;
}

.welt-wink.weg {
  opacity: 0;
  translate: 0 -6px;
}

@keyframes welt-wink {
  0%, 100% { translate: -3px 0; }
  50% { translate: 3px 0; }
}

/* The real map fills the square; the self-drawn globe underneath is only the fallback. */
.welt-karte {
  position: absolute;
  inset: 0;
}

/* Atmosphere as measured (fog #EAF4FF, high colour white, thin horizon blend): a light halo behind the globe
   and a haze on its rim. The globe is 0.96 of the holder, so both sit 2% in. */
.welt-karte.maplibregl-map::before,
.welt-karte.maplibregl-map::after {
  content: "";
  position: absolute;
  inset: 2%;
  border-radius: 50%;
  pointer-events: none;
}

.welt-karte.maplibregl-map::before {
  background: #eaf4ff;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.95), 0 0 22px 6px #eaf4ff;
}

.welt-karte.maplibregl-map::after {
  background: radial-gradient(circle closest-side, rgba(234, 244, 255, 0) 0 90%, rgba(234, 244, 255, 0.4) 95.5%, rgba(240, 247, 255, 0.82) 99%, rgba(255, 255, 255, 0.95) 100%);
}

/* The few rules MapLibre needs here, instead of loading its whole stylesheet (controls and popups are unused). */
.maplibregl-map {
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.maplibregl-canvas {
  position: absolute;
  left: 0;
  top: 0;
}

.maplibregl-canvas-container.maplibregl-interactive {
  user-select: none;
}

.maplibregl-marker {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
  transition: opacity 0.2s;
}

.maplibregl-control-container,
.maplibregl-missing-css {
  display: none;
}

.welt-karte .maplibregl-canvas {
  cursor: grab;
  outline: none;
}

.welt-karte .maplibregl-canvas:active {
  cursor: grabbing;
}

.mit-karte canvas[data-welt] {
  display: none;
}

.welt-quelle {
  position: absolute;
  right: 16px;
  bottom: 8px;
  z-index: 1;
  font-size: 11px;
  color: var(--muted);
}

.welt-quelle a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.welt-kugel canvas[data-welt] {
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
}

.welt-kugel canvas[data-welt]:active {
  cursor: grabbing;
}

.welt-ort {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  will-change: transform;
}

.welt-punkt {
  position: relative;
  flex: none;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.welt-punkt::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--primary);
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.ort-pille {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  margin-top: -6px;
  padding: 0 10px 0 5px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.12s;
}

.welt-ort:hover .ort-pille {
  transform: translateY(-1px);
}

.ort-pille .rang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  font-size: 10px;
}

.ort-pille .anzahl {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* Handwritten note, taped next to the globe. Text comes from the page, so it can change. */
.welt-zettel {
  position: absolute;
  left: max(24px, calc(50% - 520px));
  top: 64px;
  width: 232px;
  padding: 22px 20px 16px;
  background: #fffdf4;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
  font-family: var(--hand);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0;
  color: #23221f;
  rotate: -4deg;
}

.zettel-band {
  position: absolute;
  left: 50%;
  top: -11px;
  width: 78px;
  height: 22px;
  background: rgba(237, 68, 7, 0.28);
  transform: translateX(-50%) rotate(2deg);
}

.zettel-name {
  display: block;
  margin-top: 6px;
  text-align: right;
}

.welt-blende {
  position: absolute;
  inset: auto 0 0;
  height: 64px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

/* ---------------------------------------------------------------------------
 * Subpages: project mark above the title, and the full-width band under the hero
 * ------------------------------------------------------------------------ */

.held-marke {
  margin: 0 auto 20px;
}

.held-marke-kachel {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
  rotate: -4deg;
}

.held-marke-wort {
  width: 172px;
}

.held-marke-gross {
  width: 148px;
  margin-bottom: 8px;
}

.band {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-top: 40px;
  overflow: hidden;
  transform: translateX(-50%);
}

.band-bild {
  width: 100%;
  height: clamp(280px, 36vw, 520px);
  object-fit: cover;
}

.u-galerie-spur img {
  flex: none;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
  scroll-snap-align: center;
}

.band-handy {
  width: 208px;
  border: 6px solid #0a0a0a;
  border-radius: 34px;
  background: #0a0a0a;
}

.band-handy:nth-child(even) {
  margin-top: 28px;
}

.band-quadrat {
  width: 260px;
  height: 260px;
  border-radius: 28px;
  object-fit: cover;
}

.band-quadrat:nth-child(even) {
  rotate: 2deg;
}

.band-quadrat:nth-child(odd) {
  rotate: -2deg;
}

.band-quer {
  width: 440px;
  height: 275px;
  border-radius: 20px;
  object-fit: cover;
  object-position: 50% 0;
}

/* Mascot at the foot of a card. */
.karte-figur {
  display: flex;
  justify-content: center;
  padding: 0 32px 28px;
}

.figur {
  width: auto;
  height: 200px;
  transition: rotate 0.5s cubic-bezier(0.16, 1, 0.3, 1), scale 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.figur-gross {
  height: 240px;
}

.karte:hover .figur {
  rotate: -4deg;
  scale: 1.05;
}

.weiter {
  display: flex;
  justify-content: center;
  padding: 0 20px 16px;
}

/* ---------------------------------------------------------------------------
 * Subpages: their own layout. Same colours, type and pills as the start page,
 * but split sections, rows instead of cards, a dark number panel and a timeline.
 * ------------------------------------------------------------------------ */

.u-seite {
  padding-inline: 20px;
}

.u-seite > * + * {
  margin-top: 96px;
}

.u-held {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
  padding-top: 144px;
}

.u-marke {
  margin-bottom: 20px;
}

.u-marke-kachel {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.u-marke-wort {
  width: 132px;
}

.u-titel {
  max-width: 13ch;
  margin-top: 20px;
  font-size: clamp(2.6rem, 5vw, 4rem);
  perspective: 900px;
}

.u-lead {
  max-width: 44ch;
  margin-top: 20px;
  font-size: 18px;
  line-height: 28px;
  color: var(--muted);
}

.u-knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

/* The stage: a soft rounded field that holds the page's main picture. */
.u-buehne {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 520px;
  overflow: hidden;
  border-radius: 2rem;
  background: var(--soft);
}

.u-buehne-bild {
  max-height: 78%;
  width: auto;
}

.u-buehne-illu .u-buehne-bild {
  max-height: 84%;
  mix-blend-mode: multiply;
}

.u-buehne-foto .u-buehne-bild {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: 60% 30%;
}

.u-buehne-handy {
  align-items: flex-start;
}

.u-handy {
  width: 270px;
  margin-top: 44px;
  padding: 11px;
  border-radius: 46px;
  background: #050505;
  box-shadow: inset 0 0 0 4px #2c2c2e, 0 24px 60px rgba(0, 0, 0, 0.22);
}

.u-handy img {
  width: 100%;
  border-radius: 36px;
}

/* Fact strip: four cells in one bordered bar. */
.u-fakten {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--card);
}

.u-seite > .u-fakten {
  margin-top: 40px;
}

.u-fakten > div {
  padding: 20px 24px;
}

.u-fakten > div + div {
  border-left: 1px solid var(--line);
}

.u-fakten dt {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.u-fakten dd {
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

/* Pictures under the hero. */
.u-seite > .u-galerie,
.u-seite > .u-bild {
  margin-top: 40px;
}

/* Full bleed through a margin, not a transform: the reveal animation owns the transform. */
.u-galerie {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.u-galerie-spur {
  display: flex;
  gap: 20px;
  padding: 12px max(20px, calc(50vw - 36rem + 20px)) 36px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.u-galerie-spur::-webkit-scrollbar {
  display: none;
}

.u-bild img {
  width: 100%;
  max-height: 520px;
  border-radius: 2rem;
  background: var(--card);
  object-fit: cover;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Split sections: a heading that stays in view on the left, content on the right. */
.u-teiler {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: start;
}

.u-klebt {
  position: sticky;
  top: 112px;
}

.u-h2 {
  max-width: 14ch;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
}

.u-text {
  max-width: 36ch;
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}

.u-illu {
  width: min(100%, 240px);
  margin: 0 0 12px -8px;
  mix-blend-mode: multiply;
}

/* Feature rows: no boxes, a line between them. */
.u-liste {
  border-top: 1px solid var(--line);
}

.u-merkmal {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.u-merkmal-titel {
  font-size: 15px;
  font-weight: 600;
  line-height: 36px;
}

/* Small coloured labels sit on the page ground here, so they use darker shades that reach 4.5:1. */
.u-merkmal-titel.farbe-gruen {
  color: #157a49;
}

.u-merkmal-titel.farbe-blau {
  color: #2456d6;
}

.u-merkmal-titel.farbe-gelb {
  color: #8f5b00;
}

.u-merkmal-titel.farbe-rot {
  color: #c23604;
}

.u-merkmal-satz {
  max-width: 26ch;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.u-merkmal .haken {
  margin-top: 14px;
}

.u-merkmal .pille {
  margin-top: 18px;
}

.u-merkmal-bild {
  width: auto;
  height: 132px;
}

/* Dark number panel. */
.u-dunkel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: center;
  padding: 56px;
  border-radius: 2rem;
  background: var(--ink);
  color: #fff;
}

.u-dunkel .u-text {
  color: rgba(255, 255, 255, 0.72);
}

.u-zahlen {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 24px;
}

.u-zahl-gross {
  font-size: clamp(2.6rem, 4.6vw, 3.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.u-zahl-klein {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

/* Timeline: steps side by side on one line. */
.u-block-kopf {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.u-block-kopf .u-illu {
  flex: none;
  width: 220px;
  margin: 0;
}

.u-ablauf {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 24px;
  margin-top: 40px;
  counter-reset: schritt;
}

.u-ablauf li {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  padding-top: 36px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

/* The timeline's line is drawn, not a border, so the number can sit on it. */
.u-ablauf li::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--ink);
}

.u-ablauf b {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.u-schritt-nr {
  position: absolute;
  left: 0;
  top: -15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.u-schritt-meta {
  justify-self: start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

/* Rows of facts on the right of a split section. */
.u-zeilen {
  border-top: 1px solid var(--line);
}

.u-zeilen li > * {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
}

.u-zeilen a {
  transition: background-color 0.15s;
}

.u-zeilen a:hover {
  background: var(--soft);
}

.u-pfeil {
  color: var(--muted);
}

.u-block .gespraech {
  margin: 0;
  max-width: none;
}

.u-block .bilder {
  margin-top: 32px;
}

.u-block .bilder-figuren {
  justify-content: flex-start;
  padding: 32px;
  border-radius: 2rem;
  background: var(--soft);
}

/* Orange call panel. */
.u-ruf {
  display: grid;
  justify-items: start;
  gap: 16px;
  padding: 64px 56px;
  border-radius: 2rem;
  background: var(--primary);
  color: #fff;
}

.u-ruf-titel {
  max-width: 18ch;
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
}

/* Dark text on the orange field: white would only reach 3.9:1 at this size. */
.u-ruf-text {
  max-width: 44ch;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}

.u-ruf-knopf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  margin-top: 12px;
  padding: 14px 32px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.u-ruf-knopf:active {
  transform: scale(0.98);
}

/* Note: portrait and signature left, the text large on the right. */
.u-notiz-kopf {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.u-notiz-kopf img {
  width: 72px;
  height: 72px;
  margin-bottom: 12px;
  border-radius: 50%;
  object-fit: cover;
}

.u-notiz-kopf .hand {
  margin-top: 16px;
}

.u-notiz-text {
  display: grid;
  gap: 20px;
  font-size: clamp(20px, 2.1vw, 26px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.u-fragen .fragen-liste details p {
  font-size: 15px;
}

/* Links to the other pages. */
.u-weiter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.u-weiter-karte {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.15s;
}

.u-weiter-karte:hover {
  background: var(--soft);
}

.u-weiter-karte span[aria-hidden] {
  color: var(--muted);
}

/* ---------------------------------------------------------------------------
 * Statements
 * ------------------------------------------------------------------------ */

.aussage {
  padding: 80px 20px;
  text-align: center;
}

.aussage-titel {
  max-width: 18ch;
  margin: 0 auto;
  font-size: clamp(2.4rem, 5.2vw, 3.75rem);
}

.aussage-text {
  max-width: 46ch;
  margin: 20px auto 0;
  font-size: 18px;
  line-height: 28px;
  color: var(--muted);
}

.zahlen {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 36rem;
  margin: 32px auto 0;
}

.zahl {
  padding: 16px 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.zahl-gross {
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  font-variant-numeric: tabular-nums;
}

.zahl-klein {
  margin-top: 2px;
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}

.kopf-bild {
  width: min(100%, 380px);
  margin: 0 auto 8px;
  mix-blend-mode: multiply;
}

.kanaele {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

/* ---------------------------------------------------------------------------
 * Project cards
 * ------------------------------------------------------------------------ */

.karten {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 20px;
}

.karte {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  background: var(--card);
}

.karte-innen {
  padding: 32px;
}

.zeichen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.zeichen svg {
  width: 18px;
  height: 18px;
}

.zeichen-gruen {
  background: #e2f6ea;
  color: var(--gruen);
}

.zeichen-rot {
  background: #fde7df;
  color: var(--primary);
}

.zeichen-blau {
  background: #e3ebff;
  color: var(--blau);
}

.zeichen-gelb {
  background: #fcf0d6;
  color: var(--gelb);
}

.zeichen-grau {
  background: var(--soft);
  color: var(--ink);
}

.karte-titel {
  margin-top: 20px;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: -0.03em;
}

.karte-satz {
  max-width: 22ch;
  margin-top: 4px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.375;
  text-wrap: balance;
}

.haken {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.haken li {
  display: grid;
  grid-template-columns: 20px 1fr;
  column-gap: 12px;
  align-items: start;
  font-size: 15px;
  line-height: 1.375;
}

.haken li::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-top: 2px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 8.500 3.200 3.200L13 4.800'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 8.500 3.200 3.200L13 4.800'/%3E%3C/svg%3E") center / contain no-repeat;
}

.haken li > span {
  color: var(--ink);
}

.haken-gruen li {
  color: var(--gruen);
}

.haken-rot li {
  color: var(--primary);
}

.haken-blau li {
  color: var(--blau);
}

.haken-gelb li {
  color: var(--gelb);
}

.karte .pille {
  margin-top: 24px;
}

.karte-bild {
  position: relative;
  margin-top: auto;
}

/* Wide card across both columns: text left, photo right. */
.karte-breit {
  grid-column: 1 / -1;
  flex-direction: row;
}

.karte-breit .karte-innen {
  flex: 1 1 50%;
}

.karte-breit .karte-satz {
  max-width: 20ch;
}

.karte-breit-bild {
  flex: 1 1 50%;
  width: 50%;
  min-height: 420px;
  object-fit: cover;
  object-position: 62% 30%;
}

.karte-knoepfe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.karte-knoepfe .pille {
  margin-top: 0;
}

.firmen-kopf {
  padding-bottom: 40px;
}

.firmen-knopf {
  display: flex;
  justify-content: center;
  margin: 32px 0 0;
}

/* Phone, cut off by the card edge. */
.karte-handy {
  height: 426px;
  overflow: hidden;
}

/* An iPhone rebuilt in CSS: black bezel, titanium band, side buttons. */
.handy {
  position: absolute;
  left: 50%;
  top: 4px;
  width: 351px;
  padding: 11px;
  border-radius: 58px;
  background: #000;
  box-shadow:
    inset 0 0 0 1.5px #2b2b2e,
    0 0 0 1px #1d1d1f,
    0 0 0 4px #8a8b90,
    0 0 0 5px #55565a,
    0 24px 48px rgba(0, 0, 0, 0.18);
  transform: translateX(-50%);
}

/* Left: action button and the two volume buttons. Right: the side button. */
.handy::before,
.handy::after {
  content: "";
  position: absolute;
  width: 4px;
  border-radius: 2px;
}

.handy::before {
  left: -8.5px;
  top: 112px;
  height: 172px;
  background: linear-gradient(#77787d 0 30px, transparent 30px 56px, #77787d 56px 108px, transparent 108px 120px, #77787d 120px 172px);
}

.handy::after {
  right: -8.5px;
  top: 176px;
  height: 86px;
  background: #77787d;
}

.handy img {
  width: 100%;
  border-radius: 47px;
}

.karte-blende {
  position: absolute;
  inset: auto 0 0;
  height: 56px;
  background: linear-gradient(to top, var(--card), transparent);
  pointer-events: none;
}

/* Terminal */
/* A terminal window rebuilt after the macOS one: straight and complete, no tilt. */
.karte-terminal {
  padding: 0 32px 32px;
}

.terminal {
  overflow: hidden;
  border: 1px solid #3a3f4b;
  border-radius: 12px;
  background: #282c34;
  color: #d7dae0;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.6), 0 18px 44px rgba(0, 0, 0, 0.22);
}

.terminal-kopf {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 14px 11px;
}

.terminal-kopf span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
}

.terminal-kopf span:nth-child(2) {
  background: #febc2e;
}

.terminal-kopf span:nth-child(3) {
  background: #28c840;
}

.terminal-kopf b {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: 10px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  color: #9da5b4;
}

.terminal-kopf svg {
  width: 17px;
  height: 14px;
}

.terminal-fuss {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px 14px;
  border-top: 1px solid #3a3f4b;
  font-family: var(--mono);
  font-size: 12px;
  color: #9da5b4;
}

.terminal-fuss i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #28c840;
}

.terminal-fuss b {
  font-weight: 400;
  color: #e5c07b;
}

.terminal-text {
  height: 268px;
  margin: 0;
  padding: 10px 16px 14px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.75;
  letter-spacing: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-text .t-prompt {
  color: #7f8796;
}

.terminal-text .t-punkt {
  color: #98c379;
}

.terminal-text .t-projekt {
  color: #e5c07b;
}

.terminal-text .t-zeit {
  color: #7f8796;
}

.terminal-text .t-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 2px;
  background: #d7dae0;
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Card media that rises into place when the card is seen (class set by neu.js). */
.mit-bewegung [data-auftritt] {
  --auf: 0;
}

.mit-bewegung [data-auftritt].ist-da {
  --auf: 1;
}

.mit-bewegung .terminal[data-auftritt] {
  transform: translateY(calc((1 - var(--auf)) * 60px));
  opacity: var(--auf);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

/* lalabai: three covers fanned out, the owl in front. */
.karte-faecher {
  height: 300px;
  margin-inline: 32px;
}

.karte-faecher .cover {
  position: absolute;
  left: 44%;
  bottom: 44px;
  width: 172px;
  height: 172px;
  margin-left: -86px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  transform: translate(calc(var(--x) * var(--auf, 1)), calc((1 - var(--auf, 1)) * 70px)) rotate(calc(var(--r) * var(--auf, 1)));
  opacity: var(--auf, 1);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.karte-faecher .c1 { --x: -128px; --r: -9deg; }
.karte-faecher .c2 { --x: 0px; --r: 0deg; bottom: 60px; z-index: 1; transition-delay: 0.08s; }
.karte-faecher .c3 { --x: 128px; --r: 9deg; transition-delay: 0.16s; }

.karte-faecher .eule {
  position: absolute;
  right: -1%;
  bottom: 4px;
  z-index: 2;
  width: 132px;
  height: 132px;
  transform: translateY(calc((1 - var(--auf, 1)) * 40px));
  opacity: var(--auf, 1);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s, opacity 0.4s ease 0.3s;
}

.karte:hover .karte-faecher .c1 { --x: -146px; --r: -12deg; }
.karte:hover .karte-faecher .c3 { --x: 146px; --r: 12deg; }

/* Manhunt: real screens on the app's own dark green, Fenn running through the corner. */
.karte-szene {
  height: 320px;
  margin: 0 32px 32px;
  border-radius: 20px;
  background: #06110d;
  overflow: hidden;
}

.karte-szene > img:first-child {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 100%;
  max-width: none;
  height: auto;
  transform: translate(-50%, calc((1 - var(--auf, 1)) * 60px));
  opacity: var(--auf, 1);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

@media (max-width: 1023px) {
  .karte-terminal { padding: 0 20px 20px; }
  /* Narrow window: lines are cut at the edge instead of wrapping, like a real terminal. */
  .terminal-text { height: 236px; padding-inline: 14px; font-size: 12px; white-space: pre; word-break: normal; }
  .terminal-fuss > span:first-child { display: none; }
  .karte-faecher { height: 260px; margin-inline: 12px; }
  .karte-faecher .cover { width: 138px; height: 138px; margin-left: -69px; }
  .karte-faecher .c1 { --x: -92px; }
  .karte-faecher .c3 { --x: 92px; }
  .karte-faecher .eule { width: 104px; height: 104px; right: -2%; }
  .karte-szene { height: 250px; margin: 0 20px 20px; }
}

/* The Scooly screen in a real iPhone frame, upper part only. */
.karte-handy .handy-bild {
  position: absolute;
  left: 50%;
  top: 0;
  width: 372px;
  max-width: none;
  height: auto;
  translate: -50% 0;
}

/* An iPhone with a live screen: the frame (the user's own file) lies over a screen built in HTML.
   Opening measured on the frame (808 wide): sides at 39 and 768, top at 31, corner radius about 105. The screen is
   a little larger than the opening and its corner a little tighter, so it tucks under the bezel all the way round. */
.iphone {
  position: absolute;
  left: 50%;
  top: 0;
  width: 372px;
  aspect-ratio: 808 / 1058;
  translate: -50% 0;
}

.mit-bewegung .iphone[data-auftritt] {
  translate: -50% calc((1 - var(--auf)) * 60px);
  opacity: var(--auf);
  transition: translate 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.iphone-rahmen { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; }

.iphone-schirm {
  position: absolute;
  inset: 2.6% 4.3% 0;
  border-radius: 44px 44px 0 0;
  overflow: hidden;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", var(--sans);
  letter-spacing: -0.01em;
}

/* 50px high so the clock and the symbols sit on the centre line of the Dynamic Island. */
.ios-status { display: flex; justify-content: space-between; align-items: center; height: 50px; padding: 0 30px 0 40px; font-size: 16px; }
.ios-status b { font-weight: 600; }
.ios-status span { display: flex; align-items: center; gap: 5px; }
.ios-status svg { height: 11px; width: auto; fill: currentColor; }

/* Messages */
.ios-nachrichten { background: #fff; color: #000; }
.ios-nachrichten .ios-status { background: #f9f9f9; }
.ios-kopf { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; min-height: 62px; padding: 6px 12px; border-bottom: 0.5px solid rgba(0, 0, 0, 0.14); background: #f9f9f9; color: #007aff; }
.ios-zurueck svg { width: 11px; height: 19px; }
.ios-video svg { width: 26px; height: 18px; justify-self: end; }
.ios-video { display: grid; justify-items: end; }
.ios-wer { display: grid; justify-items: center; gap: 2px; font-size: 11px; color: #000; }
.ios-wer i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(#ff8a5c, #ed4407); }
.ios-wer i svg { width: 20px; height: 20px; }
.ios-wer b { font-weight: 400; }
.ios-verlauf { display: grid; gap: 3px; padding: 10px 14px; }
.ios-zeit { margin: 0 0 6px; font-size: 11px; line-height: 1.35; text-align: center; color: #6e6e73; }
.ios-zeit b { display: block; font-weight: 600; }

.ios-blase {
  position: relative;
  width: fit-content;
  max-width: 76%;
  margin: 0 0 5px;
  padding: 8px 13px;
  border-radius: 19px;
  background: #e9e9eb;
  font-size: 16px;
  line-height: 21px;
  text-align: left;
}

/* The tail of a bubble: a rounded corner pulled out of its lower edge. */
.ios-blase::before,
.ios-blase::after { content: ""; position: absolute; bottom: 0; height: 18px; }
.ios-blase::before { left: -6px; width: 18px; border-bottom-right-radius: 16px 14px; background: #e9e9eb; }
.ios-blase::after { left: -10px; width: 10px; border-bottom-right-radius: 10px; background: #fff; }
.ios-blase.ich { margin-left: auto; background: #0071e3; color: #fff; }
.ios-blase.ich::before { left: auto; right: -6px; border-radius: 0; border-bottom-left-radius: 16px 14px; background: #0071e3; }
.ios-blase.ich::after { left: auto; right: -10px; border-radius: 0; border-bottom-left-radius: 10px; }
.ios-blase:not(.ich) + .ios-blase:not(.ich) { margin-top: -2px; }
.ios-zugestellt { margin: -3px 2px 0 0; font-size: 11px; text-align: right; color: #6e6e73; }
.mit-bewegung [data-auftritt] .ios-blase, .mit-bewegung [data-auftritt] .ios-zugestellt { opacity: var(--auf); translate: 0 calc((1 - var(--auf)) * 10px); transition: opacity 0.35s ease, translate 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.mit-bewegung [data-auftritt] .ios-blase:nth-of-type(2) { transition-delay: 0.5s; }
.mit-bewegung [data-auftritt] .ios-blase:nth-of-type(3) { transition-delay: 1.3s; }
.mit-bewegung [data-auftritt] .ios-blase:nth-of-type(4) { transition-delay: 1.8s; }
.mit-bewegung [data-auftritt] .ios-blase:nth-of-type(5) { transition-delay: 2.6s; }
.mit-bewegung [data-auftritt] .ios-zugestellt { transition-delay: 3s; }

/* Call screen */
.ios-anruf { background: linear-gradient(162deg, #3d4c66 0%, #1e212a 46%, #2c2420 100%); color: #fff; text-align: center; }
.ios-anruf-art { margin: 26px 0 0; font-size: 15px; color: rgba(255, 255, 255, 0.62); }
.ios-anruf-name { margin: 2px 0 0; font-size: 31px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.ios-anruf-dauer { margin: 4px 0 0; font-size: 17px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.62); }
.ios-mitschrift { margin: 20px 14px 0; padding: 12px 16px 14px; border-radius: 22px; background: rgba(255, 255, 255, 0.13); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); text-align: left; }
.ios-mitschrift small { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.ios-mitschrift p { margin: 0 0 4px; font-size: 16px; line-height: 21px; color: rgba(255, 255, 255, 0.62); }
.ios-mitschrift p.agent { color: #fff; }
.ios-mitteilung { display: flex; align-items: center; gap: 11px; margin: 10px 14px 0; padding: 11px 13px; border-radius: 22px; background: rgba(245, 245, 247, 0.92); color: #000; text-align: left; }
.ios-mitteilung > span:last-child { display: grid; gap: 1px; min-width: 0; font-size: 14px; line-height: 18px; }
.ios-mitteilung b { display: flex; justify-content: space-between; font-weight: 600; }
.ios-mitteilung small { font-size: 12px; font-weight: 400; color: #6e6e73; }
.ios-kalender { flex: none; display: grid; justify-items: center; width: 38px; height: 38px; border-radius: 9px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); line-height: 1; }
.ios-kalender b { display: block; padding-top: 5px; font-size: 9px; font-weight: 600; color: #d70015; }
.ios-kalender i { font-size: 21px; font-style: normal; font-weight: 300; }
.mit-bewegung [data-auftritt] .ios-mitschrift p, .mit-bewegung [data-auftritt] .ios-mitteilung { opacity: var(--auf); translate: 0 calc((1 - var(--auf)) * 10px); transition: opacity 0.4s ease, translate 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.mit-bewegung [data-auftritt] .ios-mitschrift p:nth-of-type(1) { transition-delay: 0.6s; }
.mit-bewegung [data-auftritt] .ios-mitschrift p:nth-of-type(2) { transition-delay: 1.4s; }
.mit-bewegung [data-auftritt] .ios-mitschrift p:nth-of-type(3) { transition-delay: 2.2s; }
.mit-bewegung [data-auftritt] .ios-mitteilung { transition-delay: 3s; }

@media (max-width: 1023px) {
  .karte-handy .handy-bild { width: 318px; }
  .iphone { width: 318px; }
  .iphone-schirm { zoom: 0.855; width: auto; }
}

/* Logo tiles */
.karte-logo {
  display: flex;
  justify-content: center;
  padding: 8px 32px 44px;
}

.kachel {
  width: 148px;
  height: 148px;
  border-radius: 34px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
  transition: rotate 0.5s cubic-bezier(0.16, 1, 0.3, 1), scale 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.kachel-links {
  rotate: -5deg;
}

.kachel-rechts {
  rotate: 4deg;
}

.karte:hover .kachel {
  rotate: 0deg;
  scale: 1.04;
}

/* Reference list */
.karte-liste {
  padding: 0 32px 32px;
}

.liste {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.liste li + li {
  border-top: 1px solid var(--line);
}

.liste a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 16px;
  transition: background-color 0.15s;
}

.liste a:hover {
  background: var(--soft);
}

.liste-nr {
  width: 16px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.liste-name {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.liste-ziel {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.karte-foto {
  padding: 8px 32px 36px;
}

.schief {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  object-position: 50% 62%;
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
  rotate: -2deg;
}

/* ---------------------------------------------------------------------------
 * Subpage blocks: steps, rows of facts, example call
 * ------------------------------------------------------------------------ */

.block {
  padding-bottom: 24px;
}

.block-titel {
  max-width: 20ch;
  margin: 0 auto;
  font-size: clamp(2.1rem, 4vw, 3rem);
}

.block .zahlen {
  margin-top: 32px;
}

.schritte,
.reihen,
.gespraech {
  max-width: 44rem;
  margin: 32px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  background: var(--card);
  text-align: left;
}

.schritte li,
.reihen li > * {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
}

.schritte li + li,
.reihen li + li {
  border-top: 1px solid var(--line);
}

.schritt-nr {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.schritt-text,
.reihe-text {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}

.schritt-text b,
.reihe-text b {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.schritt-meta,
.reihe-meta {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.reihen a {
  transition: background-color 0.15s;
}

.reihen a:hover {
  background: var(--soft);
}

.gespraech-kopf {
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.gespraech-zeilen {
  display: grid;
  gap: 10px;
  padding: 20px 24px 8px;
}

.rede {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.4;
}

.rede-anrufer {
  justify-self: start;
  background: var(--soft);
}

.rede-agent {
  justify-self: end;
  background: var(--ink);
  color: #fff;
}

.gespraech-ergebnis {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 12px 24px 20px;
}

.band-hoch {
  width: 220px;
  height: 293px;
  border-radius: 24px;
  object-fit: cover;
}

.band-hoch:nth-child(even) {
  margin-top: 24px;
}

.notiz-mehr {
  margin-top: 20px;
}

.block-bild {
  width: min(100%, 300px);
  margin: 0 auto 8px;
  mix-blend-mode: multiply;
}

.block-bild-breit {
  width: min(100%, 620px);
}

.bilder {
  margin-top: 32px;
}

.bilder-breit {
  display: grid;
  gap: 16px;
}

.bilder-breit img {
  width: 100%;
  border-radius: 1.75rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.bilder-raster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.bilder-raster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 1.5rem;
  object-fit: cover;
}

.bilder-figuren {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 12px 28px;
}

.bilder-figuren img {
  width: auto;
  height: 168px;
}

/* Sized by its box, never by a fixed height alone: that stretched the drawing sideways. */
.karte-figur .illu {
  width: min(100%, 400px);
  height: auto;
}

/* ---------------------------------------------------------------------------
 * Legal pages: the text comes unchanged from the previous pages
 * ------------------------------------------------------------------------ */

.recht-kopf {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 144px 20px 0;
  text-align: center;
}

.recht-kopf .label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.recht-kopf .h1 {
  max-width: 16ch;
  font-size: clamp(2.75rem, 6.2vw, 4.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.seiten-lead {
  max-width: 46ch;
  font-size: 18px;
  line-height: 28px;
  color: var(--muted);
}

.recht-hinweis {
  max-width: 46ch;
  font-size: 14px;
  color: var(--muted);
}

.recht-hinweis:empty {
  display: none;
}

.recht-bloecke {
  max-width: 44rem;
  margin: 48px auto 32px;
  padding: 0 20px;
}

.recht-block {
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-bottom-width: 0;
  background: var(--card);
}

.recht-block:first-child {
  border-radius: 1.75rem 1.75rem 0 0;
}

.recht-block:last-of-type {
  border-bottom-width: 1px;
  border-radius: 0 0 1.75rem 1.75rem;
}

.recht-nr {
  display: none;
}

.recht-inhalt h2 {
  margin-bottom: 6px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.recht-inhalt p,
.recht-inhalt li {
  font-size: 15px;
  line-height: 1.6;
  color: #4a4a4a;
  white-space: pre-line;
}

.recht-inhalt p + p {
  margin-top: 10px;
}

.recht-inhalt a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.recht-stand {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ---------------------------------------------------------------------------
 * Note
 * ------------------------------------------------------------------------ */

.notiz {
  padding: 16px 20px 64px;
}

.notiz-karte {
  position: relative;
  max-width: 544px;
  margin: 0 auto;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  background: var(--card);
}

.notiz-kopf {
  display: flex;
  align-items: center;
  gap: 16px;
}

.notiz-kopf img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.notiz-titel {
  font-weight: 600;
}

.notiz-rolle {
  font-size: 14px;
  color: var(--muted);
}

.notiz-rolle b {
  color: var(--ink);
  font-weight: 600;
}

.notiz-text {
  display: grid;
  gap: 16px;
  max-width: 382px;
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.625;
  color: rgba(17, 17, 17, 0.9);
}

.notiz-gruss {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
}

.hand {
  font-family: var(--hand);
  font-size: 26px;
  letter-spacing: 0;
  color: var(--ink);
}

.notiz-foto {
  position: absolute;
  width: 176px;
  padding: 8px 8px 28px;
}

.notiz-foto-1 {
  right: -92px;
  top: -34px;
  rotate: 5deg;
}

.notiz-foto-2 {
  right: -128px;
  top: 190px;
  rotate: -6deg;
}

/* ---------------------------------------------------------------------------
 * Things I love
 * ------------------------------------------------------------------------ */

.liebe {
  padding: 32px 20px 48px;
  text-align: center;
}

.liebe-titel {
  font-size: clamp(2.4rem, 4.4vw, 3rem);
}

.liebe-raster {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
  text-align: left;
}

.liebe-karte {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  background: var(--card);
}

.liebe-karte img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.liebe-karte figcaption {
  display: grid;
  gap: 4px;
  padding: 4px 20px 22px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

.liebe-karte b {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.fam {
  margin-top: 28px;
  font-size: 15px;
  color: var(--muted);
}

.herz {
  color: var(--primary);
}

/* ---------------------------------------------------------------------------
 * FAQ
 * ------------------------------------------------------------------------ */

.fragen {
  max-width: 48rem;
  margin: 0 auto;
  padding: 48px 20px;
}

.fragen-titel {
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 4.4vw, 3rem);
}

.fragen-liste {
  border-block: 1px solid var(--line);
}

.fragen-liste details {
  padding: 16px 0;
}

.fragen-liste details + details {
  border-top: 1px solid var(--line);
}

.fragen-liste summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.fragen-liste summary::-webkit-details-marker {
  display: none;
}

.plus {
  color: var(--muted);
  transition: rotate 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

details[open] .plus {
  rotate: 45deg;
}

.fragen-liste details p {
  max-width: 60ch;
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.fragen-liste details p a {
  color: var(--ink);
  font-weight: 600;
}

/* ---------------------------------------------------------------------------
 * Dark card
 * ------------------------------------------------------------------------ */

.dunkel {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 20px 48px;
}

.dunkel-karte {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  border-radius: 1.75rem;
  background: var(--ink);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.dunkel-karte img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.7s cubic-bezier(0, 0, 0.2, 1);
}

.dunkel-karte:hover img {
  scale: 1.03;
}

.dunkel-verlauf {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.4) 55%, rgba(0, 0, 0, 0.1));
}

.dunkel-text {
  position: absolute;
  inset: auto 0 0;
  padding: 40px;
  color: #fff;
}

.dunkel-klein {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.dunkel-text h2 {
  max-width: 20ch;
  margin-top: 8px;
  font-size: 36px;
  line-height: 1;
}

.dunkel-satz {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.dunkel-knopf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 20px;
  padding: 12px 20px;
  line-height: 24px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  transition: background-color 0.15s;
}

.dunkel-karte:hover .dunkel-knopf {
  background: rgba(255, 255, 255, 0.9);
}

/* ---------------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------------ */

.fuss {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 20px 56px;
  text-align: center;
}

.fuss-figur {
  width: 144px;
  cursor: pointer;
  will-change: transform;
}

.fuss-zeile {
  max-width: 40ch;
  font-size: 14px;
  color: var(--muted);
}

.fuss-zeile b {
  color: var(--ink);
  font-weight: 600;
}

.fuss-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.fuss-links a:hover {
  color: var(--ink);
}

.unten-leiste {
  display: none;
}

/* ---------------------------------------------------------------------------
 * Start states for the reveals. Only set when scripts run and motion is allowed,
 * so the page is complete without them.
 * ------------------------------------------------------------------------ */

/* Not half the bar's height: GSAP reads an offset of exactly -50% of the size as a percentage and keeps it. */
.mit-bewegung [data-nav] {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-18px);
}

.mit-bewegung [data-split] {
  visibility: hidden;
}

.mit-bewegung [data-hero] {
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
}

.mit-bewegung [data-hero-media] {
  opacity: 0;
  visibility: hidden;
}

.mit-bewegung [data-reveal] {
  opacity: 0;
  visibility: hidden;
  transform: translateY(28px);
}

/* ---------------------------------------------------------------------------
 * Narrow screens
 * ------------------------------------------------------------------------ */

@media (max-width: 1023px) {
  /* One column that uses the screen: 20px to each edge on phones. Only from 760px up the column stops growing,
     so text and pictures do not stretch across a tablet. */
  .seite {
    max-width: 45rem;
    padding-bottom: 112px;
  }

  .nav-halter {
    top: 12px;
  }

  .nav {
    height: 48px;
    gap: 2px;
    padding: 0 6px;
  }

  .nav-marke {
    padding: 0 4px 0 8px;
  }

  .wortmarke {
    width: 108px;
  }

  .nav-links {
    gap: 0;
    font-size: 12px;
  }

  .nav-links a {
    padding: 0 6px;
  }

  .nav-links a:nth-child(n + 3),
  .nav .knopf {
    display: none;
  }

  .nav-rechts {
    margin-left: 0;
  }

  .held {
    padding-top: 96px;
  }

  .held-text {
    font-size: 16px;
    line-height: 24px;
  }

  .held-knopf {
    display: none;
  }

  /* The note sits above the globe on phones instead of covering the map. */
  /* Measured: the globe band is 62vw high below 1024px, at most 560px. Ours is 84vw, so there is more globe to hold
     and turn with a finger. Our note sits above it and needs 132px of its own. */
  .welt {
    height: calc(84vw + 132px);
    max-height: 692px;
    margin-top: 24px;
  }

  .welt-kugel {
    top: 132px;
  }

  .welt-kugel {
    width: 150vw;
    max-width: 1100px;
  }

  /* The second half of the place label would run off the screen. */
  .ort-pille .anzahl {
    display: none;
  }

  .welt-zettel {
    left: 50%;
    top: 14px;
    width: 216px;
    padding: 18px 16px 10px;
    font-size: 12px;
    translate: -50% 0;
    rotate: -3deg;
  }

  .aussage {
    padding: 48px 20px;
  }

  .u-seite > * + * {
    margin-top: 64px;
  }

  .u-held {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 96px;
  }

  .u-lead {
    font-size: 16px;
    line-height: 24px;
  }

  .u-knoepfe .knopf {
    display: none;
  }

  .u-buehne {
    height: 340px;
    border-radius: 1.5rem;
  }

  .u-handy {
    width: 200px;
    margin-top: 28px;
    padding: 8px;
    border-radius: 34px;
  }

  .u-handy img {
    border-radius: 27px;
  }

  /* min-content keeps an unbreakable value (the mail address) inside its cell. */
  .u-fakten {
    grid-template-columns: repeat(2, minmax(min-content, 1fr));
  }

  .u-fakten > div {
    padding: 16px 14px;
  }

  .u-fakten dd {
    font-size: 15px;
  }

  .u-fakten > div:nth-child(odd) {
    border-left: 0;
  }

  .u-fakten > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .u-teiler,
  .u-dunkel {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .u-klebt {
    position: static;
  }

  .u-merkmal {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 14px;
    padding: 22px 0;
  }

  .u-merkmal-satz {
    font-size: 21px;
  }

  .u-merkmal-bild {
    grid-column: 2;
    height: 112px;
  }

  .u-dunkel {
    padding: 32px 24px;
    border-radius: 1.5rem;
  }

  .u-block-kopf .u-illu {
    width: 120px;
  }

  .u-ablauf {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 28px;
    padding-left: 14px;
  }

  .u-ablauf li {
    padding: 0 0 28px 30px;
  }

  .u-ablauf li::before {
    inset: 0 auto 0 0;
    width: 2px;
    height: auto;
  }

  .u-ablauf li:last-child {
    padding-bottom: 0;
  }

  .u-schritt-nr {
    left: -13px;
    top: -2px;
  }

  .u-zeilen li > * {
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 16px 0;
  }

  .u-pfeil {
    display: none;
  }

  .u-block .bilder-figuren {
    justify-content: center;
    padding: 24px 16px;
    border-radius: 1.5rem;
  }

  .u-ruf {
    padding: 40px 24px;
    border-radius: 1.5rem;
  }

  .u-ruf-text {
    font-size: 16px;
  }

  .band {
    margin-top: 28px;
  }

  .band-handy {
    width: 156px;
    border-width: 5px;
    border-radius: 27px;
  }

  .band-quadrat {
    width: 190px;
    height: 190px;
    border-radius: 22px;
  }

  .recht-kopf {
    padding-top: 96px;
  }

  .recht-block {
    padding: 20px;
  }

  .bilder-figuren img {
    height: 120px;
  }

  .bilder-raster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .bilder-raster img {
    border-radius: 1.1rem;
  }

  .band-hoch {
    width: 160px;
    height: 213px;
    border-radius: 18px;
  }

  .schritte li,
  .reihen li > * {
    flex-wrap: wrap;
    padding: 16px 18px;
  }

  /* Text takes the full row; the small label drops below it instead of squeezing it. */
  .schritt-text {
    flex-basis: calc(100% - 44px);
  }

  .reihe-text {
    flex-basis: 100%;
  }

  .schritt-meta,
  .reihe-meta {
    order: 3;
    margin-left: 44px;
  }

  .reihe-meta {
    margin-left: 0;
  }

  .rede {
    max-width: 88%;
  }

  .band-quer {
    width: 300px;
    height: 188px;
    border-radius: 16px;
  }

  .figur {
    height: 168px;
  }

  .aussage-text {
    font-size: 16px;
    line-height: 24px;
  }

  .zahlen {
    grid-template-columns: repeat(2, 1fr);
  }

  .karten {
    grid-template-columns: minmax(0, 1fr);
  }

  .karte-innen {
    padding: 24px;
  }

  .karte-breit {
    flex-direction: column;
  }

  .karte-breit-bild {
    width: 100%;
    min-height: 0;
    height: 240px;
  }

  .karte-satz {
    font-size: 24px;
  }

  .karte-handy {
    height: 360px;
  }

  .handy {
    width: 300px;
    padding: 13px;
    border-radius: 48px;
  }

  .handy img {
    border-radius: 35px;
  }

  .karte-terminal,
  .karte-liste {
    padding: 0 24px 24px;
  }

  .karte-foto {
    padding: 8px 24px 28px;
  }

  .notiz-karte {
    padding: 24px;
  }

  .notiz-kopf {
    padding-right: 112px;
  }

  /* Subpage notes carry no photo, so the header may use the full width. */
  .notiz-schmal .notiz-kopf {
    padding-right: 0;
  }

  .notiz-foto {
    width: 112px;
    padding: 6px 6px 20px;
  }

  .notiz-foto-1 {
    right: -6px;
    top: -30px;
  }

  .notiz-foto-2 {
    display: none;
  }

  .liebe-raster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .liebe-karte figcaption {
    padding: 4px 14px 16px;
    font-size: 13px;
  }

  .dunkel-karte {
    aspect-ratio: 4 / 5;
  }

  .dunkel-text {
    padding: 20px;
  }

  .dunkel-text h2 {
    font-size: 26px;
    line-height: 1.05;
  }

  .dunkel-satz {
    font-size: 14px;
  }

  .dunkel-knopf {
    min-height: 40px;
    padding: 10px 16px;
    font-size: 14px;
    line-height: 20px;
  }

  .fuss {
    padding-bottom: 128px;
  }

  .unten-leiste {
    position: fixed;
    inset: auto 0 0;
    z-index: 40;
    display: flex;
    justify-content: center;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--bg) 55%, rgba(247, 247, 247, 0));
  }

  .unten-leiste .knopf {
    width: 100%;
    max-width: 26rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .welt-punkt::after,
  .terminal-text .t-cursor {
    animation: none;
  }

  .kachel,
  .figur,
  .dunkel-karte img {
    transition: none;
  }

}

/* Hero title steps as measured on the reference. */
@media (min-width: 640px) {
  .held-titel { font-size: 3.75rem; }
}

@media (min-width: 1024px) {
  .held-titel { font-size: 4.5rem; }
}

/* ---------------------------------------------------------------------------
 * Books (About page): covers in rows, each one a button. A click opens a small window with the cover and a few
 * lines about the book. On phones three across, nothing drops out.
 * ------------------------------------------------------------------------ */

.nur-vorlesen {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.buecher {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
  gap: 30px 20px;
  margin-top: 32px;
}

.buch {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.buch:focus-visible {
  outline: 3px solid var(--blau);
  outline-offset: 4px;
  border-radius: 6px;
}

.buch img,
.buch-ersatz {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 10px 22px rgba(0, 0, 0, 0.12);
  transition: translate 0.25s cubic-bezier(0.2, 0, 0, 1), rotate 0.25s cubic-bezier(0.2, 0, 0, 1);
}

.buch:hover img,
.buch:hover .buch-ersatz {
  translate: 0 -6px;
  rotate: -1.5deg;
}

/* A plain cover in the colours of the book's spine, for books without a fitting picture. */
.buch-ersatz {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 14px 14px;
  background: var(--g, #ecebe6);
  color: var(--s, #111);
  container-type: inline-size;
}

.buch-ersatz b {
  font-size: clamp(8px, 11.5cqw, 30px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.buch-ersatz i {
  font-size: clamp(6px, 7.4cqw, 18px);
  font-style: normal;
  font-weight: 500;
  line-height: 1.25;
}

.buch-name {
  display: grid;
  gap: 2px;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.3;
}

.buch-name b {
  font-weight: 600;
}

.buch-name span {
  color: var(--muted);
}

/* The lines about the book are in the markup for both languages; the window shows them. */
.buch-worum {
  display: none;
}

.buch-fenster {
  width: min(460px, calc(100vw - 32px));
  padding: 22px;
  border: 0;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.06);
  color: var(--ink);
}

.buch-fenster[open] {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.buch-fenster::backdrop {
  background: rgba(17, 17, 17, 0.36);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.mit-bewegung .buch-fenster[open] {
  animation: buch-auf 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.mit-bewegung .buch-fenster[open]::backdrop {
  animation: buch-schleier 0.3s ease both;
}

@keyframes buch-auf {
  from { opacity: 0; scale: 0.86; translate: 0 18px; }
}

@keyframes buch-schleier {
  from { opacity: 0; }
}

.buch-bild img,
.buch-bild .buch-ersatz {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 10px 22px rgba(0, 0, 0, 0.14);
}

.buch-inhalt h3 {
  margin: 0 36px 0 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.buch-autor {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.buch-text {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.5;
}

.buch-zu {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.buch-zu:hover {
  background: var(--soft);
  color: var(--ink);
}

.buch-zu svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 640px) {
  .buecher {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 12px;
  }

  .buch-name {
    font-size: 12px;
  }

  .buch-fenster[open] {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .buch img,
  .buch-ersatz {
    transition: none;
  }
}

/* Picture viewer (neu.js): own photos open large with a watermark and the copyright line. */
.bild-gross {
  cursor: zoom-in;
}

.bild-gross:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.bild-fenster {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100svh;
  max-height: none;
  margin: 0;
  padding: calc(env(safe-area-inset-top) + 8px) 0 env(safe-area-inset-bottom);
  box-sizing: border-box;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.bild-fenster[open] {
  display: grid;
  place-items: center;
}

.bild-fenster::backdrop {
  background: rgba(17, 17, 17, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.mit-bewegung .bild-fenster[open]::backdrop {
  animation: buch-schleier 0.32s ease both;
}

.bild-fenster.geht::backdrop {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bild-rahmen {
  display: grid;
  gap: 12px;
  margin: 0;
}

.bild-flaeche {
  position: relative;
  width: min(1100px, calc(100vw - 40px), calc((100vh - 150px) * var(--r, 1.5)));
  width: min(1100px, calc(100vw - 40px), calc((100svh - 150px) * var(--r, 1.5)));
  aspect-ratio: var(--r, 1.5);
  overflow: hidden;
  border-radius: 14px;
  background: #222;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  will-change: transform, clip-path;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.bild-flaeche img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* The watermark lies over the whole picture, so a copy of the screen carries the name too. */
.bild-zeichen {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='150'%3E%3Ctext x='130' y='80' text-anchor='middle' transform='rotate(-24 130 75)' font-family='Helvetica, Arial, sans-serif' font-size='17' font-weight='600' fill='%23ffffff' fill-opacity='0.24' stroke='%23000000' stroke-opacity='0.22' stroke-width='0.8'%3E%C2%A9 Elias Conrad%3C/text%3E%3C/svg%3E");
  background-size: 260px 150px;
  pointer-events: none;
}

.bild-stempel {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  pointer-events: none;
}

.bild-rahmen figcaption {
  display: grid;
  gap: 3px;
  width: min(1100px, calc(100vw - 40px), calc((100vh - 150px) * var(--r, 1.5)));
  width: min(1100px, calc(100vw - 40px), calc((100svh - 150px) * var(--r, 1.5)));
  justify-self: center;
  color: #fff;
}

.bild-text {
  font-size: 15px;
  line-height: 1.4;
}

.bild-text:empty {
  display: none;
}

.bild-recht {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.66);
}

.bild-zu {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  transition: scale 0.15s;
}

.bild-zu svg {
  width: 20px;
  height: 20px;
}

.bild-zu:active {
  scale: 0.94;
}

.bild-offen {
  overflow: hidden;
}

@media (max-width: 767px) {
  .bild-flaeche,
  .bild-rahmen figcaption {
    width: min(calc(100vw - 40px), calc((100vh - 220px) * var(--r, 1.5)));
    width: min(calc(100vw - 40px), calc((100svh - 220px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * var(--r, 1.5)));
  }
}

/* On phones the map credit sits over the globe's labels: give it its own ground and the page margin. */
@media (max-width: 767px) {
  .welt-quelle {
    right: 20px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
  }
}
