/* kinux — geteilte CSS fuer Nebenseiten (Impressum/Datenschutz/AGB) + Auth/Start.
   Dunkel, ruhig, markenkonsistent. Eigenstaendig (haengt NICHT an grob.css).
   Tokens identisch zur Hauptseite: Akzent = Eis #7AD4FF auf #070A12, IBM Plex. */

:root {
  --bg: #070A12;
  --surface: #0F1422;
  --surface-2: #131A2C;
  --border: #1C2436;
  --ink: #F2F6FC;
  --ink-2: #C7D2E5;
  --muted: #9AA7BD;
  --accent: #7AD4FF;
  --accent-ink: #03212E;
  --accent-hover: #A4E2FF;
  --maxw: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Kopfzeile ---------- */
.kx-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 48px;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 10, 18, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.kx-logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
/* Marken-Logo IDENTISCH zur Startseite: gecroppte kinux-logo-weiss.png */
.logo-crop { position: relative; width: 48px; height: 52px; overflow: hidden; flex: none; display: block; }
.logo-crop img { position: absolute; width: 93.8px; height: 93.8px; left: -22.2px; top: -21.7px; max-width: none; }
.kx-header-right { display: flex; align-items: center; gap: 26px; }
.kx-nav { display: flex; gap: 26px; }
.kx-nav a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .2s ease, transform .15s ease; }
.kx-nav a:hover { color: var(--ink); }
.kx-nav a:active { transform: translateY(1px); }
.kx-actions { display: flex; align-items: center; gap: 16px; }

/* ---------- Schaltflaechen ---------- */
.kx-btn {
  display: inline-block;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: 10px;
  padding: 11px 22px;
  border: 0;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease, border-color .2s ease;
  font-family: inherit;
}
.kx-btn--primary { background: var(--accent); color: var(--accent-ink); }
.kx-btn--primary:hover { background: var(--accent-hover); }
.kx-btn--ghost { background: transparent; color: var(--ink); border: 1px solid rgba(255,255,255,0.2); }
.kx-btn--ghost:hover { border-color: rgba(255,255,255,0.4); }
.kx-btn:active { transform: translateY(1px); }
.kx-btn--block { display: block; width: 100%; text-align: center; padding: 14px 22px; font-size: 15.5px; }
.kx-link-ghost { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .2s ease, transform .15s ease; }
.kx-link-ghost:hover { color: var(--ink); }
.kx-link-ghost:active { transform: translateY(1px); }

/* ---------- Lese-Bereich (Nebenseiten) ---------- */
.kx-main { flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 72px 24px 110px; }
/* Rueckweg — GHOST-BUTTON (P2c, Owner-Kritik «winzige Links sind kaum
   sichtbar»): sichtbarer Rahmen + Padding + Radius, Hover-Aufhellung —
   gleiche Formensprache wie .kx-btn--ghost. Chevron bleibt (::before). */
.kx-zurueck { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500; margin-bottom: 30px; padding: 9px 16px; border: 1px solid rgba(255,255,255,0.2); border-radius: 10px; background: rgba(255,255,255,0.02); transition: color .2s ease, border-color .2s ease, background .2s ease, transform .15s ease; }
.kx-zurueck:hover { color: var(--ink); border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.05); }
.kx-zurueck:active { transform: translateY(1px); }
.kx-zurueck::before { content: ''; width: 7px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); display: inline-block; transition: transform .2s ease; }
.kx-zurueck:hover::before { transform: rotate(45deg) translate(2px, 2px); }
.kx-h1 { margin: 0 0 10px; font-size: clamp(30px, 3.4vw, 42px); font-weight: 600; letter-spacing: -0.022em; line-height: 1.1; text-wrap: balance; }
.kx-meta { margin: 0 0 44px; font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--muted); }
.kx-main h2 { margin: 46px 0 14px; font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.kx-main h3 { margin: 30px 0 10px; font-size: 17px; font-weight: 600; }
/* erstes h2 direkt nach dem Entwurf-Hinweis: gleiches Einstiegsmass wie auf den Seiten mit Intro-Absatz */
.kx-entwurf + h2 { margin-top: 30px; }
.kx-main p { margin: 0 0 16px; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.kx-main ul { margin: 0 0 16px; padding-left: 0; list-style: none; }
.kx-main li { position: relative; padding-left: 22px; margin-bottom: 10px; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.kx-main li::before { content: ''; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.kx-main a:not(.kx-btn):not(.kx-zurueck) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.kx-main strong { color: var(--ink); font-weight: 600; }
.kx-dl { margin: 0 0 16px; }
.kx-dl dt { color: var(--ink); font-weight: 600; font-size: 15px; margin-top: 18px; }
.kx-dl dd { margin: 4px 0 0; color: var(--ink-2); font-size: 16px; }
.kx-dl dd > :last-child { margin-bottom: 0; }

/* Platzhalter-Markierung (Owner fuellt) */
.kx-todo {
  border: 1px dashed rgba(122, 212, 255, 0.4);
  background: rgba(122, 212, 255, 0.05);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 16px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.kx-todo b { display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; color: #D9B36A; margin-right: 8px; }

/* Entwurf-Hinweis (vorlaeufiger Stand, noch nicht live) */
.kx-entwurf { border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 16px 18px; margin: 0 0 28px; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.kx-entwurf b { display: block; margin-bottom: 6px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; color: #D9B36A; }

/* (Auth/Start-Styles entfernt — start.html/anmelden.html nutzen jetzt _internal/onboarding.css) */

/* ---------- Fusszeile ---------- */
.kx-footer { background: #070A12; border-top: 1px solid var(--border); color: var(--muted); padding: 64px 48px 40px; }
.kx-footer-inner { max-width: 1060px; margin: 0 auto; }
.kx-footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 56px; padding-bottom: 52px; }
.kx-footer .marke { display: inline-flex; align-items: center; text-decoration: none; }
.kx-footer .marke-text { margin: 16px 0 0; font-size: 14px; line-height: 1.6; max-width: 280px; color: var(--muted); }
.kx-footer-nav { display: flex; gap: 72px; }
.kx-footer-grp { display: flex; flex-direction: column; gap: 11px; }
.kx-footer-grp span { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.kx-footer-grp a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .2s ease, transform .15s ease; }
.kx-footer-grp a:hover { color: var(--ink); }
.kx-footer-grp a:active { transform: translateY(1px); }
.kx-footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 26px; border-top: 1px solid var(--border); font-size: 12.5px; color: #5B6880; }
.kx-footer-bottom .rechts { display: flex; gap: 26px; }
.kx-footer-bottom a { color: #5B6880; text-decoration: none; transition: color .2s ease, transform .15s ease; }
.kx-footer-bottom a:hover { color: var(--muted); }
.kx-footer-bottom a:active { transform: translateY(1px); }

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .kx-header { padding: 14px 20px; }
  .kx-nav { display: none; }
  .kx-footer { padding: 48px 22px 36px; }
  .kx-footer-top { flex-direction: column; gap: 36px; }
  .kx-footer-nav { gap: 44px; flex-wrap: wrap; }
  .kx-footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  /* Mobile-Fix (F1): Bottom-Rechtszeile trägt jetzt 4 Links (inkl.
     Cookie-Einstellungen) → ohne Umbruch Overflow auf 375px. */
  .kx-footer-bottom .rechts { flex-wrap: wrap; row-gap: 6px; }
  /* Grössere Touch-Targets für Fusszeilen-Links auf Mobile (Owner UI7). */
  .kx-footer-grp a, .kx-footer-bottom .rechts a { display: inline-block; padding: 8px 0; }
  .kx-main { padding: 52px 22px 80px; }
  .kx-main h2 { margin-top: 40px; font-size: 21px; }
}
@media (max-width: 460px) {
  .kx-actions .kx-link-ghost { display: none; }
  .kx-todo, .kx-entwurf { padding: 13px 14px; }
  .kx-main { padding: 48px 18px 72px; }
  .kx-main h2 { font-size: 20px; }
  .kx-main h3 { font-size: 16px; }
}

/* ---------- Bewegung respektieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .kx-btn,
  .kx-link-ghost,
  .kx-zurueck,
  .kx-zurueck::before,
  .kx-nav a,
  .kx-footer-grp a,
  .kx-footer-bottom a { transition: none; }
  .kx-btn:active,
  .kx-link-ghost:active,
  .kx-zurueck:active,
  .kx-nav a:active,
  .kx-footer-grp a:active,
  .kx-footer-bottom a:active,
  .kx-zurueck:hover::before { transform: none; }
}
