/* ==========================================================================
   Friendshake Website – Designsystem „Pulse“
   Farben und Radien aus design/design-tokens.json (Pulse), Kontrastwerte wie in
   ios-app/Sources/FriendshakeCore/Pulse.swift. Keine externen Schriften, keine Skripte
   von Dritten – die Seite setzt keine Cookies.
   ========================================================================== */

@font-face {
  font-family: "Friendshake Script";
  src: url("../fonts/satisfy-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --fuchsia: #d8125b;
  --fuchsia-strong: #b80f4d;
  --fuchsia-soft: #ee749f;
  --on-fuchsia: #ffffff;
  --dark-grey: #2c2e39;

  --bg: #f7f7f8;
  --surface: #ffffff;
  --accent-surface: #fbe6ee;
  --accent-text: #d8125b;
  --accent-text-strong: #b80f4d;
  --text: #2c2e39;
  --muted: #70717d;
  --muted-on-accent: #646572;
  --line: #e9e8ed;
  --danger: #c62828;
  --phone-frame: #1b1c24;
  --shadow: 0 24px 60px rgba(44, 46, 57, 0.14);
  --shadow-soft: 0 8px 24px rgba(44, 46, 57, 0.08);

  --radius-card: 22px;
  --radius-button: 15px;
  --radius-input: 14px;
  --radius-chip: 999px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  /* Satisfy (Sideshow, Apache 2.0), selbst gehostet unter assets/fonts/.
     Vorher lokale Systemschriften (Snell Roundhand usw.), die nicht auf jedem
     Gerät vorhanden und für die Website nicht lizenziert sind. */
  --font-script: "Friendshake Script", "Brush Script MT", cursive;

  --container: 1120px;
  --gutter: 16px;
  --focus-ring: var(--fuchsia);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #2c2e39;
    --surface: #373946;
    --accent-surface: #512e40;
    --accent-text: #ff8cb8;
    --accent-text-strong: #ff8cb8;
    --text: #faf8fa;
    --muted: #bebec9;
    --muted-on-accent: #bebec9;
    --line: #494b5a;
    --danger: #ff8a80;
    --phone-frame: #14151b;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.3);
    --focus-ring: var(--accent-text);
  }
}

:root[data-theme="dark"] {
  --bg: #2c2e39;
  --surface: #373946;
  --accent-surface: #512e40;
  --accent-text: #ff8cb8;
  --accent-text-strong: #ff8cb8;
  --text: #faf8fa;
  --muted: #bebec9;
  --muted-on-accent: #bebec9;
  --line: #494b5a;
  --danger: #ff8a80;
  --phone-frame: #14151b;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.3);
  --focus-ring: var(--accent-text);
}

/* --------------------------------------------------------------------------
   Basis
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

a:hover {
  text-decoration: underline;
}

/* Links im Fließtext sind nicht nur an der Farbe erkennbar (WCAG 1.4.1,
   axe „link-in-text-block“): dauerhaft dezent unterstrichen. Knöpfe,
   Store-Badges und Navigation bleiben ohne Linie. */
main :is(p, li, dd, td, address, .store-note) a:not(.btn):not(.store-badge) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}

h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.7rem);
  overflow-wrap: anywhere;
  hyphens: auto;
}

h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

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

.eyebrow {
  display: block;
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede {
  font-size: clamp(1.25rem, 2.3vw, 1.6rem);
  line-height: 1.3;
  font-weight: 500;
  margin: 18px 0 16px;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
}

.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-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--fuchsia);
  color: var(--on-fuchsia);
  border-radius: var(--radius-button);
}

.skip-link:focus {
  top: 12px;
}

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

/* --------------------------------------------------------------------------
   Buttons und Chips
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-button);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--fuchsia);
  color: var(--on-fuchsia);
  box-shadow: 0 8px 20px rgba(216, 18, 91, 0.28);
}

.btn-primary:hover {
  background: var(--fuchsia-strong);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-pill {
  border-radius: var(--radius-chip);
  min-height: 42px;
  padding: 0 20px;
  font-size: 0.95rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-chip);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.chip.is-active {
  background: var(--dark-grey);
  color: #fff;
  border-color: var(--dark-grey);
}

/* Store-Badges: eigene, markenneutrale Darstellung, damit keine fremden
   Bild-Assets nötig sind. Sobald die Store-Links stehen, können die
   offiziellen Badges von Apple/Google eingesetzt werden (siehe README). */

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 18px 8px 14px;
  border-radius: 12px;
  background: #0b0b0d;
  color: #fff;
  border: 1px solid #3a3a40;
  text-decoration: none;
  line-height: 1.05;
  transition: transform 0.15s ease;
}

.store-badge:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.store-badge svg {
  width: 28px;
  height: 28px;
  flex: none;
}

.store-badge small {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  opacity: 0.9;
}

.store-badge strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.store-badge.is-pending {
  cursor: default;
  opacity: 0.85;
}

.store-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.brand img {
  height: 30px;
  width: auto;
}

.brand .logo-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .logo-light {
    display: none;
  }

  :root:not([data-theme="light"]) .brand .logo-dark {
    display: block;
  }
}

:root[data-theme="dark"] .brand .logo-light {
  display: none;
}

:root[data-theme="dark"] .brand .logo-dark {
  display: block;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--text);
  font-weight: 500;
  font-size: 0.98rem;
}

.site-nav a:hover {
  text-decoration: none;
  color: var(--accent-text);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  border-radius: 3px;
  background: var(--focus-ring);
}

.header-cta {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 8px var(--gutter) 20px;
}

.mobile-nav li a {
  display: block;
  padding: 14px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

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

.mobile-nav .btn {
  margin-top: 18px;
  width: 100%;
}

@media (min-width: 860px) {
  .site-nav,
  .header-cta {
    display: inline-flex;
  }

  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 40px 0 56px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero-copy p.intro {
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: flex;
  justify-content: center;
}

.hero-blob {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-blob svg {
  width: 100%;
  height: 100%;
}

@media (min-width: 860px) {
  .hero {
    padding: 64px 0 80px;
  }

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

  .hero-visual {
    min-height: 640px;
  }
}

/* --------------------------------------------------------------------------
   Handy-Mockups (reines CSS/HTML, kein Screenshot nötig)
   -------------------------------------------------------------------------- */

.phones {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  height: 100%;
  min-height: 560px;
}

.phone {
  position: absolute;
  width: 250px;
  aspect-ratio: 250 / 520;
  border-radius: 40px;
  background: var(--phone-frame);
  padding: 10px;
  box-shadow: var(--shadow), inset 0 0 0 2px #3c3d47;
}

.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 22px;
  border-radius: 999px;
  background: #0b0b0d;
  z-index: 3;
}

.phone-1 {
  left: 8%;
  top: 0;
  transform: rotate(-4deg);
}

.phone-2 {
  right: 4%;
  top: 44px;
  transform: rotate(5deg);
}

@media (max-width: 559px) {
  .hero-visual,
  .phones {
    min-height: 600px;
  }

  .phones {
    max-width: 100%;
  }

  .phone {
    width: 196px;
  }

  .phone-1 {
    left: 0;
    top: 0;
    transform: rotate(-5deg);
  }

  .phone-2 {
    right: 0;
    top: 120px;
    transform: rotate(5deg);
  }
}

.screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 31px;
  background: #f7f7f8;
  color: #2c2e39;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
}

.screen > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.screen .status {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px 0;
  font-size: 9px;
  font-weight: 700;
}

.screen .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 4px;
}

.screen .topbar img {
  height: 12px;
  width: auto;
}

.screen .icon-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #e9e8ed;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  margin-left: 6px;
}

.screen .body {
  flex: 1;
  padding: 6px 12px 0;
  overflow: hidden;
}

.screen .kicker {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #70717d;
  margin: 6px 0 2px;
}

.screen .headline {
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.screen .headline .accent {
  color: #d8125b;
}

.screen .sub {
  font-size: 8.5px;
  color: #70717d;
  margin: 3px 0 6px;
}

.screen .chips {
  display: flex;
  gap: 4px;
  margin: 4px 0 8px;
}

.screen .chips span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e9e8ed;
  font-size: 7.5px;
  font-weight: 600;
}

.screen .chips span.on {
  background: #2c2e39;
  color: #fff;
  border-color: #2c2e39;
}

.screen .card {
  background: #fff;
  border-radius: 14px;
  padding: 9px 10px;
  box-shadow: 0 4px 14px rgba(44, 46, 57, 0.08);
  margin-bottom: 8px;
}

.screen .card.accent-card {
  background: #fbe6ee;
  box-shadow: none;
}

.screen .author {
  display: flex;
  align-items: center;
  gap: 6px;
}

.screen .avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d8125b, #ff8cb8);
  color: #fff;
  font-size: 7px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.screen .author strong {
  display: block;
  font-size: 8.5px;
}

.screen .author small {
  font-size: 7px;
  color: #70717d;
}

.screen .author .time {
  margin-left: auto;
  font-size: 7px;
  color: #70717d;
}

.screen .post-text {
  margin: 6px 0;
  font-size: 9px;
}

.screen .actions {
  display: flex;
  gap: 5px;
}

.screen .actions span {
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid #e9e8ed;
  font-size: 7px;
  font-weight: 600;
}

.screen .hint {
  text-align: center;
  font-size: 7px;
  color: #70717d;
  margin-top: 6px;
}

.screen .map {
  position: relative;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  margin: 6px 0 8px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.35) 0 2px, transparent 2px 100%) 0 0 / 34px 34px,
    linear-gradient(25deg, rgba(255, 255, 255, 0.35) 0 2px, transparent 2px 100%) 0 0 / 46px 46px,
    linear-gradient(160deg, #d6ecc7, #b7dfb0 55%, #cde6c2);
}

.screen .map .road {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 48%;
  height: 7px;
  background: #fff;
  transform: rotate(-12deg);
  opacity: 0.9;
}

.screen .map .road.two {
  top: 26%;
  height: 5px;
  transform: rotate(22deg);
}

.screen .map .pin {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  background: #d8125b;
  transform: rotate(-45deg);
  box-shadow: 0 3px 8px rgba(216, 18, 91, 0.45);
}

.screen .map .pin::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #fff;
}

.screen .map .label {
  position: absolute;
  left: 8px;
  bottom: 7px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 7px;
  font-weight: 600;
}

.screen .event-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.screen .event-ball {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.screen .event-row strong {
  font-size: 9px;
  display: block;
}

.screen .event-row small {
  display: block;
  font-size: 7px;
  color: #646572;
}

.screen .tabbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 6px 6px 12px;
  background: #fff;
  border-top: 1px solid #e9e8ed;
  font-size: 6.5px;
  font-weight: 600;
  color: #70717d;
  text-align: center;
}

.screen .tabbar span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.screen .tabbar svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.screen .tabbar .on {
  color: #d8125b;
}

.screen .tabbar .on svg {
  fill: rgba(216, 18, 91, 0.12);
}

/* --------------------------------------------------------------------------
   Abschnitte
   -------------------------------------------------------------------------- */

.section {
  padding: 64px 0;
}

.section.alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 860px) {
  .section {
    padding: 88px 0;
  }
}

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 16px;
}

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

@media (min-width: 600px) {
  .values {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .values {
    grid-template-columns: repeat(4, 1fr);
  }
}

.value {
  text-align: left;
}

.value .icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-surface);
  color: var(--accent-text-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.value .icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.value p {
  color: var(--muted);
  margin: 0;
}

/* Zweispaltige Bild-Text-Abschnitte */

.split {
  display: grid;
  gap: 36px;
  align-items: center;
}

.split .copy p {
  color: var(--muted);
  max-width: 44ch;
}

.split .copy h2 {
  margin-bottom: 18px;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
  }

  .split.reverse .copy {
    order: 2;
  }
}

.photo {
  position: relative;
  min-height: 300px;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
  /* Ein echtes Foto: <div class="photo" style="background-image:url(/assets/img/community.jpg)"> */
  background-size: cover;
  background-position: center;
  background-image:
    radial-gradient(120% 80% at 80% 20%, #ff8cb8 0%, transparent 55%),
    radial-gradient(90% 90% at 10% 90%, #d8125b 0%, transparent 60%),
    linear-gradient(160deg, #2c2e39, #4a2e40 70%, #2c2e39);
}

.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(20, 21, 27, 0.55));
}

.photo .script {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  color: #fff;
  text-align: right;
}

@media (min-width: 860px) {
  .photo {
    min-height: 380px;
  }
}

.script {
  font-family: var(--font-script);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.script .underline {
  display: block;
  width: 180px;
  height: 14px;
  margin-top: 4px;
  margin-left: auto;
}

/* Feature-Liste mit Bullet-Häkchen */

.checks {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.checks li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent-surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b80f4d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .checks li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8cb8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  }
}

:root[data-theme="dark"] .checks li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8cb8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

/* Große Feature-Karten (Features-Seite) */

.feature-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 720px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .feature-grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.card h3,
.card .card-title {
  margin-bottom: 10px;
}

/* .card-title: für Kartenüberschriften, die aus Gründen der Überschriftenfolge
   ein h2 statt h3 sein müssen, aber optisch wie .card h3 aussehen sollen. */
.card .card-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--accent-surface);
  color: var(--accent-text-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card .icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card.accent {
  background: var(--accent-surface);
  border-color: transparent;
}

.card.accent p {
  color: var(--muted-on-accent);
}

.card.accent a:not(.btn),
.cta-box a:not(.btn):not(.store-badge),
.fact a:not(.btn),
.prose .callout a:not(.btn) {
  color: var(--accent-text-strong);
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.steps li {
  position: relative;
  padding: 24px 22px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--fuchsia);
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}

.steps h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Fakten-Streifen */

.facts {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .facts {
    grid-template-columns: repeat(3, 1fr);
  }
}

.fact {
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--accent-surface);
}

.fact strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent-text-strong);
  line-height: 1;
  margin-bottom: 8px;
}

.fact span {
  color: var(--muted-on-accent);
  font-size: 0.98rem;
}

/* CTA-Kasten */

.cta {
  padding: 24px 0 64px;
}

.cta-box {
  position: relative;
  display: grid;
  gap: 32px;
  align-items: center;
  padding: 44px 28px;
  border-radius: 32px;
  background: var(--accent-surface);
  overflow: hidden;
}

/* Sekundärtext auf der rosa Fläche: --muted erreicht dort nur 4,06:1,
   --muted-on-accent 4,84:1 (dunkel unverändert 6,28:1). */
.cta-box .eyebrow,
.card.accent .eyebrow {
  color: var(--muted-on-accent);
}

.cta-box .copy p {
  color: var(--muted-on-accent);
  max-width: 40ch;
}

.cta-box .store-badges {
  margin-top: 22px;
}

.cta-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.cta-art .appicon {
  width: 132px;
  height: 132px;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.cta-art .script {
  color: var(--text);
  text-align: center;
  transform: rotate(-4deg);
}

.cta-art .script .underline {
  margin: 4px auto 0;
}

@media (min-width: 860px) {
  .cta-box {
    grid-template-columns: 1.2fr 1fr;
    padding: 64px 56px;
  }
}

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

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0 22px;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 36px 18px 0;
  font-weight: 700;
  font-size: 1.05rem;
  position: relative;
}

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

.faq-list summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2.5px solid var(--accent-text);
  border-bottom: 2.5px solid var(--accent-text);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq-list details p {
  color: var(--muted);
  padding-bottom: 18px;
  margin: 0;
}

.faq-list details p + p {
  margin-top: -6px;
}

.faq-group {
  margin-bottom: 40px;
}

.faq-group h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   Textseiten (Rechtstexte, Über uns, Kontakt)
   -------------------------------------------------------------------------- */

.page-head {
  padding: 56px 0 24px;
}

.page-head h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.page-head p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 60ch;
  margin-top: 16px;
}

.page-head .stand {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-chip);
  background: var(--accent-surface);
  color: var(--accent-text-strong);
  font-size: 0.85rem;
  font-weight: 600;
}

.prose-layout {
  display: grid;
  gap: 40px;
  padding-bottom: 80px;
}

.prose-layout > * {
  min-width: 0;
}

@media (min-width: 960px) {
  .prose-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 64px;
  }

  .toc {
    position: sticky;
    top: 96px;
    align-self: start;
  }
}

.toc {
  padding: 20px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.92rem;
}

.toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

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

.prose {
  max-width: 76ch;
  font-size: 1.02rem;
}

.prose h2 {
  font-size: 1.5rem;
  margin: 44px 0 14px;
  padding-top: 8px;
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
}

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

.prose h3 {
  font-size: 1.12rem;
  margin: 28px 0 10px;
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
}

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

.prose ul,
.prose ol {
  padding-left: 22px;
  margin: 0 0 1em;
}

.prose li {
  margin-bottom: 6px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 22px;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
}

.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.prose th {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--text);
}

.prose .callout {
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--accent-surface);
  color: var(--text);
  margin: 18px 0 24px;
}

.prose .callout p:last-child {
  margin-bottom: 0;
}

.prose .callout ul {
  margin-bottom: 0;
}

.prose address {
  font-style: normal;
  line-height: 1.6;
  margin-bottom: 1em;
}

/* Platzhalter, die Moritz vor der Veröffentlichung ersetzen muss.
   Bewusst auffällig, damit nichts davon versehentlich online geht. */

.ph {
  background: #fff3bf;
  color: #5c4400;
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px dashed #d9a400;
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ph {
    background: #4a3d10;
    color: #ffe38a;
    border-color: #b58f1e;
  }
}

.contact-grid {
  display: grid;
  gap: 18px;
  margin: 24px 0 40px;
}

@media (min-width: 720px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-grid .card h3,
.contact-grid .card .card-title {
  font-size: 1rem;
}

.contact-grid .card a {
  font-weight: 600;
  word-break: break-all;
}

/* Beta beitreten */

.beta-grid {
  display: grid;
  gap: 28px;
  margin: 32px 0 28px;
}

@media (min-width: 900px) {
  .beta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.beta-card {
  padding: clamp(28px, 4vw, 44px);
  scroll-margin-top: 96px;
}

.beta-card h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin: 12px 0 26px;
}

.beta-steps {
  margin: 0 0 32px;
  padding-left: 1.5em;
  display: grid;
  gap: 16px;
  line-height: 1.55;
}

.beta-steps li {
  padding-left: 6px;
}

.beta-steps li::marker {
  color: var(--fuchsia);
  font-weight: 800;
}

.beta-steps .beta-step-action {
  display: block;
  margin-top: 12px;
}

.beta-card .beta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin: 0;
}

.beta-card .beta-note {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
  line-height: 1.6;
}

.beta-more {
  display: grid;
  gap: 28px;
}

@media (min-width: 900px) {
  .beta-more {
    grid-template-columns: repeat(3, 1fr);
  }
}

.beta-more .card {
  padding: clamp(24px, 3vw, 32px);
}

.beta-more .card h3 {
  margin-bottom: 12px;
}

.beta-more .card p {
  line-height: 1.6;
}

.beta-more .card p + p {
  margin-top: 12px;
}

/* Team / Über uns */

.principles {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .principles {
    grid-template-columns: repeat(2, 1fr);
  }
}

.principles .card h3 {
  font-size: 1.05rem;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 44px;
  font-size: 0.95rem;
}

.site-footer .container {
  display: grid;
  gap: 24px;
}

.site-footer .brand img {
  height: 26px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--text);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

@media (min-width: 860px) {
  .site-footer .container {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .footer-links {
    justify-content: flex-end;
  }

  .footer-meta {
    grid-column: 1 / -1;
  }
}

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

  .btn,
  .store-badge,
  .faq-list summary::after {
    transition: none;
  }
}

@media print {
  /* Immer helle Farben drucken, auch wenn das Betriebssystem den Dunkelmodus
     meldet: prefers-color-scheme und print gelten gleichzeitig, darum reichen
     einfache Selektoren nicht – !important stellt die hellen Werte sicher. */
  :root {
    --bg: #f7f7f8 !important;
    --surface: #ffffff !important;
    --accent-surface: #fbe6ee !important;
    --accent-text: #d8125b !important;
    --accent-text-strong: #b80f4d !important;
    --text: #2c2e39 !important;
    --muted: #70717d !important;
    --muted-on-accent: #646572 !important;
    --line: #e9e8ed !important;
    --danger: #c62828 !important;
    --phone-frame: #1b1c24 !important;
  }

  .site-header,
  .site-footer,
  .toc,
  .store-badges {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* Kartenraster neben Text: etwas kompakter, damit vier Karten nebeneinander atmen */

.split .feature-grid .card {
  padding: 22px;
}

.split .feature-grid .card p {
  font-size: 0.95rem;
}

.split .feature-grid .card .icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
}

@media (min-width: 860px) {
  .split:has(.feature-grid) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  }
}
