/* Nerds and Dreamers Desktop: gemeinsame Styles für Produktseite, Impressum, Datenschutz.
   Keine externen Schriften. Hell und dunkel folgen der Systemeinstellung; der Knopf oben
   kann das überschreiben, indem assets/theme.js <meta name="color-scheme"> auf "light"
   oder "dark" setzt. Die Regeln unten übertragen das auf die CSS-Eigenschaft color-scheme. */

:root {
  color-scheme: light dark;
  --bg-0: #f6f4ef;
  --bg-1: #ffffff;
  --bg-2: #ece8df;
  --line: #d9d3c6;
  --ink-1: #141b2b;
  --ink-2: #2e3a50;
  --ink-3: #56627a;
  --blue: #2a64ad;
  --orange: #b4541c;
  --orange-soft: rgba(180, 84, 28, 0.10);
  --blue-soft: rgba(42, 100, 173, 0.10);
  --btn-bg: #b4541c;
  --btn-ink: #ffffff;
  --f-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace;
  --max-w: 46rem;
  --pad-x: clamp(1rem, 4vw, 2rem);
  --radius: 14px;
}
:root:has(> head > meta[name="color-scheme"][content="dark"]) { color-scheme: dark; }
:root:has(> head > meta[name="color-scheme"][content="light"]) { color-scheme: light; }

/* Rückfall für Browser ohne light-dark(): nur Systemeinstellung, ohne Knopf-Überschreibung */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-0: #08101e;
    --bg-1: #0d182e;
    --bg-2: #142340;
    --line: #1e3159;
    --ink-1: #eef2f8;
    --ink-2: #c3cfe3;
    --ink-3: #93a3bd;
    --blue: #5da3f5;
    --orange: #e8844a;
    --orange-soft: rgba(232, 132, 74, 0.14);
    --blue-soft: rgba(93, 163, 245, 0.14);
    --btn-bg: #e8844a;
    --btn-ink: #08101e;
  }
}

/* Moderne Browser: Farben folgen color-scheme, also auch dem Knopf */
@supports (color: light-dark(#000, #fff)) {
  :root {
    --bg-0: light-dark(#f6f4ef, #08101e);
    --bg-1: light-dark(#ffffff, #0d182e);
    --bg-2: light-dark(#ece8df, #142340);
    --line: light-dark(#d9d3c6, #1e3159);
    --ink-1: light-dark(#141b2b, #eef2f8);
    --ink-2: light-dark(#2e3a50, #c3cfe3);
    --ink-3: light-dark(#56627a, #93a3bd);
    --blue: light-dark(#2a64ad, #5da3f5);
    --orange: light-dark(#b4541c, #e8844a);
    --orange-soft: light-dark(rgba(180, 84, 28, 0.10), rgba(232, 132, 74, 0.14));
    --blue-soft: light-dark(rgba(42, 100, 173, 0.10), rgba(93, 163, 245, 0.14));
    --btn-bg: light-dark(#b4541c, #e8844a);
    --btn-ink: light-dark(#ffffff, #08101e);
  }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100dvh;
  background: var(--bg-0);
  color: var(--ink-2);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--orange); }
a:not([href]) { color: inherit; } /* Mail-Adresse, solange JavaScript sie nicht verlinkt hat */
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px;
}
::selection { background: var(--orange); color: var(--bg-0); }

/* Nur für Screenreader sichtbar */
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important; clip-path: inset(50%) !important; overflow: hidden !important;
  width: 1px !important; height: 1px !important; margin: -1px !important;
  padding: 0 !important; border: 0 !important; white-space: nowrap !important;
}

/* Sprunglink: erscheint nur, wenn er mit der Tastatur angesteuert wird */
.skip:focus {
  position: fixed; top: 0.5rem; left: 0.5rem; z-index: 10; padding: 0.6rem 1rem;
  background: var(--ink-1); color: var(--bg-0); border-radius: 8px; font-weight: 700;
}
#inhalt { scroll-margin-top: 1rem; }

/* Markenleiste aus Punkten */
.dot-bar {
  height: 4px; width: 100%;
  background-image:
    radial-gradient(circle, var(--orange) 1.5px, transparent 1.6px),
    radial-gradient(circle, var(--blue) 1.5px, transparent 1.6px);
  background-size: 20px 4px, 20px 4px;
  background-position: 0 center, 10px center;
  background-repeat: repeat-x;
  opacity: 0.85;
}

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }

/* Kopfzeile */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink-1); }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand span { font-family: var(--f-mono); font-size: 0.85rem; font-weight: 600; letter-spacing: -0.01em; }
.lang {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  font-family: var(--f-mono); font-size: 0.85rem; font-weight: 600;
}
.lang a {
  display: inline-block; min-width: 2.75rem; padding: 0.45rem 0.8rem; text-align: center;
  text-decoration: none; color: var(--ink-3);
}
.lang a[aria-current="page"] {
  background: var(--ink-1); color: var(--bg-0);
  /* nicht nur über Farbe: aktuelle Sprache zusätzlich unterstrichen */
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px;
}
@media (forced-colors: active) {
  .lang a[aria-current="page"] { background: Highlight; color: HighlightText; forced-color-adjust: none; }
}

.top-tools { display: inline-flex; align-items: center; gap: 0.5rem; }
.theme-toggle {
  display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--line); border-radius: 999px; background: none;
  color: var(--ink-1); cursor: pointer;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { color: var(--orange); }
.theme-toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.theme-toggle svg { width: 1.2rem; height: 1.2rem; }
/* Gezeigt wird die Aktion: im hellen Modus der Mond (zu dunkel), im dunklen die Sonne */
.theme-to-light { display: none; }
:root:has(> head > meta[name="color-scheme"][content="dark"]) .theme-to-dark { display: none; }
:root:has(> head > meta[name="color-scheme"][content="dark"]) .theme-to-light { display: inline-flex; }
@media (prefers-color-scheme: dark) {
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .theme-to-dark { display: none; }
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .theme-to-light { display: inline-flex; }
}
@media (forced-colors: active) { .theme-toggle { border-color: ButtonText; } }

/* Grundtypografie: Überschriften, Knopf */
h1 {
  font-family: var(--f-mono); font-weight: 700; color: var(--ink-1);
  font-size: clamp(1.9rem, 7vw, 3.1rem); line-height: 1.08; letter-spacing: -0.04em;
  margin-bottom: 1.1rem;
}
.hero { padding-block: clamp(2rem, 7vw, 4.5rem) clamp(2.5rem, 7vw, 4rem); }
.sub {
  font-size: clamp(1.15rem, 0.95rem + 1vw, 1.45rem); line-height: 1.45; color: var(--ink-1);
  font-weight: 500; margin-bottom: 1.25rem; max-width: 40ch; text-wrap: balance;
}
.sub em { font-style: normal; color: var(--orange); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.75rem 1.5rem; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-ink);
  font-weight: 700; font-size: 1.05rem; text-decoration: none;
  transition: filter 0.15s ease;
}
.btn:hover { color: var(--btn-ink); filter: brightness(1.08); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn { transition: transform 0.15s ease, filter 0.15s ease; }
  .btn:hover { transform: translateY(-1px); }
}
@media (forced-colors: active) { .btn { border: 2px solid ButtonText; } }
/* Knopf mit der Mail-Adresse als Text: funktioniert mit und ohne Mail-Programm */
.btn-mail { padding-inline: 1.15rem 1.35rem; border-radius: 16px; max-width: 100%; text-align: left; }
.btn-ico { width: 1.3rem; height: 1.3rem; flex: none; }
.nw { white-space: nowrap; } /* Umbruch der Adresse nur vor dem @, nie am Bindestrich */

/* ---------- Startseite ---------- */
.wrap-wide { max-width: 68rem; }
.home .top { padding-block: 1.1rem; }
.home .brand { min-width: 0; }
.home .brand span { line-height: 1.2; }

.eyebrow {
  font-family: var(--f-mono); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 0.9rem;
}
.lead { max-width: 64ch; margin-bottom: 1rem; text-wrap: pretty; }
.lead-strong { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.3rem); line-height: 1.4; color: var(--ink-1); font-weight: 500; }

/* Einstieg */
.home .hero { padding-block: clamp(1.75rem, 6vw, 5rem) clamp(2.75rem, 7vw, 5.5rem); }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.home .hero h1 {
  font-family: var(--f-sans); font-weight: 750;
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); line-height: 1.1; letter-spacing: -0.028em;
  max-width: 27ch; margin-bottom: 1.4rem; text-wrap: balance;
}
.hero-note { font-size: 0.95rem; color: var(--ink-3); margin: 1.75rem 0 0.6rem; }
.hero-logo { display: none; }
@media (min-width: 58rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) auto; }
  .hero-logo {
    display: block; width: clamp(13rem, 22vw, 17rem); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
    box-shadow: 0 0 0 1px var(--line), 0 0 0 10px var(--bg-1), 0 0 0 11px var(--line), 0 40px 70px -40px rgba(0, 0, 0, 0.55);
  }
  .hero-logo img { width: 100%; height: 100%; object-fit: cover; }
}

/* Abschnitte */
.band { padding-block: clamp(2.75rem, 7vw, 5rem); border-top: 1px solid var(--line); }
.band h2 {
  font-family: var(--f-mono); font-weight: 700; color: var(--ink-1);
  font-size: clamp(1.45rem, 1.15rem + 1.5vw, 2.05rem); line-height: 1.15; letter-spacing: -0.035em;
  margin-bottom: 0.85rem; text-wrap: balance;
}
.band h3 { font-size: 1.12rem; line-height: 1.3; color: var(--ink-1); margin-bottom: 0.45rem; text-wrap: balance; }
.band [id], #desktop { scroll-margin-top: 1rem; }

/* Wobei ich helfe */
.cards { list-style: none; display: grid; gap: 1rem; margin-top: 1.75rem; }
@media (min-width: 44rem) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius);
}
.card .ico {
  display: block; width: 2.6rem; height: 2.6rem; padding: 0.55rem; margin-bottom: 1rem;
  color: var(--orange); background: var(--orange-soft); border-radius: 12px;
}
.card:nth-child(even) .ico { color: var(--blue); background: var(--blue-soft); }
.card-more { margin-top: 0.8rem; font-weight: 600; }

/* Der Desktop */
.band-desk { background: var(--bg-1); }
.flow { margin-block: 2rem 2.25rem; }
.flow-label {
  font-family: var(--f-mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.7rem;
}
.flow-list { list-style: none; display: grid; gap: 2.25rem; }
.flow-node {
  position: relative; display: flex; flex-direction: column; gap: 0.2rem;
  padding: 0.95rem 1.15rem; background: var(--bg-0);
  border: 1px solid var(--line); border-radius: 12px;
}
.flow-node strong { font-family: var(--f-mono); font-size: 0.95rem; color: var(--ink-1); }
.flow-node span { font-size: 0.92rem; line-height: 1.45; color: var(--ink-3); }
.flow-main { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.flow-node + .flow-node::before {
  content: "↕"; content: "↕" / "";
  position: absolute; top: -1.95rem; left: 50%; translate: -50% 0;
  font-family: var(--f-mono); font-size: 1.15rem; line-height: 1.5; color: var(--ink-3);
}
@media (min-width: 52rem) {
  .flow-list { grid-template-columns: 1fr 1.35fr 1fr; gap: 3rem; }
  .flow-node + .flow-node::before {
    content: "↔"; content: "↔" / "";
    top: 50%; left: -1.5rem; translate: -50% -50%;
  }
}

.promises { list-style: none; display: grid; gap: 1rem; counter-reset: p; }
@media (min-width: 52rem) { .promises { grid-template-columns: repeat(3, 1fr); } }
.promise {
  padding: 1.35rem 1.4rem; counter-increment: p;
  background: var(--bg-0); border: 1px solid var(--line); border-radius: var(--radius);
}
.promise::before {
  content: "0" counter(p); display: block; margin-bottom: 0.5rem;
  font-family: var(--f-mono); font-weight: 700; font-size: 1.05rem; color: var(--orange);
}
.promise:nth-child(2)::before { color: var(--blue); }

/* So läuft es */
.steps { list-style: none; display: grid; gap: 1.75rem; counter-reset: s; margin-top: 1.75rem; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.25rem; } }
.step { counter-increment: s; padding-top: 1.1rem; border-top: 3px solid var(--orange); }
.step:nth-child(2) { border-top-color: var(--blue); }
.step::before {
  content: counter(s); display: block; margin-bottom: 0.6rem;
  font-family: var(--f-mono); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--ink-1);
}

/* Wer dahintersteht und Aufruf */
.end-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 58rem) { .end-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.who p { max-width: 60ch; text-wrap: pretty; }
.cta {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 0 0 4px var(--orange-soft);
}
.cta p { font-size: 1.1rem; color: var(--ink-1); margin-bottom: 1.4rem; max-width: 52ch; }

.home .foot { border-top: 1px solid var(--line); }

/* Fußzeile */
.foot { padding-block: 2rem 3rem; font-size: 0.92rem; color: var(--ink-3); }
.foot-note, .foot-links { margin-bottom: 0.6rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.35rem 0.6rem; align-items: baseline; }
.foot-links span[aria-hidden] { color: var(--line); }

/* Rechtstexte */
.legal { padding-block: 2rem 3rem; }
.legal h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); margin-bottom: 1rem; }
.legal h2 {
  font-family: var(--f-mono); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange);
  margin: 2rem 0 0.75rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--line);
}
.legal p, .legal ul { margin-bottom: 0.9rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.3rem; }
.legal strong { color: var(--ink-1); }
.legal-lede {
  font-style: italic; color: var(--ink-3); padding: 1rem 1.25rem;
  background: var(--bg-2); border-left: 2px solid var(--orange); border-radius: 0 6px 6px 0;
}
.legal-updated { margin-top: 2.5rem; font-family: var(--f-mono); font-size: 0.8rem; color: var(--ink-3); text-align: right; }
