/* =========================================================================
   Pharma Uno Consulting — Website
   Editorial "Kanzlei"-Ästhetik: tiefes Marineblau, Fraunces-Serife,
   IBM-Plex-Mono-Paragraphenmarken, Hanken-Grotesk-Fließtext.
   ========================================================================= */

/* ---------- Design Tokens ------------------------------------------------ */
:root {
  /* Farben */
  --navy:        #0a1d3c;   /* dunkle Sektionen / Hero */
  --navy-header: #142743;   /* Kopfleiste (leicht angehoben) */
  --footer:      #071329;   /* Fußzeile (am dunkelsten) */
  --ink:         #0b1e3d;   /* Überschriften/Text auf Hell */
  --paper:       #ffffff;   /* helle Sektionen */
  --mist:        #e7edf2;   /* blaugraue Sektionen */
  --muted:       #66707f;   /* Fließtext auf Hell */
  --steel:       #356087;   /* Akzentlabels */
  --sky:         #9fc1dc;   /* heller Akzent auf Dunkel */
  --fog:         #aab8cc;   /* Fließtext auf Dunkel */

  --line-light:  #e3e7ee;   /* Trennlinien auf Hell */
  --line-mist:   #d3dae4;   /* Trennlinien auf Mist */
  --line-dark:   rgba(255,255,255,.16); /* Trennlinien auf Dunkel */

  /* Typografie */
  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Maße */
  --wrap: 1200px;
  --pad: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 9vw, 132px);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset / Basis ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--sky); color: var(--navy); }

/* ---------- Utilities ---------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--steel);
}

/* Paragraphenmarke  "§ 0X  LABEL —————————————" */
.marker {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(28px, 4vw, 52px);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.marker .sec { color: var(--muted); }
.marker .lbl { color: var(--steel); }
.marker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-light);
}
/* Marker-Varianten je nach Sektionsuntergrund */
.on-dark .marker .sec { color: var(--fog); }
.on-dark .marker .lbl { color: var(--sky); }
.on-dark .marker::after { background: var(--line-dark); }
.on-mist .marker::after { background: var(--line-mist); }

/* Serifen-Titel */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -.01em;
  line-height: 1.08;
  color: var(--ink);
}
.on-dark .display { color: #fff; }

.h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.lede {
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  margin-top: 20px;
}
.on-dark .lede { color: var(--fog); }

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
}
.btn .arw { transition: transform .3s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

.btn--solid { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--solid:hover { background: #12305c; }

.btn--outline { border-color: var(--line-light); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.btn--ghost { padding-inline: 0; border: 0; color: var(--ink); }
.btn--ghost::after { content: ""; }

/* Link mit Pfeil (text-CTA) */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-weight: 600;
  font-size: .98rem;
  color: var(--ink);
  position: relative;
}
.arrow-link .arw { transition: transform .3s var(--ease); }
.arrow-link:hover .arw { transform: translateX(4px); }
.arrow-link::before {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.arrow-link:hover::before { transform: scaleX(1); }
.on-dark .arrow-link { color: #fff; }

/* Buttons auf Dunkel */
.on-dark .btn--outline { border-color: var(--line-dark); color: #fff; }
.on-dark .btn--outline:hover { border-color: #fff; background: #fff; color: var(--navy); }

/* =========================================================================
   HEADER / NAV
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-header);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 12px 40px -18px rgba(0,0,0,.7); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: #fff;
  white-space: nowrap;
}
.brand span { color: var(--sky); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 40px);
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .04em;
  color: rgba(255,255,255,.82);
  position: relative;
  padding: 6px 0;
  transition: color .25s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--sky);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .04em;
  color: #fff;
  border: 1px solid var(--line-dark);
  padding: 11px 20px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav-cta:hover { background: rgba(255,255,255,.08); border-color: var(--sky); }
.nav-cta .arw { transition: transform .3s var(--ease); }
.nav-cta:hover .arw { transform: translateX(3px); }

/* CTA im aufklappbaren Menü nur mobil zeigen */
.menu-cta { display: none; }

/* Burger */
.burger {
  display: none;
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.burger span, .burger::before, .burger::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: #fff;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger span { top: 50%; transform: translateY(-50%); }
.burger::before { top: 14px; }
.burger::after { bottom: 14px; }
body.menu-open .burger span { opacity: 0; }
body.menu-open .burger::before { top: 50%; transform: translateY(-50%) rotate(45deg); }
body.menu-open .burger::after { bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); }

/* =========================================================================
   SECTION-Grundgerüst
   ========================================================================= */
.section { padding-block: var(--section-y); }
.section--navy { background: var(--navy); }
.section--mist { background: var(--mist); }

.on-dark { color: var(--fog); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }

/* =========================================================================
   § 01 — HERO
   ========================================================================= */
.hero { position: relative; overflow: hidden; }
.hero::before { /* dezenter Lichtschein oben rechts */
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 60vw; height: 60vw;
  max-width: 780px; max-height: 780px;
  background: radial-gradient(circle, rgba(53,96,135,.28), transparent 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1.55fr) minmax(0,1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  margin-bottom: 34px;
  max-width: 15ch;
}
.hero-title em {
  font-style: italic;
  color: var(--sky);
}
.hero-body {
  max-width: 48ch;
  color: var(--fog);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
}
.hero-note {
  margin: 30px 0 40px;
  padding-left: 22px;
  border-left: 2px solid var(--steel);
  color: var(--fog);
  max-width: 52ch;
  font-size: .98rem;
}
.hero-note strong { color: #fff; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }

/* Hero-Statspalte */
.hero-stats { display: flex; flex-direction: column; }
.stat-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--line-dark);
}
.hero-stats .stat-row:first-child { border-top: 0; padding-top: 6px; }
.stat-row .num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  color: #fff;
  line-height: 1;
}
.stat-row .desc {
  font-size: .82rem;
  line-height: 1.45;
  color: var(--fog);
  text-align: right;
}

/* =========================================================================
   § 02 — LEISTUNGEN
   ========================================================================= */
.service {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  padding-block: clamp(34px, 4vw, 46px);
  border-top: 1px solid var(--line-light);
}
.service:last-child { border-bottom: 1px solid var(--line-light); }
.service-tag {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--steel);
  padding-top: 8px;
}
.service-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  color: var(--ink);
  margin-bottom: 12px;
}
.service-text { color: var(--muted); font-size: 1rem; max-width: 54ch; }
.service .btn { align-self: center; white-space: nowrap; }

/* =========================================================================
   § 03 — ARBEITSWEISE
   ========================================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.step { position: relative; padding-left: 28px; }
.step + .step::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 1px;
  background: var(--line-mist);
}
.step-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--steel);
  margin-bottom: 14px;
}
.step-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 10px;
}
.step-text { color: var(--muted); font-size: .98rem; }

/* =========================================================================
   § 04 — ERFAHRUNG
   ========================================================================= */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 8px;
  border-top: 1px solid var(--line-dark);
}
.fact { padding: 40px clamp(18px, 2.4vw, 34px) 8px; position: relative; }
.fact + .fact::before {
  content: "";
  position: absolute;
  left: 0; top: 40px; bottom: 12px;
  width: 1px;
  background: var(--line-dark);
}
.fact:first-child { padding-left: 0; }
.fact .num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  color: #fff;
  line-height: 1;
  margin-bottom: 20px;
}
.fact .desc { color: var(--fog); font-size: .88rem; line-height: 1.5; }

.network {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 32px;
  border-top: 1px solid var(--line-dark);
  max-width: 92ch;
  color: var(--fog);
  font-size: 1rem;
}
.network a {
  color: #fff;
  border-bottom: 1px solid var(--sky);
  padding-bottom: 1px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.network a:hover { color: var(--sky); }

/* =========================================================================
   § 05 — ÜBER MICH
   ========================================================================= */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.portrait { position: relative; margin: 0; max-width: 420px; }
.portrait img {
  display: block;
  width: 100%;
  height: auto;                 /* wichtig: hebt das height-Attribut auf, damit aspect-ratio greift */
  aspect-ratio: 4 / 5;
  max-height: 540px;
  object-fit: cover;
  object-position: center 22%;  /* Gesicht sauber im Ausschnitt halten */
  border-radius: 2px;
  filter: grayscale(8%) contrast(1.02);
}
.portrait figcaption {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.5;
}
.about-intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  color: var(--ink);
  line-height: 1.28;
  margin-bottom: 22px;
}
.about-text { color: var(--muted); max-width: 58ch; margin-bottom: 40px; }

.creds { border-top: 1px solid var(--line-light); }
.cred {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 20px 40px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-light);
  align-items: baseline;
}
.cred dt { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; color: var(--ink); }
.cred dd { margin: 0; color: var(--muted); font-size: .96rem; }

/* =========================================================================
   § 06 — AKADEMIE
   ========================================================================= */
.academy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-mist);
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
}
.academy-media { position: relative; min-height: 340px; }
.academy-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.academy-body { padding: clamp(32px, 4vw, 60px); align-self: center; }
.academy-body .marker { margin-bottom: 26px; }
.academy-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--ink);
  margin-bottom: 18px;
}
.academy-text { color: var(--muted); margin-bottom: 32px; }
.academy .btn--solid { width: 100%; justify-content: space-between; }

/* =========================================================================
   § 07 — KONTAKT
   ========================================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(40px, 5vw, 88px);
  align-items: start;
}
.contact-intro { color: var(--fog); max-width: 42ch; margin-bottom: 40px; }

/* Formular */
.form-row { margin-bottom: 20px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 9px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: #fff;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  padding: 13px 15px;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.35); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--sky);
  background: rgba(255,255,255,.07);
}
.field input.invalid, .field textarea.invalid { border-color: #d98a8a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-submit {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.btn--send {
  background: #fff; color: var(--navy); border-color: #fff;
}
.btn--send:hover { background: var(--sky); border-color: var(--sky); }
.form-consent { font-size: .78rem; color: var(--fog); max-width: 34ch; line-height: 1.5; }
.form-consent a { color: #fff; border-bottom: 1px solid var(--line-dark); }

.form-alert {
  padding: 14px 18px;
  border-radius: 2px;
  font-size: .92rem;
  margin-bottom: 26px;
  border: 1px solid;
}
.form-alert.ok  { background: rgba(159,193,220,.12); border-color: var(--sky); color: #fff; }
.form-alert.err { background: rgba(217,138,138,.1); border-color: #d98a8a; color: #f2d6d6; }
.form-alert strong { display:block; font-family: var(--serif); font-size: 1.05rem; margin-bottom: 3px; }

/* Kontaktkarte */
.contact-card {
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  padding: clamp(24px, 3vw, 40px);
  background: rgba(255,255,255,.02);
}
.card-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-dark);
}
.card-row:first-child { padding-top: 0; }
.card-row .k {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fog);
}
.card-row .v { text-align: right; color: #fff; font-size: 1rem; }
.card-row .v a { border-bottom: 1px solid var(--line-dark); transition: border-color .25s var(--ease); }
.card-row .v a:hover { border-color: var(--sky); }
.card-cta { text-align: right; padding-top: 26px; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--footer); color: var(--fog); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-block: 34px;
  font-size: .88rem;
}
.footer-links { display: flex; gap: 28px; }
.footer-links a { transition: color .25s var(--ease); }
.footer-links a:hover { color: #fff; }

/* =========================================================================
   Scroll-Reveal
   ========================================================================= */
/* Progressive Enhancement: Inhalte sind ohne JS sichtbar.
   Erst wenn JS die Klasse .js an <html> setzt, wird die Enthüllung aktiviert. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stats { margin-top: 8px; border-top: 1px solid var(--line-dark); padding-top: 10px; }
  .hero-stats .stat-row:first-child { border-top: 1px solid var(--line-dark); padding-top: 24px; }
  .academy { grid-template-columns: 1fr; }
  .academy-media { min-height: 300px; order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* Navigation: Burger-Menü, sobald die volle Desktop-Nav nicht mehr passt */
@media (max-width: 1024px) {
  .burger { display: block; }
  .nav-links, .nav > .nav-cta { display: none; }
  .brand { font-size: 1.12rem; }
  .nav { gap: 12px; }

  .nav-menu {
    position: fixed;
    inset: 78px 0 auto 0;
    background: var(--navy-header);
    border-bottom: 1px solid var(--line-dark);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--pad) 26px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
  body.menu-open .nav-menu {
    display: flex;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-menu li { border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav-menu a { display: block; padding: 16px 0; font-size: .95rem; }
  .nav-menu a::after { display: none; }
  .menu-cta { display: block; border-bottom: 0 !important; }
  .nav-menu .nav-cta { display: inline-flex; margin-top: 20px; justify-content: center; }
}

/* Inhalts-Layouts */
@media (max-width: 860px) {
  .service { grid-template-columns: 1fr; gap: 14px; }
  .service-tag { padding-top: 0; }
  .service .btn { align-self: start; margin-top: 6px; }

  .steps { grid-template-columns: 1fr; gap: 34px; }
  .step { padding-left: 0; }
  .step + .step::before { display: none; }
  .step + .step { border-top: 1px solid var(--line-mist); padding-top: 30px; }

  .facts { grid-template-columns: 1fr 1fr; }
  .fact { padding: 30px 20px 8px; }
  .fact:nth-child(odd) { padding-left: 0; }
  .fact:nth-child(3)::before, .fact:nth-child(odd)::before { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 380px; }
  .cred { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .facts { grid-template-columns: 1fr; }
  .fact { padding: 26px 0 6px; }
  .fact::before { display: none !important; }
  .fact + .fact { border-top: 1px solid var(--line-dark); }
  .form-row.two { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .stat-row { grid-template-columns: 1fr; gap: 4px; }
  .stat-row .desc { text-align: left; }
}

/* =========================================================================
   Rechtstexte (Impressum / Datenschutz)
   ========================================================================= */
.legal { padding-block: clamp(64px, 8vw, 110px); }
.legal-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 4vw, 3rem);
  color: var(--ink);
  margin: 10px 0 40px;
  letter-spacing: -.01em;
}
.prose { max-width: 74ch; }
.prose h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--ink);
  margin: 44px 0 12px;
}
.prose h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin: 26px 0 6px;
}
.prose p, .prose li { color: var(--muted); }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 14px; padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--steel); border-bottom: 1px solid var(--line-light); }
.prose a:hover { border-color: var(--steel); }
.prose code {
  font-family: var(--mono);
  font-size: .86em;
  background: var(--mist);
  color: var(--ink);
  padding: 1px 6px;
  border-radius: 3px;
}
.prose .todo {
  display: inline-block;
  background: #fff5d6;
  color: #7a5b00;
  font-family: var(--mono);
  font-size: .78rem;
  padding: 1px 7px;
  border-radius: 2px;
}
.back-link { margin-top: 48px; }

/* Fokus-Sichtbarkeit (Barrierefreiheit) */
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 1px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: #fff; color: var(--navy); padding: 12px 18px; font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* =========================================================================
   COOKIE-CONSENT (DSGVO/TDDDG)
   ========================================================================= */
.cc-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 300;
  background: var(--navy-header);
  border-top: 1px solid var(--sky);
  box-shadow: 0 -18px 50px -20px rgba(0,0,0,.6);
  color: var(--fog);
  animation: cc-rise .45s var(--ease) both;
}
@keyframes cc-rise { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .cc-banner { animation: none; } }

.cc-banner-inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  padding-block: 22px;
}
.cc-banner-text { flex: 1 1 auto; min-width: 0; }
.cc-banner-lead {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  color: #fff;
  margin: 6px 0 6px;
}
.cc-banner-desc { font-size: .9rem; line-height: 1.55; max-width: 74ch; }
.cc-banner-desc a { color: #fff; border-bottom: 1px solid var(--sky); }
.cc-banner-desc a:hover { color: var(--sky); }

.cc-banner-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Buttons — „ablehnen“ und „akzeptieren“ bewusst gleichwertig (keine Dark Patterns) */
.cc-btn {
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 12px 22px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.cc-btn--choice { background: #fff; color: var(--navy); border-color: #fff; }
.cc-btn--choice:hover { background: var(--sky); border-color: var(--sky); }
.cc-btn--ghost { background: transparent; color: var(--fog); border-color: var(--line-dark); }
.cc-btn--ghost:hover { color: #fff; border-color: var(--sky); }

/* Einstellungs-Dialog */
.cc-modal { position: fixed; inset: 0; z-index: 320; display: grid; place-items: center; padding: 20px; }
/* hidden-Attribut muss die display-Regeln schlagen */
.cc-banner[hidden], .cc-modal[hidden] { display: none; }
.cc-modal-backdrop { position: absolute; inset: 0; background: rgba(4,10,22,.72); backdrop-filter: blur(2px); }
.cc-modal-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--navy);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  padding: clamp(28px, 4vw, 44px);
  color: var(--fog);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.8);
  animation: cc-pop .35s var(--ease) both;
}
@keyframes cc-pop { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cc-modal-card { animation: none; } }

.cc-modal-close {
  position: absolute; top: 14px; right: 16px;
  width: 38px; height: 38px;
  background: transparent; border: 0; border-radius: 2px;
  color: var(--fog); font-size: 1.6rem; line-height: 1; cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.cc-modal-close:hover { color: #fff; background: rgba(255,255,255,.06); }
.cc-modal-title { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; color: #fff; margin: 6px 0 14px; }
.cc-modal-intro { font-size: .92rem; line-height: 1.6; margin-bottom: 26px; }

.cc-cat { padding: 20px 0; border-top: 1px solid var(--line-dark); }
.cc-cat:first-of-type { border-top: 0; padding-top: 4px; }
.cc-cat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.cc-cat-name { font-family: var(--sans); font-weight: 600; font-size: 1rem; color: #fff; margin-right: auto; }
.cc-cat-state { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); }
.cc-cat-desc { font-size: .86rem; line-height: 1.55; color: var(--fog); }

/* Schalter */
.cc-switch { position: relative; display: inline-flex; align-items: center; cursor: pointer; flex: 0 0 auto; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-switch--locked { cursor: not-allowed; opacity: .8; }
.cc-track {
  width: 46px; height: 26px; border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid var(--line-dark);
  position: relative; transition: background .25s var(--ease), border-color .25s var(--ease);
}
.cc-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; transition: transform .25s var(--ease);
}
.cc-switch input:checked ~ .cc-track { background: var(--sky); border-color: var(--sky); }
.cc-switch input:checked ~ .cc-track .cc-thumb { transform: translateX(20px); }
.cc-switch input:focus-visible ~ .cc-track { outline: 2px solid var(--sky); outline-offset: 2px; }
.cc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.cc-modal-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}
.cc-modal-actions .cc-btn { flex: 1 1 auto; text-align: center; }

/* Fußzeilen-Auslöser zum erneuten Öffnen */
.cc-reopen { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.cc-reopen:hover { color: #fff; }

/* Dauerhafter Floating-Auslöser (unten links, sticky) */
.cc-fab {
  position: fixed;
  left: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 290;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-header);
  border: 1px solid var(--line-dark);
  color: var(--sky);
  cursor: pointer;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.55);
  transition: transform .25s var(--ease), background .25s var(--ease),
              border-color .25s var(--ease), color .25s var(--ease);
  animation: cc-fab-in .4s var(--ease) both;
}
.cc-fab[hidden] { display: none; }
.cc-fab svg { width: 26px; height: 26px; }
.cc-fab:hover { transform: translateY(-3px); background: #12305c; border-color: var(--sky); color: #fff; }
.cc-fab:active { transform: translateY(-1px); }
@keyframes cc-fab-in { from { opacity: 0; transform: scale(.6) translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cc-fab { animation: none; } }

body.cc-lock { overflow: hidden; }

@media (max-width: 760px) {
  .cc-banner-inner { flex-direction: column; align-items: stretch; gap: 18px; }
  .cc-banner-actions { justify-content: stretch; }
  .cc-banner-actions .cc-btn { flex: 1 1 auto; text-align: center; }
  .cc-banner-actions .cc-btn--ghost { flex-basis: 100%; order: 3; }
}
@media (max-width: 480px) {
  .cc-banner-actions { flex-direction: column; }
  .cc-banner-actions .cc-btn { width: 100%; flex: 0 0 auto; }
  .cc-modal-actions { flex-direction: column; }
  .cc-modal-actions .cc-btn { width: 100%; }
}
