/* ==========================================================================
   UltraPass – Website
   Aufbau: 1. Schriften  2. Tokens  3. Basis  4. Bausteine  5. Kopfbereich
           6. App-Nachbildung  7. Abschnitte  8. Unterseiten  9. Store-Auswahl
           10. Barrierefreiheit  11. Dunkles Farbschema
   Mobile first – Breakpoints: 640px (Tablet), 1024px (Desktop)
   Verwandt mit der Folino-Website (Raster, Radien, Plus Jakarta Sans), eigene
   Farbwelt: App-Grün (#2E7D32), Kopf hell bzw. im Dark Mode dunkel, Passwörter in Fira Code.
   ========================================================================== */


/* 1. Schriften (selbst gehostet – keine Verbindung zu Google, DSGVO-konform)
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Passwörter: Fira Code unterscheidet 0/O und l/1/I deutlich (SIL Open Font License) */
@font-face {
  font-family: "Fira Code";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/fira-code-wght.woff2") format("woff2");
}


/* 2. Tokens
   ========================================================================== */

:root {
  /* Marke: Grundfarbe der App ist Colors.green[800] */
  --color-accent: #2e7d32;          /* Flächen mit weißer Schrift (5,1 : 1) */
  --color-accent-hover: #256428;
  --color-accent-text: #1f6a24;     /* Grün für kleine Schrift auf Weiß */
  --color-accent-soft: #e9f4ea;     /* hellgrüne Flächen */
  --color-accent-line: #c5e0c7;
  --color-mint: #8fdc94;            /* Grün auf Dunkel */
  --color-mint-soft: rgb(143 220 148 / 0.14);

  --color-ink: #0c1a11;             /* Überschriften, dunkle Buttons */
  --color-ink-soft: #1b2b20;
  --color-text: #33433a;
  --color-text-muted: #4a5a50;
  --color-text-subtle: #627168;
  --color-line: #e0e8e2;
  --color-line-soft: #edf2ee;
  --color-surface: #f3f7f4;
  --color-bg: #ffffff;
  --color-raised: #ffffff;
  --color-on-ink: #ffffff;
  --color-tag: #e3ece5;
  --color-off: #a3ada6;

  /* Flächen Kopf, Knackzeit, Download und Werbefrei-Karte: im hellen Design hell,
     im dunklen Design dunkel (Werte dort im Block prefers-color-scheme: dark).
     --vault-tint ist die Grundfarbe feiner Tönungen: rgb(var(--vault-tint) / 0.05) */
  --vault: #eef5f0;
  --vault-2: #e6efe8;
  --vault-line: rgb(12 26 17 / 0.1);
  --vault-text: #0c1a11;
  --vault-muted: #4a5a50;
  --vault-tint: 12 26 17;
  --vault-accent: #1f6a24;          /* Grün für Schrift und Symbole auf der Fläche */
  --vault-title: #1f6a24;           /* Überschrift der Startseite: App-Dunkelgrün (6 : 1 auf --vault) */
  --vault-bar: #2e7d32;             /* Ende der Balken „sicher“ */
  --vault-bar-mid: #a07800;         /* Mitte der Balken; Gelb wäre auf Hell kaum sichtbar */
  --vault-card: rgb(255 255 255 / 0.92);
  --vault-accent-soft: rgb(46 125 50 / 0.08);
  --vault-accent-line: rgb(46 125 50 / 0.35);

  /* Stärke-Hinweis wie in der App: rot, orange, gelb */
  --strength-very-weak: #d32f2f;
  --strength-weak: #e65100;
  --strength-medium: #a07800;

  /* Typografie */
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Fira Code", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --tracking-tight: -0.04em;

  /* Radien */
  --radius-pill: 999px;
  --radius-xs: 12px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 26px;
  --radius-xl: 30px;

  /* Abstände & Layout */
  --gutter: 20px;
  --container: 1200px;
  --section-space: 80px;

  --shadow-hairline: 0 1px 2px rgb(12 26 17 / 0.06);
  --shadow-float: 0 24px 48px -24px rgb(12 26 17 / 0.25);
  --shadow-phone: 0 40px 80px -24px rgb(0 0 0 / 0.6);
  --shadow-menu: 0 24px 48px -16px rgb(12 26 17 / 0.3);

  color-scheme: light dark;
}

@media (min-width: 1024px) {
  :root {
    --radius-lg: 28px;
    --radius-xl: 40px;
    --section-space: 120px;
  }
}


/* 3. Basis
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

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

a {
  color: var(--color-accent-text);
}

button,
select {
  font: inherit;
  color: inherit;
}

code {
  font-family: var(--font-mono);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space) 0;
}


/* 4. Bausteine
   ========================================================================== */

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.icon--check {
  color: var(--color-accent);
}

/* Marke */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}

.brand__icon {
  width: 32px;
  height: 32px;
  border-radius: 23%;
}

.brand__name {
  font-size: 1.3125rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius-pill);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn--dark {
  color: var(--color-on-ink);
  background: var(--color-ink);
}

.btn--dark:hover {
  background: var(--color-ink-soft);
}

.btn--accent {
  color: #fff;
  background: var(--color-accent);
}

.btn--accent:hover {
  background: var(--color-accent-hover);
}

.btn--small {
  min-height: 44px;
  padding: 0 18px;
}

.btn--block {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
}

/* Markierungen: eckiger als Buttons, nur getönt */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-accent-text);
  background: var(--color-accent-soft);
}

/* Kleine Überzeile in Monospace über Abschnittstiteln */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-accent-text);
}

.eyebrow::before {
  content: "//";
  opacity: 0.6;
}

.eyebrow--on-dark {
  color: var(--vault-accent);
}

/* Überschriften */
.h2 {
  font-size: clamp(2.125rem, 1.45rem + 2.4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
}

.section-head__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.section-head__lead {
  max-width: 34rem;
  font-size: var(--text-md);
  color: var(--color-text-muted);
}

@media (min-width: 1024px) {
  .section-head {
    gap: 18px;
    margin-bottom: 48px;
  }

  .section-head--split {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 48px;
  }

  .section-head--split .section-head__lead {
    max-width: 25rem;
    font-size: 1.0625rem;
  }

  .section-head--center {
    align-items: center;
    text-align: center;
  }

  .section-head--center .section-head__lead {
    font-size: var(--text-lg);
  }
}

/* Offizielle Store-Badges */
.store-badge {
  display: inline-flex;
  border-radius: var(--radius-xs);
  text-decoration: none;
}

.store-badge img {
  width: auto;
  height: 52px;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.store-alt,
.qr-hint {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--vault-muted);
}

.store-alt--on-dark {
  color: var(--vault-text);
}

/* Karten */
.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.card--accent {
  background:
    radial-gradient(120% 90% at 100% 0%, rgb(46 125 50 / 0.12), transparent 60%),
    var(--color-accent-soft);
}

.card--ink {
  color: var(--vault-text);
  background:
    radial-gradient(100% 80% at 0% 100%, rgb(46 125 50 / 0.12), transparent 60%),
    var(--color-accent-soft);   /* hell grün getönt wie „Deine Regeln“, dunkel: Dark-Block */
}

.card--ink .card__text {
  color: var(--vault-muted);
}

.card--icon {
  justify-content: flex-start;
}

.card__icon {
  width: 36px;
  height: 36px;
  padding: 7px;
  border-radius: 11px;
  color: var(--color-accent);
  background: var(--color-raised);
  box-shadow: var(--shadow-hairline);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card__title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.card__title--large {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  line-height: 1.13;
}

.card__text {
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--color-text-muted);
}

.demo-panel {
  border-radius: 16px;
  background: var(--color-raised);
  box-shadow: var(--shadow-hairline);
}


/* 5. Kopfbereich – dunkel wie ein Tresor
   ========================================================================== */

.hero {
  position: relative;
  margin: 8px 8px 0;
  border-radius: var(--radius-xl);
  color: var(--vault-text);
  background:
    radial-gradient(60% 50% at 80% 30%, rgb(46 125 50 / 0.12), transparent 70%),
    radial-gradient(50% 40% at 10% 100%, rgb(46 125 50 / 0.06), transparent 70%),
    var(--vault);
  overflow: hidden;
  isolation: isolate;
}

/* feines Punktraster wie Millimeterpapier */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgb(var(--vault-tint) / 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}

.site-nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 2 * 16px, var(--container));
  margin: 12px auto 0;
}

.site-nav__menu {
  display: none;
}

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

/* Sprachwahl: Namen in der jeweiligen Sprache, keine Flaggen */
.lang-switch {
  position: relative;
}

.lang-switch__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: inherit;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.lang-switch__button::-webkit-details-marker {
  display: none;
}

.lang-switch__button:hover,
.lang-switch[open] .lang-switch__button {
  background: rgb(var(--vault-tint) / 0.1);
}

.lang-switch__globe {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Sprache ausgeschrieben („Deutsch“, „English“) wie auf getfolino.com */
.lang-switch__current {
  white-space: nowrap;
}

.lang-switch__caret {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.lang-switch[open] .lang-switch__caret {
  transform: rotate(180deg);
}

.lang-switch__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  min-width: 180px;
  padding: 6px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  color: var(--color-ink);
  background: var(--color-raised);
  box-shadow: var(--shadow-menu);
}

.lang-switch__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-xs);
  font-size: var(--text-base);
  font-weight: 500;
  color: inherit;
  text-decoration: none;
}

.lang-switch__link:hover {
  background: var(--color-surface);
}

.lang-switch__link.is-current {
  font-weight: 700;
  background: var(--color-accent-soft);
}

.lang-switch__link-check {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
}

.hero__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  padding: 44px 0 56px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.hero__proof {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--vault-line);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--vault-muted);
  background: rgb(var(--vault-tint) / 0.04);
}

.hero__proof .icon {
  width: 16px;
  height: 16px;
  color: var(--vault-accent);
}

.hero__title {
  /* 10vw: Die zweite Zeile bricht nicht um, „nobody can guess.“ passt so auch bei 320 px */
  font-size: min(clamp(2.6rem, 1.4rem + 5.2vw, 5rem), 10vw);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero__title:not(.hero__title--sub) {
  color: var(--vault-title);
}

.hero__title-accent {
  display: inline-block;
  white-space: nowrap;
}

.hero__lead {
  max-width: 34rem;
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--vault-muted);
}

.hero .store-buttons {
  margin-top: 6px;
}

.hero__try {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--vault-accent);
}

.hero__try-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: -3px;
  animation: nudge 1.8s ease-in-out infinite;
}

@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.hero__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.hero__stage::before {
  content: "";
  position: absolute;
  inset: 40px -40px auto;
  height: 520px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(143 220 148 / 0.25), transparent);
}

.hero__noscript {
  max-width: 300px;
  font-size: var(--text-sm);
  color: var(--vault-muted);
  text-align: center;
}

/* Knackzeit-Karte neben dem Handy */
.crack-card {
  width: min(320px, 100%);
  padding: 16px 18px;
  border: 1px solid var(--vault-line);
  border-radius: var(--radius-md);
  background: var(--vault-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-float);
}

.crack-card__title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--vault-muted);
}

.crack-card__time {
  margin-top: 2px;
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--vault-accent);
}

.crack-card__track {
  height: 6px;
  margin: 12px 0 10px;
  border-radius: 6px;
  background: rgb(var(--vault-tint) / 0.1);
  overflow: hidden;
}

.crack-card__bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  width: calc(var(--p, 0) * 1%);
  background: linear-gradient(90deg, #e65100, var(--vault-bar-mid) 30%, var(--vault-bar) 60%);
  background-size: calc(100% * 100 / max(var(--p, 1), 1)) 100%;
  transition: width 0.5s ease;
}

.crack-card__note {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--vault-muted);
}

.crack-card__note a {
  color: var(--vault-text);
}

@media (min-width: 1024px) {
  .hero {
    margin: 16px 16px 0;
  }

  .site-nav {
    margin-top: 20px;
    min-height: 56px;
  }

  .site-nav__menu {
    display: flex;
    gap: 4px;
    padding: 6px;
    border: 1px solid var(--vault-line);
    border-radius: var(--radius-pill);
    background: rgb(var(--vault-tint) / 0.05);
  }

  .site-nav__menu a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: var(--radius-pill);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--vault-text);
    text-decoration: none;
  }

  .site-nav__menu a:hover {
    background: rgb(var(--vault-tint) / 0.1);
  }

  .lang-switch__button {
    padding: 0 14px;
    font-size: var(--text-base);
  }

  .hero__grid {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 56px;
    padding: 64px 0 88px;
  }

  .hero__content {
    flex: 1 1 0;
    align-items: flex-start;
    min-width: 0;
    max-width: 580px;
    text-align: left;
  }

  .hero__title {
    font-size: clamp(3rem, 0.6rem + 4.4vw, 4.75rem);
  }

  .hero__lead {
    font-size: var(--text-lg);
  }

  .hero .store-buttons {
    justify-content: flex-start;
  }

  .hero__try-icon {
    transform: rotate(-90deg);
    animation-name: nudge-right;
  }

  @keyframes nudge-right {
    0%, 100% { transform: rotate(-90deg) translateY(0); }
    50% { transform: rotate(-90deg) translateY(4px); }
  }

  .hero__stage {
    flex: 0 0 auto;
    width: auto;
  }

  .crack-card {
    width: 320px;
  }
}

/* Breite Fenster: Knackzeit links neben dem Handy, ohne es zu verdecken */
@media (min-width: 1200px) {
  .hero__stage {
    padding-left: 264px;
  }

  .crack-card {
    position: absolute;
    left: 0;
    bottom: 56px;
    width: 240px;
  }
}


/* 6. App-Nachbildung im Handy-Rahmen
   ========================================================================== */

.phone {
  width: min(320px, 86vw);
  aspect-ratio: 320 / 660;
  padding: 10px;
  border-radius: 50px;
  background: #121513;
  box-shadow: var(--shadow-phone), inset 0 0 0 2px #2c322e;
}

/* Farben der App: helles Design (themeLight) */
.app {
  --app-bg: #ffffff;
  --app-field: #f2f3f2;
  --app-tonal: #e6efe6;
  --app-tonal-text: #1e5a22;
  --app-primary: #256428;
  --app-text: #1b1f1c;
  --app-muted: #5f6762;
  --app-nav: #f4f6f4;
  --app-nav-active: #dfe9df;
  --app-line: #e3e7e4;
  color: var(--app-text);
}

.app__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 40px;
  background: var(--app-bg);
  overflow: hidden;
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: left;
}

.app__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 18px 6px;
}

.app__logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.app__bar-icon {
  width: 20px;
  height: 20px;
  color: var(--app-primary);
}

.app__panel {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: 6px 12px 10px;
  overflow-y: auto;
}

.app__panel[hidden] {
  display: none;
}

.app-pwd {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-pwd__field {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--app-field);
  text-align: center;
}

.app-pwd__text {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.app-pwd__strength {
  font-size: 0.6875rem;
  font-weight: 700;
}

.app-pwd__strength:empty {
  display: none;
}

.app-pwd__strength.is-very_weak { color: var(--strength-very-weak); }
.app-pwd__strength.is-weak { color: var(--strength-weak); }
.app-pwd__strength.is-medium { color: var(--strength-medium); }

.app-pwd__actions {
  display: flex;
  gap: 6px;
}

.app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
}

.app-btn:active {
  transform: scale(0.98);
}

.app-btn--tonal {
  color: var(--app-tonal-text);
  background: var(--app-tonal);
}

.app-btn--tonal:hover {
  filter: brightness(0.96);
}

.app-btn--primary {
  min-height: 44px;
  border-radius: 12px;
  color: #fff;
  background: var(--app-primary);
}

.app-btn--primary:hover {
  filter: brightness(1.1);
}

.app-btn--grow {
  flex: 1;
}

.app-btn--icon {
  width: 36px;
  padding: 0;
}

.app-btn__icon {
  width: 16px;
  height: 16px;
}

.app-pwd__more {
  position: relative;
}

.app-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-width: 140px;
  padding: 6px;
  border-radius: 12px;
  background: var(--app-bg);
  box-shadow: 0 12px 30px -8px rgb(0 0 0 / 0.35), 0 0 0 1px var(--app-line);
}

.app-menu[hidden] {
  display: none;
}

.app-menu__item {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.app-menu__item:hover {
  background: var(--app-field);
}

.app__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.app__hint {
  font-size: 0.75rem;
  color: var(--app-muted);
}

.app__hint--foot {
  margin-top: auto;
}

.app__empty {
  padding: 24px 12px;
  border: 1.5px dashed var(--app-line);
  border-radius: 12px;
  color: var(--app-muted);
  text-align: center;
}

.app-profiles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-profile {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--app-field);
  text-align: left;
  cursor: pointer;
}

.app-profile:hover {
  background: var(--app-tonal);
}

.app-profile__name {
  font-weight: 700;
}

.app-profile__meta {
  font-size: 0.75rem;
  color: var(--app-muted);
}

.app-list__head {
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--app-primary);
}

.app-list ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-list__item {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--app-field);
}

.app-list__pwd {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  word-break: break-all;
}

/* Snackbar */
.app__toast {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 76px;
  z-index: 8;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.75rem;
  color: #f1f5f2;
  background: #2f3631;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.app__toast:empty {
  visibility: hidden;
}

.app__toast.is-visible {
  opacity: 1;
  transform: none;
}

/* Blatt „Zeichen & Länge“ */
.app__backdrop {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: none;
  background: rgb(0 0 0 / 0.35);
}

.app__screen.has-sheet .app__backdrop {
  display: block;
}

.app-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 7;
  max-height: 88%;
  padding: 4px 14px 20px;
  border-radius: 22px 22px 0 0;
  background: var(--app-bg);
  overflow-y: auto;
  animation: sheet-in 0.25s ease;
}

.app-sheet[hidden] {
  display: none;
}

@keyframes sheet-in {
  from { transform: translateY(30%); opacity: 0; }
}

.app-sheet__head {
  position: relative;
  display: flex;
  justify-content: center;
  height: 34px;
}

.app-sheet__handle {
  width: 36px;
  height: 4px;
  margin-top: 10px;
  border-radius: 4px;
  background: #c7ccc9;
}

.app-sheet__close {
  position: absolute;
  top: 0;
  right: -4px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--app-muted);
  cursor: pointer;
}

.app-sheet__close svg {
  width: 18px;
  height: 18px;
}

.app-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  border-bottom: 1px solid var(--app-line);
  cursor: pointer;
}

.app-switch:last-child {
  border-bottom: 0;
}

.app-switch__label {
  font-size: 0.8125rem;
}

/* Schalter wie Material 3 */
.app-switch__input {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 24px;
  margin: 0;
  border-radius: 12px;
  background: #dfe3e0;
  box-shadow: inset 0 0 0 2px #7a827d;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.app-switch__input::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #7a827d;
  transition: transform 0.15s ease, width 0.15s ease, height 0.15s ease, top 0.15s ease;
}

.app-switch__input:checked {
  background: var(--app-primary);
  box-shadow: none;
}

.app-switch__input:checked::after {
  top: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  transform: translateX(16px);
}

.app-select {
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-field);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  cursor: pointer;
}

/* Vergrößern: Vierergruppen */
.app-enlarge {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 18px;
  background: var(--app-bg);
}

.app-enlarge[hidden] {
  display: none;
}

.app-enlarge__close {
  position: absolute;
  top: 24px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--app-field);
  cursor: pointer;
}

.app-enlarge__close svg {
  width: 20px;
  height: 20px;
}

.app-enlarge__text {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 500;
}

.app-enlarge__group {
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--app-field);
}

.app-enlarge__group:nth-child(even) {
  background: var(--app-tonal);
}

/* Untere Leiste */
.app__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 0 10px 12px;
  padding: 6px;
  border-radius: 22px;
  background: var(--app-nav);
  box-shadow: 0 4px 14px -6px rgb(0 0 0 / 0.2);
}

.app__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 46px;
  padding: 4px 2px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  font-size: 0.6875rem;
  color: var(--app-muted);
  cursor: pointer;
}

.app__tab svg {
  width: 20px;
  height: 20px;
}

.app__tab[aria-selected="true"] {
  font-weight: 700;
  color: var(--app-primary);
  background: var(--app-nav-active);
}

/* Ohne JavaScript: Bedienelemente sind nur Bild */
.app:not(.is-live) .app-btn,
.app:not(.is-live) .app__tab {
  pointer-events: none;
}


/* 7. Abschnitte
   ========================================================================== */

/* --- Highlights ---------------------------------------------------------- */

.highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  max-width: 24rem;
  margin-inline: auto;
  padding: 28px 16px 0;
}

.highlights__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.highlights__item .icon {
  width: 16px;
  height: 16px;
}

@media (min-width: 640px) {
  .highlights {
    max-width: none;
  }
}

@media (min-width: 1024px) {
  .highlights {
    gap: 12px 36px;
    padding-top: 36px;
  }

  .highlights__item {
    font-size: var(--text-base);
  }
}

/* --- Funktionen: Bento ---------------------------------------------------- */

.bento {
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card--wide {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .bento {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .card {
    padding: 32px;
  }

  .card--split {
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }

  .card--split > * {
    flex: 1 1 0;
  }
}

/* Zeichen-Chips */
.chars {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chars__item {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  border-radius: 9px;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--color-ink);
  background: var(--color-raised);
  box-shadow: var(--shadow-hairline);
}

.chars__item.is-off {
  color: var(--color-off);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--color-line);
}

.chars--struck .chars__item {
  position: relative;
  min-width: 40px;
  height: 40px;
  font-size: 1.125rem;
  color: var(--color-text-subtle);
}

.chars--struck .chars__item::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 2px;
  border-radius: 2px;
  background: var(--strength-very-weak);
  transform: rotate(-35deg);
}

/* Aussprechbar */
.speak-demo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
}

.speak-demo__label {
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
}

.speak-demo__pwd {
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

.speak-demo__pwd .is-syllable {
  color: var(--color-accent-text);
}

.speak-demo__pwd .is-special,
.speak-demo__pwd .is-digit {
  color: var(--strength-weak);
}

/* Profile */
.mini-list {
  display: flex;
  flex-direction: column;
  padding: 6px;
}

.mini-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: var(--text-base);
  font-weight: 600;
}

.mini-list__item.is-active {
  color: var(--color-accent-text);
  background: var(--color-accent-soft);
}

.mini-list__icon {
  width: 18px;
  height: 18px;
}

/* Vergrößern */
.big-demo {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 1.375rem;
}

.big-demo span {
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--color-surface);
}

.big-demo span:nth-child(even) {
  background: var(--color-accent-soft);
}

/* Passwortliste */
.pwd-list {
  padding: 8px;
}

.pwd-list__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px 10px;
  border-bottom: 1px solid var(--color-line-soft);
}

.pwd-list__icon {
  width: 18px;
  height: 18px;
  color: var(--color-text-subtle);
}

.pwd-list__lock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent-text);
}

.pwd-list__lock svg {
  width: 14px;
  height: 14px;
}

.pwd-list__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 10px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--color-line-soft);
}

.pwd-list__item:last-child {
  border-bottom: 0;
}

.pwd-list__note {
  font-size: var(--text-base);
  font-weight: 600;
}

.pwd-list__pwd {
  grid-column: 1 / -1;
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
}

/* Werbefrei */
.zero {
  display: flex;
  align-items: center;
  gap: 14px;
}

.zero__number {
  font-size: 5rem;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--vault-accent);
}

.zero__label {
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.35;
}

/* --- Knackzeit ------------------------------------------------------------ */

.crack {
  margin: var(--section-space) 8px 0;
  padding-bottom: var(--section-space);
  border-radius: var(--radius-xl);
  color: var(--vault-text);
  background:
    radial-gradient(50% 40% at 50% 0%, rgb(46 125 50 / 0.1), transparent 70%),
    var(--vault);
}

@media (min-width: 1024px) {
  .crack {
    margin-inline: 16px;
  }
}

.crack .section-head {
  align-items: center;
  text-align: center;
}

.crack .section-head__lead {
  color: var(--vault-muted);
}

.crack-chart {
  max-width: 1040px;
  margin-inline: auto;
}

.crack-chart__axis {
  display: none;
}

.crack-chart__rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crack-row {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--vault-line);
  border-radius: var(--radius-sm);
  background: rgb(var(--vault-tint) / 0.03);
}

.crack-row[hidden] {
  display: none;
}

.crack-row--demo {
  border-color: var(--vault-accent-line);
  background: var(--vault-accent-soft);
}

.crack-row__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.crack-row__example {
  font-size: 0.9375rem;
  color: var(--vault-text);
  overflow-wrap: anywhere;
}

.crack-row__text {
  font-size: var(--text-sm);
  color: var(--vault-muted);
}

.crack-row__track {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  min-width: 0;
}

/* Balken auf einer Schiene über die volle Breite: 1 ms … 10^30 s */
.crack-row__rail {
  height: 10px;
  border-radius: 10px;
  background: rgb(var(--vault-tint) / 0.06);
}

.crack-row__bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  width: calc(var(--p, 0) * 1%);
  /* Verlauf bezogen auf die ganze Schiene: die Farbe zeigt die Position auf der Skala */
  background: linear-gradient(90deg, #e65100, var(--vault-bar-mid) 30%, var(--vault-bar) 60%);
  background-size: calc(100% * 100 / max(var(--p, 1), 1)) 100%;
  transition: width 0.6s ease;
}

.crack-row.is-instant .crack-row__bar {
  background: #e65100;
}

.crack-row__time {
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.3;
}

.crack-chart__footnote {
  max-width: 48rem;
  margin: 20px auto 0;
  font-size: var(--text-sm);
  color: var(--vault-muted);
  text-align: center;
}

@media (min-width: 1024px) {
  /* gleiche Spalten wie die Zeilen, damit die Marken über den Schienen stehen */
  .crack-chart__axis {
    display: grid;
    grid-template-columns: 36% minmax(0, 1fr);
    gap: 16px;
    padding: 0 17px;
    margin-bottom: 6px;
  }

  .crack-chart__marks {
    position: relative;
    height: 28px;
  }

  .crack-chart__mark {
    position: absolute;
    left: var(--pos);
    bottom: 0;
    height: 100%;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--vault-muted);
    white-space: nowrap;
  }

  .crack-chart__mark span {
    position: absolute;
    bottom: 8px;
    left: 0;
    transform: translateX(-50%);
  }

  /* letzte Marke linksbündig an ihrem Strich, sonst überdeckt sie die vorige */
  .crack-chart__mark:last-child span {
    transform: translateX(-6px);
  }

  .crack-chart__mark::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 6px;
    border-left: 1px solid var(--vault-muted);
  }

  .crack-row {
    grid-template-columns: 36% minmax(0, 1fr);
    align-items: center;
    gap: 16px;
  }

  /* Hilfslinien der Skala auf der Schiene */
  .crack-row__rail {
    background-image: linear-gradient(90deg, var(--vault-line) 1px, transparent 1px);
    background-size: calc(100% / 11) 100%;
  }
}

/* Drei Regeln */
.tips {
  display: grid;
  gap: 12px;
  max-width: 1040px;
  margin: 48px auto 0;
}

.tip {
  padding: 22px;
  border-radius: var(--radius-md);
  background: rgb(var(--vault-tint) / 0.05);
}

.tip__number {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--vault-accent);
}

.tip__title {
  margin-top: 6px;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tip__text {
  margin-top: 6px;
  font-size: var(--text-base);
  color: var(--vault-muted);
}

@media (min-width: 1024px) {
  .tips {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 64px;
  }

  .tip {
    padding: 28px;
  }
}

/* --- Preise --------------------------------------------------------------- */

.pricing__grid {
  display: grid;
  gap: 12px;
  max-width: 920px;
  margin-inline: auto;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px 24px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-raised);
}

.plan--main {
  border-color: var(--color-accent-line);
  background:
    radial-gradient(100% 70% at 100% 0%, rgb(46 125 50 / 0.1), transparent 60%),
    var(--color-accent-soft);
}

.plan__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan__name-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan__name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.plan__amount {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

.plan__amount--small {
  font-size: 1.75rem;
  line-height: 1.2;
}

.plan__text,
.plan__note {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

.plan__note {
  margin-top: auto;
  font-size: var(--text-sm);
}

.plan__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan__feature {
  display: flex;
  gap: 10px;
  font-size: var(--text-base);
  line-height: 1.45;
}

.plan__feature .icon {
  margin-top: 1px;
}

.pricing__tip {
  max-width: 40rem;
  margin: 24px auto 0;
  font-size: var(--text-base);
  color: var(--color-text-muted);
  text-align: center;
}

@media (min-width: 768px) {
  .pricing__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .plan {
    padding: 36px;
  }
}

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

.faq__layout {
  display: grid;
  gap: 24px;
}

.faq__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border-radius: 18px;
  background: var(--color-surface);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 16px 20px;
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-item__icon {
  transform: rotate(180deg);
}

.faq-item__answer {
  padding: 0 20px 20px;
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
}

.contact-card__title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.contact-card__text {
  margin-bottom: 6px;
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

@media (min-width: 1024px) {
  .faq__layout {
    grid-template-columns: 380px minmax(0, 1fr);
    grid-template-areas:
      "head list"
      "contact list";
    grid-template-rows: auto 1fr;
    column-gap: 80px;
    row-gap: 36px;
    align-items: start;
  }

  .faq__head { grid-area: head; gap: 18px; }
  .faq__list { grid-area: list; gap: 12px; }
  .contact-card { grid-area: contact; padding: 32px; border-radius: var(--radius-lg); }

  .faq-item__question {
    min-height: 68px;
    padding: 20px 26px;
    font-size: var(--text-lg);
  }

  .faq-item__answer {
    padding: 0 26px 24px;
    font-size: var(--text-md);
  }
}

/* --- Download ------------------------------------------------------------- */

.download {
  margin: var(--section-space) 8px 0;
  border-radius: var(--radius-xl);
  color: var(--vault-text);
  background:
    radial-gradient(70% 90% at 50% 120%, rgb(46 125 50 / 0.08), transparent 70%),
    radial-gradient(50% 60% at 50% 0%, rgb(46 125 50 / 0.12), transparent 70%),
    var(--vault);
  overflow: hidden;
}

.download__inner {
  display: flex;
  justify-content: center;
  padding: 56px 20px;
}

.download__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 640px;
  text-align: center;
}

.download__icon {
  width: 88px;
  height: 88px;
  border-radius: 23%;
  box-shadow: 0 20px 40px -12px rgb(0 0 0 / 0.6), 0 0 0 1px rgb(255 255 255 / 0.08);
}

.download__title {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

.download__lead {
  font-size: var(--text-md);
  color: var(--vault-muted);
}

.download__stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
}

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgb(var(--vault-tint) / 0.06);
  border: 1px solid var(--vault-line);
}

.qr-card__code {
  display: none;
  width: 124px;
  height: 124px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
}

.download__qr-note {
  display: none;
  font-size: var(--text-sm);
  color: var(--vault-muted);
}

@media (min-width: 1024px) {
  .download {
    margin-inline: 16px;
  }

  .download__inner {
    padding: 88px 40px;
  }

  .qr-card {
    padding: 22px;
  }

  .qr-card__code,
  .download__qr-note {
    display: block;
  }
}

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

.site-footer {
  padding-bottom: 40px;
}

/* --- Weitere Apps von Tobias Schiek: Band oben im Footer (wie getfolino.com) - */

.weitere-apps {
  margin-top: var(--section-space);
  background: var(--color-surface);
  border-block: 1px solid var(--color-line);
}

.weitere-apps__inner {
  display: grid;
  gap: 20px;
  padding-block: 40px;
}

.weitere-apps__titel {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-ink);
}

.weitere-apps__text {
  margin: 4px 0 0;
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

.weitere-apps__liste {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.weitere-apps__liste a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 6px;
  border-radius: 16px;
  color: var(--color-ink);
  text-align: center;
  text-decoration: none;
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.3;
  /* nie mitten im Wort trennen, nur am Bindestrich („Geburtstags-|Glückwünsche“) */
  overflow-wrap: break-word;
}

/* Ein Flex-Item ist sonst mindestens so breit wie sein längstes Wort: „Glückwünsche“
   (107 px in 15 px) ragte auf Telefonen über die Kachel. Unter 640 px etwas kleiner und
   ohne Innenabstand an den Seiten; reicht das nicht (320 px), trennt der Browser nach Silben. */
.weitere-apps__liste span {
  min-width: 0;
  max-width: 100%;
  hyphens: auto;
}

@media (max-width: 639px) {
  .weitere-apps__liste a {
    padding-inline: 0;
    font-size: 0.875rem;
  }
}

.weitere-apps__liste a:hover {
  background: var(--color-raised);
}

.weitere-apps__liste img {
  width: 56px;
  height: 56px;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06);
}

.weitere-apps__alle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-self: start;
  min-height: 44px;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-accent-text);
  text-decoration: none;
}

.weitere-apps__alle:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.weitere-apps__pfeil {
  width: 18px;
  height: 18px;
}

.site-footer__inner {
  display: grid;
  gap: 36px;
  padding-top: 56px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__text {
  max-width: 22rem;
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 20px;
}

.site-footer__heading {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-subtle);
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--color-accent-text);
}

.site-footer__links a[aria-current="page"] {
  color: var(--color-accent-text);
}

.site-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
}

@media (min-width: 1024px) {
  .site-footer {
    padding-bottom: 48px;
  }

  /* „Alle Apps“ steht fest unter dem Text links, egal wie viele Apps die Sprache hat (0–6) */
  .weitere-apps__inner {
    grid-template-columns: minmax(200px, 260px) 1fr;
    grid-template-areas: "kopf liste" "alle liste";
    align-items: center;
    gap: 8px 32px;
    padding-block: 48px;
  }

  .weitere-apps__kopf { grid-area: kopf; align-self: end; }
  .weitere-apps__liste { grid-area: liste; }
  .weitere-apps__alle { grid-area: alle; align-self: start; }

  .weitere-apps__liste {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .site-footer__inner {
    grid-template-columns: 1fr 2fr;
    column-gap: 64px;
    padding-top: 80px;
  }

  /* drei Gruppen: App, Rechtliches, Sprache (die weiteren Apps stehen im Band darüber) */
  .site-footer__nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer__legal {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Nach oben */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  background: var(--color-accent);
  box-shadow: var(--shadow-float);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

html:not([data-os]) .to-top {
  opacity: 1;
  pointer-events: auto;
}

.to-top__icon {
  width: 20px;
  height: 20px;
}


/* 8. Unterseiten (Impressum, Datenschutz, Kontakt, 404)
   ========================================================================== */

.hero--sub .hero__content {
  align-items: flex-start;
  width: min(100% - 2 * var(--gutter), 900px);
  margin-inline: auto;
  padding: 48px 0 56px;
  text-align: left;
}

.hero__title--sub {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--vault-muted);
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  margin-right: 6px;
  opacity: 0.6;
}

.breadcrumb a {
  color: var(--vault-text);
}

.legal,
.prose,
.contact-page {
  width: min(100% - 2 * var(--gutter), 900px);
}

.legal {
  display: grid;
  gap: 28px;
}

.legal__title {
  margin-bottom: 6px;
  font-size: 1.125rem;
  font-weight: 800;
}

.legal__text {
  color: var(--color-text);
}

.prose {
  color: var(--color-text);
}

.prose h2 {
  margin: 36px 0 10px;
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 24px 0 8px;
  font-size: 1.125rem;
  color: var(--color-ink);
}

.prose p,
.prose ul {
  margin-bottom: 12px;
}

.prose ul {
  padding-left: 1.25em;
  list-style: disc;
}

.optout {
  margin: 16px 0 20px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}

.optout__status {
  margin-bottom: 12px;
  font-weight: 600;
}

.contact-page {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.contact-page__text {
  max-width: 40rem;
  font-size: var(--text-lg);
  color: var(--color-text);
}

.contact-page__email {
  font-size: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero--sub + main .section:last-child,
.legal-wrap {
  padding-bottom: 8px;
}


/* 9. Store-Auswahl nach Betriebssystem (data-os setzt js/main.js)
   ========================================================================== */

.store-alt {
  display: none;
}

html[data-os="ios"] .store-choice[data-store="android"],
html[data-os="android"] .store-choice[data-store="ios"] {
  display: none;
}

html[data-os="ios"] .store-alt[data-store="android"],
html[data-os="android"] .store-alt[data-store="ios"] {
  display: inline-flex;
}

html[data-os="ios"] .qr-hint,
html[data-os="android"] .qr-hint {
  display: none;
}

.qr-hint {
  display: none;
}

@media (min-width: 1024px) {
  html[data-os="desktop"] .qr-hint {
    display: inline-flex;
  }
}


/* 10. Barrierefreiheit
   ========================================================================== */

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

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  color: #fff;
  background: var(--color-accent);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

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

.hero :focus-visible,
.crack :focus-visible,
.download :focus-visible,
.card--ink :focus-visible {
  outline-color: var(--vault-accent);
}

.app :focus-visible {
  outline-color: var(--app-primary);
  outline-offset: 1px;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}


/* 11. Dunkles Farbschema
   ========================================================================== */

@media (prefers-color-scheme: dark) {
  :root {
    --color-accent: #3f9445;
    --color-accent-hover: #4aa451;
    --color-accent-text: #8fdc94;
    --color-accent-soft: #14251a;
    --color-accent-line: #24412b;

    --color-ink: #eef5f0;
    --color-ink-soft: #d7e2da;
    --color-text: #c8d5cc;
    --color-text-muted: #a7b6ac;
    --color-text-subtle: #8c9b91;
    --color-line: #24302a;
    --color-line-soft: #1d2822;
    --color-surface: #121b16;
    --color-bg: #080e0b;
    --color-raised: #19241d;
    --color-on-ink: #0c1a11;
    --color-tag: #22302a;
    --color-off: #5e6b63;

    --shadow-hairline: 0 0 0 1px rgb(255 255 255 / 0.05);

    --vault: #0b1510;
    --vault-2: #111f17;
    --vault-line: rgb(255 255 255 / 0.1);
    --vault-text: #e9f2ec;
    --vault-muted: #a9bbb0;
    --vault-tint: 255 255 255;
    --vault-accent: #8fdc94;
    --vault-title: var(--vault-text); /* Dunkelgrün ginge auf Dunkel unter, Mint wäre zu laut */
    --vault-bar: #8fdc94;
    --vault-bar-mid: #fbc02d;
    --vault-card: rgb(17 31 23 / 0.85);
    --vault-accent-soft: rgb(143 220 148 / 0.14);
    --vault-accent-line: rgb(143 220 148 / 0.45);
  }

  .hero {
    background:
      radial-gradient(60% 50% at 80% 30%, rgb(46 125 50 / 0.45), transparent 70%),
      radial-gradient(50% 40% at 10% 100%, rgb(46 125 50 / 0.22), transparent 70%),
      var(--vault);
  }

  .crack {
    background:
      radial-gradient(50% 40% at 50% 0%, rgb(46 125 50 / 0.35), transparent 70%),
      var(--vault);
  }

  .download {
    background:
      radial-gradient(70% 90% at 50% 120%, rgb(143 220 148 / 0.28), transparent 70%),
      radial-gradient(50% 60% at 50% 0%, rgb(46 125 50 / 0.5), transparent 70%),
      var(--vault);
  }

  .hero--sub .btn--dark {
    color: var(--color-ink);
    background: var(--color-mint);
  }

  .weitere-apps__liste img {
    box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08);
  }

  /* Die App im dunklen Design (themeDark) */
  .app {
    --app-bg: #202124;
    --app-field: #2c2d30;
    --app-tonal: #2b3a2c;
    --app-tonal-text: #b7dcb9;
    --app-primary: #6da470;
    --app-text: #eceeec;
    --app-muted: #a5aba7;
    --app-nav: #393939;
    --app-nav-active: #4a554b;
    --app-line: #3a3c3f;
  }

  .app-btn--primary {
    color: #10210f;
  }

  .app-switch__input {
    background: #2c2d30;
    box-shadow: inset 0 0 0 2px #8f9692;
  }

  .app-switch__input::after {
    background: #8f9692;
  }

  .app-switch__input:checked::after {
    background: #10210f;
  }

  .hero,
  .crack,
  .download,
  .card--ink {
    box-shadow: 0 0 0 1px rgb(255 255 255 / 0.06);
  }

  .card--ink {
    background:
      radial-gradient(100% 80% at 0% 100%, rgb(143 220 148 / 0.16), transparent 60%),
      #0d1912;
  }

  .btn--dark {
    color: var(--color-on-ink);
  }

  :focus-visible {
    outline-color: var(--color-mint);
  }

}
