/* ==========================================================================
   greylo.de – gemeinsames Design für die Werkzeuge auf info.server.greylo.de
   (Deine Zugänge, Dienste & Status, Nutzerverwaltung)
   Farben, Schriften und Formen nach dem Corporate Design Manual 1.0,
   Aufbau wie greylo.de und die Support-Seite: helle Kopfleiste, Bühne mit Welle,
   dunkle Fußzeile. Farbschema über data-theme (gleicher Schlüssel wie greylo.de).
   ========================================================================== */

@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("schriften/SpaceGrotesk-Medium.ttf") format("truetype"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("schriften/SpaceGrotesk-Bold.ttf") format("truetype"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("schriften/IBMPlexSans-Regular.ttf") format("truetype"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("schriften/IBMPlexSans-Medium.ttf") format("truetype"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("schriften/IBMPlexSans-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("schriften/IBMPlexMono-Medium.ttf") format("truetype"); }

:root {
  --ink: #0F2436;
  --soft: #3D5568;
  --deep: #0E6BA8;
  --deep-dunkel: #0B5889;
  --aqua: #37B6D9;
  --aqua-hell: #7FD6EC;
  --mist: #EAF4F8;
  --paper: #FBFDFE;
  --coral: #F2705B;
  --coral-dunkel: #C9442E;
  --sun: #FFC857;
  --gruen: #2F9A68;

  --flaeche: #FFFFFF;
  --linie: #D6E6EE;
  --feldrand: #B9D0DC;
  --fehler: #B4412C;
  --link: var(--deep);
  --akzent: var(--deep);
  --schatten: 0 18px 44px -22px rgb(15 36 54 / 0.35);

  --kopf: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --text: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  color-scheme: light;
}

html[data-theme="dark"] {
  --ink: #E8F1F8;
  --soft: #A9BFCE;
  --mist: #16283A;
  --paper: #0C1826;
  --flaeche: #12233A;
  --linie: #1E3450;
  --feldrand: #34506B;
  --fehler: #FF9C8A;
  --link: var(--aqua-hell);
  --akzent: var(--aqua-hell);
  --gruen: #5CCB95;
  --schatten: 0 18px 44px -22px rgb(0 0 0 / 0.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--aqua); }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
code { font-family: var(--mono); font-size: 0.88em; padding: 0.05rem 0.35rem; background: var(--mist); border-radius: 6px; }

.rahmen { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

.sprung { position: absolute; left: -999rem; top: 0.5rem; z-index: 10; padding: 0.6rem 1rem; background: var(--flaeche); border-radius: 12px; }
.sprung:focus { left: 0.5rem; }

/* ---------- Kopfleiste ---------- */
.kopf { background: var(--paper); border-bottom: 1px solid var(--linie); }
.kopf-innen { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; min-height: 4rem; padding-block: 0.5rem; }
.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { display: block; height: 32px; width: auto; }
.logo-dunkel { display: none !important; }
html[data-theme="dark"] .logo-hell { display: none; }
html[data-theme="dark"] .logo-dunkel { display: block !important; }

.bereiche { display: flex; gap: 0.25rem; flex: 1 1 auto; min-width: 0; }
.bereich {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  font-weight: 500; font-size: 0.95rem; line-height: 1.3; white-space: nowrap;
  color: var(--soft); text-decoration: none;
  border-radius: 999px;
}
.bereich:hover { color: var(--ink); background: var(--mist); }
.bereich[aria-current] { color: var(--ink); background: var(--mist); box-shadow: inset 0 0 0 1.5px var(--linie); }
.vpn {
  padding: 0.02rem 0.38rem;
  font-family: var(--mono); font-weight: 500; font-size: 0.64rem; letter-spacing: 0.08em;
  color: var(--deep); border: 1.5px solid currentColor; border-radius: 6px;
}
html[data-theme="dark"] .vpn { color: var(--aqua-hell); }

.kopf-rechts { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.kopf-link {
  padding: 0.45rem 0.8rem;
  font-weight: 500; font-size: 0.95rem; white-space: nowrap;
  color: var(--ink); text-decoration: none; border-radius: 999px;
}
.kopf-link:hover { background: var(--mist); }
.thema-knopf {
  display: inline-grid; place-items: center;
  width: 2.5rem; height: 2.5rem; padding: 0;
  color: var(--ink); background: transparent; border: 0; border-radius: 999px; cursor: pointer;
}
.thema-knopf:hover { background: var(--mist); }
.thema-knopf svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.thema-knopf .sonne { display: none; }
html[data-theme="dark"] .thema-knopf .sonne { display: block; }
html[data-theme="dark"] .thema-knopf .mond { display: none; }

/* ---------- Bühne ---------- */
.buehne {
  position: relative;
  padding: 2.75rem 0 6.75rem;
  color: #FFFFFF;
  background: linear-gradient(160deg, #0F2436 0%, #123A5C 50%, #0E6BA8 100%);
  overflow: hidden;
}
.overline {
  margin: 0 0 0.6rem;
  font-family: var(--mono); font-weight: 500; font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase; overflow-wrap: anywhere;
  color: var(--aqua-hell);
}
.overline a { color: inherit; text-decoration: none; }
.overline a:hover { text-decoration: underline; }
h1 {
  margin: 0;
  font-family: var(--kopf); font-weight: 700;
  font-size: clamp(2.3rem, 6.5vw, 3.6rem); line-height: 1.04; letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
h1 .anzahl { font-size: 0.4em; color: var(--aqua-hell); vertical-align: 0.35em; margin-left: 0.3rem; }
.einstieg { max-width: 40rem; margin: 1rem 0 0; font-size: 1.12rem; line-height: 1.5; color: #D5E6F1; }
.einstieg strong { font-weight: 600; color: #FFFFFF; }
.buehne-aktionen { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.buehne-welle {
  position: absolute; left: 0; bottom: -1px;
  width: max(100%, 1100px); height: 3.5rem;
  fill: var(--paper);
}

/* ---------- Inhalt ---------- */
.inhalt { flex: 1 0 auto; padding-top: 1.75rem; padding-bottom: 4.5rem; }
section + section { margin-top: 2.75rem; }
h2 {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem;
  margin: 0 0 0.9rem;
  font-family: var(--kopf); font-weight: 700; font-size: 1.45rem; line-height: 1.2; letter-spacing: -0.015em;
}
h3 { margin: 0 0 0.6rem; font-family: var(--kopf); font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.anzahl { font-family: var(--mono); font-weight: 500; font-size: 0.95rem; letter-spacing: 0; color: var(--soft); }
.vorweg { margin: -0.4rem 0 0.9rem; font-size: 0.97rem; color: var(--soft); max-width: 70ch; }
.hinweis, .leer { margin: 0.9rem 0 0; font-size: 0.95rem; color: var(--soft); }
.klein { font-size: 0.86rem; line-height: 1.45; color: var(--soft); }

/* ---------- Knöpfe (Pillen wie auf greylo.de) ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.7rem 1.4rem;
  font-family: var(--kopf); font-weight: 500; font-size: 1rem; line-height: 1.2;
  color: #FFFFFF; text-decoration: none;
  background: var(--deep); border: 1.5px solid var(--deep); border-radius: 999px;
  cursor: pointer; transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}
.knopf:hover { background: var(--deep-dunkel); border-color: var(--deep-dunkel); transform: translateY(-1px); }
.knopf:active { transform: none; }
.knopf[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.knopf-leise { color: var(--ink); background: transparent; border-color: var(--feldrand); }
.knopf-leise:hover { color: var(--ink); background: var(--mist); border-color: var(--deep); }
.knopf-gefahr { background: var(--coral-dunkel); border-color: var(--coral-dunkel); }
.knopf-gefahr:hover { background: #A83521; border-color: #A83521; }
.knopf-klein { padding: 0.4rem 0.95rem; font-size: 0.9rem; }
/* auf der dunklen Bühne */
.buehne .knopf { color: #0F2436; background: #FFFFFF; border-color: #FFFFFF; }
.buehne .knopf:hover { color: #0F2436; }
.buehne .knopf:hover { background: #EAF4F8; border-color: #EAF4F8; }
.buehne .knopf-leise { color: #FFFFFF; background: transparent; border-color: rgb(255 255 255 / 0.45); }
.buehne .knopf-leise:hover { background: rgb(255 255 255 / 0.12); border-color: #FFFFFF; }

/* ---------- Karten, Meldungen ---------- */
.karte {
  padding: 1.5rem 1.5rem 1.6rem;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 20px;
  box-shadow: var(--schatten);
}
.karte + .karte, .formular + .karte { margin-top: 1.25rem; }
.karte > h2 { font-size: 1.25rem; }
.karte-leise { background: transparent; box-shadow: none; border-style: dashed; }
.karte-gefahr { border-color: rgb(242 112 91 / 0.55); }

.meldung {
  margin: 0 0 1.5rem;
  padding: 0.9rem 1.1rem;
  font-size: 0.97rem; color: var(--ink);
  background: rgb(242 112 91 / 0.12);
  border-left: 4px solid var(--coral);
  border-radius: 12px;
}
.meldung-ok { background: rgb(14 107 168 / 0.09); border-left-color: var(--deep); }
html[data-theme="dark"] .meldung-ok { background: rgb(127 214 236 / 0.1); border-left-color: var(--aqua-hell); }

/* ---------- Formularfelder ---------- */
input[type="text"], input[type="email"], input[type="search"], input[type="date"], input[type="time"], input[type="number"], input[type="url"], select, textarea {
  display: block; width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit; color: var(--ink);
  background: var(--flaeche);
  border: 1.5px solid var(--feldrand); border-radius: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--deep); box-shadow: 0 0 0 4px rgb(55 182 217 / 0.28); }
input::placeholder { color: var(--soft); opacity: 0.7; }
select {
  appearance: none; padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5 6 6l4.5-4.5' fill='none' stroke='%233D5568' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.85rem center; background-size: 0.7rem;
}
html[data-theme="dark"] select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5 6 6l4.5-4.5' fill='none' stroke='%23A9BFCE' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
input[type="checkbox"] { accent-color: var(--deep); }

.suche { display: block; }
.werkzeuge { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin: 0 0 1.75rem; }
.werkzeuge .suche { flex: 1 1 18rem; }

/* ---------- Tabelle ---------- */
.tabelle-rahmen { overflow-x: auto; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 20px; box-shadow: var(--schatten); }
.tabelle { width: 100%; min-width: 620px; border-collapse: collapse; }
.tabelle th, .tabelle td { padding: 0.85rem 1.1rem; text-align: left; vertical-align: top; border-top: 1px solid var(--linie); }
.tabelle thead th {
  border-top: 0;
  font-family: var(--mono); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--soft); background: var(--mist);
}
.tabelle tbody th { font-weight: 400; }
.tabelle .schmal { width: 1%; white-space: nowrap; text-align: right; }

/* ---------- Marken / Chips ---------- */
.chip {
  display: inline-block; margin: 0.12rem 0.25rem 0.12rem 0;
  padding: 0.12rem 0.65rem;
  font-size: 0.82rem; line-height: 1.5; color: var(--ink);
  background: var(--mist); border-radius: 999px;
}

/* ---------- Fußzeile ---------- */
.fuss { padding: 1.6rem 0; font-size: 0.9rem; color: #B9CEDD; background: #0F2436; }
.fuss-innen { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }
.fuss a { color: #DCEAF4; text-decoration: none; }
.fuss a:hover { text-decoration: underline; }
.fuss-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 900px) {
  .bereiche { order: 3; flex-basis: 100%; overflow-x: auto; margin: 0 -1.25rem; padding: 0.15rem 1.25rem 0.35rem; scrollbar-width: none; }
  .bereiche::-webkit-scrollbar { display: none; }
}
.kurz { display: none; }
/* Tabellen, die auf dem Handy zu Karten werden: <table class="tabelle stapeln"> */
@media (max-width: 700px) {
  .tabelle-rahmen:has(.stapeln) { overflow: visible; }
  .tabelle.stapeln { min-width: 0; }
  .tabelle.stapeln thead { display: none; }
  .tabelle.stapeln tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.35rem 0.75rem; padding: 0.9rem 1.1rem; border-top: 1px solid var(--linie); }
  .tabelle.stapeln tbody tr:first-child { border-top: 0; }
  .tabelle.stapeln th, .tabelle.stapeln td { display: block; padding: 0; border: 0; text-align: left; }
  .tabelle.stapeln tr > :first-child { grid-column: 1; }
  .tabelle.stapeln tr > :not(:first-child):not(.schmal) { grid-column: 1 / -1; }
  .tabelle.stapeln .schmal { grid-column: 2; grid-row: 1; width: auto; text-align: right; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .lang { display: none; }
  .bereich .vpn { display: none; }
  .kurz { display: inline; }
  .kopf-innen { gap: 0.35rem 0.75rem; }
  .logo img { height: 28px; }
  .kopf-link { padding: 0.4rem 0.55rem; font-size: 0.88rem; }
  .buehne { padding: 2rem 0 6rem; }
  .einstieg { font-size: 1.04rem; }
  .karte { padding: 1.15rem; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
