/* ==========================================================================
   Corporate Design – Grundhaltung des MSS-Portals (Teil 4A)
   --------------------------------------------------------------------------
   Farben und Typografie folgen dem ITDZ-Corporate-Design (codingtasks/
   corporatedesign.txt). Werte, die das Designhandbuch nicht vorgibt, stehen als
   deutlich gekennzeichnete PLATZHALTER und werden in einer späteren Designstufe
   ersetzt – an diesen Stellen ändert nur diese Datei, nicht die Fachlogik.
   ========================================================================== */

:root {
  /* Primärfarben (Corporate Design) */
  --ci-blue: #003a7a; /* ITDZ-Dunkelblau, RGB 0/58/122 */
  --ci-green: #598210; /* ITDZ-Grün, RGB 89/130/16 */
  --ci-gray-light: #d0d4d8; /* helles ITDZ-Grau, RGB 208/212/216 */
  --ci-gray-dark: #4c5959; /* dunkles ITDZ-Grau, RGB 76/89/89 */

  /* Sekundärfarben */
  --ci-marine: #002044; /* dunkles Marineblau, RGB 0/32/68 */
  --ci-spruce: #004f1c; /* Tannengrün, RGB 0/79/28 */

  /* Tertiärfarben */
  --ci-sky: #00a7e0; /* Himmelblau, RGB 0/167/224 */
  --ci-sun: #ffcc00; /* Sonnengelb, RGB 255/204/0 */

  /* PLATZHALTER (Corporate Design): Flächen, Linien und Zustandstöne. Das
     Designhandbuch nennt hierfür keine eigenen Werte; die Abstimmung folgt dem
     Dunkelblau/Marineblau und bleibt bewusst zurückhaltend (kein CIAC-Code). */
  --ci-surface: #f7f9fb; /* Listen- und Formularfläche */
  --ci-surface-raised: #ffffff; /* Karten/Formularebenen */
  --ci-surface-tinted: #eef2f6; /* Zone hinter Karten */
  --ci-surface-dark: #16202e; /* Dashboard-Nebenfläche */
  --ci-text: #1b2431; /* Body-Text */
  --ci-text-muted: #5a6672; /* Hinweise, Beschriftungen */
  --ci-text-inverse: #f3f6f8; /* Text auf dunklen Flächen */
  --ci-border: #cdd4da; /* Linien zwischen Flächen */
  --ci-border-strong: #a9b2b9; /* Feldränder, Navigationskanten */
  --ci-focus: var(--ci-sky); /* Fokus-/Fehlerumstellung (PLATZHALTER) */
  --ci-danger: #a4271d; /* Pflichtfeld-/Fehlerfarbe (PLATZHALTER) */
  --ci-danger-soft: #f7e8e5;
  --ci-success: var(--ci-green);
  --ci-warning: var(--ci-sun);
  --ci-warning-soft: #fff8d4; /* Hinweisfarbe für ABO-/vCPU-Hinweise */
  --ci-hover-tint: #e8edf2; /* Linien-Hover der Neutraltonreihe */

  /* Typografie – Officina (gestalterisch) und Calibri (Office-Standard).
     PLATZHALTER: Lizenzierte Webfonts werden später über das Portal-Layout
     eingebunden; bis dahin bleibt der System-Fallback lesbar und barrierefrei. */
  --ci-font-display: "Officina", "Calibri", "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  --ci-font-body: "Calibri", "Officina", "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  --ci-font-mono: "Consolas", "Lucida Console", "Courier New", monospace; /* PLATZHALTER */
  --ci-text-base: 16px;
  --ci-text-sm: 14px;
  --ci-text-xs: 12px;
  --ci-leading: 1.5;

  /* Raster und Abstände (Dashboard-Optik für Desktop/Tablet) */
  --ci-radius: 4px;
  --ci-radius-lg: 6px;
  --ci-gap-xs: 4px;
  --ci-gap-sm: 8px;
  --ci-gap: 16px;
  --ci-gap-lg: 24px;
  --ci-gap-xl: 32px;
  --ci-shadow-sm: 0 1px 2px rgb(0 32 68 / 12%);
  --ci-shadow: 0 4px 14px rgb(0 32 68 / 14%);
  --ci-shadow-lg: 0 12px 30px rgb(0 32 68 / 18%);

  /* Kopf-/Fußhöhe des Portalrahmens */
  --ci-header-height: 72px;
  --ci-nav-height: 52px;
}

/* ==========================================================================
   Basis: Dokument, Text, Links – Corporate Design steht über allen Seiten.
   ========================================================================== */

html {
  font-size: var(--ci-text-base);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ci-text);
  background:
    linear-gradient(180deg, var(--ci-surface-tinted), var(--ci-surface) 55%) fixed;
  font-family: var(--ci-font-body);
  line-height: var(--ci-leading);
}

h1,
h2,
h3,
h4 {
  font-family: var(--ci-font-display);
  color: var(--ci-blue);
  line-height: 1.2;
  margin-block: 0 var(--ci-gap-sm);
}

h1 {
  font-size: 1.9rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.25rem;
}

h3 {
  font-size: 1.05rem;
}

p {
  margin-block: 0 var(--ci-gap);
}

a {
  color: var(--ci-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--ci-marine);
}

:focus-visible {
  outline: 3px solid var(--ci-focus);
  outline-offset: 2px;
}

hr {
  border: 0;
  border-top: 1px solid var(--ci-border);
}

/* Button-Grundhaltung: Speichern folgt dem ITDZ-Grün, Abbrechen bleibt neutral. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ci-gap-xs);
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: var(--ci-radius);
  font: 600 1rem/1.2 var(--ci-font-body);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  color: var(--ci-text-inverse);
  background: var(--ci-blue);
  border-color: var(--ci-blue);
}

.btn-primary:hover {
  background: var(--ci-marine);
  border-color: var(--ci-marine);
  color: var(--ci-text-inverse);
}

/* Speichern/Bereitstellung starten – ITDZ-Grün nach Corporate Design. */
.btn-save {
  color: var(--ci-text-inverse);
  background: var(--ci-green);
  border-color: var(--ci-green);
}

.btn-save:hover {
  background: var(--ci-spruce);
  border-color: var(--ci-spruce);
}

.btn-secondary {
  color: var(--ci-blue);
  background: var(--ci-surface-raised);
  border-color: var(--ci-border-strong);
}

.btn-secondary:hover {
  background: var(--ci-hover-tint);
}

.btn-ghost {
  color: var(--ci-gray-dark);
  background: transparent;
  border-color: var(--ci-border-strong);
}

.btn-ghost:hover {
  color: var(--ci-danger);
  border-color: var(--ci-danger);
}

.btn[hidden] {
  display: none;
}
