/* Seiten ausserhalb der App: Start, Datenschutz, Erste Schritte.
   Farben wie in der App (src/app.css). Keine Schriften, Bilder oder Skripte von
   aussen: die Content Security Policy erlaubt nur eigene Dateien. */

:root {
  --ink: #172e29;
  --muted: #5b6b66;
  --green: #135b4b;
  --green-dark: #0c473a;
  --pale: #e9f3ef;
  --pale-line: #cfe3da;
  --line: #dce5e0;
  --paper: #fff;
  --bg: #f4f7f5;
  --radius: 12px;
  color-scheme: light;
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

/* Das hidden-Attribut muss auch gegen eigene display-Regeln gewinnen
   (z. B. die vorbereitete Referenz). */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  font-size: 1.0625rem;
  /* Lange Woerter und Links duerfen umbrechen, statt die Seite zu verbreitern. */
  overflow-wrap: break-word;
}

a {
  color: var(--green);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--green-dark);
}

a:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2.125rem;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

h2 {
  font-size: 1.375rem;
  margin: 0 0 10px;
}

h3 {
  font-size: 1.125rem;
  margin: 0 0 6px;
}

p,
ul,
ol {
  margin: 0 0 12px;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 16px;
}

/* Marke */
.brand-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 48px;
  background: var(--green);
  color: #fff;
  border-radius: 10px;
  font-size: 1.6rem;
  font-weight: 650;
  line-height: 1;
  box-shadow: inset 0 -4px #ffffff15;
}

.site-header {
  padding: 20px 0 4px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.site-header .brand-icon {
  width: 36px;
  height: 40px;
  font-size: 1.3rem;
  border-radius: 8px;
}

/* Startseite: Kopf */
.hero {
  padding-top: 48px;
}

.hero .brand-icon {
  margin-bottom: 20px;
}

.subtitle {
  font-size: 1.375rem;
  line-height: 1.35;
  color: var(--muted);
  margin: 0;
}

main section,
main blockquote {
  margin: 40px 0;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.card-pale {
  background: var(--pale);
  border-color: var(--pale-line);
}

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

/* So geht es: drei Karten mit Nummer */
.how {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  counter-reset: how;
}

.how > li {
  counter-increment: how;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.how h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.how h3::before {
  content: counter(how);
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.95rem;
}

.how p {
  margin: 0;
}

/* Preis */
.price-box {
  border: 2px solid var(--green);
}

.price {
  font-size: 2.25rem;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 6px 0 8px;
}

small {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Referenz (vorbereitet, noch verborgen) */
blockquote {
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--green);
  font-size: 1.125rem;
}

blockquote p {
  margin: 0;
}

blockquote footer {
  margin-top: 6px;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Unterseiten */
.lead {
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--muted);
}

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

.card ul,
.prose ul {
  padding-left: 1.3em;
}

.card li + li,
.prose li + li {
  margin-top: 4px;
}

/* Erste Schritte: grosse Nummern, echte Liste */
.steps {
  padding-left: 2.25em;
  margin: 32px 0;
}

.steps > li {
  padding-left: 6px;
  margin-bottom: 18px;
}

.steps > li::marker {
  color: var(--green);
  font-weight: 800;
  font-size: 1.15em;
}

.note {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.prose section {
  margin: 32px 0;
}

/* Fuss */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding: 24px 0 40px;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 12px;
}

.site-footer p {
  margin: 0 0 4px;
}

@media (min-width: 720px) {
  h1 {
    font-size: 3rem;
  }

  .hero {
    padding-top: 72px;
  }

  .how {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Druck: Die Startseite passt auf eine A4-Seite (als PDF per WhatsApp).
   Browser drucken Hintergruende meist nicht mit, deshalb Linien statt Flaechen. */
@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  :root,
  body {
    background: #fff;
  }

  body {
    font-size: 10pt;
    line-height: 1.45;
    color: #000;
  }

  .wrap {
    max-width: none;
    padding: 0;
  }

  .hero,
  .site-header {
    padding: 0;
  }

  .brand-icon,
  .site-header .brand-icon {
    width: 9mm;
    height: 10mm;
    font-size: 15pt;
    background: none;
    color: var(--green);
    border: 1.5pt solid var(--green);
    box-shadow: none;
  }

  .hero .brand-icon {
    margin-bottom: 3mm;
  }

  h1 {
    font-size: 24pt;
    margin-bottom: 1.5mm;
  }

  h2 {
    font-size: 13pt;
    margin-bottom: 1.5mm;
  }

  h3 {
    font-size: 11pt;
    margin-bottom: 1mm;
  }

  .subtitle {
    font-size: 14pt;
  }

  .lead {
    font-size: 11pt;
  }

  p,
  ul,
  ol {
    margin-bottom: 2mm;
  }

  main section,
  main blockquote,
  .prose section {
    margin: 5mm 0;
    break-inside: avoid;
  }

  .card,
  .card-pale,
  .how > li {
    background: none;
    padding: 3mm 4mm;
    border-color: #9db3aa;
  }

  .price-box {
    border-color: var(--green);
  }

  .how {
    grid-template-columns: repeat(3, 1fr);
    gap: 3mm;
  }

  .how h3::before {
    width: 6mm;
    height: 6mm;
    background: none;
    color: var(--green);
    border: 1pt solid var(--green);
    font-size: 9pt;
  }

  .price {
    font-size: 20pt;
    margin: 1mm 0 2mm;
  }

  .steps {
    margin: 5mm 0;
  }

  .steps > li {
    margin-bottom: 2.5mm;
    break-inside: avoid;
  }

  a {
    color: inherit;
  }

  .site-footer {
    margin-top: 5mm;
    padding: 3mm 0 0;
    font-size: 8.5pt;
    color: #333;
  }

  .site-footer nav {
    margin-bottom: 1.5mm;
  }

  .no-print {
    display: none !important;
  }
}
