/* KI-Zugang (ki.jservice.de) – Aussehen wie die neue Website jservice.de (Stand 12.11.2026, 0.3.0).
   AUSNAHME von der Hausregel 24.10.2026 (Farben, Ecken und Knöpfe aus design-system.css): Jörg hat am 12.11.2026
   entschieden, dass der Außenauftritt ki.jservice.de dem Website-Look folgt – Navy aus der Firmenpräsentation,
   Rubik, jSERVICE-Logo, Fuß mit ISO 9001 und TISAX. Vorlage: Uploads/20261026_jservice_de_neu/vorlagen/stil.css.
   Interne Haus-Apps bleiben bei design-system.css. CSP: nur eigene Dateien, keine Inline-Styles, keine fremden Schriften. */

@font-face { font-family: "Rubik"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/rubik-v21-latin-300.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/rubik-v21-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/rubik-v21-latin-700.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  /* Marke (Website/Präsentation) */
  --navy: #082341;
  --tiefblau: #0F3A66;
  --akzent: #1D74CC;
  --auf-navy: #dbe6f2;
  --auf-navy-link: #a9cdf0;
  /* Flächen und Schrift, hell */
  --grund: #F3F4F4;
  --karte: #ffffff;
  --kachel: #F3F4F4;
  --feld: #ffffff;
  --rand: #D9DEE3;
  --rand-stark: #c3ccd6;
  --schrift: #242C33;
  --gedaempft: #5c6770;
  --titel: #0F3A66;
  --link: #175DA5;
  --link-hover: #0F3A66;
  --primaer: #175DA5;
  --primaer-stark: #0F3A66;
  --primaer-schrift: #ffffff;
  --knopf-grund: #ffffff;
  --knopf-grund-hover: #e7edf4;
  --knopf-schrift: #082341;
  --zaehler: #082341;
  --gefahr: #b42318;
  --gefahr-grund: #fef3f2;
  --gut: #027a48;
  --gut-grund: #ecfdf3;
  --warnung: #b54708;
  --warnung-grund: #fff7e6;
  --hinweis-grund: #e7edf4;
  --code-grund: #f1f4f8;
  --kopf-grund: #ffffff;
  --fuss-grund: #082341;
  --radius: 8px;
  --radius-feld: 4px;
  --schatten: 0 10px 28px rgba(8, 35, 65, 0.10);
  --spalte: 820px;
  --familie: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Dunkel: Navy-Familie der Präsentation (#082341 / #0A223C / #142E4A), Akzent #1D74CC */
@media (prefers-color-scheme: dark) {
  :root {
    --grund: #061a30;
    --karte: #0b2747;
    --kachel: #082341;
    --feld: #08213d;
    --rand: #1b3a5e;
    --rand-stark: #2a4c75;
    --schrift: #e6ecf3;
    --gedaempft: #a9bbd0;
    --titel: #ffffff;
    --link: #8fc1f0;
    --link-hover: #ffffff;
    --primaer: #1D74CC;
    --primaer-stark: #3a8bdc;
    --primaer-schrift: #ffffff;
    --knopf-grund: #0b2747;
    --knopf-grund-hover: #143761;
    --knopf-schrift: #e6ecf3;
    --zaehler: #1D74CC;
    --gefahr: #f87171;
    --gefahr-grund: #2a0f0f;
    --gut: #4ade80;
    --gut-grund: #0f2418;
    --warnung: #fbbf24;
    --warnung-grund: #2a1f0a;
    --hinweis-grund: #143761;
    --code-grund: #08213d;
    --kopf-grund: #061a30;
    --fuss-grund: #041426;
    --schatten: 0 10px 28px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--schrift);
  font: 16px/1.55 var(--familie);
}
a { color: var(--link); }
a:hover { color: var(--link-hover); }
code, pre { font-family: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace; font-size: 0.9em; }
img { max-width: 100%; height: auto; }

.sprung { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; }
.sprung:focus { left: 8px; z-index: 30; }

/* Kopf: weiß wie die Website (dunkel: Navy mit weißem Logo) */
.kopf { position: sticky; top: 0; z-index: 20; background: var(--kopf-grund); border-bottom: 1px solid var(--rand); }
.kopf-in {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  max-width: 1200px; margin: 0 auto; padding: 10px 24px;
}
.marke { display: inline-flex; align-items: center; gap: 14px; color: var(--titel); text-decoration: none; }
.marke:hover { color: var(--titel); }
.marke-logo { display: block; height: 52px; width: auto; }
.marke-dunkel { display: none; }
.marke-text { padding-left: 14px; border-left: 1px solid var(--rand-stark); font-size: 1.12rem; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; }
@media (prefers-color-scheme: dark) {
  .marke-hell { display: none; }
  .marke-dunkel { display: block; height: 44px; }
}
.hauptnav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.hauptnav > a:not(.knopf) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--radius-feld);
  color: var(--schrift); text-decoration: none;
}
.hauptnav > a:not(.knopf):hover { color: var(--link); background: var(--hinweis-grund); }
.hauptnav > a[aria-current="page"] { color: var(--link); box-shadow: inset 0 -2px 0 var(--link); border-radius: 0; }
.nav-form { margin: 0; display: flex; }   /* sonst sitzt der Knopf auf der Grundlinie und tiefer als die Links */

/* Inhalt: Spalte 820 px; die Bühne der Startseite läuft über die volle Breite */
.inhalt { padding: 0 0 8px; }
.inhalt > * { width: min(var(--spalte), calc(100% - 32px)); margin-left: auto; margin-right: auto; }
.inhalt > :first-child { margin-top: 24px; }
.inhalt > .buehne { width: 100%; margin: 0 0 28px; }

h1, h2, h3 { -webkit-hyphens: auto; hyphens: auto; }
h1 { font-size: 1.7rem; font-weight: 400; color: var(--titel); margin: 0 0 12px; line-height: 1.2; letter-spacing: -0.01em; }
h2 { font-size: 1.35rem; font-weight: 400; color: var(--titel); margin: 0 0 12px; line-height: 1.25; }
h3 { font-size: 1.02rem; font-weight: 700; margin: 16px 0 4px; }
p { margin: 0 0 12px; }
strong { font-weight: 700; }
.gross { font-size: 1.08rem; }
.leise { color: var(--gedaempft); font-size: 0.95rem; }

/* Bühne (Startseite): Navy-Verlauf mit Keil wie der Hero der Website */
.buehne { position: relative; overflow: hidden; background: linear-gradient(115deg, var(--navy) 0%, var(--tiefblau) 100%); color: #fff; }
.buehne::before {
  content: ""; position: absolute; inset: 0; background: var(--akzent); opacity: 0.16;
  clip-path: polygon(0 0, 34% 0, 16% 100%, 0 100%); pointer-events: none;
}
.buehne-in { position: relative; max-width: var(--spalte); margin: 0 auto; padding: 56px 16px 52px; }
.buehne .kicker { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--auf-navy-link); }
.buehne h1 { color: #fff; font-size: clamp(30px, 4vw, 44px); margin: 0 0 16px; }
.buehne-text { max-width: 680px; font-size: 1.15rem; font-weight: 300; color: var(--auf-navy); }
.buehne-knoepfe { margin: 24px 0 0; }
.buehne-knoepfe .knopf + .knopf { margin-left: 8px; }
.buehne .knopf.haupt { background: #fff; border-color: #fff; color: var(--navy); }
.buehne .knopf.haupt:hover { background: #e7edf4; border-color: #e7edf4; color: var(--navy); }
.buehne .knopf:not(.haupt) { background: transparent; border-color: rgba(255, 255, 255, 0.65); color: #fff; }
.buehne .knopf:not(.haupt):hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.buehne .meldung-hinweis { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.3); }

.karte {
  background: var(--karte); border: 1px solid var(--rand); border-radius: var(--radius);
  padding: 22px; margin-bottom: 18px; box-shadow: var(--schatten);
}
.karte-gross { padding: 26px 24px; }
.karte-wichtig { border: 2px solid var(--primaer); }
.karte > :last-child { margin-bottom: 0; }

/* Kacheln „Datensouverän und sicher“: 2 × 2, am Handy untereinander */
.kacheln { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 18px 0; }
.kachel { padding: 18px; background: var(--kachel); border: 1px solid var(--rand); border-radius: var(--radius); }
.kachel h3 { margin: 12px 0 6px; color: var(--titel); }
.kachel p { margin: 0; font-size: 0.95rem; }
.kachel-symbol {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--karte); border: 1px solid var(--rand); color: var(--link);
}
.kachel-symbol svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.siegel-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 4px 0 18px; }
.siegel-zeile img, .zert img { height: 64px; width: auto; background: #fff; border-radius: 6px; padding: 6px; }

/* Knöpfe: Website-Stil (Blau #175DA5, weiß; dunkel Akzent #1D74CC); am Handy 44 px hoch */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px; border: 1px solid var(--rand-stark); border-radius: var(--radius-feld);
  background: var(--knopf-grund); color: var(--knopf-schrift); font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.knopf:hover { background: var(--knopf-grund-hover); color: var(--knopf-schrift); }
.knopf:focus-visible, input:focus-visible { outline: none; border-color: var(--primaer); box-shadow: 0 0 0 3px rgba(29, 116, 204, 0.28); }
.knopf.haupt { background: var(--primaer); border-color: var(--primaer); color: var(--primaer-schrift); }
.knopf.haupt:hover { background: var(--primaer-stark); border-color: var(--primaer-stark); color: var(--primaer-schrift); }
.knopf.gefahr { color: var(--gefahr); border-color: var(--gefahr); }
.knopf.gefahr:hover { background: var(--gefahr-grund); color: var(--gefahr); }
.knopf.gross { min-height: 48px; padding: 0 22px; }
.knopf.kopiert { color: var(--gut); border-color: var(--gut); }
.karte p .knopf + .knopf { margin-left: 8px; }

/* Formulare */
.formular { max-width: 560px; margin-left: auto; margin-right: auto; }
form label { display: block; font-weight: 700; margin: 14px 0 6px; }
form input[type="email"], form input[type="text"], form input[type="password"] {
  display: block; width: 100%; min-height: 44px; padding: 8px 12px; font: inherit; font-size: 16px;
  color: var(--schrift); background: var(--feld); border: 1px solid var(--rand-stark); border-radius: var(--radius-feld);
}
form .knopf[type="submit"] { margin-top: 18px; }
label.haken { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-top: 18px; }
label.haken input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; }
/* Lockfeld: für Menschen unsichtbar, für einfache Programme ein Feld wie jedes andere */
.lock { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Meldungen */
.meldung { border-radius: var(--radius-feld); padding: 12px 14px; margin: 0 0 16px; border: 1px solid transparent; }
.meldung-ok { background: var(--gut-grund); color: var(--gut); border-color: var(--gut); }
.meldung-fehler { background: var(--gefahr-grund); color: var(--gefahr); border-color: var(--gefahr); }
.meldung-warnung { background: var(--warnung-grund); color: var(--warnung); border-color: var(--warnung); }
.meldung-hinweis { background: var(--hinweis-grund); color: var(--schrift); border-color: var(--rand-stark); }
.meldung a { color: inherit; font-weight: 700; }

/* Tabellen (Zugangsdaten, Verbrauch) */
.tabelle { width: 100%; border-collapse: collapse; }
.tabelle th, .tabelle td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--rand); }
.tabelle tr:last-child th, .tabelle tr:last-child td { border-bottom: none; }
.tabelle th { width: 34%; font-weight: 700; color: var(--gedaempft); }
.tabelle.zahlen td { font-variant-numeric: tabular-nums; }

/* Kopierzeilen */
.kopierzeile { display: flex; gap: 8px; align-items: stretch; margin: 6px 0 10px; }
.kopiertext {
  flex: 1; min-width: 0; display: block; padding: 10px 12px; margin: 0;
  background: var(--code-grund); border: 1px solid var(--rand); border-radius: var(--radius-feld);
  overflow-wrap: anywhere; word-break: break-all; white-space: pre-wrap; user-select: all;
}
.kopierblock .kopiertext { white-space: pre-wrap; word-break: normal; overflow-wrap: anywhere; }
.kopierzeile .knopf { flex: none; align-self: flex-start; }
td .kopierzeile { margin: 0; }

/* Schritte „So geht es“: nummerierte Kacheln 2 × 2 wie die Schritte der Website */
ol.schritte { list-style: none; counter-reset: schritt; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; margin: 0; }
ol.schritte li {
  counter-increment: schritt; position: relative; margin: 0; padding: 16px 16px 16px 64px;
  background: var(--kachel); border: 1px solid var(--rand); border-radius: var(--radius);
}
ol.schritte li::before {
  content: counter(schritt); position: absolute; left: 16px; top: 14px; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--zaehler); color: #fff; font-weight: 700;
}

/* Fuß: Navy wie die Website, mit Zertifikaten */
.fuss { margin-top: 32px; background: var(--fuss-grund); color: var(--auf-navy); font-size: 0.92rem; }
.fuss-in { display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr; max-width: 1200px; margin: 0 auto; padding: 40px 24px 28px; }
.fuss h2 { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; }
.fuss p { margin: 0 0 10px; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: 6px; }
.fuss a { color: var(--auf-navy); text-decoration: none; }
.fuss a:hover { color: #fff; text-decoration: underline; }
.fuss-logo img { display: block; height: 48px; width: auto; }
.zert { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.fuss-unten { max-width: 1200px; margin: 0 auto; padding: 14px 24px 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); color: #9fb6cc; font-size: 0.85rem; }
.fuss-unten p { margin: 0; }

@media (max-width: 760px) {
  .fuss-in { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 560px) {
  .kopf-in { padding: 8px 12px; }
  .marke-logo { height: 40px; }
  .marke-dunkel { height: 36px; }
  .hauptnav { margin-left: 0; width: 100%; }
  .inhalt > * { width: calc(100% - 24px); }
  .inhalt > .buehne { width: 100%; }
  .buehne-in { padding: 40px 12px 38px; }
  .karte { padding: 16px; }
  .kacheln, ol.schritte { grid-template-columns: minmax(0, 1fr); }
  .tabelle th, .tabelle td { display: block; width: 100%; padding: 4px 0; border-bottom: none; }
  .tabelle tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--rand); }
  .kopierzeile { flex-direction: column; }
  .kopierzeile .knopf { align-self: stretch; }
  .karte p .knopf + .knopf, .buehne-knoepfe .knopf + .knopf { margin-left: 0; margin-top: 8px; }
  .karte p .knopf, .buehne-knoepfe .knopf { width: 100%; }
  .fuss-in { padding: 32px 16px 22px; }
  .fuss-unten { padding: 12px 16px 20px; }
}
