/*
 * Prefill website.
 *
 * Built on the same tokens as the extension, so the site and the product are
 * one brand: a light ground, deep navy as the one strong colour, black text,
 * white on navy, soft rounded corners.
 *
 * Every text pair below was measured before it was written, light and dark:
 *
 *   LIGHT                                   DARK
 *   body text on page      19.77:1          body text on page      19.04:1
 *   body text on card      21.00:1          body text on card      17.07:1
 *   headings on page       14.40:1          headings on page       19.04:1
 *   links on page          10.77:1          links on page           9.96:1
 *   button label on navy   11.44:1          button label on navy   11.44:1
 *   text on deep band      15.29:1          text on deep band      11.44:1
 *   control edge on page    3.39:1          control edge on page    6.37:1
 *
 * Two rules that are not negotiable, both learned the hard way on the
 * extension:
 *
 * 1. No grey text. Body copy, secondary copy and fine print are all black on
 *    light and white on dark. Hierarchy comes from size and weight.
 *
 * 2. Never dark text on a blue button. In dark mode a brighter blue with a
 *    black label would measure 5.63:1 and pass the rules; it is still not
 *    done. Buttons are white on navy in both themes, and in dark mode they get
 *    a light edge so they stand off the near black page.
 */

/* ---------------------------------------------------------------- fonts */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------- tokens */

:root {
  color-scheme: light;

  --bg: #f7f8fb;
  --surface: #ffffff;
  --tint: #eaf0fb;
  --ink: #000000;
  --head: #0d2350;
  --link: #12357e;

  --accent: #12357e;
  --on-accent: #ffffff;
  --btn-edge: #12357e;

  --deep: #0d2350;
  --on-deep: #ffffff;

  --line: #7d879f;
  --ring: #12357e;

  /* Decoration only, never behind or as text. */
  --fill: #12357e;
  --sky: #c9d8f7;
  --glow: rgba(18, 53, 126, 0.10);

  --shadow: 0 1px 2px rgba(13, 35, 80, 0.06), 0 18px 50px rgba(13, 35, 80, 0.12);
  --shadow-s: 0 1px 2px rgba(13, 35, 80, 0.08), 0 6px 18px rgba(13, 35, 80, 0.08);

  --r-s: 8px;
  --r-m: 16px;
  --r-l: 28px;
  --pill: 999px;

  --display: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
}

[data-theme="dark"] {
  color-scheme: dark;

  --bg: #07101f;
  --surface: #0f1b36;
  --tint: #0b1630;
  --ink: #ffffff;
  --head: #ffffff;
  --link: #9dbbff;

  --accent: #12357e;
  --on-accent: #ffffff;
  --btn-edge: #8595bd;

  --deep: #12357e;
  --on-deep: #ffffff;

  --line: #8595bd;
  --ring: #9dbbff;

  --fill: #4f7ff0;
  --sky: #1f3a7a;
  --glow: rgba(79, 127, 240, 0.16);

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-s: 0 1px 2px rgba(0, 0, 0, 0.5), 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* ----------------------------------------------------------------- base */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  /* hidden first for old browsers, clip where supported: clip does not turn
     body into a scroll container, so the sticky nav keeps working. */
  overflow-x: hidden;
  overflow-x: clip;
}

/*
 * The paper grain from Pexels, flattened to a luminance of 241 to 250 so it
 * can sit under black text without costing anything measurable. Light theme
 * only: on a near black page it would read as dust.
 */
[data-theme="light"] body {
  background-image: url("../img/paper.webp");
  background-size: 900px 900px;
}

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

h1, h2, h3 {
  font-family: var(--display);
  color: var(--head);
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}
h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.25; }

p { margin: 0 0 1em; text-wrap: pretty; }
strong { font-weight: 700; }

a { color: var(--link); text-decoration-thickness: 2px; text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 18px; border-radius: var(--pill); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }

/* ------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px;
  border-radius: var(--pill);
  font: 600 1.05rem/1.15 var(--display);
  letter-spacing: -0.005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn--primary {
  background: var(--accent); color: var(--on-accent);
  border: 1.5px solid var(--btn-edge);
  box-shadow: 0 8px 24px rgba(18, 53, 126, 0.28);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(18, 53, 126, 0.36); }
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
/* On the deep band only: white fill, navy label, 11.44:1. */
.btn--light { background: #ffffff; color: #12357e; border: 1.5px solid #ffffff; }
.btn--light:hover { transform: translateY(-2px); }
.btn--small { min-height: 42px; padding: 0 20px; font-size: .95rem; }
.btn--block { width: 100%; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ----------------------------------------------------------------- nav */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 35%, transparent);
}
.nav__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.nav__brand { display: inline-flex; border-radius: 8px; }
.nav__brand img { height: 36px; width: auto; }
.brand-dark { display: none; }
[data-theme="dark"] .brand-light { display: none; }
[data-theme="dark"] .brand-dark { display: block; }

.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a {
  color: var(--ink); text-decoration: none; font: 500 1rem/1 var(--display);
  padding: 8px 2px; border-bottom: 2px solid transparent;
}
.nav__links a:hover { border-bottom-color: var(--ink); }

.nav__actions { display: flex; align-items: center; gap: 14px; }

/*
 * All three toggles. Safari on iPhone (and every iOS browser, since they all
 * use its engine) gives a button 1em of padding left and right. With the big
 * font sizes below that padding is wider than the button itself, so the icon
 * started in the middle and ran off to the right. Desktop browsers add no
 * such padding, which is why it only showed on the phone.
 */
.theme-toggle {
  padding: 0; margin: 0;
  -webkit-appearance: none; appearance: none;
  line-height: 0;
}
.theme-toggle svg { display: block; flex: none; }

.nav__theme {
  font-size: 1.55rem; color: var(--ink);
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: var(--pill);
  border: 1.5px solid var(--line) !important;
}

/*
 * The links fold away earlier than they did in English alone. "So funktioniert
 * es", "Bildbeschreibungen" and a language menu do not fit beside the button in
 * the space that "How it works" did.
 */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
}

/* ------------------------------------------------------ language menu */

/*
 * A <details> of plain links, built by scripts/build-newsite.py. It works with
 * no JavaScript: the browser opens and closes it, and every entry is an
 * ordinary link to the same page in another language.
 */
.langsw { position: relative; }
.langsw summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 16px;
  border-radius: var(--pill); border: 1.5px solid var(--line);
  font: 600 .95rem/1 var(--display); color: var(--ink);
  background: transparent;
}
.langsw summary::-webkit-details-marker { display: none; }
.langsw summary::after {
  content: ""; width: 7px; height: 7px; margin-top: -4px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg); transition: transform .2s ease;
}
.langsw[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.langsw summary:hover { border-color: var(--ink); }
.langsw__code { display: none; }

.langsw ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 70;
  list-style: none; margin: 0; padding: 8px; min-width: 220px;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r-m); box-shadow: var(--shadow);
}
.langsw a {
  display: block; padding: 11px 14px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font: 500 1rem/1.2 var(--display);
}
.langsw a:hover { background: var(--tint); }
/* The current language: white on navy, the same pair as every button. */
.langsw a[aria-current="true"] {
  background: var(--accent); color: var(--on-accent); font-weight: 650;
}

@media (max-width: 1280px) {
  .langsw__full { display: none; }
  .langsw__code { display: inline; }
  .langsw summary { padding: 0 14px; }
}
/*
 * On a phone the install button leaves the bar. "Kostenlos installieren" was
 * squeezed onto two lines beside the menu and the theme switch, and the same
 * button sits in full size directly under the headline anyway.
 */
@media (max-width: 480px) {
  .nav__inner { gap: 12px; }
  .nav__actions { gap: 8px; }
  .nav__actions .btn--small { display: none; }
}

/* ---------------------------------------------------------------- hero */

/*
 * The glow below pokes past the right edge on purpose. Safari on the iPhone
 * ignores overflow-x on body, so there the page became 39px wider than the
 * screen, could be panned sideways, and every centred toggle looked off
 * centre. The section clips its own decoration now, horizontally only, so the
 * glow still spills upwards. Older Safari without clip gets hidden instead.
 */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(90px, 10vw, 150px); overflow-x: clip; }
@supports not (overflow: clip) { .hero, .legal-hero { overflow: hidden; } }
.hero::before {
  /* A soft navy glow behind the photo, decoration only. */
  content: ""; position: absolute; right: -10%; top: -10%;
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid; gap: clamp(40px, 6vw, 80px);
  grid-template-columns: 1.15fr .85fr; align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .95rem/1.2 var(--display); color: var(--link);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 10px; border-radius: 0 0 12px 12px;
  background: var(--fill);
}
.eyebrow--on-deep { color: #ffffff; }
.eyebrow--on-deep::before { background: #ffffff; }

/*
 * Each headline line is its own block, and balancing is off for them. At 6rem
 * with balance on, the browser split "Write it once." into "Write" and "it
 * once." to even out the line lengths, which reads as a stammer. Capped at
 * 5rem so the first line fits its column at a 1440 screen.
 */
.display {
  font-size: clamp(2.6rem, 5.6vw, 5rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-bottom: 28px;
  text-wrap: wrap;
}
.display__line { display: block; }
/*
 * The second line of the headline fills with navy from the bottom, the way the
 * mark fills. Only the colour of the letters changes, never what is behind
 * them, so the contrast is the same at every frame of the animation.
 */
.display__fill {
  display: block;
  background: linear-gradient(0deg, var(--fill) 50%, var(--head) 50%);
  background-size: 100% 200%;
  background-position: 0 0;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: fill-text 1.6s cubic-bezier(.2, .7, .1, 1) .35s forwards;
}
@keyframes fill-text { to { background-position: 0 100%; } }
[data-theme="dark"] .display__fill { background-image: linear-gradient(0deg, #9dbbff 50%, #ffffff 50%); }

.lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); max-width: 34em; }
.lede strong { color: var(--head); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 20px; }
.hero__note { font-size: 1rem; margin: 0; max-width: 32em; }

.hero__visual { position: relative; }
.hero__photo {
  margin: 0; border-radius: var(--r-l); overflow: hidden;
  aspect-ratio: 4 / 5; box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

.float {
  position: absolute; background: var(--surface); color: var(--ink);
  border-radius: 20px; box-shadow: var(--shadow);
  border: 1px solid color-mix(in srgb, var(--line) 30%, transparent);
  padding: 16px 18px;
  animation: bob 7s ease-in-out infinite;
}
.float--composer { left: -12%; top: 9%; width: min(300px, 70%); transform: rotate(-3deg); }
.float--platforms { right: -8%; bottom: 7%; width: 220px; transform: rotate(2.5deg); animation-delay: -3s; }
@keyframes bob { 50% { translate: 0 -10px; } }

.float__label { font: 600 .8rem/1 var(--display); letter-spacing: .02em; margin: 0 0 8px; }
.float__text { font-size: .98rem; line-height: 1.45; margin: 0 0 10px; }
.float__meta { font-size: .85rem; margin: 0; display: flex; align-items: center; gap: 8px; }
.float__foot { font: 600 .9rem/1.2 var(--display); margin: 12px 0 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--fill); flex: none; }

.tanks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.tanks li { display: flex; align-items: center; gap: 10px; font: 600 .95rem/1 var(--display); }
/*
 * Each platform gets a small copy of the mark filling up. The label sits
 * beside the tank, never on top of it, so it reads at full contrast whether the
 * tank is empty, half full or full.
 */
.tank {
  position: relative; width: 22px; height: 22px; border-radius: 6px; overflow: hidden;
  border: 1.5px solid var(--accent); background: var(--surface); flex: none;
}
[data-theme="dark"] .tank { border-color: var(--line); }
.tank > span {
  position: absolute; inset: auto 0 0 0; height: 0; background: var(--fill);
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  animation: tank-fill 1s cubic-bezier(.3, .8, .2, 1) forwards;
}
.tanks li:nth-child(1) .tank > span { animation-delay: .9s; }
.tanks li:nth-child(2) .tank > span { animation-delay: 1.15s; }
.tanks li:nth-child(3) .tank > span { animation-delay: 1.4s; }
.tanks li:nth-child(4) .tank > span { animation-delay: 1.65s; }
.tanks li:nth-child(5) .tank > span { animation-delay: 1.9s; }
@keyframes tank-fill { to { height: 72%; } }

.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(40px, 6vw, 90px); }
.wave path { fill: var(--surface); }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .float--composer { left: -4%; }
  .float--platforms { right: -4%; }
}
@media (max-width: 560px) {
  .float { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; margin-top: -40px; transform: none; }
  .float--platforms { margin-top: 12px; }
}

/* ---------------------------------------------------------- platforms */

.strip { background: var(--surface); padding: 22px 0 42px; }
.strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 34px; }
.strip__title { margin: 0; font: 600 1rem/1 var(--display); }
.strip__list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; }
.strip__list li {
  font: 650 1.05rem/1 var(--display); color: var(--ink);
  padding: 12px 20px; border-radius: var(--pill);
  border: 1.5px solid var(--line); background: var(--bg);
}

/* ---------------------------------------------------------- clipboard */

/*
 * The answer to "only five?", placed where the question is asked: directly
 * under the list of platforms. Tinted, so it stands out between the white
 * strip above and the white comparison below.
 */
.clip__chips {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.clip__chips li {
  font: 650 1.05rem/1 var(--display); color: var(--ink);
  padding: 12px 20px; border-radius: var(--pill);
  border: 1.5px solid var(--line); background: var(--surface);
}

/* ------------------------------------------------------------ sections */

.section { padding: var(--section) 0; position: relative; }
.section--tint { background: var(--tint); }
.section--deep { background: var(--deep); color: var(--on-deep); }
.section--deep h2, .section--deep h3 { color: var(--on-deep); }

.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__lede { font-size: 1.25rem; margin-top: 18px; }

.display--deep { color: #ffffff; margin: 0; }

.small { font-size: 1rem; }

/* -------------------------------------------------------------- compare */

.compare { background: var(--surface); }
.compare .section__head { margin-left: auto; margin-right: auto; text-align: center; }
.compare .eyebrow { justify-content: center; }

/*
 * Label, bulb, label as three grid columns with equal outer columns, so the
 * bulb sits exactly in the middle whatever the two labels measure in each
 * language. As a flex row the longer label pushed the bulb off centre, and on
 * a phone the pair crowded the edges.
 */
.compare__switch {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px;
  max-width: 560px; margin: 0 auto 36px;
}
.compare__side { font: 650 1.15rem/1.2 var(--display); white-space: nowrap; }
.compare__side:first-child { text-align: right; }
.compare__side:last-child { text-align: left; }
.compare__bulb {
  font-size: 3.2rem; color: var(--ink);
  width: 86px; height: 86px; display: grid; place-items: center;
  border-radius: 50%;
  border: 2px solid var(--line) !important;
  background: var(--bg) !important;
  transition: background-color .4s ease, box-shadow .4s ease, color .4s ease;
}
.compare.is-lit .compare__bulb {
  background: var(--accent) !important; color: #ffffff;
  border-color: var(--btn-edge) !important;
  box-shadow: 0 0 0 10px var(--glow), 0 0 60px 10px var(--glow);
}
/* The side that is active reads bold and underlined, the other stays black. */
.compare__side[aria-current="true"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* On a phone the two labels and the bulb have to share 350px. Kept on one
   line each, because a wrapped label had its underline cut through it. */
@media (max-width: 480px) {
  .compare__switch { gap: 12px; }
  .compare__side { font-size: 1rem; }
  .compare__bulb { font-size: 2.4rem; width: 64px; height: 64px; }
}

.compare__panels { max-width: 760px; margin: 0 auto; }
.panel {
  border-radius: var(--r-l); padding: clamp(24px, 4vw, 44px);
  border: 1.5px solid var(--line); background: var(--bg);
  animation: pop .45s cubic-bezier(.2, .8, .2, 1);
}
.panel--with { background: var(--tint); border-color: var(--accent); }
[data-theme="dark"] .panel--with { border-color: var(--line); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.99); } }

.panel__count { font: 700 1.2rem/1.2 var(--display); margin: 0 0 18px; }
.panel__count span { font-size: 2.6rem; letter-spacing: -0.04em; margin-right: 6px; color: var(--head); }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: item; }
.checklist li { position: relative; padding-left: 46px; font-size: 1.15rem; line-height: 1.45; counter-increment: item; }
.checklist li::before {
  content: counter(item); position: absolute; left: 0; top: -2px;
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  font: 700 .95rem/1 var(--display);
}
.checklist--pain li::before { border: 1.5px solid var(--line); color: var(--ink); background: var(--surface); }
.checklist--joy li::before { background: var(--accent); color: var(--on-accent); border: 1.5px solid var(--btn-edge); }

/* ---------------------------------------------------------------- bento */

/*
 * Named areas rather than spans. With spans the photo took two columns of a
 * second row that nothing else filled, and left a hole the size of a card
 * beside it. The photo now stands two rows tall beside the three steps.
 */
.bento {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 20px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "one   one   photo photo"
    "two   three photo photo";
}
.bento > :nth-child(1) { grid-area: one; }
.bento > :nth-child(2) { grid-area: two; }
.bento > :nth-child(3) { grid-area: three; }
.bento > :nth-child(4) { grid-area: photo; }
.bento__card {
  position: relative; background: var(--surface); border-radius: var(--r-l);
  padding: 30px; box-shadow: var(--shadow-s);
  border: 1px solid color-mix(in srgb, var(--line) 30%, transparent);
  overflow: hidden;
}
.bento__card--photo { padding: 0; min-height: 260px; }
.bento__card--photo img { width: 100%; height: 100%; object-fit: cover; }
.bento__card h3 { margin: 14px 0 10px; }
.bento__card p { margin: 0; font-size: 1.05rem; }
.bento__num {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 12px; background: var(--accent); color: var(--on-accent);
  border: 1.5px solid var(--btn-edge);
  font: 700 1.05rem/1 var(--display);
}

.mini-composer {
  margin-top: 22px; padding: 16px; border-radius: var(--r-m);
  background: var(--bg); border: 1.5px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.mini-composer__caret { width: 2px; height: 22px; background: var(--ink); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chip {
  font: 600 .9rem/1 var(--display); color: var(--ink);
  padding: 8px 12px; border-radius: var(--pill);
  background: var(--tint); border: 1px solid var(--line);
}

@media (max-width: 960px) {
  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "one one" "two three" "photo photo";
  }
}
@media (max-width: 600px) {
  .bento {
    grid-template-columns: 1fr;
    grid-template-areas: "one" "two" "three" "photo";
  }
}

/* ---------------------------------------------------------------- split */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.split--reverse .split__copy { order: 1; }
.split--reverse .split__media { order: 2; }
.split__copy h2 { margin-bottom: 22px; }
.split__media img { border-radius: var(--r-l); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }

.split__media--stack { position: relative; min-height: 460px; }
.split__media--stack img { position: absolute; width: 78%; aspect-ratio: 3 / 2; }
.stack__a { top: 0; left: 0; transform: rotate(-2.5deg); }
.stack__b { bottom: 0; right: 0; transform: rotate(2deg); border: 6px solid var(--surface); }

@media (max-width: 960px) {
  /* The overlapping pair is a desktop composition. Pinned in a single column
     it left a hole between the photos, so on smaller screens they simply
     sit one above the other. */
  .split__media--stack { min-height: 0; display: grid; gap: 16px; }
  .split__media--stack img { position: static; width: 100%; transform: none; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__copy { order: 2; }
  .split--reverse .split__media { order: 1; }
}

/* --------------------------------------------------------------- inside */

/*
 * The real extension on a navy stage.
 *
 * Deliberately not the old treatment, a screenshot tilted on a warm surface.
 * Here the popup hangs under a drawn toolbar the way it really opens, sits
 * straight, and the stage carries the brand. Everything on the stage is white
 * on #0D2350 (15.29:1) or navy on white (11.44:1). The toolbar is decoration
 * and has no text.
 */
.inside__stage {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 6vw, 80px); align-items: center;
  background: var(--deep); color: #ffffff;
  border-radius: 36px;
  padding: clamp(32px, 6vw, 84px);
}
.inside__stage::before {
  content: ""; position: absolute; right: -12%; top: -20%;
  width: 70%; height: 90%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(79, 127, 240, 0.40), transparent 72%);
}
.inside__stage::after {
  /* The wave from the mark, faint along the bottom of the stage. */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 40c160 34 320 50 480 34S800 0 960 8s320 58 480 50V90H0Z' fill='white' fill-opacity='.06'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.inside__copy, .inside__visual { position: relative; z-index: 1; }
.inside__stage h2, .inside__stage h3 { color: #ffffff; }
.inside__lede { font-size: 1.25rem; margin: 18px 0 34px; color: #ffffff; }

.callouts { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.callouts li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.callouts__num {
  width: 36px; height: 36px; border-radius: 12px;
  background: #ffffff; color: #12357e;
  display: grid; place-items: center; font: 750 1rem/1 var(--display);
}
.callouts h3 { font-size: 1.12rem; margin: 5px 0 4px; }
.callouts p { margin: 0; font-size: 1rem; line-height: 1.5; color: #ffffff; }

.inside__visual { justify-self: center; width: min(100%, 390px); }

.toolbar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 16px; margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 18px;
}
.toolbar__dots { display: flex; gap: 6px; }
.toolbar__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); }
.toolbar__address { flex: 1; height: 24px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); }
.toolbar__ext {
  position: relative; flex: none;
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; background: #ffffff;
  box-shadow: 0 0 0 4px rgba(157, 187, 255, 0.45);
}
.toolbar__ext img { width: 22px; height: 22px; }
/* The popup's tail, pointing up at the button it came from. */
.toolbar__ext::after {
  content: ""; position: absolute; left: 50%; bottom: -19px; margin-left: -9px;
  border: 9px solid transparent; border-bottom-color: #ffffff;
}

.popup { position: relative; margin: 0 0 0 auto; width: calc(100% - 22px); }
.popup__frame { position: relative; }
.popup__shot {
  display: block; width: 100%; height: auto;
  border-radius: 14px; background: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3), 0 34px 90px rgba(0, 0, 0, 0.45);
}
.pin {
  position: absolute; left: -18px; top: var(--y); transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: #ffffff; color: #12357e; font: 750 .95rem/1 var(--display);
  box-shadow: 0 0 0 5px rgba(157, 187, 255, 0.45), 0 8px 20px rgba(0, 0, 0, 0.35);
}
.pin::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid rgba(157, 187, 255, 0.8);
  animation: pin-ring 2.8s ease-out infinite;
}
.pin:nth-of-type(2)::after { animation-delay: .5s; }
.pin:nth-of-type(3)::after { animation-delay: 1s; }
.pin:nth-of-type(4)::after { animation-delay: 1.5s; }
.pin:nth-of-type(5)::after { animation-delay: 2s; }
@keyframes pin-ring { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.8); opacity: 0; } }

.popup__note { margin: 16px 0 0; text-align: center; font-size: .95rem; color: #ffffff; }

@media (max-width: 960px) {
  .inside__stage { grid-template-columns: 1fr; }
  .inside__visual { width: min(100%, 360px); }
}
@media (max-width: 480px) {
  .inside__stage { border-radius: 24px; }
  .pin { width: 30px; height: 30px; left: -14px; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pin::after { animation: none; opacity: 0; }
}

/* --------------------------------------------------------------- limits */

.limits { list-style: none; margin: 30px 0 24px; padding: 0; display: grid; gap: 12px; }
.limits li { display: grid; grid-template-columns: 7.5ch 1fr 6ch; align-items: center; gap: 14px; }
.limits__name { font: 650 1rem/1 var(--display); }
.limits__num { font: 650 1rem/1 var(--display); text-align: right; font-variant-numeric: tabular-nums; }
.limits__bar { height: 14px; border-radius: var(--pill); background: var(--tint); border: 1px solid var(--line); overflow: hidden; }
.limits__bar > span {
  display: block; height: 100%; width: 0; border-radius: var(--pill); background: var(--fill);
  transition: width 1.3s cubic-bezier(.2, .8, .2, 1);
}
.is-in .limits__bar > span, .no-motion .limits__bar > span { width: calc(var(--v) * 100%); }
.limits li:nth-child(2) .limits__bar > span { transition-delay: .1s; }
.limits li:nth-child(3) .limits__bar > span { transition-delay: .2s; }
.limits li:nth-child(4) .limits__bar > span { transition-delay: .3s; }
.limits li:nth-child(5) .limits__bar > span { transition-delay: .4s; }

/* -------------------------------------------------------------- pillars */

.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillars li {
  border-radius: var(--r-l); padding: 34px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.pillars h3 { font-size: 1.5rem; margin-bottom: 12px; }
.pillars p { margin: 0; color: #ffffff; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- greeter */

.greeter {
  margin-top: 30px; padding: 28px; border-radius: var(--r-l);
  background: var(--surface); border: 1.5px solid var(--line); box-shadow: var(--shadow-s);
}
/* The same three columns as the comparison switch: the sun sits in the middle. */
.greeter__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; max-width: 380px; }
.greeter__side { font: 650 1rem/1.2 var(--display); white-space: nowrap; }
.greeter__side:first-child { text-align: right; }
.greeter__horizon {
  font-size: 2.2rem; color: var(--ink);
  width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid var(--line) !important; background: var(--bg) !important;
}
.greeter__line {
  font: 650 clamp(1.5rem, 3vw, 2.1rem)/1.2 var(--display); letter-spacing: -0.02em;
  margin: 22px 0 20px; min-height: 1.3em; color: var(--head);
}
.greeter__line.swap { animation: pop .4s cubic-bezier(.2, .8, .2, 1); }

.langs { display: flex; flex-wrap: wrap; gap: 8px; }
.lang {
  font: 600 .92rem/1 var(--display); color: var(--ink);
  padding: 10px 14px; border-radius: var(--pill);
  border: 1.5px solid var(--line); background: var(--bg); cursor: pointer;
}
.lang[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--btn-edge); }

/* On a phone the card is narrow enough that a left aligned row looked lopsided: everything centres. */
@media (max-width: 560px) {
  .greeter { padding: 24px 18px; text-align: center; }
  .greeter__row { margin: 0 auto; gap: 12px; }
  .greeter__horizon { width: 58px; height: 58px; font-size: 2rem; }
  .langs { justify-content: center; }
}

/* --------------------------------------------------------------- people */

.mosaic { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; }
.mosaic img { border-radius: var(--r-l); box-shadow: var(--shadow-s); width: 100%; height: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.mosaic img:nth-child(2) { transform: translateY(28px); }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: 1fr; }
  .mosaic img:nth-child(2) { transform: none; }
}

/* -------------------------------------------------------------- pricing */

/*
 * Three cards side by side: Free, Pro monthly, Pro yearly. There used to be a
 * monthly/yearly switch above one Pro card; every price is now simply on the
 * page. Each card is a column with its button pushed to the bottom, so the
 * three buttons line up although the lists differ in length.
 */
.plans {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  max-width: 1180px; margin: 0 auto; align-items: stretch;
}
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-l);
  padding: 36px 32px; border: 1.5px solid var(--line); box-shadow: var(--shadow-s);
}
.plan .btn { margin-top: auto; }
.plan--pro { border: 2px solid var(--accent); }
.plan--best { box-shadow: var(--shadow); }
[data-theme="dark"] .plan--pro { border-color: var(--link); }
/* "Monthly" or "Yearly" beside the plan name, navy on the pale tint. */
.plan__period {
  display: inline-block; vertical-align: middle; margin-left: 8px; padding: 6px 12px;
  border-radius: var(--pill); border: 1px solid var(--line);
  background: var(--tint); color: var(--head);
  font: 650 .9rem/1 var(--display); letter-spacing: 0;
}
.plan__flag {
  position: absolute; top: -16px; left: 38px; margin: 0;
  font: 700 .85rem/1 var(--display); padding: 9px 14px; border-radius: var(--pill);
  background: var(--accent); color: var(--on-accent); border: 1px solid var(--btn-edge);
}
.plan__name { font-size: 1.6rem; }
.plan__price { margin: 16px 0 4px; }
.plan__amount { font: 750 clamp(2.8rem, 3.6vw, 3.4rem)/1 var(--display); letter-spacing: -0.05em; color: var(--head); }
.plan__unit { font-size: 1rem; margin: 0 0 24px; }
.plan__list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.plan__list li { position: relative; padding-left: 32px; font-size: 1.05rem; line-height: 1.45; }
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 6px;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 10.5 3.2 3L15 6.5' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
  border: 1px solid var(--btn-edge);
}
.fine { text-align: center; font-size: 1rem; max-width: 720px; margin: 36px auto 0; }
.plan .btn { padding: 0 20px; }
/*
 * Three columns need room: at 1100px "Commencer l'essai gratuit" wrapped
 * inside its button. Below 1120px the cards stack, in the same order: Free,
 * monthly, yearly.
 */
@media (max-width: 1120px) { .plans { grid-template-columns: 1fr; max-width: 560px; gap: 32px; } }

/*
 * Phones. The plan cards give back some padding, so "Erweiterung
 * installieren" and its equivalents stay on one line inside the button.
 */
@media (max-width: 480px) {
  .plan { padding: 30px 22px; }
  .plan__flag { left: 22px; }
  .plan .btn { padding: 0 16px; font-size: 1rem; }
}

/* ------------------------------------------------------------------ faq */

.faq { display: grid; gap: 14px; }
.faq details {
  background: var(--surface); border-radius: var(--r-m);
  border: 1.5px solid var(--line);
}
.faq summary {
  list-style: none; cursor: pointer;
  padding: 22px 60px 22px 26px; position: relative;
  font: 650 1.15rem/1.35 var(--display); color: var(--head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2.5px 14px no-repeat;
  transition: transform .3s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 26px 24px; margin: 0; }

/* -------------------------------------------------------------- closing */

.closing { background: var(--deep); color: #ffffff; padding: var(--section) 0; overflow: hidden; }
/* Smaller than the hero: at hero size in half the width, "Your post is ready."
   broke into four ragged lines. */
.closing .display { font-size: clamp(2.4rem, 4.2vw, 3.9rem); }
.closing__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.closing__copy p { font-size: 1.3rem; margin: 24px 0 32px; color: #ffffff; }
.closing__photo { border-radius: var(--r-l); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); transform: rotate(-1.5deg); aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 900px) { .closing__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- footer */

.footer { background: #000814; color: #ffffff; padding: 64px 0 30px; }
.footer a { color: #ffffff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer__brand img { height: 40px; width: auto; margin-bottom: 16px; }
.footer__brand p { max-width: 26em; color: #ffffff; }
.footer__head { font: 700 1rem/1 var(--display); margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.35);
  font-size: .95rem;
}
.footer__base p { margin: 0; color: #ffffff; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- legal pages */

/*
 * Privacy, terms, acceptable use, withdrawal, Impressum. One reading column,
 * black text on the page ground, navy for structure. Every colour pair here is
 * one already measured on the home page: ink on bg and on tint, head on bg,
 * white on the deep band.
 */
.legal-col { max-width: 880px; }

.legal-notice {
  margin: 28px 0 0; padding: 16px 22px;
  background: var(--tint); color: var(--ink);
  border: 1.5px solid var(--line); border-left: 6px solid var(--accent);
  border-radius: var(--r-m);
  font: 500 1.05rem/1.5 var(--body);
}
[data-theme="dark"] .legal-notice { border-left-color: var(--link); }

/*
 * Legal language is full of words longer than a phone line: German
 * "Geschäftsbedingungen" in the heading, Dutch "Verwerkingsverantwoordelijke".
 * Unbroken they pushed the page 11px and 47px past a 360px screen. Each
 * article carries its language, so the browser can hyphenate properly; where
 * it has no dictionary, the word still breaks rather than widening the page.
 */
.legal-doc { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }

/* Clips its glow at the screen edge, for the same iPhone reason as .hero. */
.legal-hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 clamp(20px, 3vw, 32px); overflow-x: clip; }
.legal-hero::before {
  content: ""; position: absolute; right: -10%; top: -30%;
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  pointer-events: none;
}
.legal-hero .wrap { position: relative; }
.legal-title { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 750; letter-spacing: -0.04em; margin: 0 0 18px; }
.legal-lede { font-size: clamp(1.15rem, 1.8vw, 1.35rem); max-width: 40em; margin: 0; }
.legal-stamp { margin: 22px 0 0; font: 500 1rem/1.4 var(--display); }
.legal-stamp__label {
  display: inline-block; margin-right: 8px; padding: 5px 12px;
  border-radius: var(--pill); background: var(--accent); color: var(--on-accent);
  font-weight: 650; font-size: .9rem;
}

.legal { padding-bottom: var(--section); }
.legal-intro { font-size: 1.2rem; margin: 18px 0 0; }
.legal-sec { padding-top: clamp(44px, 5vw, 68px); scroll-margin-top: 90px; }
.legal h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700;
  padding-bottom: 14px; margin-bottom: 22px;
  border-bottom: 2px solid var(--accent);
}
[data-theme="dark"] .legal h2 { border-bottom-color: var(--line); }
.legal h3 { font-size: 1.25rem; margin: 32px 0 10px; }
.legal p, .legal li { line-height: 1.75; }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 8px; }
.legal-list { margin: 0 0 1em; }

/* Provider facts as cards. The contact cards are whole links, so on a phone the card is the target. */
.fcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fcard {
  display: block; padding: 22px 24px 24px;
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--r-m);
  box-shadow: var(--shadow-s); text-decoration: none;
  transition: transform .2s ease, border-color .2s ease;
}
.fcard--wide { grid-column: 1 / -1; }
.fcard__icon {
  display: inline-grid; place-items: center; width: 46px; height: 46px;
  border-radius: 14px; background: var(--tint); color: var(--link);
}
.fcard__label { display: block; margin-top: 16px; font: 650 .9rem/1.2 var(--display); color: var(--link); letter-spacing: .02em; }
.fcard .fcard__value {
  margin: 6px 0 0; font: 650 1.2rem/1.35 var(--display); color: var(--head);
  overflow-wrap: anywhere;
}
.fcard--wide .fcard__value { font-size: clamp(1.5rem, 3vw, 1.9rem); letter-spacing: -0.02em; }
.fcard .fcard__sub { margin: 10px 0 0; }
.fcard--link:hover { border-color: var(--ink); transform: translateY(-2px); }
.fcard--link:hover .fcard__value { text-decoration: underline; text-underline-offset: 4px; }

.legal-note { margin-top: 16px; font-size: 1rem; }

/* "The short version": the claims a visitor most wants to check, lifted out of the prose. */
.legal-callout {
  margin-top: 28px; padding: 26px 30px;
  background: var(--tint); color: var(--ink);
  border: 1.5px solid var(--line); border-left: 6px solid var(--accent);
  border-radius: var(--r-m);
}
[data-theme="dark"] .legal-callout { border-left-color: var(--link); }
.legal-callout h3 { margin: 0 0 12px; }
.legal-callout ul { margin: 0; }

.legal-address {
  display: block; margin: 0 0 1em; padding: 16px 20px;
  border-left: 4px solid var(--line); font-style: normal; line-height: 1.7;
}

.legal-credit { margin-top: 28px; padding-top: 18px; border-top: 1.5px solid var(--line); font-size: 1rem; }

/* The risk warning. Weighted, and deliberately not navy: navy is the buy button everywhere else. */
.legal-warning {
  padding: 30px 32px; background: var(--surface); color: var(--ink);
  border: 2px solid var(--ink); border-left-width: 8px; border-radius: var(--r-m);
}
.legal .legal-warning h2 { border: 0; padding: 0; margin-bottom: 14px; font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.legal-warning p:last-child { margin-bottom: 0; }

/* Quoted law: the Widerrufsbelehrung follows the statutory template word for word. */
.legal-statute {
  padding: 32px 36px; background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-s);
}
.legal-statute h3 { margin-top: 26px; }
.legal .statute-end {
  margin: 26px 0 0; padding-top: 14px; border-top: 1.5px solid var(--line);
  font: 650 .9rem/1.3 var(--display); letter-spacing: .06em; text-transform: uppercase;
}

/* The Muster-Widerrufsformular, set as something a reader could print and fill in. */
.legal-form {
  margin-top: 20px; padding: 30px 32px; background: var(--surface); color: var(--ink);
  border: 2px dashed var(--line); border-radius: var(--r-m);
}
.legal .form-to { font-weight: 650; margin: 0; }
.legal .form-lines { list-style: none; margin: 16px 0 0; padding: 0; }
.legal .form-lines li { margin: 0; padding: 22px 0 8px; border-bottom: 1.5px solid var(--line); }
.legal .form-note { margin: 18px 0 0; font-size: 1rem; }

/* Contact: the deep band, white on navy, the same pair as the closing section. */
.legal-contact {
  margin-top: clamp(48px, 6vw, 72px); padding: clamp(28px, 4vw, 44px);
  background: var(--deep); color: var(--on-deep); border-radius: var(--r-l);
}
.legal .legal-contact h2 { color: var(--on-deep); border: 0; padding: 0; margin-bottom: 12px; }
.legal-contact p { max-width: 36em; }
.legal-contact .btn { margin-top: 8px; overflow-wrap: anywhere; }

.legal .legal-sources { list-style: none; padding: 0; margin: 18px 0 0; }
.legal .legal-sources li { margin: 0; padding: 16px 0; border-top: 1.5px solid var(--line); }
.legal .legal-sources li:first-child { border-top: 0; padding-top: 0; }
.src-link { font: 650 1.1rem/1.4 var(--display); }
.src-link::after { content: " \2197"; }
.src-note { display: block; margin-top: 4px; }

@media (max-width: 720px) {
  .fcards { grid-template-columns: 1fr; }
  .legal-callout, .legal-warning, .legal-statute, .legal-form { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) { .fcard--link:hover { transform: none; } }

/* ---------------------------------------------------------- error pages */

/*
 * 404 and 403. One screen, centred: the Prefill container, empty for 404 and
 * locked for 403, a large code, one sentence and the way back. Same tokens as
 * the home page, so light and dark are already measured: headings 14.40:1 and
 * body 19.77:1 on light, 19.04:1 on dark.
 */
.errpage { min-height: 100vh; display: flex; flex-direction: column; }
.errpage .nav__actions { margin-left: auto; }
.err {
  position: relative; overflow: hidden; flex: 1;
  display: grid; place-items: center;
  padding: clamp(48px, 9vw, 120px) 0;
}
.err::before {
  content: ""; position: absolute; left: 50%; top: 45%;
  width: min(900px, 120vw); height: min(900px, 120vw); transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  pointer-events: none;
}
.err__inner {
  position: relative; max-width: 760px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.err__mark { width: clamp(96px, 14vw, 140px); height: auto; color: var(--accent); margin-bottom: 18px; }
[data-theme="dark"] .err__mark { color: var(--link); }
.err__wave { animation: slosh 5s ease-in-out infinite; }
@keyframes slosh { 50% { transform: translateX(-7px); } }

.err__code {
  margin: 0 0 6px;
  font: 800 clamp(4.2rem, 13vw, 8.5rem)/.9 var(--display);
  letter-spacing: -0.06em; color: var(--head);
}
.err .eyebrow { justify-content: center; }
.err__heading { font-size: clamp(2rem, 4.8vw, 3.5rem); font-weight: 750; margin: 0 0 18px; }
.err__body { font-size: clamp(1.1rem, 1.6vw, 1.25rem); max-width: 34em; margin: 0 auto 34px; }
.err__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.err__foot { padding: 22px var(--gutter) 30px; text-align: center; font-size: .95rem; }
.err__foot p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .err__wave { animation: none; }
}

/* --------------------------------------------------------------- reveal */

/*
 * Content rises into place as it scrolls in. Only when JavaScript is running,
 * so nothing is ever hidden from a visitor without it, and never for anyone
 * who has asked their system for less motion.
 */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .mosaic img:nth-child(2)[data-reveal].is-in { transform: translateY(28px); }
@media (max-width: 760px) { .js .mosaic img:nth-child(2)[data-reveal].is-in { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .float, .tank > span, .display__fill, .mini-composer__caret, .panel, .greeter__line.swap { animation: none !important; }
  .display__fill { background-position: 0 100%; }
  .tank > span { height: 72%; }
  .limits__bar > span { transition: none; width: calc(var(--v) * 100%); }
  .compare__bulb { transition: none; }
}

/* ---------------------------------------------------------- back to top */
/*
 * Shows itself once the reader is past the first screen. It sits clear of the
 * iPhone's home bar and of a notch in landscape, and it is a real button, so
 * the padding reset above applies to it as well.
 */
.totop {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  padding: 0; margin: 0;
  -webkit-appearance: none; appearance: none;
  border: 1.5px solid var(--line);
  border-radius: var(--pill);
  background: var(--bg); color: var(--ink);
  box-shadow: var(--shadow-s);
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease,
              background-color .2s ease, color .2s ease, border-color .2s ease;
}
.totop svg { display: block; }
/* Hidden to the eye and to a screen reader until there is something to go back to. */
.totop.is-on { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--accent); color: #ffffff; border-color: var(--btn-edge); }
@media (prefers-reduced-motion: reduce) { .totop { transition: none; } }
