/* ==========================================================
   ===== Variablen =====
   Alle Farben und Schriften stehen nur hier. Wer eine Farbe
   ändern will, ändert sie einmal hier – überall gleich.
   ========================================================== */

:root {
  /* Markenfarben */
  --color-primary: #0f3d2e;        /* Dunkelgrün: Text, Buttons */
  --color-accent: #3a9d6b;         /* Akzentgrün: Hover, Eyebrow, Linien */
  --color-accent-soft: #e8f4ee;    /* zarter Grünton hinter Handys */
  --color-accent-light: #7fd8a6;   /* helles Grün auf dunklen Flächen */

  /* Flächen (neutral, wie auf der Funktionen-Seite) */
  --color-bg: #ffffff;             /* Seitenhintergrund */
  --color-surface: #f5f5f5;        /* graue Bänder */
  --color-placeholder: #e8e8e8;    /* Bild-Platzhalter */
  --color-white: #ffffff;

  /* Text und Linien */
  --color-text: #0f3d2e;
  --color-text-muted: #555555;     /* Fließtext */
  --color-text-soft: #8a8a8a;      /* kleine Hinweise */
  --color-text-faint: #b0b0b0;     /* inaktive Tabs */
  --color-border: #e5e5e5;
  --color-border-strong: #d4d4d4;

  /* Dunkle Flächen */
  --color-dark: #111111;
  --color-dark-muted: #a8a8a8;
  --color-dark-border: #2b2b2b;
  --color-dark-accent: #1c2b24;
  --color-footer: #213f31;
  --color-footer-text: #c9d8d1;

  /* DHBW */
  --color-dhbw: #e2001a;
  --color-dhbw-soft: #ffd9dd;

  /* Schriften */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

/* ===== Grundlagen ===== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column; /* Footer bleibt unten */
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== Gemeinsame Bausteine ===== */

/* Alle großen Überschriften in Serifenschrift */
h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* Abschnitts-Überschriften (Startseite, Sicherheit, Über uns, Jetzt starten) */
.problems-intro h2,
.features-text h2,
.newsletter-text h2,
.promises-intro h2,
.data-flow h2,
.faq h2,
.team-head h2,
.timeline h2,
.partner h2,
.plans-head h2,
.compare h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
}

/* Kleine grüne Zeile über einer Überschrift */
.eyebrow {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

/* Einleitungstext unter einer Überschrift */
.lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* Graue Fläche über die volle Breite */
.band {
  background-color: var(--color-surface);
  margin-top: 6rem;
}

/* Große Bilder rechts in einem Abschnitt */
.features-image img,
.newsletter-image img {
  display: block;
  width: 100%;
  height: auto;
  margin-left: auto;
}

/* Große Zahl + kleine Beschriftung (Über uns, Funktionen) */
.about-facts strong,
.feature-facts strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.1;
}

.about-facts span,
.feature-facts span {
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

/* Buttons und Links */
.btn {
  justify-self: end;
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 600;
}

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

.btn-lg {
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
}

.link-underline {
  font-size: 0.95rem;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--color-accent);
}

.link-underline:hover {
  color: var(--color-accent);
}

.link-arrow {
  font-weight: 600;
}

.link-arrow::after {
  content: " ›";
  color: var(--color-accent);
}

/* Nur für Screenreader sichtbar (z. B. Label des E-Mail-Felds) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ===== DHBW-Hinweisleiste ===== */

.project-bar {
  background-color: var(--color-dhbw);
  color: var(--color-white);
  font-size: 0.8rem;
  padding: 0.5rem 0;
}

.project-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.project-bar-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.project-bar-logo {
  display: block;
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1); /* Logo komplett weiß einfärben */
}

.project-bar-note {
  color: var(--color-dhbw-soft);
}

/* ===== Header ===== */

.header {
  padding: 1rem 0;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.logo {
  justify-self: start;
}

.logo img {
  display: block;
  height: 56px;
  width: auto;
  mix-blend-mode: multiply; /* blendet den weißen Hintergrund aus */
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  font-size: 0.875rem;
}

.nav a:hover {
  color: var(--color-accent);
}

/* ===== Hauptinhalt ===== */

.main {
  flex: 1;
  padding: 4rem 0;
}

/* ===== Startseite: Banner 1 ===== */

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.hero .lead {
  margin: 1.25rem 0 2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Zwei Handys: Konten vorne, Sparziele schräg dahinter */
.hero-phones {
  position: relative;
  height: 560px;
}

/* Grüner Kreis hinter den Handys */
.hero-phones::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 70px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background-color: var(--color-accent-soft);
  transform: translateX(-50%);
}

.hero-phone-back,
.hero-phone-front {
  position: absolute;
  height: auto;
}

.hero-phone-back {
  left: 8%;
  top: 60px;
  width: 240px;
  transform: rotate(-8deg);
}

.hero-phone-front {
  right: 6%;
  top: 0;
  width: 280px;
  z-index: 2;
}

/* Kleine schwebende Karte */
.hero-badge {
  position: absolute;
  right: -20px;
  top: 470px;
  z-index: 3;
  padding: 0.6rem 0.9rem;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.hero-badge span {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-soft);
}

.hero-badge strong {
  font-size: 0.85rem;
  color: var(--color-accent);
}

/* ===== Startseite: Banner 2 ===== */

.problems-band {
  padding: 5rem 0;
}

.problems {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
}

.problems-intro p {
  margin-top: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.problems-list {
  list-style: none;
}

.problem {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border-strong);
}

.problem:first-child {
  padding-top: 0;
}

.problem:last-child {
  border-bottom: none;
}

.problem-text {
  flex: 1;
}

.problem-text h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.problem-text p {
  margin-top: 0.3rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.logo-stack {
  display: flex;
  padding-left: 10px;
}

.logo-stack span {
  width: 40px;
  height: 40px;
  margin-left: -10px;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--color-surface);
  display: grid;
  place-items: center;
}

.logo-stack img {
  width: 20px;
  height: 20px;
}

.problem-chart {
  width: 100px;
  height: 38px;
  flex-shrink: 0;
}

/* ===== Startseite: Banner 3 ===== */

.features {
  padding-top: 6rem;
}

/* Radio-Buttons unsichtbar, aber per Tastatur bedienbar */
.feature-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.features-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: end;
}

.features-text {
  padding-bottom: 3rem;
}

.features-text h2 {
  margin-bottom: 2rem;
}

.feature-tab {
  padding: 1.1rem 0;
  border-top: 1px solid var(--color-border);
}

.feature-tab:last-child {
  border-bottom: 1px solid var(--color-border);
}

.feature-tab label {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-text-faint);
  cursor: pointer;
}

.feature-tab label:hover {
  color: var(--color-primary);
}

.feature-desc {
  display: none;
}

.feature-desc p {
  margin: 0.6rem 0 0.8rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.features-image img {
  display: none; /* nur das Bild des aktiven Tabs wird gezeigt */
  max-width: 560px;
}

/* Aktiver Tab: Linie, dunkler Text, Beschreibung und passendes Bild */
#feature-1:checked ~ .features-grid .tab-1,
#feature-2:checked ~ .features-grid .tab-2,
#feature-3:checked ~ .features-grid .tab-3,
#feature-4:checked ~ .features-grid .tab-4 {
  border-top: 2px solid var(--color-primary);
}

#feature-1:checked ~ .features-grid .tab-1 label,
#feature-2:checked ~ .features-grid .tab-2 label,
#feature-3:checked ~ .features-grid .tab-3 label,
#feature-4:checked ~ .features-grid .tab-4 label {
  color: var(--color-primary);
}

#feature-1:checked ~ .features-grid .tab-1 .feature-desc,
#feature-2:checked ~ .features-grid .tab-2 .feature-desc,
#feature-3:checked ~ .features-grid .tab-3 .feature-desc,
#feature-4:checked ~ .features-grid .tab-4 .feature-desc,
#feature-1:checked ~ .features-grid .image-1,
#feature-2:checked ~ .features-grid .image-2,
#feature-3:checked ~ .features-grid .image-3,
#feature-4:checked ~ .features-grid .image-4 {
  display: block;
}

/* Tastatur-Fokus sichtbar machen */
#feature-1:focus-visible ~ .features-grid .tab-1 label,
#feature-2:focus-visible ~ .features-grid .tab-2 label,
#feature-3:focus-visible ~ .features-grid .tab-3 label,
#feature-4:focus-visible ~ .features-grid .tab-4 label {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* ===== Startseite: Banner 4 ===== */

/* Kein Abstand zwischen Banner 4 und Footer */
.main:has(> .newsletter-band:last-child) {
  padding-bottom: 0;
}

.newsletter-band {
  padding-top: 5rem;
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
}

.newsletter-text {
  padding-bottom: 5rem;
}

.newsletter-text > p {
  margin: 1rem 0 1.5rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.newsletter-form {
  display: flex;
  max-width: 420px;
  background: var(--color-white);
  border: 1px solid var(--color-border-strong);
  border-radius: 10px;
  overflow: hidden;
}

.newsletter-form:focus-within {
  border-color: var(--color-accent);
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 0.9rem 1rem;
  border: none;
  background: transparent;
  font: inherit;
  color: var(--color-text);
}

.newsletter-form input:focus {
  outline: none;
}

.newsletter-form button {
  padding: 0 1.4rem;
  border: none;
  background: var(--color-primary);
  color: var(--color-white);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.newsletter-form button:hover {
  background: var(--color-accent);
}

.newsletter-note {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: var(--color-text-soft);
}

.newsletter-note a {
  text-decoration: underline;
}

.newsletter-image img {
  max-width: 460px;
}

/* ===== Über uns: Banner 1 (Hero) ===== */

.about-hero {
  padding-top: 5rem;
}

.about-hero h1 {
  font-size: clamp(3rem, 7.5vw, 6rem);
  line-height: 0.98;
}

.about-hero h1 em {
  color: var(--color-accent);
}

.about-photo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  aspect-ratio: 5 / 2;
  margin-top: 3rem;
  border-radius: 28px;
  background-color: var(--color-placeholder);
  color: var(--color-text-soft);
}

/* Runder, schräger Sticker unten rechts auf dem Foto */
.about-sticker {
  position: absolute;
  right: 40px;
  bottom: -34px;
  width: 150px;
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  transform: rotate(-10deg);
}

.about-sticker span {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.15;
}

.about-sticker small {
  margin-top: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-light);
}

.about-story {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr;
  gap: 4rem;
  padding: 4.5rem 0 5.5rem;
}

.about-story p {
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.about-facts {
  list-style: none;
  border-left: 1px solid var(--color-border);
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* ===== Über uns: Banner 2 (Mission) ===== */

.mission {
  margin-top: 0;
  padding: 6rem 0;
}

.mission h2 {
  max-width: 1000px;
  font-size: clamp(2.25rem, 4.5vw, 3.6rem);
  line-height: 1.12;
}

/* Grüner Textmarker hinter den drei Werten */
.mission mark {
  color: inherit;
  background: linear-gradient(transparent 62%, #cfe9dc 62%);
}

.mission-values {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 3.75rem;
  border-top: 1px solid var(--color-border-strong);
}

.mission-values li {
  padding: 1.6rem 1.9rem 0 0;
}

.mission-values li + li {
  padding-left: 1.9rem;
  border-left: 1px solid var(--color-border-strong);
}

.mission-values p {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ===== Über uns: Banner 3 (Team) ===== */

.team {
  padding: 6.5rem 0;
}

.team-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding-bottom: 0.9rem;
  margin-bottom: 2.2rem;
  border-bottom: 2px solid var(--color-primary);
}

.team-head span {
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.team-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.member-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  background-color: var(--color-placeholder);
  color: var(--color-text-soft);
  font-size: 0.85rem;
}

/* Echte Fotos später in Schwarzweiß, damit alle einheitlich wirken */
.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  filter: grayscale(1);
}

.member strong {
  display: block;
  margin-top: 0.9rem;
  font-size: 1.05rem;
}

.member-role {
  margin-top: 0.15rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
}

.member-quote {
  margin-top: 0.6rem;
  font-family: var(--font-serif);
  font-style: italic;
  line-height: 1.45;
  color: var(--color-text-muted);
}

/* ===== Über uns: Banner 4 (Zeitleiste) ===== */

.timeline {
  margin-top: 0;
  padding: 6.5rem 0;
}

.timeline h2 {
  margin-bottom: 3.75rem;
}

.timeline-list {
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

/* Durchgehende Linie hinter den Punkten */
.timeline-list::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 9px;
  height: 2px;
  background-color: var(--color-border-strong);
}

.timeline-item {
  position: relative;
  padding-right: 1.5rem;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--color-white);
  border: 2px solid var(--color-primary);
}

/* Aktueller Schritt leuchtet grün */
.timeline-now .timeline-dot {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 6px var(--color-accent-soft);
}

.timeline-date {
  margin-top: 1.4rem;
  font-size: 0.8rem;
  color: var(--color-text-soft);
}

.timeline-item h3 {
  margin: 0.4rem 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
}

.timeline-item p:last-child {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

/* ===== Über uns: Banner 5 (Partner) ===== */

.partner {
  padding: 6.5rem 0;
}

.partner-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.partner .lead {
  margin: 1.1rem 0 1.75rem;
}

.partner-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2.1rem;
  border-radius: 28px;
  background-color: var(--color-white);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.partner-card img {
  width: 130px;
  height: 130px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

.partner-card strong {
  display: block;
  font-size: 1.35rem;
}

.partner-role {
  margin: 0.25rem 0 0.75rem;
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

.partner-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.45;
}

/* ===== Funktionen: Grundlagen ===== */

.main.main-features {
  padding: 0; /* Abschnitte gehen bis an den Rand */
}

/* ===== Funktionen: Banner 1 (Hero) ===== */

.features-hero {
  text-align: center;
  padding-top: 5rem;
  overflow: hidden; /* Handys unten abschneiden */
}

.features-hero h1 {
  font-size: clamp(3rem, 7vw, 5.25rem);
  line-height: 0.98;
}

.features-hero .lead {
  max-width: 520px;
  margin: 1.4rem auto 2rem;
}

.features-hero .hero-actions {
  justify-content: center;
  gap: 1.75rem;
}

.phone-fan {
  position: relative;
  height: 440px;
  margin-top: 4rem;
}

.phone-fan img {
  position: absolute;
  width: 280px;
  height: auto;
}

.phone-fan-center {
  left: 50%;
  top: 0;
  width: 310px !important;
  transform: translateX(-50%);
  z-index: 2;
}

.phone-fan-left {
  left: calc(50% - 380px);
  top: 50px;
  transform: rotate(-7deg);
}

.phone-fan-right {
  left: calc(50% + 100px);
  top: 50px;
  transform: rotate(7deg);
}

/* Kapitelnavigation unter dem Hero */
.chapter-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-white);
}

.chapter-nav a {
  font-size: 0.9rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}

.chapter-nav a:hover {
  border-bottom-color: var(--color-accent);
}

/* ===== Funktionen: Banner 2–8 (Funktionsabschnitte) ===== */

.feature {
  padding-top: 6rem;
  overflow: hidden; /* Handy unten abschneiden */
  background-color: var(--color-white);
}

.feature-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Bild links, Text rechts */
.feature-flip .feature-text {
  order: 2;
}

.feature h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.02;
}

.feature .lead {
  max-width: 430px;
  margin: 1.25rem 0 1.6rem;
}

.feature-facts {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  max-width: 430px;
  padding-top: 1.4rem;
  border-top: 1px solid var(--color-border);
}

.feature-image {
  position: relative;
  height: 520px;
}

/* Grüner Kreis hinter dem Handy */
.feature-image::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 60px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background-color: var(--color-accent-soft);
  transform: translateX(-50%);
}

.feature-image img {
  position: absolute;
  left: 50%;
  top: 0;
  width: 280px;
  height: auto;
  transform: translateX(-50%);
}

/* Hintergrund-Varianten */
.feature-grey {
  background-color: var(--color-surface);
}

.feature-dark {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.feature-dark .lead {
  color: var(--color-dark-muted);
}

.feature-dark .feature-facts {
  border-top-color: var(--color-dark-border);
}

.feature-dark .feature-image::before {
  background-color: var(--color-dark-accent);
}

/* ===== Funktionen: Banner 9 (Abschluss) ===== */

.features-cta {
  text-align: center;
  padding: 7rem 0;
}

.features-cta h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.02;
  margin-bottom: 1.75rem;
}

/* ===== Sicherheit: Grundlagen ===== */

/* Eingebettete SVG-Symbole (Schloss, Auge, Pin …) */
.floating-card svg,
.promise-icon svg,
.flow-step svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== Sicherheit: Banner 1 (Hero) ===== */

.security-hero {
  padding-top: 4rem;
  overflow: hidden; /* Handy unten abschneiden */
}

.security-hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.security-hero-text {
  padding-bottom: 4rem;
}

.security-hero h1 {
  font-size: clamp(3rem, 6vw, 4.4rem);
}

.security-hero .lead {
  max-width: 480px;
  margin: 1.4rem 0 2rem;
}

.security-hero-image {
  height: 560px;
}

/* Kleine schwebende Karten neben dem Handy */
.floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.floating-card svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
}

.floating-card span {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-soft);
}

.floating-card strong {
  font-size: 0.9rem;
}

.floating-card-left {
  left: 0;
  top: 180px;
}

.floating-card-right {
  right: -10px;
  top: 400px;
}

/* ===== Sicherheit: Banner 2 (Drei Versprechen) ===== */

.promises-band {
  margin-top: 0; /* direkt unter dem Hero */
  padding: 5.5rem 0;
}

.promises {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
}

.promises-intro .lead {
  margin-top: 1rem;
}

.promises-list {
  list-style: none;
}

.promise {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border-strong);
}

.promise:first-child {
  padding-top: 0;
}

.promise:last-child {
  border-bottom: none;
}

.promise-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background-color: var(--color-white);
}

.promise-icon svg {
  width: 24px;
  height: 24px;
}

.promise h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.promise p {
  margin-top: 0.3rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

/* ===== Sicherheit: Banner 3–5 (nutzen .feature von der Funktionen-Seite) ===== */

.feature-checks {
  list-style: none;
  max-width: 430px;
  padding-top: 1.2rem;
  border-top: 1px solid var(--color-border);
}

.feature-checks li {
  display: flex;
  gap: 0.6rem;
  padding: 0.35rem 0;
}

.feature-checks li::before {
  content: "✓";
  font-weight: 700;
  color: var(--color-accent);
}

/* ===== Sicherheit: Banner 6 (So funktioniert's) ===== */

.data-flow {
  margin-top: 0;
  padding: 6rem 0;
  text-align: center;
}

.data-flow .lead {
  max-width: 560px;
  margin: 1rem auto 3rem;
}

.flow-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.flow-step {
  position: relative;
  padding: 1.5rem 1rem;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 20px;
}

/* Pfeil zwischen den Schritten */
.flow-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -1.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--color-accent);
}

.flow-step svg {
  width: 30px;
  height: 30px;
}

.flow-step strong {
  display: block;
  margin-top: 0.6rem;
}

.flow-step span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

/* Letzter Schritt dunkel hervorgehoben */
.flow-step-highlight {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.flow-step-highlight svg {
  color: var(--color-accent-light);
}

.flow-step-highlight span {
  color: var(--color-footer-text);
}

/* ===== Sicherheit: Banner 7 (Häufige Fragen) ===== */

.faq {
  padding: 6rem 0;
}

.faq-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
}

.faq details {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border-strong);
}

.faq details:first-of-type {
  padding-top: 0;
}

.faq summary {
  list-style: none; /* Standard-Dreieck ausblenden */
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
}

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

.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--color-accent);
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  max-width: 520px;
  margin-top: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ===== Jetzt starten: Banner 1 (Download) ===== */

.start-hero {
  padding-top: 4.5rem;
  overflow: hidden; /* Handy unten abschneiden */
}

.start-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.start-hero-text {
  padding-bottom: 4.5rem;
}

.start-hero h1 {
  font-size: clamp(3rem, 6.5vw, 5.25rem);
  line-height: 0.98;
}

.start-hero h1 em {
  color: var(--color-accent);
}

.start-hero .lead {
  max-width: 460px;
  margin: 1.4rem 0 2rem;
}

.start-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--color-text-soft);
}

.start-hero-image {
  height: 560px;
}

/* App-Store- und Google-Play-Buttons */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.25rem 0.7rem 1rem;
  border-radius: 14px;
  background-color: var(--color-dark);
  color: var(--color-white);
  font-size: 1.1rem;
  font-weight: 600;
}

.store-button:hover {
  background-color: var(--color-primary);
}

.store-button img {
  width: 26px;
  height: 26px;
}

.store-button small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--color-dark-muted);
}

/* Helle Variante auf dunklem Hintergrund */
.store-buttons-light {
  justify-content: center;
}

.store-buttons-light .store-button {
  background-color: var(--color-white);
  color: var(--color-dark);
}

.store-buttons-light .store-button:hover {
  background-color: var(--color-accent-soft);
}

.store-buttons-light .store-button img {
  filter: invert(1); /* weißes Logo schwarz färben */
}

.store-buttons-light .store-button small {
  color: var(--color-text-soft);
}

/* QR-Code-Karte neben dem Handy */
.qr-card {
  position: absolute;
  left: 0;
  top: 260px;
  z-index: 3;
  width: 150px;
  padding: 0.9rem;
  text-align: center;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

/* überschreibt .feature-image img (Handy-Position) */
.feature-image .qr-card img {
  position: static;
  width: 100%;
  transform: none;
}

.qr-card span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ===== Jetzt starten: Banner 2 (Pläne) ===== */

.plans {
  margin-top: 0;
  padding: 6rem 0;
}

/* Radio-Buttons unsichtbar, aber per Tastatur bedienbar */
.billing-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plans-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.billing-switch {
  display: flex;
  padding: 4px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background-color: var(--color-white);
}

.billing-switch label {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  cursor: pointer;
}

.billing-switch em {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
}

/* Aktiver Schalter dunkel */
#billing-monthly:checked ~ .plans-head label[for="billing-monthly"],
#billing-yearly:checked ~ .plans-head label[for="billing-yearly"] {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
}

#billing-yearly:checked ~ .plans-head label[for="billing-yearly"] em {
  color: var(--color-accent-light);
}

/* Tastatur-Fokus sichtbar machen */
#billing-monthly:focus-visible ~ .plans-head label[for="billing-monthly"],
#billing-yearly:focus-visible ~ .plans-head label[for="billing-yearly"] {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Monats- oder Jahrespreis zeigen */
.price-yearly {
  display: none;
}

#billing-yearly:checked ~ .plans-grid .price-monthly {
  display: none;
}

#billing-yearly:checked ~ .plans-grid .price-yearly {
  display: inline;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.9rem;
  border-radius: 26px;
  background-color: var(--color-white);
}

.plan-name {
  font-weight: 600;
}

.plan-for,
.plan-per {
  font-size: 0.875rem;
  color: var(--color-text-soft);
}

.plan-price {
  margin: 1.4rem 0 0.1rem;
  font-family: var(--font-serif);
  font-size: 3.4rem;
  letter-spacing: -0.02em;
}

.plan-price small {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 0;
  color: var(--color-text-soft);
}

.plan-list {
  flex: 1;
  list-style: none;
  margin: 1.6rem 0 1.9rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--color-border);
}

.plan-list li {
  display: flex;
  gap: 0.6rem;
  padding: 0.45rem 0;
}

.plan-list li::before {
  content: "✓";
  font-weight: 700;
  color: var(--color-accent);
}

.plan-list .plan-plus {
  font-weight: 600;
}

.plan-list .plan-plus::before {
  content: "+";
}

.plan .btn {
  justify-self: stretch;
  text-align: center;
}

.btn-outline {
  background-color: var(--color-white);
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.btn-outline:hover {
  color: var(--color-white);
}

/* Mittlerer Plan dunkel hervorgehoben */
.plan-highlight {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.plan-highlight .plan-for,
.plan-highlight .plan-per,
.plan-highlight .plan-price small {
  color: var(--color-footer-text);
}

.plan-highlight .plan-list {
  border-top-color: var(--color-dark-accent);
}

.plan-highlight .plan-list li::before {
  color: var(--color-accent-light);
}

.plan-highlight .btn {
  background-color: var(--color-white);
  color: var(--color-primary);
}

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

.plan-tag {
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background-color: var(--color-accent-light);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
}

.plans-note {
  margin-top: 1.4rem;
  font-size: 0.8rem;
  color: var(--color-text-soft);
}

/* ===== Jetzt starten: Banner 3 (Vergleich) ===== */

.compare {
  padding: 6rem 0;
}

.compare h2 {
  margin-bottom: 2rem;
}

/* Auf schmalen Bildschirmen seitlich scrollbar */
.compare-scroll {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.compare-table th {
  padding: 0.9rem 0.75rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--color-primary);
}

.compare-table td {
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.compare-table th:not(:first-child),
.compare-table td:not(:first-child) {
  width: 17%;
  text-align: center;
}

.compare-table .col-highlight {
  background-color: #f2f8f5;
}

.compare-table .yes {
  font-weight: 700;
  color: var(--color-accent);
}

.compare-table .no {
  color: var(--color-border-strong);
}

.compare-group td {
  padding-top: 1.75rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-text);
  border-bottom-color: var(--color-border-strong);
}

/* ===== Jetzt starten: Banner 4 (Fragen, nutzt .faq von Sicherheit) ===== */

.faq-grey {
  background-color: var(--color-surface);
}

/* ===== Dunkler Abschluss (Sicherheit Banner 8, Über uns Banner 6, Jetzt starten Banner 5) ===== */

.cta-dark {
  padding: 6rem 0;
  text-align: center;
  background-color: var(--color-dark);
  color: var(--color-white);
}

.cta-dark h2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.cta-dark p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: var(--color-dark-muted);
}

.cta-dark .hero-actions {
  justify-content: center;
}

.cta-dark .btn {
  background-color: var(--color-white);
  color: var(--color-dark);
}

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

/* ===== Rechtliches (Impressum & Datenschutz) ===== */

.legal h1 {
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.legal p {
  line-height: 1.7;
}

/* ===== Footer ===== */

.footer {
  background-color: var(--color-footer);
  color: var(--color-white);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a,
.footer-copy {
  font-size: 0.8rem;
  color: var(--color-footer-text);
}

.footer-nav a:hover {
  color: var(--color-white);
}

/* ==========================================================
   ===== Handy =====
   Alles in diesem Block gilt nur für Bildschirme bis 700px
   Breite (Handys). Die Regeln überschreiben die Styles oben.
   ========================================================== */

@media (max-width: 700px) {

  /* --- Handy: Gemeinsame Bausteine --- */
  .band {
    margin-top: 4rem;
  }

  .features-image img,
  .newsletter-image img {
    margin: 0 auto;
  }

  /* --- Handy: DHBW-Hinweisleiste --- */
  .project-bar-inner {
    flex-direction: column; /* Hinweis unter das Logo */
    gap: 0.3rem;
    text-align: center;
  }

  /* --- Handy: Header --- */
  .header-inner {
    grid-template-columns: 1fr auto;
    row-gap: 1rem;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    gap: 1.25rem;
  }

  /* --- Handy: Hauptinhalt --- */
  .main {
    padding: 2.5rem 0;
  }

  /* --- Handy: Startseite Banner 1 --- */
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-phones {
    height: 460px;
  }

  .hero-phones::before {
    width: 320px;
    height: 320px;
  }

  .hero-phone-back,
  .hero-badge {
    display: none; /* auf dem Handy nur ein Handy zeigen */
  }

  .hero-phone-front {
    right: auto;
    left: 50%;
    width: 230px;
    transform: translateX(-50%);
  }

  /* --- Handy: Startseite Banner 2 --- */
  .problems-band {
    padding: 3rem 0;
  }

  .problems {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* --- Handy: Startseite Banner 3 --- */
  .features {
    padding-top: 4rem;
  }

  .features-grid {
    grid-template-columns: 1fr; /* Bild unter die Tabs */
    gap: 1rem;
  }

  .features-text {
    padding-bottom: 0;
  }

  /* --- Handy: Startseite Banner 4 --- */
  .newsletter-band {
    padding-top: 3rem;
  }

  .newsletter {
    grid-template-columns: 1fr; /* Bild unter das Formular */
    gap: 1rem;
  }

  .newsletter-text {
    padding-bottom: 1rem;
  }

  /* --- Handy: Über uns --- */
  .about-hero {
    padding-top: 3rem;
  }

  .about-photo {
    aspect-ratio: 4 / 3;
  }

  .about-sticker {
    right: 16px;
    width: 110px;
    height: 110px;
  }

  .about-sticker span {
    font-size: 0.95rem;
  }

  .about-story,
  .partner-inner {
    grid-template-columns: 1fr; /* untereinander */
    gap: 2rem;
  }

  .about-facts {
    flex-direction: row;
    gap: 2rem;
    border-left: none;
    border-top: 1px solid var(--color-border);
    padding-left: 0;
    padding-top: 1.25rem;
  }

  .mission-values,
  .timeline-list {
    grid-template-columns: 1fr; /* Werte und Zeitleiste untereinander */
  }

  .mission-values li,
  .mission-values li + li {
    padding: 1.2rem 0;
    border-left: none;
    border-bottom: 1px solid var(--color-border-strong);
  }

  .timeline-list::before {
    display: none;
  }

  .timeline-item {
    padding: 0 0 2rem;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr; /* 2 × 2 */
  }

  .team-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .mission,
  .team,
  .timeline,
  .partner {
    padding: 4rem 0;
  }

  .partner-card {
    flex-direction: column;
    text-align: center;
  }

  /* --- Handy: Funktionen Banner 1 (Hero) --- */
  .features-hero {
    padding-top: 3rem;
  }

  .phone-fan {
    height: 360px;
    margin-top: 2.5rem;
  }

  .phone-fan-left,
  .phone-fan-right {
    display: none; /* auf dem Handy nur ein Handy zeigen */
  }

  .phone-fan-center {
    width: 240px !important;
  }

  .chapter-nav {
    gap: 0.4rem 1.2rem;
  }

  /* --- Handy: Funktionen Banner 2–8 --- */
  .feature {
    padding-top: 4rem;
  }

  .feature-inner {
    grid-template-columns: 1fr; /* Bild unter den Text */
    gap: 2.5rem;
  }

  .feature-flip .feature-text {
    order: 0;
  }

  .feature-image {
    height: 420px;
  }

  .feature-image::before {
    width: 300px;
    height: 300px;
  }

  .feature-image img {
    width: 230px;
  }

  /* --- Handy: Sicherheit --- */
  .security-hero-inner,
  .promises,
  .faq-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .security-hero-text {
    padding-bottom: 0;
    text-align: center;
  }

  .security-hero .lead {
    margin: 1.4rem auto 2rem;
  }

  .security-hero-image {
    height: 440px;
  }

  .floating-card {
    display: none;
  }

  .promises-band,
  .data-flow,
  .faq,
  .cta-dark {
    padding: 4rem 0;
  }

  .flow-steps {
    grid-template-columns: 1fr 1fr; /* 2 × 2 statt 4 nebeneinander */
    gap: 1rem;
  }

  .flow-step::after {
    display: none; /* Pfeile auf dem Handy ausblenden */
  }

  /* --- Handy: Jetzt starten --- */
  .start-hero-inner {
    grid-template-columns: 1fr;
  }

  .start-hero-text {
    padding-bottom: 0;
    text-align: center;
  }

  .start-hero .lead {
    margin: 1.4rem auto 2rem;
  }

  .store-buttons {
    justify-content: center;
  }

  .start-hero-image {
    height: 440px;
  }

  .qr-card {
    display: none; /* QR-Code ergibt auf dem Handy keinen Sinn */
  }

  .plans,
  .compare {
    padding: 4rem 0;
  }

  .plans-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .plans-grid {
    grid-template-columns: 1fr; /* Pläne untereinander */
  }

  /* --- Handy: Footer --- */
  .footer-inner {
    flex-direction: column; /* Logo, Links und Copyright untereinander */
    text-align: center;
  }

} /* Ende Handy */
