/* GetCloudless – ein Stylesheet für alle Seiten.
   Richtung „Person und Server-Rack“: Fraunces für Überschriften, Instrument Sans für Text, Plex Mono nur für
   Gerätebeschriftungen. Hell: kühles Grau mit Tintenblau. Dunkel: Nachtblau. Bernstein für Buttons und Signale.
   Standard ist das Farbschema des Systems; der Umschalter überschreibt es (gespeichert im Browser). */

@font-face { font-family: "Fraunces"; font-weight: 600; font-display: swap; src: url("/fonts/fraunces-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url("/fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-display: swap; src: url("/fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --paper: #e8ebef;
  --surface: #f7f8fa;
  --alt: #dfe3e9;
  --ink: #16202d;
  --muted: #4f5b6a;
  --line: #c6ced8;
  --sky: #1f4f8f;        /* Links, Linien, Häkchen – Tintenblau, 8:1 auf --paper */
  --sky-soft: #d6e0ee;
  --accent: #d99a2b;     /* Buttons und Signale – Bernstein */
  --on-accent: #16202d;
  --brand: #1f4f8f;      /* Bogen des Kern-C im Logo */
  --brand-dot: #d99a2b;  /* Kern des Kern-C */
  --warn: #a3402a;       /* nur der „übliche“ Datenweg im Diagramm und Fehlermeldungen */
  --ok: #3f8f5f;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 6px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #142033;
    --surface: #0f192a;
    --alt: #111c2d;
    --ink: #e8edf4;
    --muted: #a3b2c6;
    --line: #2a3b55;
    --sky: #e3a83d;
    --sky-soft: #2a2a24;
    --accent: #e3a83d;
    --on-accent: #142033;
    --brand: #e3a83d;
    --brand-dot: #e8edf4;
    --warn: #f09a7c;
    --ok: #5fbf8f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #142033;
  --surface: #0f192a;
  --alt: #111c2d;
  --ink: #e8edf4;
  --muted: #a3b2c6;
  --line: #2a3b55;
  --sky: #e3a83d;
  --sky-soft: #2a2a24;
  --accent: #e3a83d;
  --on-accent: #142033;
  --brand: #e3a83d;
  --brand-dot: #e8edf4;
  --warn: #f09a7c;
  --ok: #5fbf8f;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 2px; }

h1, h2 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; margin: 0 0 0.55em; letter-spacing: -0.012em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-family: var(--font-body); font-size: 1.15rem; font-weight: 600; line-height: 1.3; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 46rem; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 0.5rem 1rem; z-index: 20; }
.skip-link:focus { left: 1rem; }

/* --- Buttons --------------------------------------------------------- */
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.7rem 1.3rem;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
}
.button:hover { filter: brightness(1.08); }
.button-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.button-quiet:hover { border-color: var(--ink); filter: none; }
.button-small { padding: 0.45rem 0.9rem; font-size: 0.95rem; white-space: nowrap; }

/* --- Header ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 4rem; }
/* Logo: „Get“ + Kern-C + „loudless“ – das C trägt das Zeichen, wie das Bitcoin-B bei GetBankless */
.logo { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; font: 600 1.4rem/1 var(--font-display); }
.logo svg { height: 1.16em; width: auto; flex: none; margin: 0 0.01em 0 0.02em; transform: translateY(-0.03em); }
.logo-arc { fill: none; stroke: var(--brand); stroke-width: 10; stroke-linecap: round; }
.logo-dot { fill: var(--brand-dot); }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }
.main-nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.main-nav ul a { color: var(--ink); text-decoration: none; font-weight: 500; }
.main-nav ul a:hover { color: var(--sky); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-end { margin-left: auto; }
.menu-button { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font: 500 1rem var(--font-body); padding: 0.4rem 0.8rem; }
.theme-toggle { background: none; border: 1px solid var(--line); border-radius: 50%; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; color: var(--ink); cursor: pointer; padding: 0; }
.theme-toggle svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

@media (max-width: 52rem) {
  .js .menu-button { display: block; }
  .js .main-nav { display: none; }
  .js .main-nav.is-open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.5rem; gap: 1rem;
  }
  .main-nav ul { flex-direction: column; gap: 0.8rem; }
  .main-nav { flex-wrap: wrap; }
}

/* --- Hero mit Datenweg-Diagramm ------------------------------------------ */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.hero h1 span { display: block; }
.hero-rack { margin: 0; }
.hero-rack figcaption { font-size: 0.92rem; color: var(--muted); margin-top: 0.8rem; max-width: 30rem; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--muted); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.datapath { margin: 0; display: grid; gap: 1rem; }
.lane {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.1rem 1.2rem 1rem;
}
.lane-title { font-weight: 600; margin: 0 0 0.85rem; font-size: 0.98rem; }
.lane-usual .lane-title { color: var(--muted); }
.lane-track { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.7rem; }
.node { display: grid; justify-items: center; gap: 0.3rem; font-size: 0.85rem; color: var(--muted); text-align: center; min-width: 4.6rem; }
.node svg { width: 2.6rem; height: 2.6rem; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lane-usual .node-far svg { stroke: var(--warn); }
.wire { position: relative; height: 2px; }
.lane-usual .wire { background: repeating-linear-gradient(90deg, var(--warn) 0 7px, transparent 7px 13px); }
.lane-own .wire { background: var(--sky); }
.wire-label { position: absolute; left: 50%; top: -1.55rem; transform: translateX(-50%); white-space: nowrap; font-size: 0.78rem; color: var(--muted); }
.lane-own .wire::after {
  content: ""; position: absolute; top: 50%; left: 0;
  width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
  background: var(--sky);
  animation: packet 2.6s cubic-bezier(0.45, 0, 0.55, 1) 0.6s 3 both;
}
@keyframes packet { from { left: 0; } to { left: calc(100% - 10px); } }
@media (prefers-reduced-motion: reduce) { .lane-own .wire::after { animation: none; left: calc(50% - 5px); } }
.lane-note { margin: 0.85rem 0 0; font-size: 0.92rem; }
.lane-usual .lane-note { color: var(--warn); }
.lane-own { border-color: var(--sky); box-shadow: 0 0 0 1px var(--sky); }
.lane-own .lane-note { color: var(--ink); }

/* Server-Rack: Ihre KI als ein Gerät mehr neben Dateiserver und Firewall */
.rack { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0.55rem; display: grid; gap: 0.45rem; list-style: none; }
.rack li { display: flex; align-items: center; gap: 0.6rem; min-height: 2.4rem; padding: 0 0.9rem; border: 1px solid var(--line); border-radius: 5px; font: 500 0.85rem var(--font-mono); color: var(--muted); }
.rack li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.rack li.idle::before { background: var(--line); }
.rack li.is-yours { border-color: var(--accent); color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); }
.rack li.is-yours::before { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); animation: blink 2.4s ease-in-out 0.8s 3; }
.rack li span { margin-left: auto; font-weight: 400; font-size: 0.78rem; color: var(--muted); }
@keyframes blink { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .rack li.is-yours::before { animation: none; } }

/* --- Abschnitte --------------------------------------------------------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--alt); border-block: 1px solid var(--line); }
.section-intro { color: var(--muted); max-width: 42rem; font-size: 1.1rem; }
.fine-print { font-size: 0.92rem; color: var(--muted); margin-top: 1.5rem; }

.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.prose p { max-width: 40rem; }

/* „Was heißt cloudless?“ – die Definition des Namens als Merksatz */
.definition { border-left: 4px solid var(--sky); padding: 0.2rem 0 0.2rem 1.4rem; margin: 0 0 1.5rem; }
.definition-term { font: 600 1.6rem/1.2 var(--font-display); margin: 0 0 0.35rem; }
.definition-term span { font: 400 1rem var(--font-body); color: var(--muted); margin-left: 0.4rem; }
.definition p:last-child { margin: 0; font-size: 1.15rem; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.checks li { position: relative; padding-left: 1.9rem; }
.checks li::before {
  content: ""; position: absolute; left: 0.15rem; top: 0.42em;
  width: 0.95rem; height: 0.55rem;
  border-left: 2.5px solid var(--sky); border-bottom: 2.5px solid var(--sky);
  transform: rotate(-45deg);
}

/* Zwei Wege */
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.option { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.6rem; display: flex; flex-direction: column; }
.option-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.9rem; }
.option-head svg { width: 2.4rem; height: 2.4rem; flex: none; fill: none; stroke: var(--sky); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.option h3 { margin: 0; }
.option .checks { margin-top: auto; padding-top: 0.5rem; }
.option-fit { color: var(--muted); font-size: 0.95rem; border-top: 1px solid var(--line); padding-top: 0.9rem; margin: 1.1rem 0 0; }

/* Anwendungen für Praxis und Kanzlei */
.uses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); margin-top: 2rem; }
.uses p { color: var(--muted); margin: 0; }
.uses h4, .custom h4 { font: 600 1.1rem/1.3 var(--font-body); margin: 0 0 0.5rem; }
.uses h4 { padding-bottom: 0.6rem; border-bottom: 2px solid var(--sky); }
.tier { font: 600 1.45rem/1.2 var(--font-display); margin: 2.75rem 0 0; }
.tier + .uses { margin-top: 1.25rem; }
.tier-intro { color: var(--muted); max-width: 42rem; margin: 0.5rem 0 0; }
/* Individuelle Lösungen: als Karten abgesetzt, damit klar ist, dass das Projekte sind und kein Standard */
.custom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.custom > div { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.custom p { color: var(--muted); margin: 0; }
.uses ul { padding-left: 1.2rem; margin: 0; }
.uses li { margin-bottom: 0.6rem; }
.uses li::marker { color: var(--sky); }

/* Ablauf – echte Reihenfolge, daher nummeriert */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--sky); padding-top: 1rem; }
.steps li::before { content: counter(step); display: block; font: 600 2rem/1 var(--font-display); color: var(--sky); margin-bottom: 0.6rem; }
.steps p { color: var(--muted); margin: 0; }

/* Über mich */
.about { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.about-photo { margin: 0; }
.about-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 1; object-fit: cover; }
.about-photo figcaption { font-size: 0.92rem; color: var(--muted); margin-top: 0.6rem; }
.about-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.facts { margin: 0; display: grid; gap: 1rem; align-content: start; margin-top: 4.2rem; border-left: 2px solid var(--sky); padding-left: 1.25rem; }
.facts dt { font-size: 0.9rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }

/* FAQ */
.faq { margin-top: 1.5rem; border-top: 1px solid var(--line); max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; position: relative; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.3rem; top: 0.85rem; font: 400 1.6rem/1 var(--font-body); color: var(--sky); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); max-width: 44rem; }

/* Kontakt */
.contact { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { margin: 1.5rem 0 0; display: grid; gap: 0.9rem; }
.contact-list dt { font-size: 0.9rem; color: var(--muted); }
.contact-list dd { margin: 0; font-weight: 500; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; align-items: end; }
.field { display: grid; gap: 0.35rem; }
.field label, .field legend { font-weight: 500; font-size: 0.97rem; padding: 0; }
.field .optional { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.6rem 0.75rem; width: 100%;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--sky); outline-offset: 0; border-color: var(--sky); }
.field textarea { min-height: 8rem; resize: vertical; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.2rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: block; border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.9rem; font-size: 0.95rem; background: var(--paper); }
.choice input:checked + span { border-color: var(--sky); background: var(--sky-soft); box-shadow: inset 0 0 0 1px var(--sky); }
.choice input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.88rem; color: var(--muted); margin: 0; }
.form-status { margin: 0; font-weight: 500; }
.form-status.is-error { color: var(--warn); }
.form-status.is-ok { color: var(--sky); }
.form button[disabled] { opacity: 0.6; cursor: progress; }

/* --- Rechtstexte und Einzelseiten ------------------------------------------ */
.page { padding: clamp(3rem, 7vw, 5rem) var(--gutter); }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }

/* --- Footer --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 2rem; font-size: 0.95rem; color: var(--muted); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; }
.footer-brand { font: 600 1.15rem var(--font-display); color: var(--ink); margin: 0 0 0.3rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

/* --- Schmale Bildschirme ------------------------------------------------- */
@media (max-width: 60rem) {
  .hero-grid, .split, .contact, .about-body { grid-template-columns: minmax(0, 1fr); }
  .facts { margin-top: 0; }
  .steps, .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .options, .uses, .custom, .form-row, .steps { grid-template-columns: minmax(0, 1fr); }
  .about { grid-template-columns: minmax(0, 1fr); }
  .about-photo { max-width: 14rem; }
  .node { min-width: 3.8rem; font-size: 0.8rem; }
  .node svg { width: 2.2rem; height: 2.2rem; }
}
