@import url("../fonts/fonts.css");

/* =========================================================================
   König | Rechtsanwälte – Designsystem
   Markenfarbe #ae031d (aus dem bestehenden Auftritt übernommen)
   ========================================================================= */

:root {
  /* Marke */
  --red: #ae031d;
  --red-700: #8c0217;
  --red-300: #e8919c;
  --red-050: #fdf2f3;

  /* Neutrale */
  --ink: #14110f;
  --ink-2: #241f1c;
  --text: #1b1815;
  --text-2: #4a443f;
  --muted: #736c66;
  --line: #e5e0da;
  --line-2: #d3ccc4;
  --paper: #ffffff;
  --paper-2: #f7f5f2;
  --paper-3: #f0ece7;

  /* Typografie */
  --display: "Bricolage Grotesque", "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono-num: "Inter", ui-monospace, monospace;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.97rem + 0.14vw, 1.06rem);
  --step-1: clamp(1.1rem, 1.04rem + 0.28vw, 1.28rem);
  --step-2: clamp(1.35rem, 1.22rem + 0.62vw, 1.7rem);
  --step-3: clamp(1.7rem, 1.42rem + 1.2vw, 2.45rem);
  --step-4: clamp(2.15rem, 1.6rem + 2.4vw, 3.5rem);
  --step-5: clamp(2.7rem, 1.7rem + 4.4vw, 5.4rem);

  --container: 1240px;
  --radius: 3px;
  --radius-lg: 6px;
  --header-h: 80px;

  --shadow-sm: 0 1px 2px rgba(20, 17, 15, 0.04), 0 6px 18px -10px rgba(20, 17, 15, 0.12);
  --shadow-md: 0 2px 6px rgba(20, 17, 15, 0.05), 0 24px 48px -28px rgba(20, 17, 15, 0.35);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg { max-width: 100%; display: block; }
img { height: auto; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 40;
}
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--red); color: #fff; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ------------------------------------------------------------- Struktur */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
@media (max-width: 640px) { .container { width: min(100% - 1.75rem, var(--container)); } }

.section { padding: clamp(3.25rem, 6vw, 5rem) 0; position: relative; }
.section--tight { padding: clamp(2.5rem, 4vw, 3.5rem) 0; }
/* Zahlenleiste dockt direkt an den Hero an */
.section--facts { padding: 2rem 0 clamp(2.5rem, 4vw, 3.5rem); }
.section--paper2 { background: var(--paper-2); }
.section--dark { background: var(--ink); color: #cfc9c3; padding-block: clamp(3.75rem, 7vw, 6rem); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--line { border-top: 1px solid var(--line); }

.stack > * + * { margin-top: 1.05em; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--text-2); }
.section--dark .lead { color: #b3aca6; }
.narrow { max-width: 780px; }
.center { text-align: center; margin-inline: auto; }

/* ---------------------------------------------------------- Typo-Bausteine */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.65em;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red); margin: 0 0 1.15rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--red); }
.section--dark .eyebrow { color: #fff; }
.section--dark .eyebrow::before { background: var(--red); }

.h1 { font-size: var(--step-5); }
.h2 { font-size: var(--step-4); }
.h3 { font-size: var(--step-2); }
.h4 { font-size: var(--step-1); letter-spacing: -0.02em; }

.section-head { max-width: 760px; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.section-head p { margin-top: 1.1rem; color: var(--text-2); font-size: var(--step-1); line-height: 1.55; }
.section--dark .section-head p { color: #b3aca6; }

.head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
.head-row .section-head { margin-bottom: 0; }

/* ------------------------------------------------------------- Buttons */
.btn {
  --btn-bg: var(--red); --btn-fg: #fff; --btn-bd: var(--red);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: 0.95em 1.55em;
  font-family: var(--sans); font-size: 0.94rem; font-weight: 600; line-height: 1;
  border: 1.5px solid var(--btn-bd); border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease), transform 0.22s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn svg { width: 17px; height: 17px; }

.btn--primary:hover { --btn-bg: var(--red-700); --btn-bd: var(--red-700); }
.btn--dark { --btn-bg: var(--ink); --btn-bd: var(--ink); }
.btn--dark:hover { --btn-bg: var(--red); --btn-bd: var(--red); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-2); }
.btn--ghost:hover { --btn-bd: var(--ink); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn--light:hover { --btn-fg: var(--red); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.35); }
.btn--ghost-light:hover { --btn-bd: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 600; font-size: 0.92rem; color: var(--red);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--dark .link-arrow { color: #fff; }

/* -------------------------------------------------------------- Header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: height 0.3s var(--ease), background-color 0.3s var(--ease),
    border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.header__inner {
  width: min(100% - 2.5rem, var(--container)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.header.is-stuck {
  height: 66px; background: rgba(255, 255, 255, 0.93);
  backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--line);
}

.brand { display: inline-flex; align-items: center; color: var(--ink); }
.brand__row { display: flex; align-items: center; gap: 0.55rem; }
.brand__name {
  font-family: var(--sans); font-size: 1.02rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; line-height: 1;
}
.brand__bar { width: 2px; height: 17px; background: var(--red); flex: none; }
.brand__kind {
  font-family: var(--sans); font-size: 0.93rem; font-weight: 400;
  letter-spacing: 0.15em; text-transform: uppercase; line-height: 1; color: var(--text-2);
}
.brand__sub {
  display: block; font-size: 0.56rem; font-weight: 500; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--muted); margin-top: 6px;
}
.brand:hover .brand__bar { height: 21px; transition: height 0.25s var(--ease); }

.nav { display: flex; align-items: center; gap: 0.15rem; }
.nav a {
  position: relative; padding: 0.5rem 0.8rem;
  font-size: 0.93rem; font-weight: 500; color: var(--text-2);
  transition: color 0.22s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.15rem;
  height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.header__actions { display: flex; align-items: center; gap: 0.7rem; }
.header__phone {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.93rem; font-weight: 600; color: var(--ink);
}
.header__phone svg { width: 16px; height: 16px; color: var(--red); }
.header .btn { padding: 0.72em 1.15em; font-size: 0.87rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; place-items: center;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.2s var(--ease); }
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 99; background: var(--paper);
  padding: calc(var(--header-h) + 1.25rem) 0 2.5rem; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity 0.28s var(--ease), transform 0.32s var(--ease), visibility 0.28s;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  font-family: var(--display); font-size: 1.65rem; font-weight: 600; letter-spacing: -0.03em;
  color: var(--ink); padding: 0.7rem 0; border-bottom: 1px solid var(--line);
}
.drawer__foot { margin-top: 1.75rem; display: grid; gap: 0.7rem; }
.drawer__foot .btn--ghost-light { --btn-fg: var(--ink); --btn-bd: var(--line-2); }
.drawer__meta { color: var(--muted); font-size: 0.9rem; margin-top: 1.5rem; line-height: 1.75; }

@media (max-width: 1080px) { .nav, .header__phone { display: none; } .nav-toggle { display: grid; } }
@media (max-width: 560px) {
  .header__actions .btn { display: none; }
  .brand__sub { display: none; }
  .brand__name { font-size: 0.92rem; }
  .brand__kind { font-size: 0.8rem; letter-spacing: 0.12em; }
}

/* ---------------------------------------------------------------- Hero */
.hero { padding: calc(var(--header-h) + clamp(2.25rem, 5vw, 4rem)) 0 1.5rem; }
/* Abstand vom Container zur Fensterkante – für randabfallende Bilder */
:root { --gutter: calc((100vw - min(100vw - 2.5rem, var(--container))) / 2); }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 4.5rem); align-items: stretch;
}
.hero__grid > div:first-child { align-self: center; padding-block: 0.5rem; }
.hero__title { font-size: var(--step-5); font-variation-settings: "opsz" 96; }
.hero__title em { display: block; font-style: normal; color: var(--red); }
.hero__text { margin-top: 1.4rem; max-width: 46ch; color: var(--text-2); font-size: var(--step-1); line-height: 1.55; }
.hero .btn-row { margin-top: 2rem; }
.hero__meta {
  margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 0.85rem 2rem;
}
.hero__meta li { list-style: none; display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--text-2); }
.hero__meta svg { width: 16px; height: 16px; color: var(--red); flex: none; }

.hero__media {
  position: relative; display: flex; margin-right: calc(var(--gutter) * -1);
}
.hero__media img {
  width: 100%; height: 100%; min-height: 100%; object-fit: cover; object-position: 84% center;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg); background: var(--paper-3);
}
.hero__badge {
  position: absolute; left: -1.5rem; bottom: 2rem;
  background: var(--red); color: #fff; padding: 1.1rem 1.35rem;
  border-radius: var(--radius); max-width: 250px; box-shadow: var(--shadow-md);
}
.hero__badge strong { display: block; font-family: var(--display); font-size: 1.55rem; letter-spacing: -0.03em; line-height: 1; }
.hero__badge span { display: block; font-size: 0.84rem; margin-top: 0.35rem; opacity: 0.9; line-height: 1.4; }

@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; margin-right: 0; display: block; }
  .hero__media img { height: auto; min-height: 0; aspect-ratio: 16 / 10; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .hero__badge {
    position: static; max-width: none; box-shadow: none;
    display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.15rem 0.75rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: 0.9rem 1.1rem;
  }
  .hero__badge strong { font-size: 1.25rem; }
}

/* Seitenkopf für Unterseiten */
.pagehead {
  padding: calc(var(--header-h) + clamp(2.25rem, 5vw, 4rem)) 0 clamp(2rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--line); background: var(--paper-2);
}
.pagehead h1 { font-size: var(--step-4); max-width: 18ch; font-variation-settings: "opsz" 72; }
.pagehead p { margin-top: 1.1rem; max-width: 60ch; color: var(--text-2); font-size: var(--step-1); line-height: 1.55; }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem;
  font-size: 0.8rem; color: var(--muted); margin-bottom: 1.35rem;
}
.breadcrumb li { list-style: none; display: flex; align-items: center; gap: 0.45rem; }
.breadcrumb li + li::before { content: "/"; color: var(--line-2); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb [aria-current] { color: var(--text); }

/* ------------------------------------------------------- Zahlenleiste */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.facts > div { padding: clamp(1.5rem, 2.5vw, 2rem) clamp(1rem, 2vw, 2rem) clamp(1.5rem, 2.5vw, 2rem) 0; border-right: 1px solid var(--line); }
.facts > div:last-child { border-right: 0; }
.facts > div + div { padding-left: clamp(1rem, 2vw, 2rem); }
.facts dt {
  font-family: var(--display); font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 600;
  line-height: 1; letter-spacing: -0.045em; color: var(--red);
}
.facts dd { margin: 0.65rem 0 0; font-weight: 600; font-size: 0.95rem; }
.facts .note { display: block; font-weight: 400; color: var(--muted); font-size: 0.85rem; margin-top: 0.15rem; }
@media (max-width: 860px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts > div:nth-child(2n) { border-right: 0; }
  .facts > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .facts > div:nth-child(3) { padding-left: 0; }
}
@media (max-width: 460px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0 !important; }
  .facts > div:last-child { border-bottom: 0; }
}

/* -------------------------------------------- Rechtsgebiete als Index */
.index {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-2);
}
.index__row {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) 1.9rem;
  grid-template-areas: "num title go" ". teaser .";
  align-items: center; gap: 0.35rem 0.85rem;
  padding: 1.3rem 1.25rem 1.35rem 0.25rem;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s var(--ease);
}
.index__row:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 2rem; }
.index__row:hover { background: var(--red-050); }
.index__num {
  grid-area: num; font-family: var(--mono-num); font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.08em; color: var(--muted); font-variant-numeric: tabular-nums;
  align-self: center;
}
.index__row:hover .index__num { color: var(--red); }
.index__title {
  grid-area: title; font-family: var(--display); font-size: clamp(1.12rem, 1.5vw, 1.35rem);
  font-weight: 600; letter-spacing: -0.035em; line-height: 1.15;
  transition: color 0.25s var(--ease);
}
.index__row:hover .index__title { color: var(--red); }
.index__teaser {
  grid-area: teaser; color: var(--muted); font-size: 0.88rem; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.index__go {
  grid-area: go; display: grid; place-items: center; width: 1.9rem; height: 1.9rem;
  border-radius: 999px; border: 1.5px solid var(--line-2); color: var(--muted);
  transition: all 0.25s var(--ease); justify-self: end; align-self: center;
}
.index__go svg { width: 14px; height: 14px; }
.index__row:hover .index__go { background: var(--red); border-color: var(--red); color: #fff; }
@media (max-width: 820px) {
  .index { grid-template-columns: 1fr; }
  .index__row, .index__row:nth-child(odd) { border-right: 0; padding-right: 0.25rem; }
  .index__teaser { -webkit-line-clamp: 3; }
}

/* --------------------------------------------------------------- Karten */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.4rem, 2.2vw, 1.9rem);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
a.card:hover, .card--hover:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.card h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.94rem; line-height: 1.58; }
.card .link-arrow { margin-top: 1.15rem; }
.card--flat { border: 0; padding: 0; background: transparent; }
.card--flat:hover { transform: none; box-shadow: none; }

.card__icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: var(--radius); background: var(--red-050); color: var(--red);
  margin-bottom: 1.2rem;
}
.card__icon svg { width: 21px; height: 21px; }

/* Werte: nummeriert statt Icon-Karten */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.75rem, 3vw, 3rem); counter-reset: v; }
.values > li { list-style: none; padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.values .vnum {
  display: block; font-family: var(--mono-num); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.14em; color: var(--red); margin-bottom: 0.9rem;
}
.values h3 { font-size: var(--step-2); margin-bottom: 0.75rem; }
.values p { color: var(--text-2); font-size: 0.96rem; line-height: 1.6; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Zitat */
.quote {
  font-family: var(--display); font-size: var(--step-3); font-weight: 500;
  line-height: 1.2; letter-spacing: -0.035em; color: var(--ink);
  padding-left: 1.5rem; border-left: 3px solid var(--red);
}
.section--dark .quote { color: #fff; }
.quote cite {
  display: block; margin-top: 1rem; font-family: var(--sans); font-style: normal;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.section--dark .quote cite { color: rgba(255, 255, 255, 0.55); }

/* -------------------------------------------------------------- Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.25rem, 5vw, 4.5rem); align-items: start; }
.split--sticky > :first-child { position: sticky; top: calc(var(--header-h) + 2rem); }
.split--media { grid-template-columns: 0.92fr 1.08fr; align-items: center; }
@media (max-width: 900px) {
  .split, .split--media { grid-template-columns: 1fr; }
  .split--sticky > :first-child { position: static; }
}

.media-frame { position: relative; }
.media-frame img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 84% center; border-radius: var(--radius-lg); background: var(--paper-3); }
.media-frame figcaption { margin-top: 0.85rem; font-size: 0.8rem; color: var(--muted); }
.media-frame--tall img { aspect-ratio: 3 / 4; }

/* Bild mit übergelegtem Zitat-Block */
.media-frame--quote { position: relative; }
.media-frame--quote img { aspect-ratio: 4 / 3.4; }
.quote-card {
  position: absolute; right: -2.75rem; bottom: -2rem; max-width: 22rem; margin: 0;
  background: var(--red); color: #fff; padding: 1.6rem 1.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--display); font-size: 1.2rem; font-weight: 500;
  line-height: 1.22; letter-spacing: -0.025em;
}
.quote-card cite {
  display: block; margin-top: 1rem; font-family: var(--sans); font-style: normal;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
@media (max-width: 1080px) { .quote-card { right: -1rem; bottom: -1.5rem; max-width: 19rem; } }
@media (max-width: 900px) {
  .quote-card { position: static; max-width: none; margin-top: 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  .media-frame--quote img { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
}

/* Zielgruppen */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 2px solid var(--ink); }
.audience > article { padding: 2rem 2.5rem 2rem 0; }
.audience > article + article { border-left: 1px solid var(--line); padding: 2rem 0 2rem 2.5rem; }
.audience h3 { font-size: var(--step-2); margin-bottom: 0.75rem; }
.audience p { color: var(--text-2); font-size: 0.97rem; max-width: 44ch; }
.audience__links { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.4rem; }
.audience__links a {
  font-size: 0.87rem; font-weight: 500; padding: 0.42em 0.8em;
  border: 1px solid var(--line-2); border-radius: 2px; color: var(--text-2);
  transition: all 0.22s var(--ease);
}
.audience__links a:hover { border-color: var(--red); color: var(--red); background: var(--red-050); }
@media (max-width: 860px) {
  .audience { grid-template-columns: 1fr; }
  .audience > article { padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
  .audience > article + article { border-left: 0; padding: 1.75rem 0 0; border-bottom: 0; }
}
.media-frame--wide img { aspect-ratio: 21 / 9; }

/* ---------------------------------------------------------------- Team */
.person {
  display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
a.person:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.person__portrait {
  position: relative; aspect-ratio: 4 / 3.3; display: grid; place-items: center;
  background: var(--paper-3); color: var(--ink);
  font-family: var(--display); font-size: clamp(2.3rem, 4vw, 3rem); font-weight: 600; letter-spacing: -0.04em;
  overflow: hidden;
}
.person__portrait::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
a.person:hover .person__portrait::after { transform: scaleX(1); }
.person__body { display: flex; flex-direction: column; flex: 1; padding: 1.3rem clamp(1.15rem, 2vw, 1.5rem) 1.5rem; }
.person__body h3 { font-size: var(--step-1); }
.person__role { color: var(--red); font-size: 0.83rem; font-weight: 600; margin-top: 0.3rem; }
.person__body p { color: var(--muted); font-size: 0.9rem; margin-top: 0.8rem; line-height: 1.58; }
.person__body .link-arrow { margin-top: auto; padding-top: 1.2rem; }

.badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.85rem; }
.badge {
  display: inline-block; font-size: 0.71rem; font-weight: 600; line-height: 1.35;
  padding: 0.35em 0.65em; border-radius: 2px;
  background: var(--red-050); color: var(--red-700); border: 1px solid #f3d9dd;
}

/* --------------------------------------------------------------- Listen */
.ticks { display: grid; gap: 0.8rem; }
.ticks li { list-style: none; display: grid; grid-template-columns: 20px 1fr; gap: 0.8rem; align-items: start; line-height: 1.55; }
.ticks svg { width: 17px; height: 17px; color: var(--red); margin-top: 5px; }
.ticks--2 { grid-template-columns: repeat(2, 1fr); gap: 0.8rem 2.5rem; }
@media (max-width: 760px) { .ticks--2 { grid-template-columns: 1fr; } }

.vita { display: grid; }
.vita li {
  list-style: none; position: relative; padding: 0.6rem 0 0.6rem 2.5rem;
  border-bottom: 1px solid var(--line); line-height: 1.55;
}
.vita li:last-child { border-bottom: 0; }
.vita li::before {
  content: ""; position: absolute; left: 0; top: 1.05rem; width: 14px; height: 2px; background: var(--red);
}

.taglist { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.taglist li {
  list-style: none; font-size: 0.87rem; padding: 0.4em 0.8em;
  border: 1px solid var(--line); border-radius: 2px; background: var(--paper-2); color: var(--text-2);
}

/* -------------------------------------------------------------- Ablauf */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.steps > li { list-style: none; padding-top: 1.35rem; border-top: 2px solid rgba(255, 255, 255, 0.25); }
.section--dark .steps > li { border-top-color: rgba(255, 255, 255, 0.22); }
.steps .num {
  display: block; font-family: var(--mono-num); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.14em; color: var(--red-300); margin-bottom: 0.8rem;
}
.steps h3 { font-size: var(--step-1); margin-bottom: 0.55rem; }
.steps p { color: #a9a29c; font-size: 0.92rem; line-height: 1.58; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- FAQ */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding: 1.25rem 0; cursor: pointer; list-style: none;
  font-family: var(--display); font-size: var(--step-1); font-weight: 600;
  letter-spacing: -0.025em; line-height: 1.3;
  transition: color 0.22s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--red); }
.faq summary .plus { position: relative; flex: none; width: 20px; height: 20px; margin-top: 4px; }
.faq summary .plus::before, .faq summary .plus::after {
  content: ""; position: absolute; background: var(--red); transition: transform 0.3s var(--ease);
}
.faq summary .plus::before { top: 9px; left: 1px; width: 18px; height: 2px; }
.faq summary .plus::after { left: 8px; top: 1px; height: 18px; width: 2px; }
.faq details[open] summary { color: var(--red); }
.faq details[open] summary .plus::after { transform: scaleY(0); }
.faq__answer { padding: 0 0 1.4rem; max-width: 66ch; color: var(--text-2); }
.faq details[open] .faq__answer { animation: fadeUp 0.35s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }

/* -------------------------------------------------------------- Kontakt */
.contact-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.info-list { display: grid; gap: 1.35rem; }
.info-list li { list-style: none; display: grid; grid-template-columns: 40px 1fr; gap: 1rem; align-items: start; }
.info-list .ico {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius);
  background: var(--red-050); color: var(--red);
}
.info-list .ico svg { width: 18px; height: 18px; }
.info-list strong {
  display: block; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 0.25rem;
}
.info-list a:hover { color: var(--red); }

.form { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.25rem); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.field { display: block; margin-bottom: 1rem; }
.field > span { display: block; font-size: 0.84rem; font-weight: 600; margin-bottom: 0.4rem; }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 0.97rem; color: var(--text);
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 0.78rem 0.9rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 138px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23736c66' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.8rem center; background-size: 16px; padding-right: 2.4rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(174, 3, 29, 0.12);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); }

.check { display: grid; grid-template-columns: 20px 1fr; gap: 0.7rem; align-items: start; font-size: 0.87rem; color: var(--text-2); line-height: 1.5; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); }
.check a { text-decoration: underline; text-underline-offset: 2px; }
.form .btn { width: 100%; margin-top: 1.25rem; }
.form__note { font-size: 0.8rem; color: var(--muted); margin-top: 0.9rem; line-height: 1.5; }
.form__status {
  margin-top: 0.9rem; padding: 0.85rem 1rem; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--red-300); font-size: 0.89rem; display: none;
}
.form__status.is-visible { display: block; }

/* ------------------------------------------------------------- CTA-Band */
.cta { background: var(--red); color: #fff; }
.cta h2 { color: #fff; font-size: var(--step-3); max-width: 17ch; }
.cta p { color: rgba(255, 255, 255, 0.85); margin-top: 0.8rem; max-width: 46ch; }
.cta .eyebrow { color: #fff; }
.cta .eyebrow::before { background: #fff; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }

/* --------------------------------------------------------------- Footer */
.footer { background: var(--ink); color: #97908a; padding: clamp(3.25rem, 6vw, 4.5rem) 0 1.75rem; font-size: 0.92rem; }
.footer .brand, .footer .brand__name { color: #fff; }
.footer .brand__kind { color: rgba(255, 255, 255, 0.72); }
.footer .brand__sub { color: rgba(255, 255, 255, 0.42); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2.5rem; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 540px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h3 {
  font-family: var(--sans); font-size: 0.73rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: #fff; margin-bottom: 1rem;
}
.footer ul { display: grid; gap: 0.55rem; }
.footer li { list-style: none; }
.footer a:hover { color: #fff; }
.footer .brand { margin-bottom: 1.15rem; }
.footer__legal {
  margin-top: clamp(2.25rem, 4vw, 3.25rem); padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap;
  font-size: 0.84rem; color: #6f6862;
}
.footer__legal ul { display: flex; gap: 1.35rem; }
.demo-note { margin-top: 1.15rem; font-size: 0.82rem; font-weight: 500; color: #fff; }

/* --------------------------------------------------- Mobile Sticky-CTA */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none; gap: 1px;
  background: rgba(255, 255, 255, 0.15); transform: translateY(110%);
  transition: transform 0.35s var(--ease);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem; font-size: 0.9rem; font-weight: 600; background: var(--ink); color: #fff;
}
.mobile-cta a.is-primary { background: var(--red); }
.mobile-cta svg { width: 16px; height: 16px; }
@media (max-width: 640px) { .mobile-cta { display: flex; } }

/* --------------------------------------------------------------- Inhalt */
.prose { max-width: 74ch; }
.prose h2 { font-size: var(--step-2); margin: 2.5rem 0 0.9rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1.15em; padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4em; line-height: 1.6; list-style: disc; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); }

.legal-block { padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.legal-block:last-child { border-bottom: 0; }
.legal-block h2 { font-size: var(--step-1); margin: 0 0 0.8rem; }
.legal-block p, .legal-block li { color: var(--text-2); }

/* ------------------------------------------------------------ Animation */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal[data-delay="1"].is-in { transition-delay: 0.06s; }
.reveal[data-delay="2"].is-in { transition-delay: 0.12s; }
.reveal[data-delay="3"].is-in { transition-delay: 0.18s; }
.reveal[data-delay="4"].is-in { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------- 404-Seite */
.code {
  font-family: var(--display); font-size: clamp(4rem, 14vw, 8rem);
  line-height: 1; color: var(--red); letter-spacing: -0.05em;
}

/* ------------------------------------------------------------------ Print */
@media print {
  .header, .mobile-cta, .drawer, .cta, .footer__legal { display: none !important; }
  body { background: #fff; }
  .pagehead, .section--dark { background: #fff !important; color: #000 !important; }
}

/* ------------------------------------------------------- Demo-Zugangsgate */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

html:not(.is-unlocked) { overflow: hidden; }
html:not(.is-unlocked) body > *:not(.gate) { display: none !important; }
html.is-unlocked .gate { display: none; }

.gate {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: var(--paper); padding: 2rem 1.5rem;
}
.gate__inner { width: 100%; max-width: 27rem; text-align: left; }
.gate .brand { margin-bottom: 2.75rem; }
.gate__label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--red); margin: 0 0 0.9rem;
}
.gate__title {
  font-family: var(--display); font-size: clamp(1.7rem, 4vw, 2.15rem); font-weight: 600;
  letter-spacing: -0.035em; line-height: 1.1; margin-bottom: 0.8rem;
}
.gate__text { color: var(--muted); font-size: 0.96rem; margin-bottom: 1.75rem; }
.gate__form { display: grid; gap: 0.75rem; }
.gate__field input {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--text);
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 0.85rem 1rem; letter-spacing: 0.12em;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.gate__field input::placeholder { letter-spacing: 0; color: var(--muted); }
.gate__field input:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(174, 3, 29, 0.12);
}
.gate__form .btn { width: 100%; }
.gate__error { color: var(--red); font-size: 0.88rem; font-weight: 500; margin: 0.25rem 0 0; }
.gate.is-wrong .gate__field input { border-color: var(--red); }
.gate.is-wrong .gate__inner { animation: shake 0.32s var(--ease); }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
