/* Webröntgen – Grundgestaltung. Farben passen zu den Illustrationen: Nachtblau, Petrol, Bernstein. */
:root {
  --navy: #10263f;
  --navy-2: #1b3a5c;
  --petrol: #1a9e9a;
  --petrol-dark: #0e7672;
  --sky: #dcecf5;
  --sky-2: #eef6fa;
  --amber: #f2a93b;
  --amber-dark: #d88b17;

  --bg: #f7f9fb;
  --panel: #ffffff;
  --text: #13233a;
  --muted: #56667b;
  --line: #e3e9f0;
  --brand: var(--navy);
  --accent: var(--petrol-dark);
  --accent-strong: #0a5c59;
  --glow: #5fe0da;
  --ok: #1f9d55;
  --warn: #c98a12;
  --fail: #d64545;
  --info: #7a8696;
  --ok-soft: #e6f6ed;
  --warn-soft: #fdf4e1;
  --fail-soft: #fdecec;
  --map-land: #dbe6ee;
  --map-sea: #f5f9fc;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgb(16 38 63 / 5%), 0 4px 16px rgb(16 38 63 / 6%);
  --shadow-lg: 0 2px 4px rgb(16 38 63 / 4%), 0 18px 48px rgb(16 38 63 / 10%);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img,
picture {
  max-width: 100%;
}

picture {
  display: block;
}

picture img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-strong);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
  color: var(--navy);
}

h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 750;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

/* Knöpfe */
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  border-radius: 12px;
  padding: 14px 24px;
  background: var(--amber);
  color: var(--navy);
  text-decoration: none;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgb(16 38 63 / 12%), 0 6px 18px rgb(242 169 59 / 30%);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

button:hover,
.button:hover {
  background: #f5b650;
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgb(16 38 63 / 12%), 0 10px 24px rgb(242 169 59 / 36%);
}

button:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.button.secondary,
button.secondary {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--line);
  box-shadow: none;
}

.button.secondary:hover,
button.secondary:hover {
  border-color: var(--petrol);
  background: #fff;
}

.button-small {
  padding: 10px 16px;
  font-size: 0.95rem;
  border-radius: 10px;
}

.link-arrow {
  font-weight: 650;
  text-decoration: none;
}

.link-arrow::after {
  content: ' →';
}

/* Kopf */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 92%);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover {
  color: var(--navy);
}

.header-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.header-nav a,
.menu nav a:not(.button) {
  color: var(--text);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.97rem;
  padding: 8px 12px;
  border-radius: 8px;
}

.header-nav a:hover,
.header-nav a[aria-current='page'] {
  background: var(--sky-2);
  color: var(--navy);
}

.menu {
  display: none;
  margin-left: auto;
  position: relative;
}

.menu summary {
  list-style: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-content: center;
  gap: 5px;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu summary span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: var(--navy);
}

.menu nav {
  position: absolute;
  right: 0;
  top: 54px;
  width: min(86vw, 320px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: grid;
  gap: 2px;
}

.menu nav .button {
  margin-top: 8px;
}

@media (max-width: 1040px) {
  .header-nav,
  .header-cta {
    display: none;
  }

  .menu {
    display: block;
  }
}

/* Fuß */
.site-footer {
  margin-top: 96px;
  background: var(--navy);
  color: #c5d6e6;
  font-size: 0.95rem;
}

.site-footer a {
  color: #e8f1f8;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 40px;
}

.footer-brand .brand {
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand p {
  max-width: 420px;
}

.footer-trust {
  font-size: 0.9rem;
  color: #9fc4d3;
}

.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer h2 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  border-top: 1px solid rgb(255 255 255 / 12%);
  padding-top: 20px;
  padding-bottom: 28px;
  font-size: 0.85rem;
  color: #9db3c7;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Abschnitte */
.section {
  padding: 88px 0;
}

.section-alt {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head p {
  color: var(--muted);
  font-size: 1.1rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--petrol-dark);
  margin-bottom: 10px;
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }
}

/* Einstieg: dunkler Röntgen-Hero */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #b9c9d9;
  background:
    radial-gradient(ellipse 55% 70% at 76% 42%, rgb(26 158 154 / 30%) 0%, transparent 70%),
    radial-gradient(ellipse 45% 55% at 0% 100%, rgb(95 224 218 / 9%) 0%, transparent 70%),
    linear-gradient(180deg, #0a1b2e 0%, var(--navy) 100%);
  padding: 64px 0 88px;
}

/* feines Messraster wie auf einem Röntgenschirm */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgb(255 255 255 / 4.5%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 4.5%) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 62% 40%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 85% at 62% 40%, #000 25%, transparent 80%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.hero-grid > * {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-grid > :nth-child(2) {
  animation-delay: 0.15s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

.hero .eyebrow {
  color: var(--glow);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 0.4em;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--glow), #b8f5f1 60%, var(--glow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 28px;
}

.hero .lead {
  color: #b9c9d9;
}

.scan-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  max-width: 580px;
}

.hero .scan-card {
  background: rgb(255 255 255 / 7%);
  border-color: rgb(255 255 255 / 16%);
  box-shadow: 0 24px 60px rgb(0 0 0 / 35%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.hero .scan-card:focus-within {
  border-color: rgb(95 224 218 / 55%);
  box-shadow: 0 0 0 4px rgb(95 224 218 / 16%), 0 24px 60px rgb(0 0 0 / 35%);
}

.scan-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.scan-form input {
  flex: 1 1 240px;
  min-width: 0;
  font: inherit;
  font-size: 1.1rem;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  background: #fff;
  color: var(--text);
}

.scan-form input::placeholder {
  color: #8093a8;
}

.scan-form input:focus {
  outline: none;
  border-color: var(--petrol);
}

.scan-form button {
  font-size: 1.05rem;
}

.form-error {
  color: var(--fail);
  font-weight: 600;
  margin: 12px 0 0;
}

.hero .form-error {
  color: #ffa3a3;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  color: #b9c9d9;
  font-size: 0.95rem;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points li::before {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgb(61 220 151 / 16%) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%233ddc97' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
  flex: none;
}

/* Röntgen-Fenster (src/roentgen.ts): Beispielseite oben, Befunde darunter, der Balken legt sie frei */
.xray {
  position: relative;
}

.xray::before {
  content: '';
  position: absolute;
  inset: 6% 4% 14%;
  z-index: -1;
  background: radial-gradient(closest-side, rgb(95 224 218 / 32%), transparent);
  filter: blur(36px);
}

.xray-window {
  border-radius: 18px;
  overflow: hidden;
  background: #0d2238;
  border: 1px solid rgb(255 255 255 / 13%);
  box-shadow: 0 40px 90px rgb(0 0 0 / 45%), 0 0 0 1px rgb(95 224 218 / 7%);
}

.xray-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #13304d;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  font-size: 0.8rem;
  color: #9fb4c8;
}

.xray-dots {
  display: flex;
  gap: 6px;
}

.xray-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgb(255 255 255 / 18%);
}

.xray-url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 4px 12px 4px 28px;
  border-radius: 999px;
  background: rgb(255 255 255 / 7%) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='3.5' y='7' width='9' height='6.5' rx='1.5' fill='%233ddc97'/%3E%3Cpath d='M5.5 7V5.5a2.5 2.5 0 0 1 5 0V7' fill='none' stroke='%233ddc97' stroke-width='1.5'/%3E%3C/svg%3E") 10px center / 13px no-repeat;
}

.xray-count {
  white-space: nowrap;
  font-weight: 650;
}

.xray-count b {
  display: inline-block;
  min-width: 1.6em;
  padding: 1px 6px;
  border-radius: 999px;
  text-align: center;
  color: #0a1b2e;
  background: var(--amber);
}

.xray-stage {
  --x: 58%;
  position: relative;
  aspect-ratio: 16 / 11;
  container-type: inline-size;
  overflow: hidden;
  cursor: ew-resize;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.xray-layer {
  position: absolute;
  inset: 0;
}

.xray-hint {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: #7f97ad;
}

/* Beispielseite (Oberfläche) */
.xray-surface {
  background: #fff;
}

.xm {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 4.2cqw;
  padding: 3.4cqw 4cqw;
}

.xm span {
  display: block;
}

.xm-nav {
  display: flex;
  align-items: center;
  gap: 2.6cqw;
}

.xm-logo {
  width: 10cqw;
  height: 2.8cqw;
  border-radius: 1.4cqw;
  background: var(--petrol);
}

.xm-link {
  width: 7cqw;
  height: 1.2cqw;
  border-radius: 1cqw;
  background: #d3dce6;
}

.xm-logo + .xm-link {
  margin-left: auto;
}

.xm-hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 4cqw;
  align-items: center;
}

.xm-copy {
  display: flex;
  flex-direction: column;
  gap: 1.6cqw;
}

.xm-h {
  height: 3.2cqw;
  border-radius: 0.8cqw;
  background: var(--navy-2);
}

.xm-h.short {
  width: 68%;
}

.xm-t {
  height: 1.3cqw;
  width: 94%;
  border-radius: 0.7cqw;
  background: #cfd8e2;
}

.xm-t.short {
  width: 78%;
}

.xm-btn {
  width: 15cqw;
  height: 4.4cqw;
  margin-top: 1cqw;
  border-radius: 1cqw;
  background: var(--amber);
}

.xm-img {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 1.6cqw;
  background:
    radial-gradient(circle at 74% 28%, #ffd98a 0 8%, transparent 8.5%),
    linear-gradient(162deg, transparent 58%, #2f8f7c 58.4%),
    linear-gradient(196deg, transparent 64%, #1f6f62 64.4%),
    linear-gradient(180deg, #bfe3f2, #eaf6fa);
}

/* Play-Knopf: auf der Seite ist ein eingebettetes Video */
.xm-img::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7cqw;
  height: 7cqw;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgb(255 255 255 / 92%) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M8 6l6 4-6 4z' fill='%2310263f'/%3E%3C/svg%3E") center / 60% no-repeat;
  box-shadow: 0 1cqw 3cqw rgb(16 38 63 / 20%);
}

.xm-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.6cqw;
}

.xm-card {
  height: 12cqw;
  border-radius: 1.4cqw;
  background: #f1f5f9;
  border: 1px solid #e3e9f0;
}

.xm-banner {
  position: absolute;
  left: 4cqw;
  right: 4cqw;
  bottom: 3cqw;
  height: 7.4cqw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3cqw;
  padding: 0 2.4cqw;
  border-radius: 1.4cqw;
  background: var(--navy);
  box-shadow: 0 1cqw 4cqw rgb(16 38 63 / 30%);
}

.xm-banner .xm-t {
  width: 55%;
  background: rgb(255 255 255 / 35%);
}

.xm-banner .xm-btn {
  width: 12cqw;
  height: 3.8cqw;
  margin: 0;
}

/* Röntgenebene: dieselbe Seite als leuchtende Umrisse, dazu die Befunde */
.xray-inside {
  clip-path: inset(0 calc(100% - var(--x)) 0 0);
  background:
    linear-gradient(rgb(95 224 218 / 7%) 1px, transparent 1px) 0 0 / 4cqw 4cqw,
    linear-gradient(90deg, rgb(95 224 218 / 7%) 1px, transparent 1px) 0 0 / 4cqw 4cqw,
    radial-gradient(ellipse at 40% 40%, #0f3b4d, #061727 75%);
}

.xray-inside :is(.xm-logo, .xm-h, .xm-btn, .xm-img, .xm-card, .xm-banner) {
  background: transparent;
  border: 1px solid rgb(95 224 218 / 50%);
  box-shadow: inset 0 0 1.4cqw rgb(95 224 218 / 14%);
}

.xray-inside :is(.xm-t, .xm-link) {
  background: rgb(95 224 218 / 22%);
}

.xray-inside .xm-img {
  border-style: dashed;
}

.xray-inside .xm-img::after {
  background: none;
  border: 1px solid rgb(95 224 218 / 60%);
  box-shadow: none;
}

.xray-inside .xm-banner {
  border-color: rgb(255 107 107 / 60%);
  box-shadow: inset 0 0 2cqw rgb(255 107 107 / 18%);
}

.xray-inside .xm-banner .xm-t {
  background: rgb(255 107 107 / 30%);
}

.xray-flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.xray-flow path {
  fill: none;
  stroke: rgb(255 107 107 / 75%);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
  vector-effect: non-scaling-stroke;
  animation: flow 1.2s linear infinite;
}

@keyframes flow {
  to {
    stroke-dashoffset: -18;
  }
}

.xray-server {
  position: absolute;
  right: 3%;
  top: 13%;
  transform: translateY(-50%);
  padding: 0.5cqw 1.2cqw;
  border-radius: 0.8cqw;
  font-size: clamp(8px, 1.6cqw, 12px);
  font-weight: 700;
  white-space: nowrap;
  color: #ffd0d0;
  background: rgb(80 20 30 / 90%);
  border: 1px solid rgb(255 107 107 / 60%);
}

.pin {
  --c: var(--glow);
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.9cqw;
  padding: 0.5cqw 1.3cqw 0.5cqw 0.8cqw;
  transform: translate(-0.8cqw, -50%);
  border-radius: 999px;
  font-size: clamp(8.5px, 1.75cqw, 13px);
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
  color: #eafcfb;
  background: rgb(6 23 39 / 88%);
  border: 1px solid color-mix(in srgb, var(--c) 60%, transparent);
  box-shadow: 0 0 2.4cqw color-mix(in srgb, var(--c) 25%, transparent);
}

.pin b {
  flex: none;
  width: max(7px, 1.3cqw);
  height: max(7px, 1.3cqw);
  border-radius: 50%;
  background: var(--c);
  animation: ping 2s ease-out infinite;
}

.pin.lit {
  animation: pin-pop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.4) both;
}

.pin.ok {
  --c: #3ddc97;
  left: 6%;
  top: 13%;
}

.pin.warn {
  --c: var(--amber);
}

.pin.fail {
  --c: #ff6b6b;
}

.p-fonts {
  left: 22%;
  top: 31%;
}

.p-cookie {
  left: 30%;
  top: 88.5%;
}

.p-video {
  left: 58%;
  top: 44%;
}

.p-speed {
  left: 70%;
  top: 72%;
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 70%, transparent);
  }

  80%,
  100% {
    box-shadow: 0 0 0 max(6px, 1.2cqw) transparent;
  }
}

@keyframes pin-pop {
  from {
    opacity: 0.3;
    scale: 0.85;
  }
}

/* Lichtbalken */
.xray-beam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--x);
  width: 2px;
  margin-left: -1px;
  background: #c8fbf8;
  box-shadow: 0 0 10px 2px rgb(95 224 218 / 80%), 0 0 42px 10px rgb(95 224 218 / 28%);
  pointer-events: none;
}

.xray-beam::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 1px;
  width: 14cqw;
  background: linear-gradient(90deg, transparent, rgb(95 224 218 / 16%));
}

.xray-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid #c8fbf8;
  background: #0d2238 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.5 6L3.5 10l4 4M12.5 6l4 4-4 4' fill='none' stroke='%23c8fbf8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
  box-shadow: 0 0 18px rgb(95 224 218 / 60%);
}

@media (max-width: 900px) {
  .hero {
    padding: 36px 0 56px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .xray {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .scan-form button {
    width: 100%;
  }

  .xray-count {
    display: none;
  }

  .xray-handle {
    width: 28px;
    height: 28px;
    background-size: 15px;
  }
}

/* Abschnitte beim Scrollen einblenden (src/einblenden.ts) */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Vertrauensleiste */
.trust-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.trust-bar ul {
  list-style: none;
  margin: 0 auto;
  padding-top: 22px;
  padding-bottom: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 24px;
}

.trust-bar li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.92rem;
  color: var(--muted);
}

.trust-bar strong {
  color: var(--navy);
  font-size: 1rem;
}

@media (max-width: 760px) {
  .trust-bar ul {
    grid-template-columns: 1fr 1fr;
  }
}

/* So funktioniert’s */
.how-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: schritt;
}

.how-step {
  position: relative;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 24px 28px;
  box-shadow: var(--shadow);
  counter-increment: schritt;
}

.how-step::before {
  content: counter(schritt);
  position: absolute;
  top: 18px;
  left: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
}

.how-step picture {
  width: 180px;
  margin: 0 auto 8px;
}

.how-step p {
  color: var(--muted);
  margin: 0;
}

@media (max-width: 820px) {
  .how-steps {
    grid-template-columns: 1fr;
  }
}

/* Karten mit Illustration */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 960px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card picture {
  width: 128px;
  margin: -8px 0 8px -8px;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.card .badge {
  margin-left: 6px;
  vertical-align: middle;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff2dc;
  color: #9a5d05;
}

/* Bild neben Text */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split.reverse > :first-child {
  order: 2;
}

.split-media picture img {
  border-radius: var(--radius-lg);
}

.split-media:not(.photo) picture {
  -webkit-mask-image: radial-gradient(ellipse 66% 66% at 55% 52%, #000 52%, transparent 94%);
  mask-image: radial-gradient(ellipse 66% 66% at 55% 52%, #000 52%, transparent 94%);
}

.split-media.photo picture img {
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
  display: grid;
  gap: 12px;
}

.checklist li {
  position: relative;
  padding-left: 34px;
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dff3f2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3.2 3.2L16 8' fill='none' stroke='%230e7672' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}

.checklist strong {
  color: var(--navy);
}

.photo-strip {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
}

.photo-strip picture {
  height: 100%;
}

.photo-strip picture:first-child {
  grid-row: 1 / 3;
}

.photo-strip img {
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .split.reverse > :first-child {
    order: 0;
  }
}

/* Preis-Hinweis */
.price-tag {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 24px;
}

.price-tag strong {
  font-size: 2.2rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.price-tag span {
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
}

/* Fragen */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 20px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--navy);
  padding: 16px 32px 16px 0;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 12px;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--petrol-dark);
}

.faq details[open] summary::after {
  content: '–';
}

.faq details p {
  color: var(--muted);
  margin: 0 0 16px;
}

/* Abschluss */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--navy);
  color: #fff;
  padding: 64px 48px;
  text-align: center;
}

.cta-band > picture {
  position: absolute;
  inset: 0;
}

.cta-band > picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band > :not(picture) {
  position: relative;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.cta-band p {
  color: #cfe6ee;
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 28px;
}

@media (max-width: 560px) {
  .cta-band {
    padding: 44px 22px;
    border-radius: 20px;
  }
}

/* Bausteine */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-top: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.illustration {
  width: 200px;
  margin: 0 auto 8px;
}

.illustration-small {
  width: 140px;
}

.state {
  text-align: center;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* Fortschritt */
#progress {
  margin-top: 40px;
}

.progress-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--sky);
  overflow: hidden;
  margin: 12px 0 18px;
}

#progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--petrol-dark), var(--glow));
  transition: width 0.4s ease;
}

.progress-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2 280px;
  column-gap: 32px;
}

.progress-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  break-inside: avoid;
  animation: fade-in 0.3s ease both;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

.dot {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--info);
}

.dot.ok {
  background: var(--ok);
}

.dot.warn {
  background: var(--warn);
}

.dot.fail {
  background: var(--fail);
}

.dot.running {
  background: transparent;
  border: 2px solid var(--line);
  border-top-color: var(--petrol);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Ergebnis */
#result {
  padding-top: 24px;
}

.result-head {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #fff 55%, var(--sky-2));
}

.grade {
  flex: none;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 9px solid var(--info);
  background: #fff;
  box-shadow: var(--shadow);
}

.grade.g-good {
  border-color: var(--ok);
}

.grade.g-mid {
  border-color: var(--warn);
}

.grade.g-bad {
  border-color: var(--fail);
}

.grade-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.grade-value {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--navy);
}

.grade-score {
  font-size: 0.8rem;
  color: var(--muted);
}

.result-meta {
  flex: 1 1 300px;
  min-width: 0;
}

.result-meta h2 {
  font-size: 1.6rem;
  overflow-wrap: anywhere;
}

.note {
  font-size: 0.95rem;
  background: var(--sky-2);
  border-radius: 10px;
  padding: 10px 14px;
}

.note.warn {
  background: var(--warn-soft);
}

.alerts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0 24px;
}

.alert {
  border-left: 6px solid var(--fail);
  background: var(--fail-soft);
}

.alert.warn {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

.alert.ok {
  border-left-color: var(--ok);
  background: var(--ok-soft);
}

.alert strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--navy);
}

.countdown {
  font-size: 2.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Karte */
.map {
  width: 100%;
  aspect-ratio: 2 / 1;
  background: var(--map-sea);
  border-radius: 14px;
  overflow: hidden;
  margin: 12px 0;
}

.map svg {
  width: 100%;
  height: 100%;
  display: block;
}

.map .land {
  fill: var(--map-land);
  stroke: var(--map-sea);
  stroke-width: 0.5;
}

.map .flow {
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  animation: draw 1.4s ease forwards;
}

.map .flow.inside {
  stroke: var(--ok);
}

.map .flow.outside {
  stroke: var(--fail);
}

.map .flow.unknown {
  stroke: var(--info);
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.map .origin {
  fill: var(--petrol);
  stroke: #fff;
  stroke-width: 1.5;
}

.map .target {
  stroke: #fff;
  stroke-width: 1;
}

.map .pulse {
  fill: none;
  stroke: var(--petrol);
  animation: pulse 2s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes pulse {
  from {
    opacity: 0.8;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(3);
  }
}

.map text {
  font-size: 11px;
  fill: var(--text);
  paint-order: stroke;
  stroke: var(--map-sea);
  stroke-width: 3px;
}

.flow-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px 24px;
}

.flow-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.flow-list .dot {
  transform: translateY(2px);
}

.flow-list small {
  display: block;
  color: var(--muted);
}

/* Prüfungen */
.category {
  margin-top: 20px;
}

.category:first-child {
  margin-top: 0;
}

.category h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--petrol-dark);
  margin-bottom: 4px;
}

.check-row {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.check-row:last-child {
  border-bottom: 0;
}

.check-row .dot {
  margin-top: 6px;
}

.check-row p {
  margin: 2px 0 0;
  color: var(--muted);
}

/* Screenshots und Vorschau */
.shots {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.shot {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.shot img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}

.shot-mobile {
  flex: 0 0 30%;
}

.shot-mobile img {
  border-radius: 16px;
  aspect-ratio: 412 / 839;
  object-fit: cover;
  object-position: top;
}

.shot-desktop {
  flex: 1;
}

.chat {
  background: #e5ddd5;
  border-radius: 14px;
  padding: 20px 16px;
  display: flex;
  justify-content: flex-end;
}

.bubble {
  background: #d9fdd3;
  color: #111b21;
  border-radius: 8px 0 8px 8px;
  padding: 4px;
  max-width: 330px;
  width: 100%;
  box-shadow: 0 1px 1px rgb(0 0 0 / 12%);
}

.preview-card {
  background: rgb(0 0 0 / 5%);
  border-radius: 6px;
  overflow: hidden;
}

.preview-card img {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
}

.preview-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  font-size: 0.85rem;
}

.preview-text span {
  opacity: 0.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.preview-text small {
  opacity: 0.6;
}

.bubble-link {
  display: block;
  padding: 6px 8px 4px;
  font-size: 0.9rem;
  color: #027eb5;
  overflow-wrap: anywhere;
}

.preview-empty {
  padding: 10px;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Premium im Ergebnis */
.premium {
  display: grid;
  grid-template-columns: auto 1.2fr 1fr;
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, #fff 40%, #eaf6f8);
  border-color: #cfe7ec;
}

.premium > picture {
  width: 140px;
}

@media (max-width: 860px) {
  .premium {
    grid-template-columns: 1fr;
  }

  .premium > picture {
    width: 120px;
  }
}

.premium-list {
  list-style: none;
  margin: 0;
  padding: 0;
  filter: blur(5px);
  user-select: none;
}

.premium-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.premium-list span {
  height: 10px;
  border-radius: 5px;
  background: var(--muted);
  opacity: 0.4;
}

/* Bericht per E-Mail */
.report-form label {
  display: block;
  font-weight: 650;
  margin-bottom: 6px;
}

.report-form .row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.report-form input[type='email'] {
  flex: 1 1 240px;
  min-width: 0;
  font: inherit;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--sky-2);
  color: var(--text);
}

.report-form input[type='email']:focus {
  outline: none;
  border-color: var(--petrol);
  background: #fff;
}

.report-form .check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  margin-top: 16px;
  font-size: 0.95rem;
}

.report-form .check input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--petrol-dark);
}

.form-message {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ok-soft);
}

.form-message.error {
  background: var(--fail-soft);
}

.disclaimer {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 24px;
}

/* Unterseiten */
.page-hero {
  background: radial-gradient(ellipse 60% 80% at 80% 30%, #e6f4f7 0%, transparent 70%), linear-gradient(180deg, #fbfcfd, var(--bg));
  padding: 48px 0 32px;
}

.page-hero .split {
  gap: 32px;
}

.page-hero .lead {
  margin-bottom: 0;
}

.page-hero picture {
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at 55% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 72% at 55% 50%, #000 62%, transparent 100%);
}

.page {
  padding-top: 32px;
}

.page h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
}

.page .panel h2 {
  margin-top: 1.4em;
}

.page .panel h2:first-child {
  margin-top: 0;
}

.prose {
  max-width: 820px;
}

.todo {
  background: var(--warn-soft);
  border-radius: 10px;
  padding: 12px 14px;
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .panel {
    padding: 20px 16px;
  }

  .grade {
    width: 116px;
    height: 116px;
    border-width: 7px;
  }

  .grade-value {
    font-size: 2.1rem;
  }
}

@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;
  }
}

/* Unterseiten: Angebot, Zahlungshinweis, Einleitung mit Illustration */
.premium-offer,
.split-panel {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  align-items: center;
}

.premium-offer {
  background: linear-gradient(135deg, #fff 45%, #eaf6f8);
  border-color: #cfe7ec;
}

.split-panel > picture {
  width: 160px;
  margin: 0;
}

@media (max-width: 640px) {
  .premium-offer,
  .split-panel {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .premium-offer > picture,
  .split-panel > picture {
    width: 120px;
  }
}

.pay-trust {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  background: var(--sky-2);
  font-size: 0.92rem;
  color: var(--muted);
}

.pay-trust picture {
  width: 64px;
  flex: none;
}

.pay-trust p {
  margin: 0;
}

.pay-trust strong {
  color: var(--navy);
}

.state .illustration {
  margin-top: 4px;
}

.state .actions {
  justify-content: center;
}

.state h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.prose {
  margin-left: auto;
  margin-right: auto;
}

/* Ratgeber (ratgeber*.html) */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: '›';
  margin-right: 8px;
}

.breadcrumb a {
  color: var(--muted);
}

.ratgeber-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin: -8px 0 0;
}

.prose h2 {
  margin-top: 1.6em;
}

.prose ol,
.prose ul {
  padding-left: 1.3em;
}

.prose li {
  margin: 0 0 8px;
}

.merke {
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--petrol);
  border-radius: 10px;
  background: var(--sky-2);
}

.merke p:last-child {
  margin-bottom: 0;
}

.ratgeber-check {
  display: grid;
  grid-template-columns: 1fr minmax(0, 1.1fr);
  gap: 18px 32px;
  align-items: center;
  margin: 28px 0;
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0a1b2e, var(--navy-2));
  color: #d5e2ee;
  box-shadow: var(--shadow-lg);
}

.ratgeber-check h2 {
  color: #fff;
  margin: 0 0 6px;
}

.ratgeber-check p {
  margin: 0;
}

.ratgeber-check .scan-form input {
  background: #fff;
}

@media (max-width: 760px) {
  .ratgeber-check {
    grid-template-columns: 1fr;
    padding: 22px 20px;
  }
}

.paket-hinweis {
  display: flex;
  gap: 18px;
  align-items: center;
}

.paket-hinweis picture {
  width: 96px;
  flex: none;
}

.paket-hinweis p {
  margin: 0 0 8px;
}

.ratgeber-liste {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ratgeber-liste .card h2 {
  font-size: 1.15rem;
  margin: 0 0 6px;
}

.ratgeber-liste .card a {
  text-decoration: none;
}

.ratgeber-liste .card a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.ratgeber-liste .card {
  position: relative;
}
