/* The public pages of greenpathai.de (WP100): the landing page and the legal
   pages. One sheet, so the palette is declared once for all of them.

   Tokens: ui_theme._TOKENS_LIGHT / _TOKENS_DARK, copied because these pages
   are served without the app. Contrast is measured against the surface the
   text sits on (docs/GUI_DECISIONS.md §2). */
:root {
  --gp-bg: #F2F7F5; --gp-surface: #FFFFFF; --gp-border: #D7E5E1;
  --gp-ink: #16343A; --gp-muted: #4E6A6E; --gp-teal: #155E64;
  --gp-leaf: #3D9B4F; --gp-accent-ink: #FFF7F0; --gp-focus: #1D7A8C;
  /* --gp-msg-accent, not --gp-accent: the button's second line is 16 px body
     text and owes 4.5:1. #FFF7F0 on #C05A1E measured 4.20, on #A34C19 5.50. */
  --gp-cta: #A34C19;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --gp-bg: #0C1E21; --gp-surface: #122B30; --gp-border: #24454B;
    --gp-ink: #E3F0ED; --gp-muted: #93AFAC; --gp-teal: #226B75;
    --gp-leaf: #55B86A; --gp-accent-ink: #2A1505; --gp-focus: #45BFCF;
    --gp-cta: #E07B39; /* 5.85:1 with #2A1505 */
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--gp-bg);
  color: var(--gp-ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* One language visible at a time; German without script. */
html[lang="de"] [lang="en"]:not(html), html[lang="en"] [lang="de"]:not(html) { display: none; }

.lang-switch {
  position: absolute; top: 14px; right: 16px;
  display: flex; gap: 4px;
}
.lang-switch button {
  font: inherit; font-size: 14px; font-weight: 600;
  background: transparent; color: var(--gp-muted);
  border: 1px solid transparent; border-radius: 6px;
  padding: 4px 10px; cursor: pointer;
}
.lang-switch button[aria-pressed="true"] {
  color: var(--gp-ink); border-color: var(--gp-border); background: var(--gp-surface);
}
.lang-switch button:focus-visible, .cta:focus-visible, a:focus-visible {
  outline: 3px solid var(--gp-focus); outline-offset: 3px;
}

header { padding: 52px 16px 0; text-align: center; }
header img { width: min(420px, 82vw); height: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .logo-light { display: none; }
  .logo-dark { display: inline; }
}

main {
  flex: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 8px 16px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}
.portrait { text-align: center; }
.portrait img {
  width: min(280px, 66vw); height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, #000 82%, transparent);
}

h1 {
  font-size: clamp(26px, 4.2vw, 38px);
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--gp-ink);
}
p { margin: 0 0 14px; }
.intro { margin-bottom: 22px; }
.lead { font-size: 19px; }

ol.steps { list-style: none; padding: 0; margin: 14px 0 0; counter-reset: step; }
ol.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 12px 44px;
}
ol.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gp-teal); color: #F2FAF8;
  font-weight: 700; font-size: 15px; line-height: 30px; text-align: center;
}
ol.steps strong { display: block; }

.cta {
  display: block;
  text-align: center;
  text-decoration: none;
  background: var(--gp-cta);
  color: var(--gp-accent-ink);
  border-radius: 14px;
  padding: 18px 24px;
  box-shadow: 0 6px 18px rgba(22, 52, 58, 0.18);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
/* The hover lifts rather than recolours: the dark theme's hover token sits at
   4.49:1 under the button text. */
.cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22, 52, 58, 0.28); }
.cta-main { display: block; font-size: 21px; font-weight: 700; line-height: 1.3; }
.cta-sub { display: block; font-size: 16px; font-weight: 500; margin-top: 4px; }

.note { font-size: 15px; color: var(--gp-muted); margin-top: 14px; }
h2 { font-size: 18px; margin: 34px 0 0; color: var(--gp-ink); }

footer {
  border-top: 1px solid var(--gp-border);
  padding: 18px 16px 24px;
  text-align: center;
  font-size: 14px;
  color: var(--gp-muted);
}
footer p { margin: 0; }
footer p + p { margin-top: 6px; }
/* The footer's own size and colour; the underline is what marks it as a link,
   since its colour is the text's (colour is never the only carrier). */
footer a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
footer .sep { margin: 0 0.6em; }

/* Text pages: the Impressum and the Datenschutzerklärung. One reading column. */
.page main { display: block; max-width: 720px; padding-top: 32px; }
.page h1 { font-size: clamp(26px, 4vw, 34px); }
.page address { font-style: normal; margin: 0 0 14px; }
.page main a { color: var(--gp-ink); text-underline-offset: 2px; }
.page .back { margin-top: 32px; font-size: 15px; }
.page h2 { font-size: 19px; margin: 30px 0 8px; }
.page h3 { font-size: 17px; margin: 24px 0 6px; }
.page .stand { color: var(--gp-muted); font-size: 15px; margin-top: 28px; }
.page .stand + .stand { margin-top: 0; }
/* Art. 21 Abs. 4 DSGVO: the right to object is shown separately from the rest
   of the information — its own framed region, not colour alone. */
.page .objection {
  background: var(--gp-surface);
  border: 1px solid var(--gp-border);
  border-left: 4px solid var(--gp-teal);
  border-radius: 8px;
  padding: 4px 18px 4px;
  margin: 24px 0;
}
.page .objection h3 { margin-top: 14px; }
/* The address contains a hyphen; a line break there reads as hyphenation and
   gets the address mistyped. It moves to its own line whole instead. */
.page .email { display: inline-block; white-space: nowrap; }
@media (max-width: 360px) { .page .email { font-size: 15px; } }
header a { display: inline-block; }

@media (min-width: 820px) {
  header { padding-top: 64px; }
  main {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 48px;
    padding-top: 32px;
  }
  .portrait img { width: 100%; max-width: 440px; }
  .cta { display: inline-block; text-align: left; padding: 18px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .cta { transition: none; }
  .cta:hover { transform: none; }
}
