/* MessBlick – Grundstil für Lizenzserver, Verwaltung, Kundenbereich und E-Mails.
   Quelle: messblick-web (docs/DESIGN.md). Nicht hier ändern – Änderungen kommen als neues Paket.
   Pfad zu den Schriften anpassen, falls sie nicht unter ./schrift/ liegen. */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("schrift/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("schrift/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("schrift/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  --blau: #096fa2;          /* Haytron-Blau: Knöpfe, Links, Hervorhebung */
  --blau-dunkel: #003f56;   /* Hover, dunkle Flächen, Fußzeile */
  --blau-hell: #3ab0e0;     /* nur Schmuck und Fokus-Rahmen, nie als Textfarbe */
  --blau-flaeche: #eef5f9;  /* helle blaue Fläche (Hinweis, Hover Nebenknopf) */
  --tinte: #1d2430;         /* Überschriften und Text */
  --grau: #5b6472;          /* Nebentext */
  --papier: #f8f7f4;        /* Seitenhintergrund */
  --weiss: #ffffff;         /* Karten, Kopfzeile */
  --linie: #e3ded6;         /* Trennlinien, Ränder */
  --gruen: #2e7d32;         /* nur Zustand „erledigt / gültig“ */
  --gruen-flaeche: #e8f3e9;
  --rot: #c62828;           /* nur Zustand „Fehler / abgelaufen“ */
  --rot-flaeche: #fbeaea;
  --gelb-flaeche: #fdf4dc;  /* Zustand „läuft bald ab“ – Text bleibt Tinte */
  --schrift: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ecke-karte: 16px;
  --ecke-knopf: 12px;
  --schatten: 0 2px 16px rgba(0, 0, 0, .06);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--papier); color: var(--tinte); font-family: var(--schrift); font-size: 17px; line-height: 1.6; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 26px; line-height: 1.2; font-weight: 700; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 700; }
a { color: var(--blau); }
:focus-visible { outline: 3px solid var(--blau-hell); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.rahmen { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.rahmen--schmal { max-width: 520px; }
.nebentext { color: var(--grau); font-size: 15px; }

/* Kopfzeile: weiß, Logo links 148 px breit */
.kopf { background: var(--weiss); border-bottom: 1px solid var(--linie); }
.kopf__innen { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.kopf__logo img { width: 148px; height: auto; display: block; }

/* Knöpfe: mindestens 48 px hoch, je Bildschirm höchstens ein Hauptknopf */
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--ecke-knopf); border: 2px solid var(--blau); font: inherit; font-size: 18px; font-weight: 700; text-decoration: none; cursor: pointer; }
.knopf--haupt { background: var(--blau); color: var(--weiss); }
.knopf--haupt:hover { background: var(--blau-dunkel); border-color: var(--blau-dunkel); }
.knopf--neben { background: var(--weiss); color: var(--blau); }
.knopf--neben:hover { background: var(--blau-flaeche); }
.knopf--klein { min-height: 44px; padding: 0 16px; font-size: 16px; }
.knopf--gefahr { background: var(--weiss); color: var(--rot); border-color: var(--rot); }

/* Karte */
.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--ecke-karte); box-shadow: var(--schatten); padding: 24px; }

/* Formularfelder */
.feld { display: grid; gap: 6px; margin-bottom: 16px; }
.feld label { font-weight: 700; font-size: 16px; }
.feld input, .feld select, .feld textarea { font: inherit; min-height: 48px; padding: 10px 14px; border: 2px solid var(--linie); border-radius: var(--ecke-knopf); background: var(--weiss); color: var(--tinte); }
.feld input:focus, .feld select:focus, .feld textarea:focus { border-color: var(--blau); outline: none; }

/* Tabelle */
.tabelle { width: 100%; border-collapse: collapse; background: var(--weiss); }
.tabelle th { text-align: left; font-size: 15px; color: var(--grau); font-weight: 700; padding: 10px 12px; border-bottom: 2px solid var(--linie); }
.tabelle td { padding: 12px; border-bottom: 1px solid var(--linie); }

/* Zustände und Hinweise – Farbe nie allein, immer mit Wort */
.marke { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.marke--gut { background: var(--gruen-flaeche); color: var(--gruen); }
.marke--warn { background: var(--gelb-flaeche); color: var(--tinte); }
.marke--fehler { background: var(--rot-flaeche); color: var(--rot); }
.hinweis { padding: 14px 16px; border-radius: 12px; background: var(--blau-flaeche); border-left: 4px solid var(--blau); }
.hinweis--fehler { background: var(--rot-flaeche); border-left-color: var(--rot); }

/* Lizenzschlüssel und Codes */
.schluessel { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 22px; letter-spacing: .05em; background: var(--blau-flaeche); padding: 6px 12px; border-radius: 8px; user-select: all; }

/* Fußzeile */
.fuss { background: var(--blau-dunkel); color: var(--weiss); padding: 32px 0; font-size: 15px; }
.fuss a { color: var(--weiss); }
