/*
  ADAM Landingpage – eigenständiges Landingpage-Design, das sich am ADAM-Design-System
  orientiert (Farb-Token, Typografie, Radien, Schatten), aber bewusst nicht 1:1 die
  App-Oberfläche kopiert (z. B. keine volle App-Header-Leiste, eigene Grid-Layouts).
*/

:root {
  --background: #f9fafb;
  --surface: #d1fae5;
  --surface-strong: #a7f3d0;
  --text: #064e3b;
  --text-muted: #0f5c48;
  --text-on-primary: #f9fafb;
  --primary: #059669;
  /* Eigener, geprüfter Button-Farbton: das Design-System weist selbst darauf hin, dass
     Text auf primary nur ~3.6:1 Kontrast erreicht (unter der 4.5:1-Grenze für Fließtext).
     Für Buttons nutzen wir daher einen dunkleren Emerald-Ton mit ~5.5:1 Kontrast zu Weiß. */
  --button-bg: #047857;
  --button-bg-hover: #036c4e;
  --accent: #f59e0b;
  --error: #ef4444;
  --error-bg: #fee2e2;
  --muted: #6b8f80;
  --border: #a7f3d0;
  --card-bg: #ffffff;

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-14: 56px;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 999px;

  --shadow-sm: 0px 2px 4px rgba(6, 78, 59, 0.12);
  --shadow-card: 0px 8px 24px rgba(6, 78, 59, 0.08);
  --shadow-lg: 0px 20px 45px rgba(6, 78, 59, 0.16);

  --max-width: 1180px;
  --nav-height: 76px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: #10231b;
    --surface: #16342a;
    --surface-strong: #1d4235;
    --text: #f2fbf7;
    --text-muted: #b7d9cc;
    --primary: #059669;
    --button-bg: #10b981;
    --button-bg-hover: #34d399;
    --text-on-primary: #06281d;
    --accent: #f59e0b;
    --error: #f87171;
    --error-bg: rgba(239, 68, 68, 0.18);
    --muted: #8fb2a3;
    --border: #1d4235;
    --card-bg: #12281f;
    --shadow-card: 0px 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0px 20px 45px rgba(0, 0, 0, 0.45);
  }
}

:root[data-theme="dark"] {
  --background: #10231b;
  --surface: #16342a;
  --surface-strong: #1d4235;
  --text: #f2fbf7;
  --text-muted: #b7d9cc;
  --primary: #059669;
  --button-bg: #10b981;
  --button-bg-hover: #34d399;
  --text-on-primary: #06281d;
  --accent: #f59e0b;
  --error: #f87171;
  --error-bg: rgba(239, 68, 68, 0.18);
  --muted: #8fb2a3;
  --border: #1d4235;
  --card-bg: #12281f;
}

/* Grundlagen */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

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

a {
  color: var(--button-bg);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

section[id] {
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

/* Sprungmarke */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--button-bg);
  color: var(--text-on-primary);
  padding: var(--space-3) var(--space-5);
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 200;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

/* Fokus-Stile: deutlich sichtbar für Tastaturbedienung */

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-full);
  padding: var(--space-3) var(--space-6);
  min-height: 50px;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--button-bg);
  color: var(--text-on-primary);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--button-bg-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface);
}

.btn-block {
  width: 100%;
}

/* Kopfbereich / Navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: var(--nav-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text);
  flex: none;
}

.brand img {
  width: 34px;
  height: 34px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  flex-shrink: 0;
}

.brand__name {
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
}

.nav-links a:hover {
  color: var(--button-bg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-cta {
  display: none;
}

.nav-toggle,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--background);
  cursor: pointer;
}

.nav-toggle svg,
.theme-toggle svg {
  width: 22px;
  height: 22px;
  color: var(--text);
}

.theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: var(--background);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

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

.mobile-menu .container {
  padding-block: var(--space-8) var(--space-10);
}

.mobile-menu ul {
  list-style: none;
  margin: 0 0 var(--space-6);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Nur die Menü-Links, nicht den CTA-Button darunter (der ist kein Kind von <ul>) */
.mobile-menu ul a {
  display: block;
  padding: var(--space-4) 0;
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }
  .nav-cta {
    display: inline-flex;
  }
  .nav-toggle {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* Abschnitte */

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

.section-header {
  max-width: 720px;
  margin: 0 auto var(--space-10);
  text-align: center;
}

.eyebrow {
  display: inline-block;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 var(--space-3);
}

.section-intro {
  font-size: 19px;
  color: var(--text-muted);
  margin: 0;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-14) var(--space-14);
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  opacity: 0.5;
}

.hero__blob--one {
  width: 420px;
  height: 420px;
  background: var(--surface-strong);
  top: -160px;
  right: -120px;
}

.hero__blob--two {
  width: 320px;
  height: 320px;
  background: var(--accent);
  opacity: 0.12;
  bottom: -140px;
  left: -100px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero h1 {
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.2;
  margin: 0 0 var(--space-5);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero p.lead {
  font-size: 20px;
  line-height: 1.65;
  margin: 0 0 var(--space-8);
  max-width: 54ch;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.hero__trust-note {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 600;
}

.hero__trust-note svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* App-Vorschau / Mockups (eigenständige, vom System inspirierte Darstellung) */

.app-preview {
  background: var(--card-bg);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.app-preview__bar {
  background: var(--primary);
  color: var(--text-on-primary);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-2xl) var(--radius-2xl) var(--radius-xl) var(--radius-xl);
}

.app-preview__bar strong {
  display: block;
  font-size: 19px;
  margin-bottom: 2px;
}

.app-preview__bar span {
  font-size: 14px;
  opacity: 0.9;
}

.app-preview__body {
  padding: var(--space-5) var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.app-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.app-stat {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  text-align: center;
}

.app-stat strong {
  display: block;
  font-size: 22px;
  color: var(--text);
}

.app-stat span {
  font-size: 12.5px;
  color: var(--text-muted);
}

.app-row {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 15.5px;
}

.app-row .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--button-bg);
  flex: none;
}

.app-row .dot.accent {
  background: var(--accent);
}

.app-row.warn {
  border: 1.5px solid var(--error);
  background: var(--error-bg);
  color: var(--text);
}

.app-row.warn .dot {
  background: var(--error);
}

.app-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  width: fit-content;
}

.app-upload {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
}

.app-upload svg {
  width: 30px;
  height: 30px;
  margin: 0 auto var(--space-2);
  color: var(--button-bg);
}

.app-summary h4 {
  margin: 0 0 var(--space-2);
  font-size: 15.5px;
  color: var(--button-bg);
}

.app-summary p {
  margin: 0 0 var(--space-3);
  font-size: 15px;
  line-height: 1.55;
}

.app-summary p strong {
  color: var(--text);
}

.app-detail {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-2);
}

.app-detail span:first-child {
  font-size: 13px;
  color: var(--text-muted);
}

.app-detail span:last-child {
  font-size: 16px;
  font-weight: 600;
}

.app-tip {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.app-tip svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
  flex: none;
}

.app-tip p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
}

.preview-caption {
  font-size: 14px;
  color: var(--muted);
  margin-top: var(--space-4);
  text-align: center;
}

/* Funktionen: Sub-Navigation */

.feature-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-10);
}

.feature-nav a {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.feature-nav a:hover {
  background: var(--surface-strong);
}

/* Einzelne Feature-Sections */

.feature-section {
  padding-block: var(--space-10);
  border-top: 1px solid var(--border);
}

.feature-section__inner {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 900px) {
  .feature-section__inner {
    grid-template-columns: 1fr 1fr;
  }
  .feature-section--reverse .feature-section__inner {
    direction: rtl;
  }
  .feature-section--reverse .feature-section__inner > * {
    direction: ltr;
  }
}

.feature-section__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--button-bg);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: var(--space-4);
}

.feature-section h3 {
  font-size: clamp(24px, 3vw, 30px);
  margin: 0 0 var(--space-4);
  font-weight: 800;
}

.feature-section p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 var(--space-5);
  max-width: 52ch;
}

.feature-section__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.feature-section__points li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 16.5px;
  color: var(--text);
}

.feature-section__points svg {
  width: 22px;
  height: 22px;
  color: var(--button-bg);
  flex: none;
  margin-top: 2px;
}

/* Vertrauens-Sektion */

.trust {
  background: var(--surface);
}

.trust-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.trust-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.trust-card__icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--button-bg);
}

.trust-card__icon svg {
  width: 26px;
  height: 26px;
}

.trust-card h3 {
  margin: 0 0 var(--space-2);
  font-size: 19px;
}

.trust-card p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Warteliste (Formular-Section) */

.waitlist {
  text-align: center;
}

.waitlist-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  text-align: left;
}

.waitlist-form__fields .btn-primary {
  width: 100%;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-field label {
  font-size: 16px;
  font-weight: 600;
}

.form-field input {
  font-family: inherit;
  font-size: 18px;
  padding: var(--space-4);
  min-height: 56px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
}

.form-field input::placeholder {
  color: var(--muted);
}

.form-field input[aria-invalid="true"] {
  border-color: var(--error);
}

.form-error {
  color: var(--error);
  font-size: 15px;
  font-weight: 600;
  min-height: 1.2em;
  margin: 0;
}

.form-fineprint {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  text-align: center;
}

.form-success {
  background: var(--card-bg);
  border: 2px solid var(--button-bg);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  font-weight: 600;
  display: none;
}

.form-success.is-visible {
  display: block;
}

.waitlist-form.is-submitted .waitlist-form__fields {
  display: none;
}

/* Footer */

.site-footer {
  padding-block: var(--space-8) var(--space-6);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-6);
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.footer-brand img {
  width: 34px;
  height: 34px;
}

.footer-brand span {
  font-weight: 700;
  font-size: 19px;
}

.site-footer h4 {
  font-size: 16px;
  margin: 0 0 var(--space-3);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.site-footer a {
  color: var(--text);
  text-decoration: underline;
}

.footer-note {
  font-size: 14px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
}

.footer-placeholder {
  font-size: 14px;
  font-style: italic;
  color: var(--text-muted);
}

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