/* Startseite kinnatics.com – Gestaltung
   Hub für Kunden im Stil einer CRM-Oberfläche: dunkle Seitenleiste mit den
   Bereichen, heller Arbeitsbereich mit Kennzahlen-Leiste und je Bereich einer
   Zeile weißer Karten (Symbolfeld, Name, Adresse, Zweck, Statusmarke, Knopf).
   Farbe trägt nur Bedeutung: Blau = Handlung, Grün/Rot = Zustand; die
   Symbolfelder nehmen die Farbe der jeweiligen App auf. Schrift: Inter (lokal).
   Keine Inline-Styles, kein JavaScript (CSP default-src 'none'; style-src 'self'). */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --nav: #0f1a30;
  --nav-aktiv: #1d2c4f;
  --nav-text: #c3cde0;
  --nav-leise: #8492af;
  --grund: #f3f5f9;
  --karte: #ffffff;
  --rand: #e1e6ee;
  --rand-stark: #cdd5e1;
  --text: #121a2a;
  --leise: #586376;
  --blau: #2459c7;
  --blau-tief: #1b469f;
  --ok: #157a45;
  --ok-feld: #e3f4ea;
  --ok-rand: #bfe2cd;
  --aus: #b3261e;
  --aus-feld: #fdecea;
  --aus-rand: #f3c5c0;
  --schrift: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font: 400 .9375rem/1.5 var(--schrift);
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
.icon { display: block; width: 20px; height: 20px; flex: none; }

.schale { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }

/* ------------------------------------------------------------ Seitenleiste */
.leiste {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  height: 100dvh;
  padding: 20px 14px;
  background: var(--nav);
  color: var(--nav-text);
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 2px 8px 22px;
  color: #fff;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -.022em;
  text-decoration: none;
}
.logo img { display: block; border-radius: 8px; }
.leiste nav { display: flex; flex-direction: column; gap: 2px; }
.leiste nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--nav-text);
  font-weight: 500;
  text-decoration: none;
}
.leiste nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.leiste nav a.aktiv { background: var(--nav-aktiv); color: #fff; }
.leiste a:focus-visible { outline: 2px solid #8fb2ff; outline-offset: 2px; }
.leiste .icon { width: 18px; height: 18px; opacity: .9; }
.zahl {
  margin-left: auto;
  min-width: 24px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #dfe6f4;
  font-size: .75rem;
  font-weight: 600;
  text-align: center;
}
.nav-titel { margin: 20px 10px 6px; color: var(--nav-leise); font-size: .75rem; font-weight: 600; letter-spacing: .01em; }

/* ------------------------------------------------------------ Arbeitsbereich */
.inhalt { width: 100%; max-width: 1180px; padding: clamp(18px, 2.8vw, 34px) clamp(16px, 3.2vw, 44px) 28px; }

.seitenkopf { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 24px; }
h1 { font-size: 1.625rem; font-weight: 700; line-height: 1.2; letter-spacing: -.024em; }
.unter { margin-top: 6px; max-width: 58ch; color: var(--leise); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 11px;
  border: 1px solid var(--ok-rand);
  border-radius: 999px;
  background: var(--ok-feld);
  color: var(--ok);
  font-size: .875rem;
  font-weight: 600;
}
.status::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: currentColor; }
.status.aus { border-color: var(--aus-rand); background: var(--aus-feld); color: var(--aus); }

.zahlen {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
  border: 1px solid var(--rand);
  border-radius: 12px;
  background: var(--karte);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.zahlen div { padding: 15px 20px 16px; }
.zahlen div + div { border-left: 1px solid var(--rand); }
.zahlen dt { color: var(--leise); font-size: .8125rem; font-weight: 500; }
.zahlen dd { margin-top: 2px; font-size: 1.5rem; font-weight: 700; line-height: 1.25; letter-spacing: -.022em; }
.zahlen .von { color: var(--leise); font-size: .9375rem; font-weight: 500; letter-spacing: 0; }

/* je Bereich eine Zeile: links die Überschrift, rechts die Karten */
.bereich {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 12px 28px;
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--rand);
  scroll-margin-top: 4px;
}
.bereich h2 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.012em; }
.bereich-kopf p { margin-top: 3px; color: var(--leise); font-size: .875rem; line-height: 1.4; }
.bereich:target h2 { color: var(--blau); }

.karten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.karte {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 16px;
  border: 1px solid var(--rand);
  border-radius: 12px;
  background: var(--karte);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  transition: border-color .14s ease-out, box-shadow .14s ease-out;
}
.karte:hover { border-color: #b9c7e6; box-shadow: 0 6px 18px -6px rgba(16, 24, 40, .16); }
.karte-kopf { display: flex; align-items: center; gap: 13px; }
.zeichen {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 10px;
  background: var(--feld);
  color: var(--strich);
}
.zeichen .icon { width: 22px; height: 22px; }
.titel { min-width: 0; }
.karte h3 { font-size: 1.0625rem; font-weight: 650; line-height: 1.25; letter-spacing: -.014em; }
.karte h3 a { color: inherit; text-decoration: none; }
.karte h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }   /* ganze Karte klickbar */
.karte h3 a:focus-visible { outline: none; }
.karte h3 a:focus-visible::after { outline: 2px solid var(--blau); outline-offset: 2px; }
.adresse { color: var(--leise); font-size: .8125rem; overflow-wrap: anywhere; }
.zweck { margin: 14px 0 16px; color: #364154; line-height: 1.45; }
.karte-fuss {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--rand);
}

.marke {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px 2px 8px;
  border-radius: 999px;
  background: #eef1f5;
  color: var(--leise);
  font-size: .8125rem;
  font-weight: 600;
}
.marke::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.marke.an { background: var(--ok-feld); color: var(--ok); }
.marke.aus { background: var(--aus-feld); color: var(--aus); }

.knopf {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--rand-stark);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color .14s ease-out, border-color .14s ease-out, color .14s ease-out;
}
.karte:hover .knopf, .karte:focus-within .knopf, .knopf.voll { border-color: var(--blau); background: var(--blau); color: #fff; }
.knopf.voll:hover { border-color: var(--blau-tief); background: var(--blau-tief); }
.knopf.voll:focus-visible { outline: 2px solid var(--blau); outline-offset: 2px; }

/* Symbolfelder in der Farbe der jeweiligen App */
.k-crypto  { --feld: #131c33; --strich: #ffb545; }
.k-tax     { --feld: #dcefd9; --strich: #176b3a; }
.k-notes   { --feld: #fbe6a8; --strich: #5a430a; }
.k-mail    { --feld: #e3e8ee; --strich: #33404e; }
.k-fitness { --feld: #0f1512; --strich: #2bd46c; }
.k-gacha   { --feld: #dfe9fb; --strich: #2459c7; }
.k-druck   { --feld: #fff3c2; --strich: #6b5300; }

.fuss { margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--rand); color: var(--leise); font-size: .8125rem; }

/* ------------------------------------------------------------ 404 */
.fehlt { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 20px; }
.fehlt-karte {
  width: min(100%, 440px);
  padding: 28px 28px 30px;
  border: 1px solid var(--rand);
  border-radius: 14px;
  background: var(--karte);
  box-shadow: 0 6px 18px -6px rgba(16, 24, 40, .12);
}
.fehlt .logo { padding: 0 0 22px; color: var(--text); }
.fehlt .knopf { margin-top: 20px; padding: 8px 16px; }

/* ------------------------------------------------------------ schmaler */
@media (max-width: 1080px) {
  .bereich { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .schale { grid-template-columns: minmax(0, 1fr); }
  .leiste { position: static; height: auto; padding: 14px 12px 10px; }
  .logo { padding: 0 6px 12px; }
  .leiste nav { flex-direction: row; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .leiste nav a { flex: none; padding: 7px 11px; white-space: nowrap; }
  .leiste nav .zahl { margin-left: 2px; }
  .nav-titel { display: none; }
}
@media (max-width: 620px) {
  .karten { grid-template-columns: minmax(0, 1fr); }
  .status { border-radius: 12px; align-items: baseline; }
  .zahlen div { padding: 12px 12px 13px; }
  .zahlen dd { font-size: 1.25rem; }
  .zahlen .von { font-size: .8125rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .karte, .knopf { transition: none; }
}

/* ============================================================ Zentrales Konto
   Seitenleiste: Nutzerblock; Formulare, Tafeln, Kontenliste; Anmeldeseite. */
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.leise { color: var(--leise); }

.leiste { display: flex; flex-direction: column; }
.leiste nav a.unterpunkt { padding-left: 22px; font-size: .875rem; color: var(--nav-leise); }
.leiste nav a.unterpunkt:hover { color: #fff; }
.ich {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 14px 6px 0;
  border-top: 1px solid rgba(255, 255, 255, .09);
}
.kuerzel {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: #2f6bea;
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
}
.kuerzel.hell { background: #e4ebfb; color: var(--blau-tief); }
.ich-name { min-width: 0; flex: 1; color: #fff; font-size: .875rem; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ich-name small { display: block; color: var(--nav-leise); font-size: .75rem; font-weight: 500; }
.ich form { margin: 0; }
.abmelden {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--nav-text);
  cursor: pointer;
}
.abmelden:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.abmelden:focus-visible { outline: 2px solid #8fb2ff; outline-offset: 2px; }

.pfad { margin-bottom: 2px; font-size: .8125rem; }
.pfad a { color: var(--blau); font-weight: 600; text-decoration: none; }
.pfad a:hover { text-decoration: underline; }
.seitenkopf .knopf { margin-top: 4px; }

.leer { margin-top: 24px; padding: 40px 24px; border: 1px dashed var(--rand-stark); border-radius: 12px; background: #fff; text-align: center; }
.leer h2 { font-size: 1.0625rem; }
.leer p { margin-top: 6px; color: var(--leise); }

/* Tafeln und Formulare */
.tafel {
  margin-top: 22px;
  padding: 22px 22px 24px;
  border: 1px solid var(--rand);
  border-radius: 12px;
  background: var(--karte);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.tafel h2 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.012em; }
.tafel h2.abstand { margin-top: 26px; }
.tafel .unter { font-size: .875rem; }
.tafel.ohne-rand { padding: 0; overflow: hidden; }
.spalten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.breit-f { max-width: 820px; }

.angaben { margin-top: 12px; }
.angaben div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--rand); }
.angaben div:last-child { border-bottom: 0; }
.angaben dt { color: var(--leise); }
.angaben dd { font-weight: 600; text-align: right; overflow-wrap: anywhere; }

.formular { display: flex; flex-direction: column; gap: 16px; }
.formular > .unter { margin-top: -8px; }
.tafel > .formular { margin-top: 16px; }
.formular > .knopf { align-self: flex-start; }
.zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.feld { display: flex; flex-direction: column; gap: 6px; font-size: .875rem; font-weight: 600; }
.feld-hilfe { color: var(--leise); font-weight: 400; }
.feld input, .feld select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--rand-stark);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: 400 .9375rem/1.4 var(--schrift);
}
.feld input:hover, .feld select:hover { border-color: #aab5c7; }
.feld input:focus-visible, .feld select:focus-visible { outline: 2px solid var(--blau); outline-offset: 1px; border-color: var(--blau); }
.haken { display: flex; align-items: center; gap: 9px; font-size: .875rem; color: #364154; }
.haken input, .wahl-karte input { width: 17px; height: 17px; flex: none; accent-color: var(--blau); }
.knopfzeile { display: flex; flex-wrap: wrap; gap: 10px; }
button.knopf { font-family: var(--schrift); cursor: pointer; }
.knopf.breit { width: 100%; padding: 10px 16px; font-size: .9375rem; text-align: center; }
a.knopf:hover { border-color: #aab5c7; }
a.knopf:focus-visible, button.knopf:focus-visible { outline: 2px solid var(--blau); outline-offset: 2px; }
.knopf.rot { border-color: var(--aus); background: var(--aus); color: #fff; }
.knopf.rot:hover { background: #8f1d17; border-color: #8f1d17; }
.gefahr { border-color: var(--aus-rand); }

.hinweis { margin-top: 18px; padding: 10px 14px; border: 1px solid; border-radius: 8px; font-size: .875rem; font-weight: 500; }
.hinweis.ok { border-color: var(--ok-rand); background: var(--ok-feld); color: var(--ok); }
.hinweis.fehler { border-color: var(--aus-rand); background: var(--aus-feld); color: var(--aus); }
.formular .hinweis, .anmeldung .hinweis { margin-top: 0; }

.gruppe { margin: 0; padding: 0; border: 0; min-width: 0; }
.gruppe legend { padding: 0; margin-bottom: 10px; font-size: .875rem; font-weight: 600; }
.wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.wahl-karte {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid var(--rand);
  border-radius: 10px;
  cursor: pointer;
}
.wahl-karte:hover { border-color: #aab5c7; }
.wahl-karte:has(input:checked) { border-color: var(--blau); background: #f3f7ff; }
.wahl-karte .zeichen { width: 36px; height: 36px; border-radius: 8px; }
.wahl-karte .zeichen .icon { width: 19px; height: 19px; }
.wahl-text { min-width: 0; line-height: 1.3; }
.wahl-text strong { display: block; font-size: .9375rem; font-weight: 600; }
.wahl-text small { color: var(--leise); font-size: .8125rem; overflow-wrap: anywhere; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips.eng { margin-top: 0; gap: 6px; }
.chips li { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 4px; border: 1px solid var(--rand); border-radius: 999px; background: #fff; font-size: .8125rem; font-weight: 500; white-space: nowrap; }
.zeichen.klein-z { width: 22px; height: 22px; border-radius: 50%; }
.zeichen.klein-z .icon { width: 13px; height: 13px; }

/* Kontenliste */
.liste { width: 100%; border-collapse: collapse; }
.liste th { padding: 11px 18px; border-bottom: 1px solid var(--rand); background: #f8f9fb; color: var(--leise); font-size: .8125rem; font-weight: 600; text-align: left; white-space: nowrap; }
.liste td { padding: 13px 18px; border-bottom: 1px solid var(--rand); vertical-align: middle; }
.liste tr:last-child td { border-bottom: 0; }
.liste tbody tr:hover { background: #fafbfd; }
.liste .rechts { text-align: right; white-space: nowrap; }
.person { display: flex; align-items: center; gap: 11px; }
.person strong { display: block; font-weight: 600; line-height: 1.3; }
.person small { display: block; color: var(--leise); font-size: .8125rem; white-space: nowrap; }

/* ------------------------------------------------------------ Anmeldeseite */
.tor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.tor-marke {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3.6vw, 48px);
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(47, 107, 234, .32) 0%, rgba(47, 107, 234, 0) 60%),
    radial-gradient(70% 60% at 0% 100%, rgba(36, 89, 199, .22) 0%, rgba(36, 89, 199, 0) 65%),
    var(--nav);
  color: var(--nav-text);
}
.tor-marke .logo { padding: 0; font-size: 1.3125rem; }
.tor-botschaft { margin: auto 0; padding: 40px 0; max-width: 30rem; }
.tor-satz { color: #fff; font-size: clamp(1.9rem, 3.3vw, 2.75rem); font-weight: 700; line-height: 1.1; letter-spacing: -.032em; text-wrap: balance; }
.tor-text { margin-top: 16px; max-width: 26rem; color: var(--nav-text); font-size: 1.0625rem; line-height: 1.5; }
.tor-felder { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px; margin-top: 40px; }
.tor-felder li {
  display: grid;
  place-items: center;
  height: 76px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  background: rgba(255, 255, 255, .05);
}
.tor-felder .zeichen { width: 48px; height: 48px; border-radius: 12px; }
.tor-felder .zeichen .icon { width: 24px; height: 24px; }
.tor-fuss { color: var(--nav-leise); font-size: .8125rem; }

.tor-form { display: grid; place-items: center; padding: clamp(20px, 4vw, 48px); background: var(--grund); }
.anmeldung {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(100%, 400px);
  padding: 32px 30px 28px;
  border: 1px solid var(--rand);
  border-radius: 16px;
  background: var(--karte);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 18px 40px -18px rgba(16, 24, 40, .18);
}
.anmeldung h1 { font-size: 1.5rem; }
.anmeldung .unter { margin-top: -10px; margin-bottom: 4px; font-size: .875rem; }
.anmeldung .feld input { padding: 10px 12px; }
.anmeldung .klein { margin-top: 2px; color: var(--leise); font-size: .8125rem; text-align: center; }
.nur-schmal { display: none; }
.anmeldung .logo { padding: 0 0 6px; color: var(--text); }

@media (max-width: 1080px) {
  .spalten { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .leiste { flex-direction: column; }
  .leiste nav a.unterpunkt { padding-left: 11px; }
  .ich { margin-top: 8px; padding: 10px 6px 2px; }
  .tor { grid-template-columns: minmax(0, 1fr); }
  .tor-marke { display: none; }
  .nur-schmal { display: flex; }
  .tor-form { align-items: start; padding-top: clamp(28px, 10vh, 90px); }
}
@media (max-width: 760px) {
  .zwei { grid-template-columns: minmax(0, 1fr); }
  /* Kontenliste als Kartenstapel */
  .liste thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .liste, .liste tbody, .liste tr, .liste td { display: block; }
  .liste tr { padding: 12px 16px; border-bottom: 1px solid var(--rand); }
  .liste tr:last-child { border-bottom: 0; }
  .liste td { padding: 5px 0; border: 0; }
  .liste td[data-titel]:not([data-titel="Konto"])::before { content: attr(data-titel); display: block; margin-bottom: 3px; color: var(--leise); font-size: .75rem; font-weight: 600; }
  .liste .rechts { text-align: left; padding-top: 10px; }
}
