:root {
  --navy: #0f2a43;
  --navy-mittel: #173d5d;
  --tuerkis: #19b3ad;
  --tuerkis-hell: #e4f7f5;
  --weiss: #ffffff;
  --flaeche: #f3f6f8;
  --text: #17283a;
  --grau: #68798a;
  --linie: #dce4ea;
  --rot: #a9323c;
  --rot-hell: #fdebed;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--flaeche); }
body { margin: 0; color: var(--text); background: var(--flaeche); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.app-rahmen { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.seitenleiste { position: sticky; top: 0; height: 100vh; padding: 28px 18px 22px; display: flex; flex-direction: column; color: var(--weiss); background: var(--navy); }
.marke { padding: 0 10px 28px; display: flex; align-items: center; gap: 13px; border-bottom: 1px solid rgba(255, 255, 255, .13); }
.markenlogo { width: 56px; height: auto; display: block; padding: 5px; background: var(--weiss); border-radius: 10px; }
.markenpunkt { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; color: var(--navy); background: var(--tuerkis); border-radius: 12px; font-size: 11px; font-weight: 850; letter-spacing: .04em; }
.marke strong { color: var(--weiss); font-size: 17px; letter-spacing: -.01em; }

.reiternavigation { margin-top: 28px; display: grid; gap: 7px; }
.reiternavigation a { min-height: 48px; padding: 11px 13px; display: flex; align-items: center; gap: 11px; color: rgba(255, 255, 255, .76); border-radius: 10px; font-weight: 680; }
.reiternavigation a > span { color: rgba(255, 255, 255, .37); font-size: 10px; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.reiternavigation a:hover { color: var(--weiss); background: rgba(255, 255, 255, .07); }
.reiternavigation a.aktiv { color: var(--weiss); background: var(--navy-mittel); box-shadow: inset 3px 0 0 var(--tuerkis); }
.reiternavigation a.aktiv > span { color: var(--tuerkis); }

.benutzerbereich { margin-top: auto; padding: 20px 10px 0; border-top: 1px solid rgba(255, 255, 255, .13); }
.benutzerbereich span, .benutzerbereich strong, .benutzerbereich a { display: block; }
.benutzerbereich span { color: rgba(255, 255, 255, .52); font-size: 11px; }
.benutzerbereich strong { margin-top: 2px; }
.benutzerbereich a { margin-top: 9px; color: var(--tuerkis); font-size: 13px; font-weight: 700; }
.benutzerbereich a:hover { color: var(--weiss); }

.hauptinhalt { min-width: 0; min-height: 100vh; }
.tafelansicht { height: 100vh; display: flex; flex-direction: column; background: var(--weiss); }
.standzeile { min-height: 38px; padding: 9px 18px; color: var(--grau); background: var(--flaeche); border-bottom: 1px solid var(--linie); font-size: 12px; font-variant-numeric: tabular-nums; }
.tafelansicht iframe { width: 100%; min-height: 0; flex: 1 1 auto; display: block; background: var(--weiss); border: 0; }

.ad-seite { width: min(1260px, calc(100% - 56px)); margin: 0 auto; padding: 38px 0 64px; }
.seitenkopf p { margin: 0 0 4px; color: var(--tuerkis); font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.seitenkopf h1 { margin: 0; color: var(--navy); font-size: clamp(30px, 4vw, 43px); line-height: 1.1; letter-spacing: -.035em; }
.hinweiskasten { margin: 25px 0; padding: 15px 18px; color: #32566d; background: var(--tuerkis-hell); border: 1px solid #bfe8e4; border-left: 4px solid var(--tuerkis); border-radius: 10px; }
.bilderliste { display: grid; gap: 26px; }
.bildkarte { overflow: hidden; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(15, 42, 67, .06); }
.bildkopf { min-height: 68px; padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--linie); }
.bildkopf h2 { margin: 0; color: var(--navy); font-size: 20px; }
.bildkopf span { color: var(--grau); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bildkarte img { width: 100%; max-width: 100%; height: auto; display: block; }

.hyros-seite { width: min(1380px, calc(100% - 56px)); margin: 0 auto; padding: 38px 0 64px; }
.hyros-filter { margin: 25px 0; padding: 18px; display: flex; align-items: end; flex-wrap: wrap; gap: 14px 18px; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); }
.zeitraumwahl, .modellwahl { padding: 4px; display: flex; gap: 3px; background: #e8eef2; border-radius: 50px; }
.zeitraumwahl a, .modellwahl a { padding: 8px 13px; color: var(--navy); border-radius: 50px; font-size: 13px; font-weight: 720; white-space: nowrap; }
.zeitraumwahl a.aktiv, .modellwahl a.aktiv { color: var(--weiss); background: var(--navy); }
.datumswahl { margin-left: auto; display: flex; align-items: end; gap: 9px; }
.datumswahl label { color: var(--grau); font-size: 11px; font-weight: 700; }
.datumswahl input { min-height: 38px; margin-top: 3px; padding: 7px 9px; display: block; color: var(--text); background: var(--weiss); border: 1px solid #c9d4dd; border-radius: 8px; }
.datumswahl button { min-height: 38px; padding: 7px 15px; color: var(--weiss); background: var(--navy); border: 0; border-radius: 50px; font-weight: 720; cursor: pointer; }
.hyros-tabelle-rahmen { overflow-x: auto; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(15, 42, 67, .06); }
.hyros-tabelle { width: 100%; min-width: 1480px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hyros-tabelle th, .hyros-tabelle td { padding: 13px 14px; border-bottom: 1px solid var(--linie); text-align: right; white-space: nowrap; }
.hyros-tabelle th:first-child, .hyros-tabelle td:first-child { text-align: left; }
.hyros-tabelle thead th { color: var(--grau); background: var(--flaeche); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.hyros-tabelle tbody tr:last-child td { border-bottom: 0; }
.hyros-tabelle tbody tr:hover { background: #f9fcfc; }
.hyros-tabelle tr.mit-fehler td { color: var(--rot); background: var(--rot-hell); text-align: left; }
.hyros-tabelle tr.ladezeile td { padding: 34px; color: var(--grau); text-align: center; }
.hyros-tabelle tfoot th { color: var(--navy); background: var(--tuerkis-hell); border-top: 2px solid #b8dfdc; border-bottom: 0; }
.pflicht-hinweis { margin: 13px 2px 0; color: var(--grau); font-size: 12px; }

.fehlende-datei { width: min(620px, calc(100% - 40px)); margin: auto; padding: 28px; color: #6d2930; background: var(--rot-hell); border: 1px solid #efc8cc; border-radius: var(--radius); text-align: center; }
.fehlende-datei strong { display: block; font-size: 17px; }
.fehlende-datei p { margin: 8px 0 0; }
.fehlende-datei.kompakt { width: auto; margin: 22px; }
.tafel-fehlt-seite { min-height: 100vh; display: grid; place-items: center; }

.anmeldeseite { min-height: 100vh; background: linear-gradient(135deg, var(--navy) 0 42%, #123653 42% 100%); }
.anmeldebereich { min-height: 100vh; padding: 28px; display: grid; place-items: center; }
.anmeldekarte { width: min(430px, 100%); padding: 36px; background: var(--weiss); border-radius: 18px; box-shadow: 0 24px 70px rgba(0, 0, 0, .24); }
.anmeldekopf { display: flex; align-items: center; gap: 14px; }
.anmeldekopf p { margin: 0; color: var(--tuerkis); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.anmeldekopf h1 { margin: 1px 0 0; color: var(--navy); font-size: 29px; line-height: 1.15; letter-spacing: -.03em; }
.einleitung { margin: 23px 0 0; color: var(--grau); }
.fehlermeldung { margin-top: 20px; padding: 11px 13px; color: var(--rot); background: var(--rot-hell); border: 1px solid #efc8cc; border-radius: 9px; }
.anmeldeformular { margin-top: 23px; display: grid; gap: 8px; }
.anmeldeformular label { margin-top: 6px; color: #405267; font-size: 13px; font-weight: 700; }
.anmeldeformular input { width: 100%; min-height: 45px; padding: 10px 12px; color: var(--text); background: var(--weiss); border: 1px solid #c9d4dd; border-radius: 9px; outline: none; }
.anmeldeformular input:focus { border-color: var(--tuerkis); box-shadow: 0 0 0 3px rgba(25, 179, 173, .14); }
.anmeldeformular button { min-height: 45px; margin-top: 13px; padding: 10px 18px; color: var(--weiss); background: var(--navy); border: 0; border-radius: 50px; font-weight: 760; cursor: pointer; }
.anmeldeformular button:hover { background: var(--navy-mittel); }

.nur-lesbar { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 760px) {
  .app-rahmen { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .seitenleiste { position: static; width: 100%; height: auto; padding: 15px; }
  .marke { padding: 0 3px 14px; }
  .markenpunkt { width: 38px; height: 38px; }
  .reiternavigation { margin-top: 12px; grid-template-columns: repeat(4, minmax(max-content, 1fr)); overflow-x: auto; }
  .reiternavigation a { min-height: 42px; padding: 9px 11px; white-space: nowrap; }
  .reiternavigation a > span { display: none; }
  .benutzerbereich { margin-top: 12px; padding: 12px 3px 0; display: flex; align-items: center; gap: 8px; }
  .benutzerbereich span { display: none; }
  .benutzerbereich a { margin: 0 0 0 auto; }
  .hauptinhalt { min-height: 0; }
  .tafelansicht { height: calc(100vh - 190px); min-height: 620px; }
  .ad-seite { width: min(100% - 28px, 1260px); padding-top: 28px; }
  .hyros-seite { width: min(100% - 28px, 1380px); padding-top: 28px; }
  .hyros-filter { align-items: stretch; flex-direction: column; }
  .zeitraumwahl, .modellwahl { align-self: flex-start; max-width: 100%; overflow-x: auto; }
  .datumswahl { margin-left: 0; flex-wrap: wrap; }
  .bildkopf { align-items: flex-start; flex-direction: column; gap: 3px; }
}

@media (max-width: 470px) {
  .anmeldebereich { padding: 16px; }
  .anmeldekarte { padding: 27px 22px; }
  .marke strong { font-size: 15px; }
  .reiternavigation { gap: 3px; }
  .reiternavigation a { padding: 8px; font-size: 12px; }
}
