/* ==========================================================================
   Dayzo – Website-Stylesheet
   Eine einzige Datei, keine Abhängigkeiten, kein Build-Schritt.
   Farben, Abstände und Radien stammen aus dem Designsystem der App
   (siehe DESIGN-BRIEF.md).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design-Tokens (Hellmodus)
   -------------------------------------------------------------------------- */

:root {
  /* Marke */
  --brand: #0F9D8F;           /* Logo-Teal, führende Akzentfarbe */
  --brand-ink: #FFFFFF;       /* Text auf Markenflächen */
  --accent: #087F86;          /* Akzent für Text/Links (kontraststark) */
  --accent-soft: #E3F1F0;     /* sehr helle Markenfläche für Hinweisboxen */

  /* Flächen und Text */
  --bg: #F7F7F4;
  --surface: #FFFFFF;
  --surface-raised: #F1F3F4;
  --border: #E2E5E7;
  --border-strong: #CBD1D5;
  --text: #1A1D21;
  --muted: #697179;
  --danger: #C94F5D;

  /* Prioritätsfarben der App (für kleine Farbmarker) */
  --prio-high: #D75B63;
  --prio-medium: #C8872F;
  --prio-low: #78818A;

  /* Store-Badges */
  --badge-off: #6B7176;

  /* Abstände (wie in der App) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;
  --space-4xl: 72px;

  /* Radien (wie in der App) */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Layout */
  --maxw: 1120px;
  --maxw-prose: 46rem;

  /* Schrift wie in der App: System-Schrift, keine Web-Fonts */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;

  color-scheme: light;
}

/* --------------------------------------------------------------------------
   2. Design-Tokens (Dunkelmodus)
   -------------------------------------------------------------------------- */

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #3DCDBE;         /* aufgehelltes Logo-Teal */
    --brand-ink: #08201E;
    --accent: #43D9E6;
    --accent-soft: #12242A;

    --bg: #0A0A0F;
    --surface: #14141D;
    --surface-raised: #1B1B26;
    --border: #292936;
    --border-strong: #3A3A4A;
    --text: #F2F3F7;
    --muted: #9293A3;
    --danger: #E26D78;

    --prio-high: #D96C70;
    --prio-medium: #C4935C;
    --prio-low: #747684;

    --badge-off: #3A3F45;

    color-scheme: dark;
  }
}

/* --------------------------------------------------------------------------
   3. Grundlagen
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--space-lg);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 var(--space-lg);
}

ul,
ol {
  margin: 0 0 var(--space-lg);
  padding-left: 1.25em;
}

li {
  margin-bottom: var(--space-sm);
}

strong {
  font-weight: 700;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--space-2xl) 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1em 0.35em;
}

/* Sprungmarke für Tastatur- und Screenreader-Nutzung */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  z-index: 100;
}

.skip-link:focus {
  left: var(--space-lg);
  top: var(--space-lg);
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

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

/* --------------------------------------------------------------------------
   4. Kopfzeile
   -------------------------------------------------------------------------- */

/* Die Kopfzeile bleibt beim Scrollen oben stehen. Der Hintergrund ist deckend,
   damit der Inhalt sauber darunter durchläuft. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

/* Sprungziele (#preis, #funktionen …) dürfen nicht unter der Kopfzeile landen. */
:target,
main [id] {
  scroll-margin-top: 88px;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  min-height: 72px;
  flex-wrap: wrap;
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  display: block;
  height: 34px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

/* Sprachumschalter */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-raised);
}

.lang a {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--muted);
}

.lang a[aria-current="true"] {
  background: var(--accent);
  color: var(--bg);
}

/* Auf schmalen Bildschirmen wird die Kopfzeile zweizeilig: oben Wortmarke und
   Sprachumschalter, darunter die Navigation. Sonst würde die fixierte Leiste zu
   viel vom Bildschirm belegen. */
@media (max-width: 599px) {
  .site-header__inner {
    position: relative;
    min-height: 0;
    gap: var(--space-sm);
    padding-top: var(--space-sm);
    padding-bottom: var(--space-sm);
  }

  .brand img {
    height: 28px;
  }

  .site-nav {
    width: 100%;
    gap: var(--space-md);
  }

  .site-nav a {
    font-size: 0.8125rem;
  }

  .lang {
    position: absolute;
    right: var(--space-xl);
    top: var(--space-sm);
  }

  :target,
  main [id] {
    scroll-margin-top: 92px;
  }
}

/* --------------------------------------------------------------------------
   5. Abschnitte
   -------------------------------------------------------------------------- */

.section {
  padding: var(--space-4xl) 0;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type {
  border-bottom: 0;
}

.section--alt {
  background: var(--surface);
}

.section__intro {
  max-width: var(--maxw-prose);
  margin-bottom: var(--space-2xl);
}

.section__intro p {
  color: var(--muted);
  font-size: 1.0625rem;
}

.eyebrow {
  display: block;
  margin-bottom: var(--space-md);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead {
  font-size: 1.1875rem;
  color: var(--muted);
  max-width: 40ch;
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: var(--space-4xl) 0;
  border-bottom: 1px solid var(--border);
}

.hero__grid {
  display: grid;
  gap: var(--space-3xl);
  align-items: center;
}

.hero__media {
  justify-self: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-4xl);
  }

  .hero__media {
    justify-self: end;
  }
}

.hero h1 {
  margin-bottom: var(--space-xl);
}

.hero .lead {
  max-width: 46ch;
  margin-bottom: var(--space-2xl);
}

/* --------------------------------------------------------------------------
   7. Store-Badges
   -------------------------------------------------------------------------- */

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  margin: 0 0 var(--space-md);
  padding: 0;
  list-style: none;
}

.badges li {
  margin: 0;
}

.storebadge {
  display: inline-block;
  border-radius: 10px;
  line-height: 0;
}

.storebadge img {
  display: block;
  height: 56px;
  width: auto;
}

/* Deaktivierter Zustand: nicht klickbar, sichtbar zurückgenommen */
.storebadge.is-disabled {
  cursor: default;
  opacity: 0.85;
  pointer-events: none;
}

.badge-note {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   8. Screenshot-Platzhalter
   Seitenverhältnis 9:19.5 (iPhone). Zum Ersetzen siehe /screenshots/README.md
   -------------------------------------------------------------------------- */

.shot,
.shot-img {
  width: 100%;
  max-width: 272px;
  aspect-ratio: 9 / 19.5;
  border: 1px solid var(--border-strong);
  border-radius: 30px;
  display: block;
}

.shot {
  position: relative;
  background: var(--surface-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
}

.shot::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px dashed var(--border-strong);
  border-radius: 22px;
  pointer-events: none;
}

.shot__label {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

.shot__id {
  display: block;
  margin-top: var(--space-md);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.shot-img {
  object-fit: cover;
  background: var(--surface-raised);
}

.shot-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xl);
  justify-content: center;
}

.shot-row figure {
  margin: 0;
  max-width: 272px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.shot-row figcaption {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   9. Karten und Raster
   -------------------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
}

.section--alt .card {
  background: var(--bg);
}

.card h3 {
  margin-bottom: var(--space-sm);
}

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

.card p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

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

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

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

/* Kleiner Farbmarker in Kartenüberschriften */
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  margin-right: 8px;
  vertical-align: 0.1em;
}

/* Kennzeichnung für Pro-Funktionen */
.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border: 1px solid var(--brand);
  border-radius: var(--radius-pill);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  vertical-align: 0.15em;
}

.footnote {
  font-size: 0.875rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   10. Kernfeature-Abschnitt
   -------------------------------------------------------------------------- */

.feature {
  display: grid;
  gap: var(--space-3xl);
  align-items: start;
}

@media (min-width: 900px) {
  .feature {
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--space-4xl);
  }

  /* Das mitlaufende Bild darf nicht unter die fixierte Kopfzeile rutschen. */
  .feature__media {
    position: sticky;
    top: calc(73px + var(--space-lg));
  }
}

.feature__media {
  justify-self: center;
}

/* Nummerierte Schritte */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0 0 var(--space-xl);
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: var(--space-xl);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h3 {
  margin-bottom: var(--space-xs);
  font-size: 1.0625rem;
}

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

/* Nachbau einer App-Zeile, um die Sprache der App zu zeigen */
.appline {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--prio-high);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-lg) var(--space-lg) var(--space-xl);
  margin: 0 0 var(--space-lg);
}

.section--alt .appline {
  background: var(--bg);
}

.appline__title {
  font-weight: 600;
  margin: 0 0 var(--space-xs);
  color: var(--text);
}

.appline__meta {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--accent);
}

.appline__note {
  margin: var(--space-xs) 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Zwei-Knöpfe-Nachbau des Status-Sheets */
.choice {
  display: grid;
  gap: var(--space-md);
  margin: 0 0 var(--space-lg);
}

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

.choice__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  background: var(--surface);
}

.section--alt .choice__item {
  background: var(--bg);
}

.choice__item strong {
  display: block;
  margin-bottom: var(--space-xs);
}

.choice__item span {
  font-size: 0.875rem;
  color: var(--muted);
}

.choice__item--accent {
  border-color: var(--brand);
}

/* --------------------------------------------------------------------------
   11. Preisvergleich
   -------------------------------------------------------------------------- */

.plans {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
}

@media (min-width: 800px) {
  .plans {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.section--alt .plan {
  background: var(--bg);
}

.plan--pro {
  border-color: var(--brand);
}

.plan__name {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.plan__price {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-xs);
}

.plan__note {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: var(--space-lg);
}

.plan hr {
  margin: var(--space-lg) 0;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: var(--space-md);
  font-size: 0.9375rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

/* Die Grenzen der Gratis-Version: neutraler Strich statt Häkchen. */
.checklist--limits li::before {
  top: 0.7em;
  width: 12px;
  height: 0;
  border-left: 0;
  border-bottom: 2px solid var(--muted);
  transform: none;
}

.limit {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Hinweisbox */
.note {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  font-size: 0.9375rem;
  color: var(--text);
  margin: var(--space-xl) 0 0;
}

.note p {
  margin: 0;
}

.note p + p {
  margin-top: var(--space-sm);
}

/* --------------------------------------------------------------------------
   12. Abschluss-Abschnitt
   -------------------------------------------------------------------------- */

.cta {
  padding: var(--space-4xl) 0;
  text-align: center;
}

.cta .badges {
  justify-content: center;
}

.cta p {
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   13. Fliesstext-Seiten (Impressum, Datenschutz, Support, 404)
   -------------------------------------------------------------------------- */

.page-head {
  padding: var(--space-4xl) 0 var(--space-2xl);
  border-bottom: 1px solid var(--border);
}

.page-head p {
  color: var(--muted);
  max-width: var(--maxw-prose);
  margin-bottom: 0;
}

.prose {
  max-width: var(--maxw-prose);
  padding: var(--space-3xl) 0 var(--space-4xl);
}

.prose h2 {
  font-size: 1.375rem;
  margin-top: var(--space-3xl);
}

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

.prose h3 {
  font-size: 1.0625rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.prose ul {
  padding-left: 1.1em;
}

.prose .meta {
  color: var(--muted);
  font-size: 0.9375rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg);
}

.contact-list li {
  margin-bottom: var(--space-sm);
}

.contact-list .label {
  display: inline-block;
  min-width: 8.5rem;
  color: var(--muted);
}

/* Tabelle für die Datenschutz-Übersicht */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xl);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.9375rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--surface-raised);
  font-weight: 700;
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* --------------------------------------------------------------------------
   14. Fusszeile
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: var(--space-2xl) 0;
  font-size: 0.9375rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg) var(--space-2xl);
  align-items: center;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

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

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

.site-footer .copyright {
  color: var(--muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   15. 404
   -------------------------------------------------------------------------- */

.error-page {
  padding: var(--space-4xl) 0;
  max-width: var(--maxw-prose);
}
