/* PROTHEON – Farbkonzept "Marine & Signalrot" (siehe docs/FARBKONZEPT.md) */
:root {
  --marine-950: #06122A;
  --marine-900: #0A1A33;
  --marine-800: #0E2547;
  --marine-700: #0A2A50;  /* Logo-Marine */
  --marine-500: #1F4E8C;
  --marine-300: #8FA8CF;
  --rot-600: #D01D3B;    /* Logo-Rot */
  --rot-700: #A8172F;
  --rot-100: #FBE7EA;
  --stahl: #5A6B85;
  --nebel: #EEF2F7;
  --linie: #D9E0EA;
  --papier: #FFFFFF;
  --tinte: #0E1726;

  --radius: 14px;
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--tinte); background: var(--papier);
  font-size: 17px; line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--marine-500); }
a:hover { color: var(--rot-600); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1, h2 { -webkit-hyphens: manual; hyphens: manual; overflow-wrap: break-word; }  /* Trennstellen per &shy; gesetzt */
@media (max-width: 400px) { h1 { font-size: 1.9rem; } }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--rot-600); margin-bottom: .9em;
}
.lead { font-size: 1.2rem; color: var(--stahl); max-width: 46em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--linie);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--marine-700); }
.brand img { height: 34px; width: auto; display: block; }
.site-footer .brand img { height: 28px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--tinte); font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--rot-600); }
.langs { display: flex; gap: 4px; }
.langs a { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; text-decoration: none;
  color: var(--stahl); border: 1px solid var(--linie); border-radius: 8px; padding: 4px 8px; }
.langs img { width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); object-fit: cover; display: block; }
.brand { flex-shrink: 0; }
@media (max-width: 400px) {
  .site-header .wrap { gap: 10px; }
  .brand img { height: 28px; }
  .langs { gap: 3px; }
  .langs a { gap: 4px; padding: 4px 5px; font-size: .72rem; }
  .langs img { width: 16px; height: 11px; }
}
.langs a:hover { color: var(--rot-600); border-color: var(--rot-600); }
.langs a[aria-current] { background: var(--marine-700); border-color: var(--marine-700); color: #fff; }
@media (max-width: 920px) { .nav { display: none; } .langs { margin-left: auto; } }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 24px; border-radius: 10px; font-weight: 700;
  text-decoration: none; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--rot-600); color: #fff; }
.btn-primary:hover { background: var(--rot-700); color: #fff; }
.btn-ghost { border: 2px solid currentColor; color: #fff; }
.btn-ghost:hover { color: #fff; border-color: var(--rot-600); }
.btn-row { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px; margin-top: 28px; }  /* Buttons eines Paares gleich breit */
.btn-row .btn { text-align: center; }
@media (max-width: 640px) { .btn-row { grid-auto-flow: row; } }  /* untereinander, ebenfalls gleich breit */

/* Hero */
.hero {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(210,31,60,.28), transparent 60%),
    radial-gradient(800px 600px at 0% 120%, rgba(31,78,140,.55), transparent 60%),
    var(--marine-900);
  color: #fff; padding: 96px 0 88px; overflow: hidden;
}
.hero .eyebrow { color: #FF8A9B; }
.hero h1 { max-width: none; }
.hero h1 em { display: inline-block; }  /* roter Claim-Teil bleibt zusammen; bricht nur als Ganzes um */
.hero h1 em { font-style: normal; color: #FF5C73; }
.hero .lead { color: #C9D5EA; }

/* Kennzahlen */
.stats { background: var(--marine-800); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.stat { padding: 28px 16px; border-left: 1px solid rgba(255,255,255,.1); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: 2rem; font-weight: 800; color: #fff; }
.stat span { font-size: .88rem; color: var(--marine-300); -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 860px) {
  .stats .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
}

/* Sektionen */
section { padding: 88px 0; scroll-margin-top: 68px; }
@media (max-width: 600px) { section { padding: 64px 0; } }
.alt { background: var(--nebel); }
.dark { background: var(--marine-900); color: #fff; }
.dark .lead, .dark p { color: #C9D5EA; }
.dark .eyebrow { color: #FF8A9B; }
.section-head { margin-bottom: 44px; }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
  background: var(--papier); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 26px; position: relative;
}
.card p { color: var(--stahl); font-size: .97rem; margin: 0; }
.card .ico {
  width: 44px; height: 44px; border-radius: 10px; background: var(--rot-100);
  display: grid; place-items: center; margin-bottom: 16px; color: var(--rot-600);
}
.card .ico svg { width: 24px; height: 24px; }
.dark .card { background: var(--marine-800); border-color: rgba(255,255,255,.08); }
.dark .card p { color: #AFC0DC; }
.dark .card .ico { background: rgba(210,31,60,.18); color: #FF6F84; }

.card ul, .list { margin: 12px 0 0; padding: 0; list-style: none; }
.card li, .list li { position: relative; padding-left: 20px; margin: 6px 0; font-size: .95rem; color: var(--stahl); }
.card li::before, .list li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--rot-600);
}
.dark .card li { color: #AFC0DC; }

/* Branchen */
.industry { border-top: 4px solid var(--marine-700); }
.industry:hover { border-top-color: var(--rot-600); }

/* Compliance-Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--linie); background: var(--papier); border-radius: 999px;
  padding: 8px 16px; font-weight: 600; font-size: .92rem; color: var(--marine-700);
}
.chip small { color: var(--stahl); font-weight: 500; }

/* Migration – Schritte */
.steps { counter-reset: s; }
.step { padding-top: 56px; }
.step::before {
  counter-increment: s; content: counter(s); position: absolute; top: 22px; left: 26px;
  width: 26px; height: 26px; border-radius: 50%; background: var(--rot-600); color: #fff;
  font-weight: 800; font-size: .85rem; display: grid; place-items: center;
}

/* Pilotprogramm */
.pilot {
  background: linear-gradient(135deg, var(--marine-700), var(--marine-900));
  color: #fff; border-radius: 20px; padding: 56px; display: grid;
  grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start;
}
.pilot p { color: #C9D5EA; }
.pilot .list li { color: #E3EAF6; }
@media (max-width: 860px) { .pilot { grid-template-columns: 1fr; padding: 32px 22px; } }

/* Kontakt */
.contact { text-align: center; }
.contact .lead { margin: 0 auto; }
.contact .btn-row { justify-content: center; }

/* Footer */
.site-footer { background: var(--marine-950); color: var(--marine-300); padding: 40px 0; font-size: .9rem; }
.footer-top, .footer-bottom { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.footer-top { padding-bottom: 24px; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.1); align-items: flex-start; }
.footer-solutions { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.footer-solutions span { width: 100%; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--marine-300); }
@media (max-width: 640px) { .footer-solutions { margin-left: 0; } }
.site-footer a { color: #D7E0F0; text-decoration: none; }
.site-footer a:hover { color: #FF8A9B; }
.site-footer .links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px 22px; }
@media (max-width: 640px) { .site-footer .links { margin-left: 0; } }

/* Rechtstexte */
.legal { padding: 64px 0; }
.legal .wrap { max-width: 820px; }
.legal h2 { font-size: 1.4rem; margin-top: 1.6em; }
.legal .todo { background: var(--rot-100); color: var(--rot-700); padding: 0 4px; border-radius: 4px; }

/* Hero-Nutzenpunkte */
.hero-points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero-points li { position: relative; padding-left: 26px; color: #E3EAF6; font-weight: 600; }
.hero-points li::before { content: "✓"; position: absolute; left: 0; color: #FF6F84; font-weight: 800; }

/* Heute / Mit PROTHEON / Ergebnis */
.story-tag { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--stahl); margin-bottom: 10px; }
.story-result { background: var(--marine-700); border-color: var(--marine-700); }
.story-result h3, .story-result .story-tag { color: #fff; }
.story-result li { color: #E3EAF6; }
.story-result li::before { background: #FF6F84; }

/* Prozessablauf */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: f; }
.flow li { background: var(--papier); border: 1px solid var(--linie); border-top: 4px solid var(--marine-700);
  border-radius: var(--radius); padding: 18px 16px; }
.flow li:last-child { border-top-color: var(--rot-600); }
.flow b { display: block; color: var(--marine-700); margin-bottom: 6px; }
.flow b::before { counter-increment: f; content: counter(f) ". "; color: var(--rot-600); }
.flow span { font-size: .9rem; color: var(--stahl); overflow-wrap: break-word; }
.flow-arrow { display: none; }  /* Reihenfolge ueber die Nummern; 6 Karten nebeneinander waren zu schmal fuer lange Woerter */
@media (max-width: 640px) { .flow { grid-template-columns: 1fr; } }

/* Rollen */
.persona { text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.persona:hover { border-color: var(--rot-600); transform: translateY(-2px); color: inherit; }
.persona p { flex: 1; }
.persona .more { margin-top: 14px; font-weight: 700; color: var(--rot-600); font-size: .92rem; }

/* Umsetzungsstand */
.status .badge { display: inline-block; font-size: .78rem; font-weight: 800; padding: 5px 12px; border-radius: 999px; margin-bottom: 6px; }
.status-done .badge { background: #E3F4EA; color: #17663A; }
.status-partial .badge { background: #FFF3D6; color: #8A5A00; }
.status-ready .badge { background: var(--nebel); color: var(--marine-700); }
.status-done li::before { background: #1E8A4C; }
.status-partial li::before { background: #C98A00; }
.status-ready li::before { background: var(--marine-500); }

/* Links aus Karten und Chips auf Fachseiten */
.card-link { display: inline-block; margin-top: 14px; font-weight: 700; font-size: .92rem; color: var(--rot-600); text-decoration: none; }
/* Links in Kacheln immer unten buendig: Karte als Spalte, erster Link schiebt sich ans Ende (Karten einer Reihe sind gleich hoch) */
.card { display: flex; flex-direction: column; }
.card > span, .card > .card-link { align-self: flex-start; }
.card > a.card-link:first-of-type { margin-top: auto; padding-top: 14px; }
.card > a.card-link + a.card-link { margin-top: 6px; }
.card-link:hover { color: var(--rot-700); text-decoration: underline; }
.section-more { margin-top: 24px; }
.card-link-light { color: #FF8A9B; }
.card-link-light:hover { color: #fff; }
a.chip { text-decoration: none; border-color: var(--marine-700); }
a.chip:hover { background: var(--marine-700); color: #fff; }
a.chip:hover small { color: #C9D5EA; }

/* Fachseiten */
.page-hero { padding: 56px 0 64px; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); max-width: 18em; }
.crumbs { font-size: .85rem; color: var(--marine-300); margin-bottom: 22px; }
.crumbs a { color: #C9D5EA; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.prose-section { padding: 64px 0 40px; }
.prose { max-width: 820px; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; color: var(--marine-700); }
.prose p { color: #2B3A52; }
.prose ul, .prose ol { padding-left: 0; margin: 0 0 1.2em; }
.prose ul { list-style: none; }
.prose ul li { position: relative; padding-left: 22px; margin: 8px 0; color: #2B3A52; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--rot-600); }
.prose ol { list-style: none; counter-reset: o; }
.prose ol li { counter-increment: o; position: relative; padding: 10px 0 10px 46px; border-bottom: 1px solid var(--linie); color: #2B3A52; }
.prose ol li::before { content: counter(o); position: absolute; left: 0; top: 9px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--marine-700); color: #fff; font-weight: 800; font-size: .85rem; display: grid; place-items: center; }
.prose a { color: var(--rot-600); font-weight: 600; }
.legal-note { margin-top: 2.5em; font-size: .85rem; color: var(--stahl); border-top: 1px solid var(--linie); padding-top: 14px; }
.page-status h2 { font-size: 1.5rem; margin-bottom: 24px; }

/* Gedaempfte Zusatzkarte, Compliance-Beispiele, Nachweise */
.card-muted { background: var(--nebel); border-style: dashed; }
.card-muted h3 { color: var(--stahl); }
.compliance-examples { margin-top: 28px; }
.proof .proof-num { display: block; font-size: 2.4rem; font-weight: 800; line-height: 1; color: #fff; margin-bottom: 10px; }
.proof h3 { color: #FF8A9B; font-size: 1rem; }

/* Neupositionierung 2026-11-18: Orbit-Grafik, Modulgruppen, Status-Badge, Footer-Claim */
.hero { position: relative; }
.hero .wrap { position: relative; z-index: 1; }
.hero-orbit { position: absolute; right: -230px; top: 50%; width: 640px; height: 640px; transform: translateY(-50%); pointer-events: none; }
.hero-orbit ellipse { fill: none; stroke: var(--marine-300); stroke-width: 1.5; stroke-opacity: .28; }
.hero-orbit .core { fill: var(--marine-300); opacity: .35; }
.hero-orbit .dot { fill: #FF5C73; opacity: .9; }
@media (max-width: 860px) { .hero-orbit { display: none; } }
.module-group { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--stahl); margin: 36px 0 14px; }
.module-group:first-of-type { margin-top: 0; }
.module-badge { display: inline-block; font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; margin-bottom: 8px;
  background: #FFF3D6; color: #8A5A00; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-claim { margin: 0; font-size: .9rem; font-weight: 600; color: #D7E0F0; }

:focus-visible { outline: 3px solid var(--rot-600); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
