/* PSD Global: Designsystem "Die blaue Karte".
   Globales CSS fuer alle Apps. Vertrag: docs/DESIGN.md (Klassen dort sind verbindlich).
   Gepflegt vom Design-Agenten (web). Feature-Apps: nur eigene Dateien static/css/<app>.css mit Praefix. */

/* ------------------------------------------------------------------ Schriften */
/* Mona Sans (GitHub, OFL): Expanded fuer Ueberschriften wie die breite Wortmarke im Logo, normale Breite fuer Text.
   Monaspace Neon (GitHub Next, OFL) nur fuer Daten. Courier/Atkinson/Roboto nur noch in card.css fuer die echte Karte. */
@font-face { font-family: "Mona Expanded"; src: url("../fonts/mona-expanded.f220a5edbf43.woff2") format("woff2"); font-weight: 600 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Mona Sans"; src: url("../fonts/mona-text.323029f11d2c.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Monaspace Neon"; src: url("../fonts/monaspace-neon-500.b0bd2f8a112a.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
/* Ersatzschriften mit angepasster Breite, damit der Wechsel kaum springt */
@font-face { font-family: "Expanded Fallback"; src: local("Arial Black"), local("Arial Bold"), local("Arial"); size-adjust: 118%; ascent-override: 84%; descent-override: 22%; }
@font-face { font-family: "Text Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 102%; ascent-override: 92%; descent-override: 24%; }

/* ------------------------------------------------------------------ Tokens */
:root {
  /* Farben aus dem Logo */
  --blue: #244ca4;          /* Kartenblau, Flaechenfarbe */
  --blue-deep: #1b3a80;     /* Hover, Linien auf Blau */
  --blue-ink: #1f4596;      /* Links auf Weiss (8,9:1) */
  --sky: #e8eef9;           /* blasses Kartenblau */
  --sky-2: #d5e0f4;
  --star: #ffd52e;          /* Sterne-Gelb */
  --star-deep: #f2c200;
  --maple: #c8102e;         /* Ahorn-Rot, sparsam */
  --ink: #0e1a3a;           /* Text */
  --ink-2: #3c4866;         /* gedaempft, 8,6:1 auf Weiss */
  --muted: #4d5875;         /* 7,0:1 auf Weiss */
  --line: #c6cfe2;
  --line-strong: #6b7690;   /* Feldrahmen, 4,6:1 */
  --paper: #ffffff;         /* Felder, Karten */
  --page: #f6f4ef;          /* Papierweiss, Seitengrund */
  --night: #0e1a3a;         /* Abflugtafel */
  --mist: #f4f6fa;
  --ok: #17663f;
  --ok-bg: #e5f3eb;
  --warn: #7a4f00;
  --warn-bg: #fff4d1;
  --err: #a8182b;
  --err-bg: #fdebed;

  /* Schrift */
  --f-display: "Mona Expanded", "Expanded Fallback", "Arial Black", Arial, sans-serif;
  --f-text: "Mona Sans", "Text Fallback", "Helvetica Neue", Arial, sans-serif;
  --f-data: "Monaspace Neon", ui-monospace, Menlo, Consolas, monospace;

  --fs-small: .9rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.18rem, 1.05rem + .5vw, 1.45rem);
  --fs-h1: clamp(2.3rem, 1rem + 5.2vw, 6.75rem);    /* max 108 px */
  --fs-h2: clamp(1.7rem, 1.05rem + 2.3vw, 3.4rem);   /* max 54 px = 0,5 x h1 */
  --fs-h3: 1.25rem;
  --lh-text: 1.6;

  /* Abstaende (wenige Stufen) */
  --s1: .5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2.5rem;
  --s5: clamp(3rem, 2rem + 4vw, 6rem);
  --gutter: clamp(1rem, .25rem + 3.4vw, 4rem);

  /* Kartenecke: Radius des Logos relativ zur Breite (ca. 3,5 %), fuer Fotofach und Karte */
  --card-r: clamp(10px, 1.6vw, 22px);
  --r: 3px;
  --focus: 0 0 0 3px var(--paper), 0 0 0 6px var(--ink);
  --shadow-1: 0 1px 2px rgba(14, 26, 58, .08), 0 6px 24px rgba(14, 26, 58, .08);
}

/* ------------------------------------------------------------------ Basis */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--f-text);
  font-feature-settings: "ss02", "ss03", "ss05";
  font-size: var(--fs-body);
  line-height: var(--lh-text);
  font-kerning: normal;
  overflow-wrap: break-word;
}
@media (min-width: 48rem) { body { font-size: 1.125rem; } }
img, svg, video, picture { display: block; max-width: 100%; height: auto; }
iframe { border: 0; }
p, ul, ol, dl, figure, blockquote, pre, table { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: inherit; text-wrap: balance; }
h1, .h1 { font-family: var(--f-display); font-weight: 800; font-size: var(--fs-h1); line-height: .98; letter-spacing: -.02em; hyphens: manual; }
h2, .h2 { font-family: var(--f-display); font-weight: 800; font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -.015em; }
h3, .h3 { font-family: var(--f-text); font-weight: 700; font-size: var(--fs-h3); line-height: 1.3; }
h4, .h4 { font-family: var(--f-text); font-weight: 700; font-size: 1.0625rem; line-height: 1.35; }
:lang(de) h1, :lang(de) h2, :lang(fr) h1, :lang(es) h1 { hyphens: auto; -webkit-hyphens: auto; }
strong, b { font-weight: 700; }
small { font-size: var(--fs-small); }
a { color: var(--blue-ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--star); color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s4) 0; }
abbr[title] { text-decoration: underline dotted; }
code, kbd { font-family: var(--f-data); font-size: .95em; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s2); top: -10rem; z-index: 100; background: var(--star); color: var(--ink); padding: .75rem 1rem; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: var(--s2); }

/* ------------------------------------------------------------------ Breite und Abstaende (Vertrag) */
.wrap { width: 100%; max-width: 90rem; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 46rem; }
.wrap--wide { max-width: 90rem; }
.stack > * + * { margin-top: var(--s2); }
.stack--tight > * + * { margin-top: var(--s1); }
.stack--loose > * + * { margin-top: var(--s4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); align-items: center; }
.split { display: grid; gap: var(--s4); }
@media (min-width: 52rem) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }

/* ------------------------------------------------------------------ Text (Vertrag) */
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink); max-width: 38rem; }
.small { font-size: var(--fs-small); line-height: 1.5; }
.muted { color: var(--muted); }
.mono, .data { font-family: var(--f-data); font-size: .9em; letter-spacing: 0; font-variant-numeric: tabular-nums; font-feature-settings: "calt" 0, "liga" 0; }
.prose { max-width: 65ch; }
.prose > * + *, .prose .rt > * + * { margin-top: 1em; }
.prose .rt ul, .prose .rt ol { padding-left: 1.3em; }
.prose .rt li + li { margin-top: .35em; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.prose h3 { margin-top: 1.6em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--blue); }
.prose blockquote { border-left: 4px solid var(--star); padding: .25em 0 .25em 1em; font-size: 1.1em; }

/* ------------------------------------------------------------------ Knoepfe (Vertrag): eckig, keine Pillen */
.btn {
  --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7rem 1.25rem;
  font-family: var(--f-text); font-weight: 700; font-size: 1.0625rem; line-height: 1.2;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 2px solid var(--btn-bd); border-radius: var(--r);
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  -webkit-appearance: none; appearance: none;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: 3px solid transparent; outline-offset: 2px; box-shadow: var(--focus); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn--primary { --btn-bg: var(--blue); --btn-fg: #fff; --btn-bd: var(--blue); }
.btn--primary:hover { --btn-bg: var(--blue-deep); --btn-bd: var(--blue-deep); }
.btn--secondary { --btn-bg: transparent; --btn-fg: var(--blue-ink); --btn-bd: var(--blue-ink); }
.btn--secondary:hover { --btn-bg: var(--sky); }
.btn--quiet { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--blue-ink); padding-inline: .25rem; text-decoration: underline; text-underline-offset: .2em; }
.btn--quiet:hover { text-decoration-thickness: 2px; }
.btn--danger { --btn-bg: var(--err); --btn-fg: #fff; --btn-bd: var(--err); }
.btn--danger:hover { --btn-bg: #8a1222; --btn-bd: #8a1222; }
.btn--block { display: flex; width: 100%; }
/* Auf Blau: Primaer wird Sterne-Gelb */
.on-blue .btn--primary, .panel--blue .btn--primary { --btn-bg: var(--star); --btn-fg: var(--ink); --btn-bd: var(--star); }
.on-blue .btn--primary:hover, .panel--blue .btn--primary:hover { --btn-bg: #fff; --btn-bd: #fff; }
.on-blue .btn--secondary, .panel--blue .btn--secondary { --btn-fg: #fff; --btn-bd: #fff; }
.on-blue .btn--secondary:hover, .panel--blue .btn--secondary:hover { --btn-bg: var(--blue-deep); }
.on-blue .btn--quiet, .panel--blue .btn--quiet { --btn-fg: #fff; }
.on-blue .muted, .panel--blue .muted, .on-blue .field__hint, .panel--blue .field__hint { color: rgba(255, 255, 255, .88); }
.panel--blue a:not(.btn) { color: #fff; }
.on-blue .lead, .panel--blue .lead, .panel--blue h2, .panel--blue h3 { color: inherit; }
.on-blue .btn:focus-visible, .on-blue a:focus-visible, .on-blue button:focus-visible, .on-blue summary:focus-visible, .panel--blue .btn:focus-visible, .panel--blue a:focus-visible { box-shadow: 0 0 0 3px var(--blue), 0 0 0 6px var(--star); outline: 3px solid transparent; outline-offset: 2px; }

/* ------------------------------------------------------------------ Formulare (Vertrag) */
.field { display: grid; gap: .35rem; }
.field + .field, .field + fieldset, fieldset + .field { margin-top: var(--s3); }
.field__label, .field > label, legend { font-weight: 700; line-height: 1.35; }
.field__label .optional, legend .optional { font-weight: 400; color: var(--muted); }
.field__hint { color: var(--muted); font-size: var(--fs-small); line-height: 1.45; }
.field__error { color: var(--err); font-weight: 700; font-size: var(--fs-small); display: flex; gap: .4em; }
.field__error::before { content: "!"; display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; flex: none; margin-top: .1em; background: var(--err); color: #fff; font-family: var(--f-data); font-size: .85em; border-radius: 2px; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], input[type="number"],
input[type="date"], input[type="datetime-local"], input[type="month"], input[type="week"], input[type="time"],
input[type="search"], input[type="file"], select, textarea {
  width: 100%; max-width: 36rem; min-height: 48px; padding: .6rem .75rem;
  font: inherit; font-size: 1.0625rem; color: var(--ink); background: #fff;
  border: 2px solid var(--line-strong); border-radius: var(--r);
}
textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
input[type="file"] { padding: .55rem; border-style: dashed; background: var(--mist); }
select { -webkit-appearance: none; appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230e1a3a' stroke-width='2.2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; }
input:focus-visible, select:focus-visible, textarea:focus-visible,
input[type="date"]:focus-within, input[type="datetime-local"]:focus-within, input[type="month"]:focus-within,
input[type="week"]:focus-within, input[type="time"]:focus-within { outline: 3px solid transparent; outline-offset: 2px; border-color: var(--ink); box-shadow: 0 0 0 3px var(--star); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err); }
input[type="checkbox"], input[type="radio"] { width: 1.35rem; height: 1.35rem; margin: .15rem 0 0; accent-color: var(--blue); flex: none; }
.choice { display: flex; gap: .7rem; align-items: flex-start; min-height: 44px; padding: .35rem 0; cursor: pointer; }
.choice + .choice { margin-top: .1rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: .5rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); }
.errorlist { list-style: none; padding: 0; color: var(--err); font-weight: 700; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------------ Status als Stempel (Vertrag) */
.status {
  --st: var(--ink-2);
  display: inline-flex; align-items: center; gap: .45em;
  padding: .12em .55em .1em; border: 2px solid var(--st); border-radius: 2px;
  color: var(--st); background: #fff;
  font-family: var(--f-data); font-weight: 700; font-size: .92rem; line-height: 1.35; max-width: 100%;
}
.status::before { content: ""; width: .55em; height: .55em; background: var(--st); flex: none; }
.status--open { --st: var(--ink-2); }
.status--open::before { background: transparent; box-shadow: inset 0 0 0 2px var(--st); }
.status--submitted { --st: var(--blue); }
.status--progress { --st: var(--blue-deep); border-style: dashed; }
.status--approved { --st: var(--ok); }
.status--returned { --st: var(--err); }
.status--warning { --st: var(--warn); background: var(--warn-bg); }
.status--expired { --st: #5f6573; text-decoration: line-through; text-decoration-thickness: 2px; }

/* ------------------------------------------------------------------ Hinweise (Vertrag) */
.notice { --n: var(--blue); --nb: var(--sky); display: grid; gap: .25rem; padding: var(--s2) var(--s3) var(--s2) calc(var(--s3) - 2px); border-left: 6px solid var(--n); background: var(--nb); color: var(--ink); border-radius: 0 var(--r) var(--r) 0; }
.notice > * + * { margin-top: .4rem; }
.notice--info { --n: var(--blue); --nb: var(--sky); }
.notice--success { --n: var(--ok); --nb: var(--ok-bg); }
.notice--warning { --n: var(--star-deep); --nb: var(--warn-bg); }
.notice--error { --n: var(--err); --nb: var(--err-bg); }
.notice a { color: inherit; font-weight: 700; }
.messages { display: grid; gap: var(--s1); margin-block: var(--s3); }

/* ------------------------------------------------------------------ Bereiche (Vertrag) */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.panel__head { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); align-items: center; justify-content: space-between; padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line); }
.panel__head > h2, .panel__head > h3 { font-family: var(--f-text); font-size: 1.15rem; font-weight: 700; letter-spacing: 0; }
.panel__body { padding: var(--s3); }
.panel__body > * + * { margin-top: var(--s2); }
.panel--blue { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ------------------------------------------------------------------ Daten (Vertrag): wie die Felder der Karte */
.datalist { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: .45rem var(--s3); }
.datalist dt { font-family: var(--f-data); color: var(--muted); font-size: .95rem; line-height: 1.65; }
.datalist dd { margin: 0; font-weight: 400; min-width: 0; }
@media (max-width: 30rem) { .datalist { grid-template-columns: 1fr; gap: 0; } .datalist dd + dt { margin-top: .6rem; } }
.table-wrap { position: relative; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); }
.table-wrap:focus-visible { outline: 3px solid var(--ink); }
.table { width: 100%; border-collapse: collapse; font-size: 1rem; background: #fff; }
.table caption { text-align: left; padding: var(--s2); font-weight: 700; }
.table th, .table td { padding: .7rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { font-weight: 700; background: var(--mist); border-bottom: 2px solid var(--ink); white-space: nowrap; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody tr:hover { background: #fafbfd; }
.table td.num, .table th.num { text-align: right; font-family: var(--f-data); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ Ablauf (Vertrag) */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.checklist__item { --m: var(--line-strong); position: relative; display: grid; grid-template-columns: 2rem 1fr; gap: .25rem var(--s2); padding: .9rem 0; border-bottom: 1px solid var(--line); }
.checklist__item:last-child { border-bottom: 0; }
.checklist__item::before { content: ""; grid-row: 1 / span 3; width: 1.5rem; height: 1.5rem; margin-top: .15rem; border: 2px solid var(--m); border-radius: 2px; background: #fff center / 1rem no-repeat; }
.checklist__item > * { grid-column: 2; min-width: 0; }
.checklist__item--done { --m: var(--blue); }
.checklist__item--done::before { background-color: var(--blue); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23fff' stroke-width='2.4'/%3E%3C/svg%3E"); }
.checklist__item--current { --m: var(--ink); }
.checklist__item--current::before { background: var(--star); box-shadow: inset 0 0 0 3px #fff; }
.checklist__item--current { background: linear-gradient(var(--sky), var(--sky)) left / 4px 100% no-repeat; }
.checklist__item--returned { --m: var(--err); }
.checklist__item--returned::before { background-color: var(--err); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v6.5M8 11.6v1.6' fill='none' stroke='%23fff' stroke-width='2.4'/%3E%3C/svg%3E"); }
.checklist__item--open { --m: var(--line-strong); }

/* ------------------------------------------------------------------ Fortschritt (Vertrag) */
progress.meter { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: .75rem; border: 0; border-radius: 0; background: var(--sky-2); color: var(--blue); overflow: hidden; }
progress.meter::-webkit-progress-bar { background: var(--sky-2); }
progress.meter::-webkit-progress-value { background: var(--blue); }
progress.meter::-moz-progress-bar { background: var(--blue); }

/* ------------------------------------------------------------------ Medien und Leer (Vertrag) */
.ratio-16x9 { position: relative; aspect-ratio: 16 / 9; width: 100%; background: var(--ink); overflow: hidden; border-radius: var(--r); }
.ratio-16x9 > iframe, .ratio-16x9 > video, .ratio-16x9 > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.empty { padding: var(--s4) var(--s3); text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--r); }
.empty > * + * { margin-top: var(--s1); }

/* ------------------------------------------------------------------ Weitere Bausteine */
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; font-size: var(--fs-small); }
.breadcrumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--muted); }
.breadcrumbs a { color: inherit; display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs [aria-current] { color: var(--muted); }
.on-blue .breadcrumbs [aria-current], .on-blue .breadcrumbs li + li::before { color: rgba(255, 255, 255, .82); }
.pagination { display: flex; flex-wrap: wrap; gap: var(--s1); align-items: center; justify-content: center; margin-top: var(--s4); font-family: var(--f-data); }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 .6rem; border: 2px solid transparent; border-radius: var(--r); text-decoration: none; }
.pagination a { border-color: var(--line); }
.pagination [aria-current="page"] { background: var(--blue); color: #fff; }
.tag { display: inline-block; font-family: var(--f-data); font-size: .9rem; padding: 0 .4em; background: var(--sky); border-radius: 2px; }

/* Blaue Flaeche */
.band { padding-block: var(--s5); }
.band--blue, .on-blue { background: var(--blue); color: #fff; }
.band--blue a:not(.btn), .on-blue a:not(.btn) { color: #fff; }
.band--sky { background: var(--sky); }
.band--mist { background: var(--mist); }
.band--tight { padding-block: var(--s4); }

/* ------------------------------------------------------------------ Kopf */
.site-header { position: relative; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.site-header__bar { display: flex; align-items: center; gap: var(--s2); min-height: 76px; }
.brand { display: inline-flex; flex: none; align-items: center; padding: 6px 0; border-radius: 6px; }
.brand img { width: auto; height: 52px; }
@media (min-width: 64rem) { .brand img { height: 58px; } }
.nav { margin-left: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.nav__list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .55rem; color: var(--ink); text-decoration: none; font-weight: 400; border-bottom: 3px solid transparent; white-space: nowrap; }
.nav__list a:hover { border-bottom-color: var(--sky-2); }
.nav__list a[aria-current="page"], .nav__list a.is-active { border-bottom-color: var(--blue); font-weight: 700; }
.nav__extra { display: none; }
.site-header__tools { display: flex; flex: none; align-items: center; gap: .5rem; }
.site-header__tools .btn { min-height: 44px; padding: .5rem 1rem; font-size: 1rem; white-space: nowrap; }
.account-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .5rem; color: var(--ink); text-decoration: underline; text-underline-offset: .2em; white-space: nowrap; }
.menu-toggle { display: none; }

/* Sprachwahl als details */
.lang { position: relative; }
.lang > summary { list-style: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: 0 .6rem; cursor: pointer; font-family: var(--f-data); font-weight: 400; border: 2px solid transparent; border-radius: var(--r); white-space: nowrap; }
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary::after { content: ""; width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.lang[open] > summary { border-color: var(--line); }
.lang__menu { position: absolute; right: 0; top: calc(100% + 4px); min-width: 13rem; list-style: none; margin: 0; padding: .35rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); z-index: 30; }
.lang__menu a { display: flex; justify-content: space-between; gap: 1rem; min-height: 44px; align-items: center; padding: 0 .65rem; color: var(--ink); text-decoration: none; border-radius: 2px; }
.lang__menu a:hover { background: var(--sky); }
.lang__menu a[aria-current="true"] { font-weight: 700; }
.lang__menu .mono { color: var(--muted); }

/* Menueknopf statt Navigation, solange die Zeile nicht in eine Reihe passt (gemessen, ohne Umbruch):
   EN/DE/ES bis 76rem, Franzoesisch (FR, FR-CA) mit den laengsten Beschriftungen bis 96rem
   (gemessen eingeloggt, "Mon tableau de bord" ist die laengste Kombination).
   Die zweite Fassung ist dieselbe Regelmenge mit Praefix html:lang(fr); bitte beide gemeinsam aendern. */
@media (max-width: 75.99rem) {
  .site-header__bar { min-height: 64px; }
  .brand img { height: 44px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .75rem; margin-left: auto; background: transparent; border: 2px solid var(--ink); border-radius: var(--r); font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
  .menu-toggle__bars { width: 18px; height: 12px; background: linear-gradient(var(--ink) 0 0) top / 100% 2px no-repeat, linear-gradient(var(--ink) 0 0) center / 100% 2px no-repeat, linear-gradient(var(--ink) 0 0) bottom / 100% 2px no-repeat; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: linear-gradient(45deg, transparent 45%, var(--ink) 45% 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, var(--ink) 45% 55%, transparent 55%); }
  .site-header__tools { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: var(--blue); color: #fff; padding: var(--s3) var(--gutter) var(--s4); box-shadow: 0 18px 30px rgba(14, 26, 58, .2); }
  .nav:not(.is-open) { display: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a { color: #fff; font-family: var(--f-display); font-size: 1.35rem; min-height: 52px; padding: 0; border-bottom: 1px solid rgba(255, 255, 255, .18); white-space: normal; }
  .nav__list a[aria-current="page"] { border-bottom-color: var(--star); }
  .nav__extra { display: grid; gap: var(--s2); margin-top: var(--s3); }
  .nav__extra .account-link { color: #fff; padding: 0; }
  .nav__extra .lang > summary { padding: 0; color: #fff; }
  .nav__extra .lang__menu { position: static; box-shadow: none; margin-top: .25rem; }
  /* Das Menue ist blau: Primaerknopf und Fokus wie .on-blue (Stern-Gelb), Sprachliste bleibt weiss */
  .nav .btn--primary { --btn-bg: var(--star); --btn-fg: var(--ink); --btn-bd: var(--star); }
  .nav .btn--primary:hover { --btn-bg: #fff; --btn-bd: #fff; }
  .nav .btn:focus-visible { box-shadow: 0 0 0 3px var(--blue), 0 0 0 6px var(--star); }
  .nav a:not(.btn):focus-visible, .nav summary:focus-visible { outline-color: var(--star); }
  .nav .lang__menu a:focus-visible { outline-color: var(--ink); }
}
@media (min-width: 76rem) and (max-width: 95.99rem) {
  html:lang(fr) .site-header__bar { min-height: 64px; }
  html:lang(fr) .brand img { height: 44px; }
  html:lang(fr) .menu-toggle { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .75rem; margin-left: auto; background: transparent; border: 2px solid var(--ink); border-radius: var(--r); font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
  html:lang(fr) .menu-toggle__bars { width: 18px; height: 12px; background: linear-gradient(var(--ink) 0 0) top / 100% 2px no-repeat, linear-gradient(var(--ink) 0 0) center / 100% 2px no-repeat, linear-gradient(var(--ink) 0 0) bottom / 100% 2px no-repeat; }
  html:lang(fr) .menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: linear-gradient(45deg, transparent 45%, var(--ink) 45% 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, var(--ink) 45% 55%, transparent 55%); }
  html:lang(fr) .site-header__tools { display: none; }
  html:lang(fr) .nav { position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: var(--blue); color: #fff; padding: var(--s3) var(--gutter) var(--s4); box-shadow: 0 18px 30px rgba(14, 26, 58, .2); }
  html:lang(fr) .nav:not(.is-open) { display: none; }
  html:lang(fr) .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  html:lang(fr) .nav__list a { color: #fff; font-family: var(--f-display); font-size: 1.35rem; min-height: 52px; padding: 0; border-bottom: 1px solid rgba(255, 255, 255, .18); white-space: normal; }
  html:lang(fr) .nav__list a[aria-current="page"] { border-bottom-color: var(--star); }
  html:lang(fr) .nav__extra { display: grid; gap: var(--s2); margin-top: var(--s3); }
  html:lang(fr) .nav__extra .account-link { color: #fff; padding: 0; }
  html:lang(fr) .nav__extra .lang > summary { padding: 0; color: #fff; }
  html:lang(fr) .nav__extra .lang__menu { position: static; box-shadow: none; margin-top: .25rem; }
  html:lang(fr) .nav .btn--primary { --btn-bg: var(--star); --btn-fg: var(--ink); --btn-bd: var(--star); }
  html:lang(fr) .nav .btn--primary:hover { --btn-bg: #fff; --btn-bd: #fff; }
  html:lang(fr) .nav .btn:focus-visible { box-shadow: 0 0 0 3px var(--blue), 0 0 0 6px var(--star); }
  html:lang(fr) .nav a:not(.btn):focus-visible, html:lang(fr) .nav summary:focus-visible { outline-color: var(--star); }
  html:lang(fr) .nav .lang__menu a:focus-visible { outline-color: var(--ink); }
}

/* ------------------------------------------------------------------ Inhalt */
main { display: block; }
main:focus { outline: none; }
.page-head { padding-block: var(--s4) var(--s4); }
.page-head--blue { background: var(--blue); color: #fff; padding-block: var(--s4) var(--s5); }
.page-head__meta { font-family: var(--f-data); font-size: .98rem; }
.page-head--blue .page-head__meta { color: #fff; }
.page-head h1 { max-width: 18ch; }
.page-head .lead { margin-top: var(--s3); }
.page-head--blue .lead { color: #fff; }
.section-gap { margin-top: var(--s5); }

/* ------------------------------------------------------------------ Fuss */
.site-footer { margin-top: var(--s5); background: var(--blue); color: #fff; }
.site-footer a { color: #fff; }
.site-footer :focus-visible { outline-color: var(--star); }
.site-footer__top { display: grid; gap: var(--s4); padding-block: var(--s5) var(--s4); }
@media (min-width: 52rem) { .site-footer__top { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer__claim { font-family: var(--f-display); font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); line-height: 1.1; max-width: 14ch; }
.site-footer h2 { font-family: var(--f-text); font-weight: 700; font-size: 1rem; margin-bottom: .5rem; color: rgba(255, 255, 255, .86); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-footer__company a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer li a:hover { text-decoration: underline; }
.site-footer__company { font-family: var(--f-data); font-size: .98rem; line-height: 1.55; }
.site-footer__company p + p { margin-top: .5rem; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); justify-content: space-between; padding-block: var(--s3); border-top: 1px solid rgba(255, 255, 255, .28); font-size: var(--fs-small); }
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 0 var(--s3); }
.site-footer__bottom button.linklike { color: #fff; }
.site-footer .note { max-width: 46em; color: rgba(255, 255, 255, .9); font-size: var(--fs-small); }
button.linklike { background: none; border: 0; padding: 0; min-height: 44px; font: inherit; color: var(--blue-ink); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

/* ------------------------------------------------------------------ Einwilligung */
.consent { position: fixed; z-index: 90; left: var(--s2); right: var(--s2); bottom: var(--s2); max-width: 40rem; margin-left: auto; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 0 10px 40px rgba(14, 26, 58, .28); }
.consent[hidden] { display: none; }
.consent { max-height: calc(100vh - 2 * var(--s2)); overflow-y: auto; overscroll-behavior: contain; }
html.consent-open body { padding-bottom: calc(var(--consent-h, 0px) + var(--s2)); }
html.consent-open .chat-launcher, html.menu-open .chat-launcher { visibility: hidden; }
.consent__gpc { padding: var(--s1) var(--s2); background: var(--sky); border-radius: var(--r); }
.consent__inner { padding: var(--s3); display: grid; gap: var(--s2); }
.consent h2 { font-family: var(--f-text); font-size: 1.15rem; letter-spacing: 0; }
.consent p { font-size: 1rem; line-height: 1.5; }
.consent__actions { display: flex; flex-wrap: wrap; gap: var(--s1); }
.consent__actions .btn { flex: 1 1 12rem; }
.consent__choices { display: grid; gap: var(--s1); padding: var(--s2); background: var(--mist); border-radius: var(--r); }
.consent__choices .choice { min-height: 0; }
.consent__choices[hidden] { display: none; }

@media (max-width: 40rem) {
  .consent__inner { padding: .75rem; gap: .55rem; }
  .consent p { font-size: .875rem; line-height: 1.4; }
  .consent__actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .35rem; }
  .consent__actions .btn { min-width: 0; min-height: 44px; padding: .4rem .3rem; font-size: .875rem; }
  .consent__actions [data-consent-customize], .consent__actions [data-consent-save] { grid-column: 1 / -1; }
}
@media (max-width: 40rem) and (max-height: 38rem) {
  .consent { position: relative; inset: auto; max-width: none; margin: 0; border-width: 0 0 1px; box-shadow: none; }
  html.consent-open body { padding-bottom: 0; }
}

.program-details { display: grid; gap: .4rem; padding: .75rem 0 .75rem 1rem; border-inline-start: 2px solid var(--line); }
.program-details p { margin: 0; }

/* ------------------------------------------------------------------ Teambereich und Kundenbereich (Rahmen) */
.app-shell { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); padding-block: var(--s4) 0; }
.app-shell > * { min-width: 0; }
.app-main { min-width: 0; }
@media (min-width: 64rem) { .app-shell { grid-template-columns: 15rem minmax(0, 1fr); align-items: start; } }
.app-nav { font-size: 1rem; }
.app-nav ul { list-style: none; padding: 0; margin: 0; }
.app-nav a { display: flex; align-items: center; min-height: 44px; padding: .35rem .75rem; color: var(--ink); text-decoration: none; border-left: 4px solid transparent; }
.app-nav a:hover { background: var(--mist); }
.app-nav a[aria-current="page"] { border-left-color: var(--blue); background: var(--sky); font-weight: 700; }
@media (max-width: 63.99rem) {
  .app-shell { gap: var(--s3); padding-top: var(--s2); }
  .app-nav { margin-inline: calc(-1 * var(--gutter)); border-bottom: 1px solid var(--line); }
  .app-nav ul { display: flex; gap: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .app-nav ul::-webkit-scrollbar { display: none; }
  .app-nav li { flex: none; scroll-snap-align: start; }
  .app-nav a { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; padding-inline: .7rem; }
  .app-nav a[aria-current="page"] { border-bottom-color: var(--blue); background: transparent; }
}

@media (min-width: 64rem) { .app-nav { position: sticky; top: var(--s3); } }
.app-head { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: end; justify-content: space-between; padding-bottom: var(--s3); border-bottom: 2px solid var(--ink); margin-bottom: var(--s4); }
.app-head h1 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); }
.app-main > * + * { margin-top: var(--s3); }
.team-bar { background: var(--ink); color: #fff; font-size: .95rem; }
.team-bar a { color: #fff; }
.team-bar .wrap { display: flex; flex-wrap: wrap; gap: .25rem var(--s3); align-items: center; min-height: 48px; }
.team-bar strong { font-family: var(--f-data); }

/* ------------------------------------------------------------------ Kontrastmodus (forced colors) */
@media (forced-colors: active) {
  :focus-visible, input:focus-within { outline: 3px solid Highlight !important; outline-offset: 2px !important; }
}

/* ------------------------------------------------------------------ Bewegung und Druck */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .consent, .skip-link, .chat-launcher, .no-print { display: none !important; }
  body { font-size: 11pt; }
  a { color: inherit; }
}

/* Anmelden und Passwort: Formular plus Foto (ab Desktop) */
.entrance { display: grid; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.entrance__form { max-width: 30rem; min-width: 0; }
.entrance__photo { display: none; }
@media (min-width: 64rem) {
  .entrance { grid-template-columns: minmax(0, 30rem) minmax(0, 30rem); justify-content: space-between; }
  .entrance__photo { display: block; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: var(--sky); }
  .entrance__photo picture { display: block; height: 100%; }
  .entrance__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
}

/* ------------------------------------------------------------------ Textseiten: Fliesstext links, rechts mitlaufend Inhalt und naechster Schritt (wie die Zielseiten) */
.page-body--aside { display: grid; gap: var(--s4); padding-block: var(--s5); }
.page-aside__inner { display: grid; gap: var(--s3); }
.page-aside__title { font-family: var(--f-data); font-size: .82rem; color: var(--muted); }
.page-aside__toc { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.page-aside__toc li { border-bottom: 1px solid var(--line); }
.page-aside__toc a { display: block; padding: .7rem 0; font-weight: 600; text-decoration: none; color: var(--ink); }
.page-aside__toc a:hover { color: var(--blue-ink); }
.page-aside__next { display: grid; gap: var(--s2); padding: var(--s3); background: var(--blue); color: #fff; border-radius: clamp(10px, 1.2vw, 18px); }
.page-aside__next .btn--primary { --btn-bg: var(--star); --btn-fg: var(--ink); --btn-bd: var(--star); justify-self: start; }
.page-aside__next .btn--primary:hover { --btn-bg: #fff; --btn-bd: #fff; }
@media (min-width: 64rem) {
  .page-body--aside { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: clamp(3rem, 6vw, 8rem); align-items: start; }
  .page-aside__inner { position: sticky; top: var(--s4); }
}

/* ------------------------------------------------------------------ Plan-Karte: jedes Paket als Fassung der blauen Karte (Startseite, Pakete, Kauf) */
.plan-card {
  position: relative; aspect-ratio: 1.51; width: 100%; border-radius: clamp(10px, 1.1vw, 16px); padding: 1rem 1.1rem;
  display: grid; grid-template-rows: auto 1fr auto; background: var(--sky); color: var(--blue);
  box-shadow: 0 30px 50px -32px rgba(14, 26, 58, .5), inset 0 0 0 1px rgba(36, 76, 164, .12); overflow: hidden;
}
.plan-card::after { /* Punktraster der Weltkugel, leise */ content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: radial-gradient(currentColor 1px, transparent 1.4px); background-size: 9px 9px; -webkit-mask-image: radial-gradient(circle at 85% 30%, #000 0, transparent 55%); mask-image: radial-gradient(circle at 85% 30%, #000 0, transparent 55%); }
.plan-card--international { background: var(--blue); color: #fff; }
.plan-card--premium { background: var(--night); color: #fff; }
.plan-card__stars { display: flex; gap: .3rem; }
.plan-card__stars i { width: 1.05rem; height: 1.05rem; background: var(--star); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.plan-card__name { align-self: end; position: relative; z-index: 1; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.2rem, .9rem + .8vw, 1.6rem); line-height: 1; letter-spacing: -.01em; }
.plan-card__brand { position: absolute; right: 1rem; top: .95rem; font-family: var(--f-data); font-size: .7rem; opacity: .75; }

/* Sprachwahl mit Flaggen */
.lang__flag { display: inline-block; width: 21px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(14, 26, 58, .18); flex: none; }
.lang > summary .lang__flag { margin-right: .15rem; }
.lang__name { display: inline-flex; align-items: center; gap: .6rem; }

/* Airline-Detail: Feedback links, Regeln rechts mitlaufend; Eignungscheck: zwei Wege nebeneinander */
.airline-grid { display: grid; gap: var(--s4); }
@media (min-width: 64rem) {
  .airline-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: clamp(3rem, 6vw, 7rem); align-items: start; }
  .airline-grid > .notice, .airline-grid > .messages { grid-column: 1 / -1; }
  .airline-grid__reviews { grid-column: 1; grid-row: 2; }
  .airline-grid__rules { grid-column: 2; grid-row: 2; position: sticky; top: var(--s4); }
}
.checks-choice { display: grid; gap: var(--s3); }
@media (min-width: 52rem) { .checks-choice { grid-template-columns: 1fr 1fr; } }
.page-hero nav a { color: #fff; }
/* Seitenkopf global (auch fuer Airlines, Eignungscheck und andere App-Seiten ohne web.css) */
.page-hero { padding-block: var(--s4) var(--s5); }
.page-hero h1 { font-size: clamp(2.1rem, 1.1rem + 3.6vw, 4.5rem); max-width: 16ch; }
.page-hero .lead { margin-top: var(--s3); color: #fff; }
.page-hero nav { margin-bottom: var(--s3); }
.page-hero .page-head__meta { margin-top: var(--s2); color: rgba(255, 255, 255, .8); }
/* Sprachmenue: auf blauem Kopf (Startseite) dunkle Schrift im weissen Menue */
.lang__menu { min-width: 15rem; }
.lang__menu a, .page-home .site-header .lang__menu a { color: var(--ink); white-space: nowrap; }

/* Zielseiten: PSD zuerst (Training und Pruefung, Kabine, dann Einreisepapiere) */
.psd-steps { display: grid; gap: var(--s3); margin-bottom: var(--s5); padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--sky); border-radius: clamp(12px, 1.4vw, 20px); }
.psd-steps h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.4rem); max-width: 22ch; }
.psd-steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); counter-reset: step; }
.psd-steps__list li { display: grid; gap: .6rem; align-content: start; padding-top: var(--s2); border-top: 2px solid var(--blue); }
.psd-steps__list h3 { font-size: 1.1rem; }
.psd-steps__list .btn { justify-self: start; }
@media (min-width: 60rem) { .psd-steps__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); } }
.psd-steps h2 { hyphens: manual; -webkit-hyphens: manual; max-width: 26ch; }
