/* ==========================================================================
   Arznei digital — arzneidigital.de
   Modernes Stylesheet (ohne Framework)

   Theming: Dunkel ist die Standardpalette. Jede Fläche, Trennlinie und
   Überlagerung wird über Custom Properties gesteuert, sodass die helle
   Palette in §1b nur die Tokens neu setzen muss — keine Komponentenregel
   braucht eine zweite Fassung.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design-Tokens — dunkel (Standard)
   -------------------------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* Flächen — warmes Beinahe-Schwarz, passend zum roten Markenton */
  --bg:            #0c0a0a;
  --bg-soft:       #110e0e;
  --surface:       #171313;
  --surface-2:     #1e1919;
  --line:          rgba(255, 255, 255, 0.09);
  --line-strong:   rgba(255, 255, 255, 0.16);

  /* Text */
  --text:          #f7f4f3;
  --text-muted:    #a89e9c;
  --text-dim:      #7a706e;

  /* Transparente Füllungen über dem Seitenhintergrund */
  --fill-1:        rgba(255, 255, 255, 0.04);   /* Ruhezustand */
  --fill-2:        rgba(255, 255, 255, 0.09);   /* Hover       */
  --fill-3:        rgba(255, 255, 255, 0.16);   /* Aktiv       */
  --well:          rgba(0, 0, 0, 0.42);         /* Eingesetzte Flächen, Felder */
  --well-focus:    rgba(0, 0, 0, 0.60);
  --track:         rgba(255, 255, 255, 0.08);   /* Balken-Hintergrund */
  --edge-hi:       rgba(255, 255, 255, 0.22);   /* Karten-Oberkante   */
  --grid-line:     rgba(255, 255, 255, 0.028);  /* Raster im Hero     */
  --bezel-ring:    rgba(255, 255, 255, 0.09);   /* Kante der Geräte-Attrappe */

  /* Chrome */
  --nav-bg:        rgba(12, 10, 10, 0.72);
  --nav-bg-open:   rgba(12, 10, 10, 0.94);
  --glass:         rgba(23, 19, 19, 0.82);
  --scrim:         rgba(6, 4, 4, 0.90);

  /* Marke — aus dem App-Icon abgetastet: der Verlauf reicht von #f45c43
     (links) bis #eb3349 (rechts). */
  --brand:         #ef4846;
  --brand-light:   #f45c43;
  --brand-deep:    #eb3349;
  --brand-dim:     rgba(244, 92, 67, 0.14);
  --brand-line:    rgba(244, 92, 67, 0.28);
  --brand-ink:     #2b0805; /* Text/Flächen auf farbigem Grund */
  --brand-text:    var(--brand-light); /* Marke als Schrift — siehe §1b */

  /* Akzente aus der Farbcodierung der App selbst */
  --blue:          #007aff;
  --orange:        #ff9500;
  --green:         #34c759;
  --blue-text:     #4da3ff;
  --orange-text:   var(--orange);
  --green-text:    var(--green);
  --red-text:      #ff8f87;
  --red-dim:       rgba(255, 59, 48, 0.12);
  --red-line:      rgba(255, 59, 48, 0.32);
  --ok-text:       #4ade80;
  --ok-dim:        rgba(52, 199, 89, 0.14);
  --ok-line:       rgba(52, 199, 89, 0.30);

  /* Verlauf in der Überschrift */
  --em-from:       #ff7a52;
  --em-mid:        var(--brand-light);
  --em-to:         var(--brand-deep);

  /* Farbiges Streulicht */
  --glow-a:        rgba(239, 72, 70, 0.20);
  --glow-b:        rgba(239, 72, 70, 0.07);
  --cta-glow:      rgba(239, 72, 70, 0.20);
  --btn-glow:      rgba(239, 72, 70, 0.55);
  --btn-glow-hi:   rgba(239, 72, 70, 0.72);
  --icon-glow:     rgba(239, 72, 70, 0.42);

  /* Typografie */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Maße */
  --nav-h:         68px;
  --radius-sm:     10px;
  --radius:        16px;
  --radius-lg:     24px;
  --maxw:          1160px;
  --gutter:        24px;

  --shadow:        0 24px 60px -20px rgba(0, 0, 0, 0.8);
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   1b. Design-Tokens — hell
   Folgt der Systemeinstellung. Das Markenrot ist als Schrift auf Weiß zu
   hell, daher wechselt alles in Textgröße auf ein tieferes Rot
   (--brand-text), während Flächen, Balken und Buttons den echten Markenton
   behalten.
   -------------------------------------------------------------------------- */
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;

    --bg:          #fdfcfb;
    --bg-soft:     #f4efed;
    --surface:     #ffffff;
    --surface-2:   #faf7f6;
    --line:        rgba(40, 16, 12, 0.10);
    --line-strong: rgba(40, 16, 12, 0.18);

    --text:        #17100f;
    --text-muted:  #615654;
    --text-dim:    #837977;

    --fill-1:      rgba(40, 16, 12, 0.04);
    --fill-2:      rgba(40, 16, 12, 0.08);
    --fill-3:      rgba(40, 16, 12, 0.14);
    --well:        rgba(40, 16, 12, 0.035);
    --well-focus:  rgba(40, 16, 12, 0.055);
    --track:       rgba(40, 16, 12, 0.10);
    --edge-hi:     rgba(40, 16, 12, 0.10);
    --grid-line:   rgba(40, 16, 12, 0.05);
    --bezel-ring:  rgba(40, 16, 12, 0.14);

    --nav-bg:      rgba(255, 255, 255, 0.78);
    --nav-bg-open: rgba(255, 255, 255, 0.95);
    --glass:       rgba(255, 255, 255, 0.86);
    --scrim:       rgba(241, 236, 234, 0.88);

    --brand-dim:   rgba(192, 57, 43, 0.10);
    --brand-line:  rgba(192, 57, 43, 0.26);
    --brand-text:  #c0392b;

    --blue-text:   #0a63c4;
    --orange-text: #9a5a00;
    --green-text:  #1c7a3a;
    --red-text:    #b3261e;
    --red-dim:     rgba(255, 59, 48, 0.10);
    --red-line:    rgba(255, 59, 48, 0.30);
    --ok-text:     #1c7a3a;
    --ok-dim:      rgba(28, 122, 58, 0.10);
    --ok-line:     rgba(28, 122, 58, 0.26);

    --em-from:     #d84a2a;
    --em-mid:      #c0392b;
    --em-to:       #a52036;

    --glow-a:      rgba(244, 92, 67, 0.26);
    --glow-b:      rgba(244, 92, 67, 0.09);
    --cta-glow:    rgba(244, 92, 67, 0.22);
    --btn-glow:    rgba(210, 60, 55, 0.42);
    --btn-glow-hi: rgba(210, 60, 55, 0.58);
    --icon-glow:   rgba(210, 60, 55, 0.32);

    --shadow:      0 22px 48px -24px rgba(40, 16, 12, 0.35);
  }
}

/* --------------------------------------------------------------------------
   2. Grundlagen
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}
p { margin: 0; }

::selection { background: var(--brand); color: #fff; }

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

/* Layout-Helfer */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: clamp(72px, 11vw, 132px) 0; }
.section--tight { padding-top: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-text);
}

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 {
  margin-top: 14px;
  font-size: clamp(30px, 4.4vw, 48px);
}
.section-head p {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: clamp(17px, 1.6vw, 19px);
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s,
              box-shadow 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(105deg, var(--brand-light), var(--brand-deep));
  color: #fff;
  box-shadow: 0 10px 30px -10px var(--btn-glow);
}
.btn--primary:hover { box-shadow: 0 16px 38px -10px var(--btn-glow-hi); }

.btn--ghost {
  background: var(--fill-1);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover { background: var(--fill-2); }

.btn--lg { padding: 16px 30px; font-size: 16px; }

/* App-Store-Button mit Apple-Zeichen */
.btn--store { padding-block: 11px; }
.btn--store svg { flex: none; }
.btn--store .store-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.btn--store .store-label small { font-size: 10.5px; font-weight: 500; opacity: 0.78; letter-spacing: 0.02em; }
.btn--store .store-label span { font-size: 15.5px; font-weight: 600; }

/* --------------------------------------------------------------------------
   4. Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.nav.is-stuck {
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-right: auto;
}
/* Das Icon-PNG bringt eigene runde Ecken und Alpha mit, daher muss der
   Schein ein drop-shadow-Filter sein — ein box-shadow ergäbe einen
   rechteckigen Hof. */
.brand__mark {
  flex: none;
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 4px 10px var(--icon-glow));
}
.brand__mark img { width: 100%; height: 100%; }

/* Größeres App-Icon im CTA-Band */
.app-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 26px;
  filter: drop-shadow(0 14px 34px var(--icon-glow));
}
.app-icon img { width: 100%; height: 100%; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--text); background: var(--fill-2); }
.nav__links a.is-active { color: var(--text); }

/* Der App-Store-Button daneben ist der Download-CTA für große Schirme,
   daher erscheint die einfache Pille nur im mobilen Menü (wo dieser Button
   ausgeblendet ist). Die Klasse muss auch am Anchor stehen: `.nav__links a`
   würde .btn--primary sonst überstimmen und die Schrift grau färben. */
.nav__cta { display: none; }
.nav__links a.btn--primary { color: #fff; }
.nav__links a.btn--primary:hover { color: #fff; background: linear-gradient(105deg, var(--brand-light), var(--brand-deep)); }

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--fill-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 3.5px auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav__toggle { display: block; }
  .nav__links,
  .nav .btn--store { display: none; }

  .nav.is-open {
    background: var(--nav-bg-open);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--line);
  }
  .nav.is-open .nav__links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 22px;
    /* Nicht `inherit`: Elternelement ist .nav__inner ohne eigenen
       Hintergrund — das Menü würde sonst durchscheinen. */
    background: var(--nav-bg-open);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav__links a { padding: 13px 12px; font-size: 17px; }
  .nav.is-open .nav__cta { display: block; margin-top: 10px; }
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 92px));
  padding-bottom: clamp(60px, 9vw, 110px);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -220px;
  left: 50%;
  width: min(1100px, 130vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 50%,
              var(--glow-a) 0%,
              var(--glow-b) 32%,
              transparent 62%);
  pointer-events: none;
  z-index: 0;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 20%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 20%, #000 30%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 9px;
  background: var(--fill-1);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
}
.badge b { color: var(--text); font-weight: 600; }
.badge .dot {
  width: 7px;
  height: 7px;
  margin-left: 5px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-dim);
}

.hero h1 {
  margin-top: 26px;
  font-size: clamp(38px, 5.4vw, 62px);
  letter-spacing: -0.042em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--em-from), var(--em-mid) 50%, var(--em-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  margin-top: 24px;
  max-width: 54ch;
  font-size: clamp(17px, 1.9vw, 20px);
  color: var(--text-muted);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero__note {
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--text-dim);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 46px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.stats dt {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: -0.04em;
}
.stats dd {
  margin: 5px 0 0;
  font-size: 13.5px;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   6. Geräte-Attrappen
   Das Gehäuse bleibt in beiden Themes dunkel — es ist ein Gegenstand, keine
   Seitenfläche. Der Screenshot darin wechselt mit dem Farbschema.
   -------------------------------------------------------------------------- */
.hero__device {
  position: relative;
  justify-self: center;
  width: min(316px, 78vw);
}

.phone {
  position: relative;
  padding: 10px;
  background: linear-gradient(155deg, #3a4046, #14171a 42%, #0b0d0e);
  border-radius: 46px;
  box-shadow:
    0 0 0 1px var(--bezel-ring),
    var(--shadow);
}
.phone::after { /* Reflexion auf dem Glas */
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 37px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.10), transparent 42%);
  pointer-events: none;
  z-index: 3;
}
.phone__screen {
  position: relative;
  overflow: hidden;
  border-radius: 37px;
  background: var(--surface);
  aspect-ratio: 1284 / 2778;
}
.phone__screen img { width: 100%; height: 100%; object-fit: cover; }
/* Die Screenshots enthalten den Bereich hinter der Notch als leere Fläche —
   die Attrappe legt sie schwarz darüber. */
.phone__notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 44%;
  height: 26px;
  background: #000;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

/* Schwebende Karte neben dem Hero-Gerät */
.stock-card {
  position: absolute;
  right: -30px;
  bottom: 26px;
  width: 218px;
  padding: 16px;
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.stock-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.stock-card__head svg { width: 14px; height: 14px; flex: none; color: var(--brand-text); }
.stock-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.stock-card__row + .stock-card__row { margin-top: 15px; }
.stock-card__row b { font-size: 14px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }

.meter {
  height: 6px;
  margin-top: 8px;
  background: var(--track);
  border-radius: 999px;
  overflow: hidden;
}
.meter i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-deep), var(--brand-light));
  transform-origin: left;
  animation: fill 1.4s var(--ease) both;
}
.meter--orange i { background: linear-gradient(90deg, var(--orange), #ffbe4d); }
.meter--green  i { background: linear-gradient(90deg, var(--green), #6fe08d); }
.meter--blue   i { background: linear-gradient(90deg, var(--blue), #6fb7ff); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lede { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__device { margin-top: 24px; }
  .stats { text-align: left; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .stock-card { right: -8px; bottom: 20px; width: 184px; padding: 13px; }
  .stats { grid-template-columns: 1fr; gap: 18px; }
}

/* --------------------------------------------------------------------------
   7. Feature-Raster
   -------------------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.card {
  position: relative;
  grid-column: span 2;
  padding: 30px;
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--edge-hi), transparent);
}
.card--wide { grid-column: span 3; }
/* Volle Breite: Icon links, Text daneben — sonst bliebe rechts zu viel Luft */
.card--full {
  grid-column: span 6;
  display: flex;
  align-items: flex-start;
  gap: 22px;
}
.card--full .card__icon { margin-bottom: 0; }
.card--full p { max-width: 62ch; }

.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  background: var(--brand-dim);
  border: 1px solid var(--brand-line);
  border-radius: 13px;
  color: var(--brand-text);
}
.card__icon svg { width: 21px; height: 21px; }
.card__icon--blue   { background: rgba(0, 122, 255, 0.14); border-color: rgba(0, 122, 255, 0.26); color: var(--blue-text); }
.card__icon--orange { background: rgba(255, 149, 0, 0.16); border-color: rgba(255, 149, 0, 0.30); color: var(--orange-text); }
.card__icon--green  { background: rgba(52, 199, 89, 0.14); border-color: rgba(52, 199, 89, 0.28); color: var(--green-text); }

.card h3 { font-size: 19px; letter-spacing: -0.025em; }
.card p {
  margin-top: 11px;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--text-muted);
}

.card__demo {
  margin-top: 24px;
  padding: 16px;
  background: var(--well);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.demo-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-size: 14.5px;
}
.demo-row + .demo-row { border-top: 1px solid var(--line); }
.demo-row span { color: var(--text-muted); }
.demo-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.demo-row small {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--text-dim);
}
.demo-row code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--text-dim);
}
/* Zeile mit Balken darunter — die Trennlinie stört dort */
.card__demo .meter + .demo-row { border-top: 0; }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card, .card--wide { grid-column: span 1; }
  .card--full { grid-column: span 2; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .card { padding: 26px; }
}

/* --------------------------------------------------------------------------
   8. Datenbank-Abschnitt
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.checks {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 15px;
}
.checks li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  font-size: 16px;
  color: var(--text-muted);
}
.checks svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--brand-text);
}
.checks b { color: var(--text); font-weight: 600; }

/* ATC-Baum als Attrappe */
.atc {
  justify-self: center;
  width: min(400px, 100%);
  padding: 26px 24px;
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.atc__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 16px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.atc__head svg { width: 14px; height: 14px; flex: none; color: var(--brand-text); }

.atc__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0 9px var(--indent, 0);
  font-size: 14.5px;
}
.atc__row code {
  flex: none;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-text);
}
.atc__row span { color: var(--text-muted); }
.atc__row--leaf { color: var(--text); }
.atc__row--leaf span { color: var(--text); font-weight: 600; }
.atc__row--leaf::after {
  content: "›";
  margin-left: auto;
  color: var(--text-dim);
}
.atc__foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-dim);
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .atc { order: -1; }
}

/* --------------------------------------------------------------------------
   9. Galerie
   -------------------------------------------------------------------------- */
.gallery {
  display: flex;
  gap: 22px;
  padding: 8px calc(50vw - var(--maxw) / 2 + var(--gutter)) 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { height: 6px; }
.gallery::-webkit-scrollbar-track { background: transparent; }
.gallery::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; }

.shot {
  flex: 0 0 auto;
  width: 244px;
  scroll-snap-align: center;
  cursor: zoom-in;
  margin: 0;
  border: 0;
  padding: 0;
  background: none;
  transition: transform 0.35s var(--ease);
}
.shot:hover { transform: translateY(-8px); }
.shot .phone { border-radius: 34px; padding: 7px; }
.shot .phone::after,
.shot .phone__screen { border-radius: 28px; }
.shot .phone__notch { top: 7px; height: 20px; }
.shot figcaption {
  margin-top: 15px;
  font-size: 13.5px;
  color: var(--text-dim);
  text-align: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 28px;
  background: var(--scrim);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-height: 86vh;
  width: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--fill-2);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { background: var(--fill-3); }

/* --------------------------------------------------------------------------
   10. CTA-Band
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 7vw, 84px) clamp(26px, 5vw, 68px);
  background:
    radial-gradient(120% 130% at 12% 0%, var(--cta-glow), transparent 58%),
    linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: 32px;
  text-align: center;
}
.cta h2 {
  font-size: clamp(28px, 4.2vw, 44px);
  max-width: 19ch;
  margin-inline: auto;
}
.cta p {
  margin: 18px auto 0;
  max-width: 48ch;
  color: var(--text-muted);
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
}

/* --------------------------------------------------------------------------
   11. Kontaktformular
   -------------------------------------------------------------------------- */
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(26px, 4vw, 40px);
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--well);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  font-size: 15.5px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-dim); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-text);
  background: var(--well-focus);
  box-shadow: 0 0 0 4px var(--brand-dim);
}

.form__foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.form__foot .btn { margin-left: auto; }

.form__status {
  grid-column: 1 / -1;
  display: none;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14.5px;
}
.form__status.is-visible { display: flex; }
.form__status.is-ok {
  background: var(--ok-dim);
  border: 1px solid var(--ok-line);
  color: var(--ok-text);
}
.form__status.is-err {
  background: var(--red-dim);
  border: 1px solid var(--red-line);
  color: var(--red-text);
}

.contact-aside .checks { margin-top: 26px; }

@media (max-width: 720px) {
  .form { grid-template-columns: 1fr; }
  .form__foot .btn { margin-left: 0; width: 100%; }
}

/* --------------------------------------------------------------------------
   12. Fußzeile
   -------------------------------------------------------------------------- */
.footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding-bottom: 34px;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0 auto 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}
.footer__links a { color: var(--text-muted); transition: color 0.2s; }
.footer__links a:hover { color: var(--text); }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--text-dim);
}
.footer__base p { margin-right: auto; }

/* --------------------------------------------------------------------------
   13. Rechtsseiten (Datenschutzerklärung)
   -------------------------------------------------------------------------- */
.doc { max-width: 780px; margin-inline: auto; }
.doc__meta {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 14px;
  background: var(--fill-1);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.doc h1 { margin-top: 16px; font-size: clamp(32px, 5vw, 48px); }
.doc h2 {
  margin-top: 52px;
  font-size: 23px;
  letter-spacing: -0.028em;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.doc h3 { margin-top: 34px; font-size: 18px; letter-spacing: -0.02em; }
.doc h4 { margin-top: 26px; font-size: 16px; letter-spacing: -0.015em; color: var(--text-muted); }
.doc p {
  margin-top: 15px;
  color: var(--text-muted);
  font-size: 16.5px;
  line-height: 1.75;
}
.doc h2 + p, .doc h3 + p, .doc h4 + p { margin-top: 12px; }
.doc .lede { margin-top: 26px; font-size: 18px; }
.doc ul {
  margin: 15px 0 0;
  padding-left: 22px;
  color: var(--text-muted);
  font-size: 16.5px;
  line-height: 1.75;
}
.doc li { margin-top: 5px; }
.doc a { color: var(--brand-text); border-bottom: 1px solid var(--brand-line); word-break: break-word; }
.doc a:hover { border-bottom-color: var(--brand-text); }
.doc hr { margin: 52px 0 0; border: 0; border-top: 1px solid var(--line); }

.doc__card {
  margin-top: 18px;
  padding: 22px 24px;
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.doc__card ul { margin: 0; padding: 0; list-style: none; }
.doc__card li { margin-top: 3px; }

.back {
  /* flex, not inline-flex: block-level so the eyebrow below starts a new line */
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.back:hover { color: var(--text); }

/* --------------------------------------------------------------------------
   14. Einblenden beim Scrollen
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
