/* EA24 Kundenportal - im Stil des Europe-Automotive-Logos (Schwarz, gebuerstetes Silber, Slab-Serif). Kennzeichen: ktPortalStil */

@font-face { font-family: "EA Slab"; font-weight: 400; font-display: swap;
  src: url("fonts/roboto-slab-latin-400-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EA Slab"; font-weight: 700; font-display: swap;
  src: url("fonts/roboto-slab-latin-700-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EA Slab"; font-weight: 400; font-display: swap;
  src: url("fonts/roboto-slab-latin-ext-400-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EA Slab"; font-weight: 700; font-display: swap;
  src: url("fonts/roboto-slab-latin-ext-700-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --schwarz: #0c0b0c;
  --flaeche: #151416;
  --flaeche-2: #1c1b1d;
  --linie: #2c2b2e;
  --linie-hell: #3a393c;
  --silber: #a8aaa9;
  --silber-hell: #d9dbda;
  --text: #e4e5e5;
  --leise: #8f9191;
  --gut: #7fc79a;      --gut-grund: #16261c;
  --info: #8fb6e0;     --info-grund: #15202c;
  --warn: #e3c16f;     --warn-grund: #2a2414;
  --fehler: #ef9a8f;   --fehler-grund: #2e1715;
  --grau: #9a9c9c;     --grau-grund: #222124;
  --rund: 6px;
  --slab: "EA Slab", "Roboto Slab", Rockwell, "Courier New", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { background: var(--schwarz); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 15px/1.55 var(--sans); color: var(--text);
  background: radial-gradient(1200px 500px at 70% -10%, #1f1e21 0%, transparent 60%), var(--schwarz);
}
a { color: var(--silber-hell); text-decoration-color: var(--linie-hell); text-underline-offset: 3px; }
a:hover { color: #fff; text-decoration-color: var(--silber); }
:focus-visible { outline: 2px solid var(--silber-hell); outline-offset: 2px; }

/* Kopf */
.kopf { border-bottom: 1px solid var(--linie); background: rgba(12, 11, 12, .92); }
.kopf-innen { max-width: 1180px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.marke img { display: block; height: 46px; width: auto; }
.portalname {
  font-family: var(--slab); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 13px;
  color: var(--silber); border-left: 1px solid var(--linie-hell); padding-left: 18px;
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a, .nav .link {
  font-family: var(--slab); font-size: 14px; letter-spacing: .03em; color: var(--silber);
  text-decoration: none; padding: 7px 12px; border-radius: var(--rund); border: 1px solid transparent; background: none; cursor: pointer;
}
.nav a:hover, .nav .link:hover { color: #fff; border-color: var(--linie-hell); }
.nav a.aktiv { color: var(--schwarz); background: linear-gradient(180deg, var(--silber-hell), var(--silber)); }
.nav .sprache { border-color: var(--linie-hell); font-weight: 700; font-size: 12px; letter-spacing: .1em; }
.inline { display: inline; margin: 0; }
.kunde { border-top: 1px solid var(--linie); background: var(--flaeche); color: var(--leise); font-size: 13px; }
.kunde .kopf-innen { padding-top: 7px; padding-bottom: 7px; }
.kunde b { color: var(--text); font-weight: 600; }

/* Inhalt */
.inhalt { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 20px 48px; }
h1, h2 { font-family: var(--slab); font-weight: 700; letter-spacing: .02em; margin: 0 0 14px; }
h1 {
  font-size: 26px; text-transform: uppercase; letter-spacing: .06em;
  background: linear-gradient(180deg, #f2f3f3 0%, var(--silber-hell) 45%, var(--silber) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h2 { font-size: 17px; color: var(--silber-hell); text-transform: uppercase; letter-spacing: .08em; }
.titelzeile { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.titelzeile h1 { margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.aktionen { display: flex; gap: 10px; flex-wrap: wrap; }

.karte {
  background: linear-gradient(180deg, var(--flaeche-2), var(--flaeche));
  border: 1px solid var(--linie); border-radius: var(--rund); padding: 22px; margin-bottom: 18px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px rgba(0, 0, 0, .35);
}
.karte.schmal { max-width: 520px; margin-left: auto; margin-right: auto; }
.tabelle-karte { padding: 6px 0; overflow-x: auto; }
.tabelle-karte > p { padding: 0 22px; }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }

.leise { color: var(--leise); }
.klein { font-size: 13px; }
.stark { font-weight: 600; }
.mono { font-family: var(--mono); font-size: 13.5px; }
.umbruch { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Tabellen */
.tabelle { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabelle th, .tabelle td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle th {
  font-family: var(--slab); font-weight: 400; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--silber); white-space: nowrap; background: rgba(255, 255, 255, .02);
}
.tabelle tbody tr:hover { background: rgba(255, 255, 255, .025); }
.tabelle tfoot td { border-bottom: 0; border-top: 1px solid var(--linie-hell); }
.tabelle td:first-child, .tabelle th:first-child { padding-left: 22px; }
.tabelle td:last-child, .tabelle th:last-child { padding-right: 22px; }
.tabelle td.mono { white-space: nowrap; }
.scroll { overflow-x: auto; }
.karte { min-width: 0; }
.zahl { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pakete-zelle a { display: inline-block; margin-right: 6px; }

dl.daten { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
dl.daten dt { color: var(--leise); font-size: 13px; padding-top: 1px; }
dl.daten dd { margin: 0; }
ul.pakete { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

/* Status */
.marke-status {
  display: inline-block; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .02em;
  padding: 3px 9px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; text-transform: none;
  -webkit-text-fill-color: currentColor;
}
.marke-status.gut { color: var(--gut); background: var(--gut-grund); }
.marke-status.info { color: var(--info); background: var(--info-grund); }
.marke-status.warn { color: var(--warn); background: var(--warn-grund); }
.marke-status.grau { color: var(--grau); background: var(--grau-grund); }
.marke-status.neutral { color: var(--silber-hell); background: var(--flaeche-2); }

.hinweis { padding: 11px 14px; border-radius: var(--rund); margin: 0 0 16px; border: 1px solid; font-size: 14px; }
.hinweis.gut { color: var(--gut); background: var(--gut-grund); }
.hinweis.info { color: var(--info); background: var(--info-grund); }
.hinweis.warn { color: var(--warn); background: var(--warn-grund); }
.hinweis.fehler { color: var(--fehler); background: var(--fehler-grund); }
.antwort { margin-top: 8px; padding: 8px 10px; border-left: 2px solid var(--silber); background: rgba(255, 255, 255, .03); font-size: 13.5px; }

/* Formulare */
.formular { display: grid; gap: 16px; }
.formular label { display: grid; gap: 6px; font-size: 13px; color: var(--silber); }
fieldset { border: 1px solid var(--linie); border-radius: var(--rund); padding: 14px 16px; margin: 0; min-width: 0; }
legend { font-family: var(--slab); color: var(--silber-hell); padding: 0 6px; font-size: 14px; }
input[type=email], input[type=text], input[type=search], input[type=number], textarea, select {
  font: inherit; color: var(--text); background: var(--schwarz); border: 1px solid var(--linie-hell);
  border-radius: var(--rund); padding: 9px 11px; width: 100%;
}
input:focus, textarea:focus, select:focus { border-color: var(--silber); outline: none; box-shadow: 0 0 0 3px rgba(217, 219, 218, .12); }
input[type=file] { color: var(--leise); font-size: 14px; }
input[type=file]::file-selector-button {
  font: inherit; margin-right: 12px; padding: 7px 12px; border-radius: var(--rund); border: 1px solid var(--linie-hell);
  background: var(--flaeche-2); color: var(--text); cursor: pointer;
}
.code-feld { font-family: var(--mono); font-size: 24px !important; letter-spacing: .35em; text-align: center; }
.menge-feld { width: 90px !important; text-align: right; }
.wahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.wahl-feld { display: flex !important; align-items: center; gap: 10px !important; padding: 10px 12px; border: 1px solid var(--linie); border-radius: var(--rund); color: var(--text) !important; font-size: 14px !important; cursor: pointer; }
.wahl-feld:hover { border-color: var(--linie-hell); }
.wahl-feld input { accent-color: var(--silber-hell); }

.filter { display: flex; gap: 8px; flex-wrap: wrap; }
.filter input[type=search] { width: 300px; max-width: 100%; }
.filter select { width: auto; }

.knopf {
  display: inline-block; font-family: var(--slab); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--schwarz); text-decoration: none; text-align: center; cursor: pointer;
  padding: 11px 20px; border-radius: var(--rund); border: 1px solid #f2f3f3;
  background: linear-gradient(180deg, #f4f5f5 0%, var(--silber-hell) 40%, var(--silber) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 4px 14px rgba(0, 0, 0, .4);
}
.knopf:hover { color: var(--schwarz); filter: brightness(1.06); }
.knopf.klein { padding: 8px 14px; font-size: 12.5px; }
.knopf.zweit { color: var(--silber-hell); background: transparent; border-color: var(--linie-hell); box-shadow: none; }
.knopf.zweit:hover { color: #fff; border-color: var(--silber); }

/* Fuss */
.fuss { border-top: 1px solid var(--linie); color: var(--leise); font-size: 12.5px; padding: 18px 20px; text-align: center; display: grid; gap: 4px; }
.fuss a { color: var(--leise); }

@media (max-width: 640px) {
  .nav { margin-left: 0; width: 100%; }
  .kunde .kopf-innen { display: block; }
  .portalname { display: none; }
  .marke img { height: 38px; }
  .inhalt { padding: 18px 12px 36px; }
  .karte { padding: 16px; }
  h1 { font-size: 21px; }
  .tabelle th, .tabelle td { padding: 8px 10px; }
}
