/* wfa.digital · OpenUI5 Horizon, Web-Schicht mit BALTX-Marke.
   Quelle: Design System "OpenUI5 Horizon" (tokens.json: color baltx-*, webLayout, type "Web (marketing pages)", webBudget).
   Öffentliche Seiten: statisches HTML, kein JavaScript. Eine Schriftfamilie (72), selbst gehostet. */

@font-face { font-family: "72"; font-weight: 400; font-style: normal; font-display: swap; src: url("/static/fonts/72-Regular.woff2") format("woff2"); }
@font-face { font-family: "72"; font-weight: 700; font-style: normal; font-display: swap; src: url("/static/fonts/72-Bold.woff2") format("woff2"); }

:root {
  color-scheme: light dark; /* native Formularelemente folgen dem Systemmodus */
  /* Farben (hell) */
  --baltx-primary: #0a57c2;
  --baltx-on-primary: #ffffff;
  --baltx-surface: #ffffff;
  --baltx-surface-raised: #ffffff;
  --baltx-surface-muted: #f3f4f6;
  --baltx-ink: #21242c;
  --baltx-ink-muted: #5c6370;
  --baltx-border: #d4d7de;
  --baltx-accent: #e8f1fc;
  --baltx-accent-ink: #084191;
  --baltx-success-ink: #126d34;
  --sap-success-bg: #f5fae5;
  --sap-error-bg: #ffeaf4;
  --sap-negative: #aa0808;
  --sap-focus: #0032a5;
  --sap-field-border: #556b81;
  --baltx-yellow: #ffc000; /* gehört zum Logo, nur als einzelne Akzentfläche */

  /* Layout (webLayout) */
  --web-container: 72rem;
  --web-container-text: 44rem;
  --web-gutter: 1.5rem;
  --web-section-y: 4rem;
  --web-stack: 1.5rem;
  --web-radius-button: 6px;
  --web-radius-card: 0.5rem;
  --web-radius-field: 0.25rem;
  --web-header-height: 4rem;
  --web-target-min: 44px;

  --font-sans: "72", "72full", Arial, Helvetica, sans-serif;
  --shadow-card: 0 0 0.125rem 0 rgba(34, 53, 72, 0.2), 0 0.125rem 0.25rem 0 rgba(34, 53, 72, 0.2);
}
@media (min-width: 1024px) { :root { --web-section-y: 6rem; } }
@media (prefers-color-scheme: dark) {
  :root {
    --baltx-primary: #2b7cee;
    --baltx-on-primary: #0e1115;
    --baltx-surface: #0e1115;
    --baltx-surface-raised: #14181f;
    --baltx-surface-muted: #21242c;
    --baltx-ink: #f1f2f4;
    --baltx-ink-muted: #abb0ba;
    --baltx-border: #2b303b;
    --baltx-accent: #192f4d;
    --baltx-accent-ink: #89b6f5;
    --baltx-success-ink: #3bde77;
    --sap-success-bg: #11331a;
    --sap-error-bg: #350000;
    --sap-negative: #fa6161;
    --sap-focus: #9ad3ff;
    --sap-field-border: #a9b4be;
    --shadow-card: 0 0 0.125rem 0 rgba(255, 255, 255, 0.6), 0 0.125rem 0.5rem 0 rgba(0, 0, 0, 0.2);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--web-header-height); }
body { margin: 0; background: var(--baltx-surface); color: var(--baltx-ink); font: 400 1rem/1.5 var(--font-sans); font-variant-numeric: tabular-nums; -webkit-text-size-adjust: 100%; }
.wrap { max-width: var(--web-container); margin: 0 auto; padding: 0 var(--web-gutter); }
main > section, main > .wrap { padding-block: var(--web-section-y); }

/* Typografie (web-display, web-h1 bis web-h3, web-lead, web-body, web-small, web-eyebrow) */
h1, h2, h3 { font-weight: 700; color: var(--baltx-ink); margin: 0 0 var(--web-stack); }
h1 { font-size: clamp(1.75rem, 7vw, 2.25rem); line-height: 1.25; }
h2 { font-size: 1.75rem; line-height: 1.3; margin-top: 2.5rem; }
h3 { font-size: 1.25rem; line-height: 1.4; margin-top: 2rem; }
@media (min-width: 600px) { h1.display { font-size: 3.5rem; line-height: 1.1; } }
p, ul, ol, dl { max-width: 70ch; margin: 0 0 var(--web-stack); }
.lead { font-size: 1.25rem; line-height: 1.6; max-width: 60ch; }
small, .small { font-size: 0.875rem; }
.eyebrow { font-size: 0.8125rem; line-height: 1.4; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--baltx-accent-ink); margin: 0 0 0.75rem; }
a { color: var(--baltx-primary); text-underline-offset: 0.15em; }
:focus-visible { outline: 0.125rem solid var(--sap-focus); outline-offset: 0.125rem; }
img, video { max-width: 100%; height: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--baltx-surface); padding: 0.5rem 0.75rem; z-index: 10; }

/* Kopf und Fuß */
.site-header { border-bottom: 1px solid var(--baltx-border); background: var(--baltx-surface); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: var(--web-header-height); }
.brand { font-weight: 700; font-size: 1.25rem; text-decoration: none; color: var(--baltx-ink); }
.brand span { color: var(--baltx-primary); }
nav a { display: inline-flex; align-items: center; min-height: var(--web-target-min); padding: 0 0.75rem; }
nav a[aria-current] { font-weight: 700; text-decoration: none; color: var(--baltx-ink); }
.langform { display: inline-flex; gap: 0.25rem; margin: 0; }
.langform > button { margin: 0; min-height: var(--web-target-min); padding: 0 0.75rem; border: 0; background: transparent; color: var(--baltx-primary); font-weight: 400; text-decoration: underline; text-underline-offset: 0.15em; }
.langform > button[aria-current] { font-weight: 700; text-decoration: none; color: var(--baltx-ink); }
.site-footer { background: var(--baltx-surface-muted); color: var(--baltx-ink-muted); font-size: 0.875rem; padding: 2rem 0; margin-top: var(--web-section-y); }
.site-footer p { margin: 0; }

/* Hero */
.hero { padding-block: 3rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* Button: eine Hauptaktion je Bereich */
.btn, button { display: inline-flex; align-items: center; justify-content: center; min-height: var(--web-target-min); padding: 0 1.5rem; border: 1px solid var(--baltx-primary); border-radius: var(--web-radius-button); background: var(--baltx-primary); color: var(--baltx-on-primary); font: 700 1rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer; }
.btn:hover, button:hover { filter: brightness(1.1); }
.btn.secondary { background: transparent; color: var(--baltx-primary); }

/* Formulare */
form > p:last-child, form > button { margin-top: 1.5rem; }
form > button { display: flex; }
label { display: block; font-weight: 700; margin: 1rem 0 0.25rem; }
input, select, textarea { width: 100%; max-width: 28rem; min-height: var(--web-target-min); padding: 0 0.625rem; border: 1px solid var(--sap-field-border); border-radius: var(--web-radius-field); background: var(--baltx-surface); color: var(--baltx-ink); font: inherit; }
textarea { padding: 0.5rem 0.625rem; min-height: 8rem; }
input:hover, select:hover, textarea:hover { border-color: var(--baltx-primary); }
fieldset { border: 1px solid var(--baltx-border); border-radius: var(--web-radius-card); padding: 1rem 1.5rem; margin: 1.5rem 0; max-width: 70ch; }
legend { font-weight: 700; padding: 0 0.5rem; }
fieldset label { display: flex; gap: 0.75rem; align-items: flex-start; font-weight: 400; margin: 0.5rem 0; min-height: var(--web-target-min); }
fieldset input[type=radio], fieldset input[type=checkbox] { width: 1.25rem; min-height: 1.25rem; margin-top: 0.3rem; flex: none; accent-color: var(--baltx-primary); }
form + p.small { margin-top: 1rem; }

/* Komponenten */
textarea.brief { max-width: 44rem; min-height: 24rem; padding: 0.75rem; line-height: 1.5; resize: vertical; }
.card h3 { margin-top: 0; }
details { border: 1px solid var(--baltx-border); border-radius: var(--web-radius-card); padding: 0 1rem; margin: 0.5rem 0; max-width: 70ch; background: var(--baltx-surface-raised); }
summary { cursor: pointer; font-weight: 700; padding: 0.75rem 0; min-height: var(--web-target-min); }
progress { width: 100%; max-width: 28rem; height: 0.75rem; accent-color: var(--baltx-primary); }
.card { background: var(--baltx-surface-raised); border: 1px solid var(--baltx-border); border-radius: var(--web-radius-card); padding: 1.5rem; box-shadow: var(--shadow-card); }
.card > :last-child { margin-bottom: 0; }
.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
figure.kennzahl { margin: 2rem 0 0; }
figure.kennzahl .zahl { font-size: 3rem; font-weight: 700; color: var(--baltx-primary); line-height: 1; }
figure.kennzahl figcaption { color: var(--baltx-ink-muted); font-size: 0.875rem; margin-top: 0.5rem; max-width: 30ch; }
blockquote { margin: 1.5rem 0; padding: 0.25rem 0 0.25rem 1.5rem; border-left: 4px solid var(--baltx-primary); max-width: 70ch; }
cite { color: var(--baltx-ink-muted); font-style: normal; font-size: 0.875rem; }
.hinweis { padding: 0.75rem 1rem; border: 1px solid var(--baltx-border); border-radius: var(--web-radius-field); background: var(--baltx-surface-muted); max-width: 70ch; }
.hinweis.ok { background: var(--sap-success-bg); border-color: var(--baltx-success-ink); }
.hinweis.fehler { background: var(--sap-error-bg); border-color: var(--sap-negative); }
.ok strong { color: var(--baltx-success-ink); }
.fehler strong { color: var(--sap-negative); }
table { border-collapse: collapse; width: 100%; max-width: 48rem; }
caption { text-align: left; font-weight: 700; padding: 0.5rem 0; }
th, td { text-align: left; padding: 0.75rem; border-bottom: 1px solid var(--baltx-border); }
thead th { background: var(--baltx-surface-muted); }
.sw-primary { background: var(--baltx-primary); } .sw-muted { background: var(--baltx-surface-muted); } .sw-accent { background: var(--baltx-accent); } .sw-ink { background: var(--baltx-ink); } .sw-ink-muted { background: var(--baltx-ink-muted); } .sw-border { background: var(--baltx-border); }
.swatch { height: 4rem; border-radius: var(--web-radius-field); border: 1px solid var(--baltx-border); margin-bottom: 0.5rem; }

/* Lektionen: Erfahrungskästen in der Ich-Form */
.erfahrung { border-left: 4px solid var(--baltx-primary); background: var(--baltx-accent); padding: 1rem 1.5rem; border-radius: 0 var(--web-radius-card) var(--web-radius-card) 0; max-width: 70ch; margin: 1.5rem 0; }
.erfahrung h3 { margin-top: 0; font-size: 1.125rem; color: var(--baltx-accent-ink); }
.erfahrung p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print {
  /* Druck immer in hellen Farben, auch wenn das Gerät dunkel eingestellt ist */
  :root { --baltx-primary: #0a57c2; --baltx-on-primary: #fff; --baltx-surface: #fff; --baltx-surface-raised: #fff; --baltx-surface-muted: #f5f6f7; --baltx-ink: #000; --baltx-ink-muted: #333; --baltx-border: #999; --baltx-accent: #ebf3fd; --baltx-accent-ink: #084191; }
  .site-header, .site-footer, .skip { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
}

/* Produktseite und Zertifikat */
.muted { color: var(--baltx-ink-muted); }
.preis .zahl { font-size: 3rem; font-weight: 700; color: var(--baltx-primary); line-height: 1; }
.btn[aria-disabled="true"] { background: var(--baltx-surface-muted); color: var(--baltx-ink-muted); border-color: var(--baltx-border); cursor: default; pointer-events: none; }
.thema h2 { margin-top: 2.5rem; }
figure.zertifikat { margin: 1.5rem 0; padding: 2rem; max-width: 36rem; border: 2px solid var(--baltx-primary); border-radius: var(--web-radius-card); background: var(--baltx-surface-raised); }
figure.zertifikat h3 { margin-top: 0; font-size: 1.75rem; color: var(--baltx-primary); }
figure.zertifikat table { max-width: none; }
section.wrap + section.wrap { padding-top: 0; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
hr { border: 0; border-top: 1px solid var(--baltx-border); margin: 3rem 0 1rem; }
button.secondary { background: transparent; color: var(--baltx-primary); }
button[hidden] { display: none; }
.card + .card { margin-top: 1rem; }
.card + p { margin-top: 1.5rem; }
.grid > .card + .card { margin-top: 0; }
.site-footer p + p { margin-top: 0.5rem; }
.site-footer a { color: var(--baltx-ink-muted); }
@media print { figure.zertifikat { border-color: #000; box-shadow: none; } .zert-druck > :not(figure.zertifikat):not(h1) { display: none; } }

/* Auswahlfelder überall: kleines Feld neben dem Text, nicht die volle Breite */
input[type=checkbox], input[type=radio] { width: 1.25rem; min-height: 1.25rem; margin-top: 0.3rem; flex: none; accent-color: var(--baltx-primary); }
label:has(> input[type=checkbox]), label:has(> input[type=radio]) { display: flex; gap: 0.75rem; align-items: flex-start; font-weight: 400; margin: 0.5rem 0; min-height: var(--web-target-min); }
table + p { margin-top: 1rem; }
form > label:has(> input[type=checkbox]) + button { margin-top: 1rem; }

/* Lange Wörter (z. B. „Geschäftsbedingungen“) dürfen auf kleinen Bildschirmen umbrechen statt zu überlaufen */
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
h1 { hyphens: manual; }

/* Tabellen auf schmalen Bildschirmen: weniger Rand, lange Wörter umbrechen, damit nichts über den Rand läuft */
th, td { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  th, td { padding: 0.5rem 0.375rem; }
  figure.zertifikat { padding: 1rem; }
}

/* Dunkles Farbschema: Links auf getönten Flächen brauchen die hellere Farbe für 4,5:1 */
@media (prefers-color-scheme: dark) {
  .hinweis a, .erfahrung a, details a, .card a { color: var(--baltx-accent-ink); }
}

/* Kopfzeile auf schmalen Bildschirmen: Anmelden und Sprachen bleiben in einer Zeile */
.site-header nav { display: flex; align-items: center; flex-wrap: nowrap; white-space: nowrap; }
@media (max-width: 480px) {
  .site-header nav { font-size: 0.875rem; }
  .site-header nav a, .langform > button { padding: 0 0.3rem; font-size: 0.875rem; }
  .brand { font-size: 1.125rem; }
}

/* Arbeitsvorlagen am Bildschirm ausfüllen: Felder sitzen dort, wo im Druck die Leerstellen stehen */
.vorlage-form .feld { width: 100%; min-width: 9rem; font: inherit; color: inherit; background: var(--baltx-surface-raised); border: 1px solid var(--baltx-border); border-radius: 4px; padding: 0.35rem 0.5rem; }
.vorlage-form input.feld { min-height: 2.25rem; }
.vorlage-form input.feld.kurz { width: 5.5rem; min-width: 4rem; }
.vorlage-form textarea.feld { resize: vertical; field-sizing: content; min-height: 3.5rem; }
.vorlage-form p > .feld { display: inline-block; width: min(100%, 24rem); vertical-align: middle; margin: 0.15rem 0; }
.vorlage-form p > textarea.feld { display: block; width: 100%; max-width: 40rem; }
.vorlage-form p > input.feld.kurz { width: 5.5rem; }
.vorlage-form .feld:focus-visible { outline: 2px solid var(--baltx-primary); outline-offset: 1px; }
/* Tabellen mit Feldern: volle Breite nutzen, Wörter in den Beschriftungen nicht mitten im Wort trennen */
.vorlage-form table { max-width: none; }
.vorlage-form th, .vorlage-form td { overflow-wrap: break-word; }
/* Schmale Bildschirme: die Tabelle rollt in sich, die Seite bleibt stehen */
@media (max-width: 760px) {
  .vorlage-form table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .vorlage-form td:has(.feld:not(.kurz)) { min-width: 11rem; }
}
@media print {
  .vorlage-form table { display: table; }
  .no-print, #vorlesen { display: none !important; }
  .vorlage-form .feld { border: 0; border-bottom: 1px solid #000; border-radius: 0; background: none; padding: 0; min-height: 1.6rem; resize: none; }
}

/* Startseite: Kennzeichnung, zu welcher Stufe ein Baustein gehört */
.stufe { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--baltx-surface-muted); color: var(--baltx-ink-muted); margin: 0 0 0.75rem; }
.stufe.premium { background: var(--baltx-accent); color: var(--baltx-accent-ink); }
#preis .grid { align-items: start; }
#preis .card + .card { margin-top: 0; }
#angebot .card + .card, #transformation .card + .card { margin-top: 0; }
