/* =========================================================================
   Führungssache KI — Website
   Marke: KIVOREX-Blau #378EC4 / #0070B2 auf Executive-Navy #0E2A3D / #0B1F2E
   Motiv: Seekarte. Durchgehend dunkel, Abschnitte durch Haarlinien getrennt.
   Keine externen Ressourcen: Schrift selbst gehostet, kein Tracking, kein CDN.
   ========================================================================= */

/* ---------- Schrift (PT Sans, SIL Open Font License) ---------- */

@font-face {
  font-family: "PT Sans";
  src: url("fonts/PTSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PT Sans";
  src: url("fonts/PTSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PT Sans";
  src: url("fonts/PTSans-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Token ---------- */

:root {
  --navy-deep: #0b1f2e;
  --navy: #0e2a3d;
  --navy-raised: #143349;
  --chart: #1d4864;          /* Kartenlinien-Ton */
  --azure: #378ec4;
  --azure-deep: #0070b2;
  --paper: #f4f7f9;
  --ink: #12222e;
  --ink-muted: #4c6272;
  --text: #d6e3ec;
  --text-dim: #93aec2;
  --white: #ffffff;

  --rule: rgba(55, 142, 196, 0.22);
  --rule-soft: rgba(55, 142, 196, 0.12);

  --font: "PT Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --maxw: 1140px;
  --gutter: 24px;
}

/* ---------- Grundlage ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--navy-deep);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: var(--azure); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--azure-deep);
  color: var(--white);
  padding: 12px 20px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Typografische Skala ---------- */

h1, h2, h3 {
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; line-height: 1.3; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.5;
  color: var(--text);
  max-width: 46ch;
}

.prose { max-width: 62ch; color: var(--text-dim); }
.prose strong { color: var(--text); font-weight: 700; }

/* Hilfsschrift: Peilungen, Marginalien, Datenzeilen */
.util {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--azure);
}

/* ---------- Layout ---------- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 92px 0; }

/* Abschnittstrenner: Haarlinie mit aufsitzender Beschriftung */
.section--ruled {
  border-top: 1px solid var(--rule);
  position: relative;
}
.section--ruled > .wrap { position: relative; }

.section-label {
  display: block;
  margin: -92px 0 56px;
  padding-top: 24px;
}

.section-head { max-width: 60ch; margin-bottom: 8px; }

/* Kopf über zwei Spalten: Überschrift links, Text rechts */
.split-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: start;
}
.split-head h2 { margin-bottom: 0; }
.split-head > div { max-width: 62ch; }

@media (max-width: 900px) {
  .split-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .section-label { margin: -64px 0 40px; }
}

/* ---------- Kopfzeile ---------- */

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 24px 0;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.topbar img { height: 34px; width: auto; }

.topnav {
  display: flex;
  gap: 30px;
  font-size: 0.95rem;
}
.topnav a {
  color: var(--text);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}
.topnav a:hover,
.topnav a:focus-visible { border-bottom-color: var(--azure); }

@media (max-width: 800px) {
  .topnav { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 184px 0 104px;
  background: var(--navy-deep) url("hero.jpg") center / cover no-repeat;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    104deg,
    rgba(11, 31, 46, 0.95) 0%,
    rgba(11, 31, 46, 0.78) 46%,
    rgba(11, 31, 46, 0.46) 100%
  );
}
.hero .wrap {
  position: relative;
  z-index: 2;
}
.hero-inner { max-width: 42rem; }

.hero h1 { margin-bottom: 0.32em; }
.hero h1 .accent { color: var(--azure); }

.hero-claim {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.4;
  color: var(--white);
  max-width: 26ch;
  margin-bottom: 1.3em;
  font-style: italic;
}

.hero .prose { max-width: 52ch; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--rule);
  background: rgba(55, 142, 196, 0.1);
  border-radius: 999px;
  padding: 7px 20px 7px 15px;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 30px;
}
.status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--azure);
  flex: none;
}

/* ---------- Schaltflächen ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn--primary {
  background: var(--azure-deep);
  color: var(--white);
}
.btn--primary:hover,
.btn--primary:focus-visible { background: #0084d1; }

.btn--ghost {
  border-color: var(--rule);
  color: var(--text);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--azure);
  color: var(--white);
}

/* ---------- Themenliste ---------- */

.themes {
  list-style: none;
  padding: 0;
  margin: 44px 0 0;
  columns: 2;
  column-gap: 56px;
  max-width: 900px;
}
.themes li {
  break-inside: avoid;
  position: relative;
  padding-left: 28px;
  margin-bottom: 20px;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.5;
}
.themes li strong {
  display: block;
  color: var(--text);
  font-weight: 700;
}
/* Wegpunkt-Marke statt Aufzählungspunkt */
.themes li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 9px solid var(--azure);
}

@media (max-width: 760px) {
  .themes { columns: 1; }
}

/* =========================================================================
   SIGNATURE: Der Kurs einer Folge
   Die sieben Wegpunkte eines Gesprächs, als Kurslinie geplottet.
   ========================================================================= */

.course {
  margin-top: 64px;
  position: relative;
}

/* Kurslinie läuft mittig durch die Wegpunkte */
.course-line {
  position: absolute;
  left: 0;
  right: calc(100% / 7);   /* endet am siebten Wegpunkt */
  top: 50%;
  height: 1px;
  background: var(--rule);
}
/* gezeichnete Linie, die beim Scrollen aufläuft */
.course-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--azure);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.6s cubic-bezier(.22,.61,.36,1);
}
.course.is-plotted .course-line::after { transform: scaleX(1); }

.waypoints {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: stretch;
}

/* Zwei gleich hohe Hälften, die Linie liegt genau dazwischen.
   Ungerade Wegpunkte hängen unter der Linie, gerade stehen darüber. */
.waypoint {
  position: relative;
  padding: 0 14px 0 0;
  display: grid;
  grid-template-rows: 1fr 1fr;
  min-height: 330px;
}

/* Marke auf der Linie */
.waypoint::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 9px;
  height: 9px;
  margin: -4px 0 0 -4px;
  background: var(--navy-deep);
  border: 1px solid var(--azure);
  border-radius: 50%;
  opacity: 0;
  transition: opacity .35s ease;
  transition-delay: var(--delay, 0s);
}
.course.is-plotted .waypoint::before { opacity: 1; }

/* letzter Wegpunkt: gefüllte Marke, das Ziel */
.waypoint:last-child::before {
  background: var(--azure);
  width: 13px;
  height: 13px;
  margin: -6px 0 0 -6px;
}

.waypoint-body {
  grid-row: 2;
  align-self: start;
  padding: 26px 0 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .5s ease, transform .5s ease;
  transition-delay: var(--delay, 0s);
}
.waypoint:nth-child(even) .waypoint-body {
  grid-row: 1;
  align-self: end;
  padding: 0 0 26px;
}
.course.is-plotted .waypoint-body {
  opacity: 1;
  transform: none;
}

.waypoint-num {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--azure);
  margin-bottom: 7px;
}
.waypoint h3 {
  font-size: 0.98rem;
  margin-bottom: 0.35em;
}
.waypoint p {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-dim);
  margin: 0;
}

/* Senkrechter Kurs auf schmalen Schirmen */
@media (max-width: 900px) {
  .course-line {
    left: 5px;
    right: auto;
    top: 6px;
    bottom: 6px;
    width: 1px;
    height: auto;
  }
  .course-line::after {
    transform: scaleY(0);
    transform-origin: center top;
  }
  .course.is-plotted .course-line::after { transform: scaleY(1); }

  .waypoints {
    grid-template-columns: 1fr;
    padding-left: 32px;
  }
  .waypoint {
    min-height: 0;
    padding: 0;
    margin-bottom: 30px;
    display: block;
  }
  .waypoint .waypoint-body,
  .waypoint:nth-child(even) .waypoint-body {
    grid-row: auto;
    align-self: auto;
  }
  .waypoint::before {
    left: -27px;
    top: 0.75em;
  }
  .waypoint:last-child::before { left: -29px; }
  .waypoint-body,
  .waypoint:nth-child(even) .waypoint-body { padding: 0; }
  .waypoint p { font-size: 0.95rem; }
}

/* ---------- Zwei Spalten ---------- */

.cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px;
  margin-top: 48px;
}
@media (max-width: 860px) {
  .cols { grid-template-columns: 1fr; gap: 40px; }
}

.col h3 {
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--rule-soft);
}

.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-dim);
  font-size: 1rem;
}
.plain-list li {
  padding: 9px 0 9px 22px;
  position: relative;
  line-height: 1.5;
}
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 10px;
  height: 1px;
  background: var(--azure);
}

/* ---------- Ablauf einer Aufnahme ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 48px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
}
.facts div {
  background: var(--navy-deep);
  padding: 26px 24px;
}
.facts dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--azure);
  margin-bottom: 8px;
}
.facts dd {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.45;
}
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; }
}

/* ---------- Kartenlegende: Frank ---------- */

.legend {
  background: var(--paper);
  color: var(--ink);
  border-radius: 4px;
  padding: 48px;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 48px;
}
.legend h2, .legend h3 { color: var(--ink); }
.legend p { color: var(--ink-muted); }
.legend .util { color: var(--azure-deep); }
.legend a { color: var(--azure-deep); }
.legend img { border-radius: 3px; }

.legend-name {
  font-size: 1.5rem;
  margin-bottom: 0.15em;
}
.legend-role {
  font-size: 1rem;
  color: var(--azure-deep);
  font-weight: 700;
  margin-bottom: 1.2em;
}
.legend-body { max-width: 58ch; }

@media (max-width: 860px) {
  .legend {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 26px;
  }
  .legend img { max-width: 220px; }
}

/* ---------- Kontakt ---------- */

.contact-list {
  list-style: none;
  padding: 0;
  margin: 44px 0 0;
  max-width: 44rem;
}
.contact-list li {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--rule-soft);
  align-items: baseline;
}
.contact-list li:last-child { border-bottom: 1px solid var(--rule-soft); }
.contact-list a { word-break: break-word; }
.contact-note {
  color: var(--text-dim);
  font-size: 0.9rem;
  display: block;
}

@media (max-width: 620px) {
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Fußzeile ---------- */

.footer {
  border-top: 1px solid var(--rule);
  padding: 44px 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer a {
  color: var(--text-dim);
  text-decoration: none;
}
.footer a:hover,
.footer a:focus-visible { color: var(--white); }
.footer nav { display: flex; gap: 24px; }
.footer img { height: 26px; width: auto; opacity: 0.85; }

/* ---------- Rechtstexte ---------- */

.legal { padding: 150px 0 96px; }
.legal .wrap { max-width: 750px; }
.legal h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-bottom: 0.7em;
}
.legal h2 {
  font-size: 1.2rem;
  margin-top: 2.4em;
  padding-top: 1.3em;
  border-top: 1px solid var(--rule-soft);
}
.legal p,
.legal li {
  font-size: 1rem;
  color: var(--text-dim);
}
.legal strong { color: var(--text); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal .back {
  display: inline-block;
  margin-top: 52px;
  font-weight: 700;
  text-decoration: none;
}
.legal .back:hover { text-decoration: underline; }

.legal-bar {
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}
.legal-bar img { height: 32px; width: auto; }

/* ---------- Bewegungsreduktion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .course-line::after,
  .waypoint::before,
  .waypoint-body {
    transition: none !important;
  }
  .course .course-line::after { transform: scaleX(1); }
  .course .waypoint::before,
  .course .waypoint-body {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 900px) {
  .course .course-line::after { transform: scaleY(1); }
}
