/* CentralChat Website, Quelle ops/centralchat/website/src/css/site.css
   Farben aus der App (oberflaeche.md): Navy fuer Mensch, Amber fuer Entwurf, Teal fuer KI. Schrift Inter, self-hosted. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy-900: #0d1b2e;
  --navy-800: #14263f;
  --navy-600: #1f3a5f;
  --navy-100: #e6ecf5;
  --ink: #1a2333;
  --ink-muted: #55657a;
  --surface: #ffffff;
  --surface-muted: #f6f8fa;
  --line: #dde3ea;
  --amber-400: #fbbf24;
  --amber-100: #fef3c7;
  --amber-700: #b45309;
  --teal-600: #0f766e;
  --teal-100: #ccfbf1;
  --red-600: #b91c1c;
  --green-600: #15803d;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(13, 27, 46, 0.12);
  --maxw: 1160px;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
  font-feature-settings: "cv11", "ss01";
}
img, picture, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-900); }
h1, h2, h3 { color: var(--navy-900); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--ink-muted); max-width: 46ch; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy-900); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Kopf */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy-900); text-decoration: none; font-size: 1.15rem; }
.brand img { width: 34px; height: 34px; }
.menu { display: none; gap: 26px; align-items: center; margin: 0; padding: 0; list-style: none; }
.menu a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.menu a:hover { color: var(--navy-600); }
.actions { display: none; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-size: 1rem; line-height: 1.2; min-height: 44px; }
.btn-primary { background: var(--navy-900); color: #fff; }
.btn-primary:hover { background: var(--navy-600); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy-900); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy-600); }
.btn-lg { padding: 15px 26px; font-size: 1.05rem; }
.burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--navy-900); position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--navy-900); }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.mobile-menu { display: none; border-top: 1px solid var(--line); padding: 12px 0 18px; }
.mobile-menu[data-open="true"] { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mobile-menu a { display: block; padding: 12px 6px; font-weight: 600; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.mobile-menu .mobile-actions { display: grid; gap: 10px; margin-top: 12px; }
@media (min-width: 900px) {
  .menu, .actions { display: flex; }
  .burger, .mobile-menu { display: none !important; }
}

/* Hero */
.hero { padding: 56px 0 28px; background: linear-gradient(180deg, #ffffff 0%, var(--surface-muted) 100%); }
.hero-grid { display: grid; gap: 28px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700; color: var(--navy-600); background: var(--navy-100); border-radius: 999px; padding: 6px 12px; margin-bottom: 16px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 22px 0 10px; }
.hero-note { color: var(--ink-muted); font-size: 0.95rem; }
.shots { position: relative; margin-top: 28px; }
.shot { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; overflow: hidden; }
.shot-mobile { position: absolute; right: 0; bottom: -18px; width: 27%; min-width: 120px; border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; background: #fff; }
@media (min-width: 900px) {
  .hero { padding: 84px 0 48px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; }
  .shots { margin-top: 0; }
}

/* Abschnitte */
section { padding: 64px 0; }
section.alt { background: var(--surface-muted); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head .def { font-size: 1.05rem; color: var(--ink-muted); }
.steps { display: grid; gap: 18px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: var(--navy-900); color: #fff; font-weight: 800; margin-bottom: 12px; }
.tiles { display: grid; gap: 14px; margin-top: 34px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.tile h3 { font-size: 1.02rem; margin-bottom: 6px; }
.tile p { margin: 0; color: var(--ink-muted); font-size: 0.96rem; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(3, 1fr); } .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(3, 1fr); } }

.badge { display: inline-block; font-size: 0.78rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; letter-spacing: 0.02em; }
.badge-amber { background: var(--amber-400); color: var(--navy-900); }
.badge-teal { background: var(--teal-100); color: var(--teal-600); }
.badge-navy { background: var(--navy-100); color: var(--navy-900); }

/* Kanaele */
.channels { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.channel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 14px; display: flex; flex-direction: column; gap: 6px; }
.channel strong { color: var(--navy-900); }
.channel small { color: var(--ink-muted); line-height: 1.4; }
@media (min-width: 700px) { .channels { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .channels { grid-template-columns: repeat(4, 1fr); } }

/* Screenshots mit Bildtext */
.showcase { display: grid; gap: 48px; }
.show { display: grid; gap: 18px; align-items: center; }
.show figure { margin: 0; }
.show figcaption { margin-top: 10px; color: var(--ink-muted); font-size: 0.95rem; }
.show .text h3 { font-size: 1.35rem; }
@media (min-width: 900px) {
  .show { grid-template-columns: 1.3fr 1fr; gap: 40px; }
  .show.flip figure { order: 2; }
}

/* Datenschutz */
.facts { display: grid; gap: 14px; }
.fact { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--teal-600); border-radius: 12px; padding: 16px 18px; }
.fact h3 { font-size: 1.02rem; margin-bottom: 4px; }
.fact p { margin: 0; color: var(--ink-muted); font-size: 0.96rem; }
@media (min-width: 800px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.about { margin-top: 34px; background: var(--navy-900); color: #e6ecf5; border-radius: var(--radius); padding: 24px; }
.about h3 { color: #fff; }
.about dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; font-size: 0.97rem; }
.about dt { color: #aebbcf; } .about dd { margin: 0; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; color: var(--navy-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 800; color: var(--navy-600); }
.faq details[open] summary::after { content: "\2013"; }
.faq .answer { padding: 0 0 16px; color: var(--ink); }

/* Formular */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); max-width: 720px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field input[type="text"], .field input[type="email"], .field textarea {
  font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; width: 100%; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--navy-600); outline-offset: 1px; border-color: var(--navy-600); }
.field textarea { min-height: 96px; resize: vertical; }
.checks { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.97rem; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy-900); flex: none; }
.consent { font-size: 0.93rem; color: var(--ink-muted); }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-weight: 600; display: none; }
.form-msg[data-state="ok"] { display: block; background: #e7f6ec; color: var(--green-600); }
.form-msg[data-state="error"] { display: block; background: #fdecec; color: var(--red-600); }
@media (min-width: 700px) { .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } }

/* Fuss */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-muted); font-size: 0.93rem; }
.site-footer .row { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--ink-muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }

/* Rechtsseiten */
.legal { padding: 48px 0 72px; max-width: 760px; }
.legal h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.4em; }
.legal ul { padding-left: 1.2em; }
.notice { background: var(--amber-100); border: 1px solid var(--amber-400); border-radius: 10px; padding: 12px 14px; font-size: 0.95rem; }

/* Nachträge (html-validate: keine Inline-Styles) */
.fieldset-plain { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.legend-plain { font-weight: 700; font-size: 0.95rem; padding: 0; margin-bottom: 8px; }
.burger-link { font-size: 0.9rem; }
@media (min-width: 900px) { .burger-link { display: none; } }

/* Nachträge Layout-Messung 375 px (2026-10-21): kein horizontaler Überlauf, Formularelemente erben die Schriftgröße */
button, input, select, textarea { font: inherit; }
.channel, .tile, .fact, .step, .check, .field, .form-card { min-width: 0; overflow-wrap: anywhere; }
.check > span, .check { min-width: 0; }
.mobile-menu { background: #fff; }
h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); }
/* Grids mit minmax(0,1fr), Basis zuerst, dann die Stufen */
.hero-grid, .steps, .tiles, .facts, .two, .show, .showcase { grid-template-columns: minmax(0, 1fr); }
.channels, .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) {
  .channels, .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles, .two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 800px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .show { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}
@media (min-width: 1000px) {
  .channels { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.mobile-menu .mobile-actions .btn-primary { color: #fff; }
.mobile-menu .mobile-actions .btn { padding-left: 20px; }
section[id], .legal { scroll-margin-top: 76px; }
.mobile-menu { padding: 12px var(--gutter) 18px; }
button, input, select, textarea { font-size: max(16px, 1em); }
.lang { font-weight: 700; font-size: 0.9rem; color: var(--ink-muted); text-decoration: none; padding: 8px 10px; border-radius: 8px; border: 1.5px solid var(--line); min-height: 44px; display: inline-flex; align-items: center; }
.lang:hover { color: var(--navy-900); border-color: var(--navy-600); }
