/* Projektwerk Dresden UG – Stylesheet Impressum und Datenschutz */
/* CI: Farben, Schrift und Radien stammen aus 10_CI/ci-tokens.json. Änderungen zuerst dort, dann hier übernehmen. */
:root {
  --navy: #173b57; --navy-deep: #0b2234; --teal: #087f8c; --teal-dark: #066d77; --teal-text: #066d77;
  --teal-soft: #eaf4f5; --muted: #566a78; --line: #dfe7ec; --surface: #f5f8fa; --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
/* CI: Schrift ausschließlich Arial (ohne Webfont), siehe CI-Richtlinie. */
body { margin: 0; font-family: Arial, Helvetica, "Liberation Sans", sans-serif; color: var(--navy); background: #fff; line-height: 1.65; }
a { color: var(--teal-text); }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }

.topbar { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
/* CI: Logo-Quadrat 44 px mit 11 px Radius und Wortmarke; Logo nur als SVG aus 10_CI/logo/. */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.brand img { width: 44px; height: 44px; border-radius: 11px; display: block; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
/* CI: Navy-Pille #173B57 mit weißer Schrift. */
.back { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; background: var(--navy); color: #fff; text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.back:hover { background: var(--navy-deep); }

/* CI: Kopfbereich mit zartem Petrol-Schimmer, Überschrift Navy-dunkel #0B2234. */
.hero { padding: 64px 0 40px; background: radial-gradient(ellipse at 90% 20%, rgba(8,127,140,.12), transparent 35%), linear-gradient(180deg, #f6fafc 0%, #fff 100%); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--teal-text); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.eyebrow::before { content: ""; width: 25px; height: 2px; background: var(--teal); }
h1 { margin: 14px 0 0; color: var(--navy-deep); font-size: clamp(32px, 5vw, 50px); line-height: 1.1; letter-spacing: -.04em; }

main { padding: 24px 0 80px; }
.content { max-width: 820px; }
.block { padding: 26px 0; border-bottom: 1px solid var(--line); }
.block:last-of-type { border-bottom: 0; }
h2 { margin: 0 0 12px; color: var(--navy-deep); font-size: 22px; line-height: 1.25; letter-spacing: -.02em; }
h3 { margin: 20px 0 6px; color: var(--navy); font-size: 17px; }
p { margin: 0 0 12px; }
ul { margin: 0 0 12px; padding-left: 22px; }
li { margin-bottom: 4px; }
address { font-style: normal; }
.meta { display: grid; grid-template-columns: 190px 1fr; gap: 6px 20px; margin: 0; }
.meta dt { color: var(--muted); font-size: 14px; }
.meta dd { margin: 0; font-weight: 700; }
.note { margin-top: 12px; padding: 14px 18px; border-radius: 12px; background: var(--teal-soft); color: #345564; font-size: 14px; }
.gap-top { margin-top: 12px; }
.summary { margin: 8px 0 0; padding: 18px 22px; border-radius: 14px; background: var(--teal-soft); color: #345564; }
.summary strong { color: var(--navy-deep); }
.toc { margin: 22px 0 0; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.toc h2 { font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; font-size: 15px; }
.toc li { break-inside: avoid; margin-bottom: 6px; }
.stand { margin-top: 26px; color: var(--muted); font-size: 13px; }

/* CI: Footer Navy-dunkel #0B2234; Logo = logo-horizontal-invers.svg. */
.site-footer { background: var(--navy-deep); color: #b9cbd6; font-size: 13px; }
.site-footer a { color: #e1edf2; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; padding: 34px 0 30px; }
.footer-inner img { height: 54px; width: auto; display: block; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-social { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 12px; }
/* Logos von XING und LinkedIn nicht verändern (keine Umfärbung, kein Zuschnitt). Weiße Kachel sorgt für Kontrast auf dunklem Grund. */
.footer-bottom .social-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0; padding: 0; border-radius: 9px; background: #fff; transition: transform .2s; }
.social-icon img { display: block; width: auto; height: 20px; max-width: 24px; }
.footer-bottom .social-icon:hover { transform: translateY(-2px); text-decoration: none; }
/* Fußzeile unten: Copyright links, Social-Logos mittig, Rechtliches rechts */
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 18px 0 24px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; font-size: 12px; color: #c7d7e0; }
.footer-bottom a { margin-left: 18px; }
.footer-bottom > :last-child { justify-self: end; }

@media (max-width: 640px) {
  .footer-bottom { grid-template-columns: 1fr; justify-items: start; }
  .footer-bottom > :last-child { justify-self: start; }
  .footer-social { justify-content: flex-start; }
  .meta { grid-template-columns: 1fr; gap: 0; }
  .meta dd { margin-bottom: 10px; }
  .brand small { display: none; }
  .brand span { font-size: 15px; }
  .back { padding: 10px 14px; font-size: 13px; }
  .toc ol { columns: 1; }
  .footer-bottom a { margin: 0 16px 0 0; }
}

/* ===== Barrierefreiheit (WCAG 2.2 AA) ===== */
/* CI-Abweichung (bewusst): Teal #087F8C erreicht als Schrift auf getönten Flächen nur ca. 4,2-4,5:1.
   Für Text und Textlinks daher #066D77 (>= 5,3:1). Flächen, Buttons und Linien bleiben #087F8C.
   Muted-Text #566A78 statt #647785. In 10_CI/ci-tokens.json nachziehen (Eintrag "text-sekundaer"). */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 2000; background: #173b57; color: #fff; padding: 12px 18px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { left: 8px; }
[tabindex="-1"]:focus { outline: none; }
/* Fokusrahmen */
a:focus-visible { outline: 3px solid #066d77; outline-offset: 3px; box-shadow: 0 0 0 6px #fff; }
.site-footer a:focus-visible { outline-color: #7ed0d5; box-shadow: none; }
.back:focus-visible { box-shadow: 0 0 0 6px #fff; }
.footer-links a, .toc a, .footer-bottom a { display: inline-block; padding-block: 5px; }
main a, main p, main li, main address { overflow-wrap: anywhere; }

/* Fehlerseite 404 (404.html): gleiche Optik wie Impressum/Datenschutz.
   CI: Zahl in Petrol #087F8C, Überschrift Navy-dunkel, Buttons als Pille wie auf der Startseite. */
.error-page { padding: 72px 0 96px; }
.error-code { margin: 0 0 6px; color: var(--teal); font-size: clamp(76px, 16vw, 140px); font-weight: 800; letter-spacing: -.06em; line-height: 1; }
.error-page h1 { margin-top: 6px; max-width: 760px; }
.error-page .lead { max-width: 620px; margin: 18px 0 0; color: #526573; font-size: 18px; line-height: 1.7; }
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.error-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid #6b8794; background: #fff; color: var(--navy); font-size: 14px; font-weight: 750; text-decoration: none; }
.error-btn:hover { background: #f5f8fa; }
.error-btn-primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.error-btn-primary:hover { background: var(--teal-dark, #066d77); border-color: var(--teal-dark, #066d77); }

/* ===== Design wie 41_Web (Startseite): dunkler Kopfbereich, Poppins-Überschriften, Akzentkanten =====
   Schrift Poppins lokal (assets/fonts/), SIL OFL; Fließtext bleibt Arial. */
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/poppins-Medium.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/poppins-SemiBold.woff") format("woff"); }
:root { --head: "Poppins", Arial, Helvetica, "Liberation Sans", sans-serif; }
h1, h2, h3 { font-family: var(--head); }
.brand { font-family: Arial, Helvetica, "Liberation Sans", sans-serif; }
.back { background: var(--teal); }
.back:hover { background: var(--teal-dark); }

.hero { background: radial-gradient(circle at 85% 15%, rgba(8,127,140,.45), transparent 42%), radial-gradient(circle at 10% 100%, rgba(8,127,140,.18), transparent 40%), var(--navy-deep); padding: 72px 0 56px; }
.hero .eyebrow { color: #82d7dc; }
.hero .eyebrow::before { background: #82d7dc; }
h1 { font-weight: 500; letter-spacing: -.02em; }
.hero h1 { color: #fff; font-size: clamp(36px, 5.4vw, 60px); }
h2 { font-weight: 600; letter-spacing: -.01em; }
h3 { font-weight: 600; }
.block { border-bottom-color: #d3e3e7; }
.block h2 { padding-left: 14px; border-left: 4px solid var(--teal); }
.toc { border-top: 4px solid var(--teal); }
.summary, .note { border-left: 4px solid var(--teal); }

/* 404: Zahl in Petrol, Überschrift in Poppins */
.error-code { font-family: var(--head); font-weight: 600; }
.error-btn-primary { background: var(--teal); }
.hero .lead, .error-page .lead { color: #c7d7e0; }
.error-code { color: #82d7dc; }
.hero h1 { font-size: clamp(27px, 5.4vw, 60px); hyphens: auto; overflow-wrap: break-word; }

/* Rechtsseiten: Hero liegt innerhalb von <main>; Abstand nur um den Inhaltsblock */
main:has(> .hero + .wrap) { padding-top: 0; }
.hero + .wrap.content { padding-top: 24px; }

/* 404: kleinere Überschrift ohne automatische Silbentrennung; kein leerer Block unter dem Kopfbereich */
.error-page h1 { font-size: clamp(26px, 4.4vw, 46px); hyphens: manual; overflow-wrap: normal; max-width: 820px; }
main:has(> .error-page) { padding: 0; }
