:root {
  --blue: #003d8f; --blue-ink: #00265c; --blue-tint: #e7edf6;
  --silver-50: #f5f6f7; --silver-100: #e9ebec; --silver-300: #c7ccd1; --silver-600: #6b737a;
  --ink: #191d20;
  /* --gold ist die textsichere, abgedunkelte Variante (~4.8:1 auf Weiss,
     WCAG-AA-faehig) -- --gold-bright ist das echte Marken-Gold aus dem
     Logo und bleibt reinen Nicht-Text-Akzenten vorbehalten (Rahmen,
     Badges, Tag-Hintergruende). Siehe Memory euro-trans-gold-contrast-issue:
     die urspruengliche Phase-4/5/6-Variante (#B8930A) erreichte nur
     ~2.9:1 und wurde hier korrigiert. */
  --gold: #8a6f08; --gold-bright: #dabc00;
  --surface: #ffffff; --bg: #ffffff; --border: rgba(25,29,32,0.13);
  --ok: #1a7a4c; --ok-tint: rgba(26,122,76,0.1);
  --danger: #a4222c; --danger-tint: rgba(164,34,44,0.1);
  --photo-overlay: rgba(0,38,92,0.74);
}
/* Bewusst nur ein Theme (2026-07-26 Entscheidung, siehe Phase-6-Mockup):
   kein Dark Mode fuer die echte Website. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }
img { display: block; max-width: 100%; }

.meta-strip { background: #00265c; color: rgba(255,255,255,0.75); font-size: 0.72rem; letter-spacing: 0.04em; text-align: center; padding: 0.5rem 1rem; }
.meta-strip a { color: #fff; text-decoration: underline; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 2rem; }

.site-nav { position: sticky; top: 0; z-index: 20; background: #ffffff; border-bottom: 1px solid rgba(25,29,32,0.13); color: #191d20; }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 0.8rem; padding-bottom: 0.8rem; gap: 2rem; }
.site-nav .logo img { height: 34px; width: auto; }
.site-nav ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; font-size: 0.92rem; font-weight: 600; }
.site-nav ul a { color: #191d20; }
.site-nav ul a:hover { color: #003d8f; }
.site-nav .navlinks { display: flex; align-items: center; gap: 1.6rem; }
.btn { display: inline-flex; align-items: center; padding: 0.7em 1.3em; font-size: 0.9rem; font-weight: 700; border-radius: 3px; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-ink); }
.btn-secondary { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-on-dark { background: #fff; color: #00265c; }
.btn-on-dark.outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-sm { padding: 0.45em 0.9em; font-size: 0.8rem; }
.btn-block { width: 100%; justify-content: center; }

.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; background-size: cover; background-position: center 60%; color: #fff; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; padding: 4.5rem 0 4rem; max-width: 640px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.1; }
.hero .sub { margin-top: 1.1rem; font-size: 1.1rem; color: rgba(255,255,255,0.85); max-width: 46ch; }
.hero .ctas { margin-top: 1.8rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-small { min-height: 46vh; }

/* Video-Hero -- Video liegt ueber dem per background-image gesetzten
   Poster-Frame, damit bei prefers-reduced-motion oder fehlgeschlagenem
   Laden exakt das gleiche Bild wie vorher erscheint. Der Farbverlauf
   fuer Textkontrast sitzt als eigenes ::before ueber dem Video (sonst
   wuerde das Video den im background-image gebackenen Verlauf verdecken). */
.hero-video-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }
.hero-video-bg::-webkit-media-controls,
.hero-video-bg::-webkit-media-controls-panel,
.hero-video-bg::-webkit-media-controls-start-playback-button { display: none !important; }
.hero-video::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,38,92,0.2), var(--photo-overlay) 88%);
}
@media (prefers-reduced-motion: reduce) {
  .hero-video-bg { display: none; }
}

section { padding: 5rem 0; }
section.tight { padding: 3.5rem 0; }
.eyebrow { font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 0.9rem; padding-bottom: 0.7rem; border-bottom: 3px solid var(--gold-bright); display: inline-block; }
section h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin-bottom: 0.8rem; color: var(--ink); margin-top: 0.9rem; }
section .intro { color: var(--silver-600); max-width: 60ch; font-size: 1.02rem; margin-bottom: 2.4rem; }

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.card { background: var(--silver-50); border: 1px solid var(--silver-100); padding: 1.7rem 1.6rem; }
.card svg { width: 2.2rem; height: 2.2rem; stroke: var(--blue); margin-bottom: 1rem; }
.card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.9rem; color: var(--silver-600); }
.card .link { display: inline-block; margin-top: 0.6rem; font-size: 0.85rem; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--gold-bright); padding-bottom: 0.15em; }
.card .link:hover { color: var(--blue); border-color: var(--blue); }

.branch-card { background: var(--silver-50); border: 1px solid var(--silver-100); padding: 1.4rem 1.3rem; font-weight: 700; font-size: 0.98rem; color: var(--ink); }
.flag-note { font-size: 0.78rem; color: var(--silver-600); margin-top: 1.2rem; }

.stat-row { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.stat { flex: 1; min-width: 12rem; border-left: 3px solid var(--gold); padding-left: 1.1rem; }
.stat b { font-family: ui-monospace, "IBM Plex Mono", Consolas, monospace; font-variant-numeric: tabular-nums; font-size: 2.1rem; color: var(--gold); display: block; }
.stat span { font-size: 0.85rem; color: var(--silver-600); }
.stat .flag { color: var(--silver-300); }

.film { position: relative; height: 56vh; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.film::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,38,92,0.6), rgba(0,38,92,0.25)); }
.film a.play-link { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.play { width: 4.2rem; height: 4.2rem; border-radius: 50%; background: rgba(255,255,255,0.92); display: flex; align-items: center; justify-content: center; }
.play svg { width: 1.5rem; height: 1.5rem; fill: var(--blue); margin-left: 3px; }
.film-label { color: #fff; font-weight: 700; }

.photo-cta { position: relative; min-height: 50vh; display: flex; align-items: center; background-size: cover; background-position: center; color: #fff; }
.photo-cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--photo-overlay) 42%, rgba(0,38,92,0.3)); }
.photo-cta-inner { position: relative; z-index: 1; max-width: 32rem; }
.photo-cta blockquote { margin: 0; font-size: clamp(1.2rem, 2.6vw, 1.8rem); font-weight: 700; line-height: 1.3; }
.photo-cta .ctas { margin-top: 1.5rem; }

.badge-live { display: inline-block; font-size: 0.66rem; font-weight: 700; background: var(--ok-tint); color: var(--ok); padding: 0.2em 0.6em; border-radius: 999px; margin-bottom: 0.6rem; }
.badge-soon { display: inline-block; font-size: 0.66rem; font-weight: 700; background: var(--silver-100); color: var(--silver-600); padding: 0.2em 0.6em; border-radius: 999px; margin-bottom: 0.6rem; }

.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; }
.contact-person { display: flex; gap: 1rem; align-items: center; border: 1px solid var(--border); background: var(--surface); padding: 1.2rem; margin-bottom: 2rem; }
.contact-person img { width: 3.6rem; height: 3.6rem; border-radius: 50%; object-fit: cover; }
.contact-person .name { font-weight: 700; font-size: 0.95rem; }
.contact-person .role { font-size: 0.8rem; color: var(--silver-600); }
.tabs { display: flex; gap: 0.5rem; margin-bottom: 1.4rem; }
.tab { padding: 0.6em 1.1em; font-size: 0.85rem; font-weight: 700; border: 1px solid var(--border); background: var(--surface); color: var(--silver-600); cursor: pointer; font-family: inherit; }
.tab.active { border-color: var(--blue); color: var(--blue); background: var(--blue-tint); }
.form-card { background: var(--surface); border: 1px solid var(--border); padding: 1.8rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 0; }
.field + .field { margin-top: 1rem; }
.form-grid .field { margin-top: 0; }
.field label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--silver-600); display: block; margin-bottom: 0.4rem; }
.field .input, .field textarea, .field select { border: 1.5px solid var(--silver-300); padding: 0.6em 0.75em; font-size: 0.88rem; background: var(--silver-50); font-family: inherit; width: 100%; color: var(--ink); outline: none; }
.field .input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.form-card .btn { margin-top: 1.3rem; }
.ldm-calc { margin-top: 1.5rem; padding-top: 1.4rem; border-top: 1px dashed var(--border); }
.ldm-title { font-size: 0.8rem; font-weight: 700; color: var(--blue); display: block; margin-bottom: 0.9rem; }
.ldm-title .hint { font-weight: 400; color: var(--silver-600); font-size: 0.76rem; text-transform: none; letter-spacing: 0; }
.ldm-result { margin-top: 1rem; font-family: ui-monospace, "IBM Plex Mono", Consolas, monospace; font-variant-numeric: tabular-nums; font-size: 1.5rem; font-weight: 700; color: var(--blue); }
.ldm-result span.unit { font-size: 1rem; font-weight: 600; color: var(--silver-600); }

.flash { padding: 0.9rem 1.1rem; font-size: 0.88rem; margin-bottom: 1.5rem; border: 1px solid; }
.flash-ok { background: var(--ok-tint); border-color: var(--ok); color: var(--ok); }
.flash-error { background: var(--danger-tint); border-color: var(--danger); color: var(--danger); }

/* Portal/Admin */
.auth-card { max-width: 26rem; margin: 0 auto; }
.status-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.3em 0.7em; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em; }
.status-eingegangen, .status-in_pruefung { background: var(--blue-tint); color: var(--blue); }
.status-gespraech { background: color-mix(in srgb, var(--gold-bright) 25%, transparent); color: var(--gold); }
.status-vertragsangebot { background: color-mix(in srgb, var(--gold-bright) 25%, transparent); color: var(--gold); }
.status-unterschrieben { background: var(--ok-tint); color: var(--ok); }
.status-abgelehnt { background: var(--danger-tint); color: var(--danger); }
.status-track { display: flex; gap: 0.4rem; margin: 1.2rem 0 1.8rem; flex-wrap: wrap; }
.status-track span { font-size: 0.72rem; padding: 0.35em 0.7em; border: 1px solid var(--border); color: var(--silver-600); }
.status-track span.done { border-color: var(--ok); color: var(--ok); background: var(--ok-tint); }
.status-track span.current { border-color: var(--blue); color: var(--blue); background: var(--blue-tint); font-weight: 700; }

.app-card { border: 1px solid var(--border); background: var(--surface); padding: 1.6rem; margin-bottom: 1.8rem; }
.app-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.app-card-head h3 { font-size: 1.05rem; }

.doc-list { list-style: none; margin: 0.8rem 0; padding: 0; }
.doc-list li { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-size: 0.86rem; }
.doc-list li:last-child { border-bottom: none; }

.thread { margin: 0.8rem 0; display: flex; flex-direction: column; gap: 0.6rem; max-height: 22rem; overflow-y: auto; }
.msg { padding: 0.6rem 0.9rem; border: 1px solid var(--border); font-size: 0.86rem; max-width: 32rem; }
.msg-applicant { background: var(--silver-50); align-self: flex-start; }
.msg-staff { background: var(--blue-tint); align-self: flex-end; }
.msg .meta { font-size: 0.68rem; color: var(--silver-600); margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.03em; }

table.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.admin-table th, table.admin-table td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--border); }
table.admin-table th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--silver-600); }
table.admin-table tr:hover td { background: var(--silver-50); }

.section-title { font-size: 1.05rem; font-weight: 700; margin: 1.8rem 0 0.6rem; }

footer { background: #16181a; color: rgba(255,255,255,0.68); padding: 3.5rem 0 2rem; font-size: 0.85rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; }
footer h4 { color: #fff; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.9rem; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
footer .logo img { height: 26px; filter: brightness(0) invert(1); opacity: 0.9; margin-bottom: 0.8rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2.5rem; padding-top: 1.2rem; display: flex; justify-content: space-between; font-size: 0.76rem; flex-wrap: wrap; gap: 0.6rem; }

.stub-page { min-height: 40vh; display: flex; align-items: center; }
.stub-page .wrap-narrow { text-align: center; }
.stub-page .date { margin-top: 1rem; font-size: 0.85rem; color: var(--silver-600); }

@media (max-width: 1000px) {
  .grid4, .grid3, .grid2 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .site-nav ul { display: none; }
}
