/* PMM Planung & Steuerung — Landingpage
   Farben: Spalte 1 (PS) Orange, Spalte 2 (CS) Petrol, Grund aus dem Header-Video. */

@font-face { font-family: "Zilla Slab"; src: url("assets/fonts/zilla-slab-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Zilla Slab"; src: url("assets/fonts/zilla-slab-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("assets/fonts/fira-sans-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("assets/fonts/fira-sans-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("assets/fonts/fira-sans-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("assets/fonts/fira-sans-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* Spalte 1 (PS) */
  --ps-100: #FCE0C8;
  --ps-200: #F9C291;
  --ps-300: #F7A45B;
  --ps: #D66A0A;
  --ps-600: #A04F07;
  --ps-800: #6B3504;
  /* Spalte 2 (CS) */
  --cs-100: #C4E6EE;
  --cs-200: #8ACDDE;
  --cs-300: #50B4CD;
  --cs: #1E5B6A;
  --cs-600: #16444F;
  --cs-800: #0E2D35;

  /* Spalte 3: Dunkelgrau für Flächen */
  --gray-800: #3D3D3D;
  --gray-200: #D8D8D8;

  --ground: #F2F3F6;          /* Grundton des Header-Videos */
  --paper: #FFFFFF;
  --ink: var(--cs-600);
  --ink-display: var(--cs);
  --ink-muted: #4A6870;       /* aus Petrol abgeleitet, 5.6:1 auf Grund */
  --rule: #D5E2E6;

  --font-display: "Zilla Slab", "Rockwell", Georgia, serif;
  --font-text: "Fira Sans", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 76rem;
  --section: clamp(5rem, 11vw, 9.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  scrollbar-color: var(--cs-200) var(--ground);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ps-200); color: var(--cs-800); }
.band-dark ::selection { background: var(--ps-300); color: var(--gray-800); }

img, video, svg { display: block; max-width: 100%; }

a { color: var(--cs); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--ps-600); }

:focus-visible { outline: 3px solid var(--ps); outline-offset: 3px; border-radius: 2px; }
.band-dark :focus-visible { outline-color: var(--ps-200); }

.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;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 100;
  background: var(--cs-800); color: #fff; padding: 0.6rem 1rem; text-decoration: none;
  font-weight: 600;
}
.skip-link:focus, .skip-link:hover { top: 1rem; color: #fff; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- Typo: der Block aus dem Video ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink-display);
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}

/* Schlüsselwort weiß auf Farbblock, Fortsetzung darunter — wie im Header-Video */
.claim { display: flex; flex-direction: column; align-items: flex-start; gap: 0.12em; }
.claim .block {
  font-weight: 700;
  color: #fff;
  background: var(--ps);
  padding: 0.04em 0.28em 0.1em;
  line-height: 1.1;
}
.claim .tail { padding-left: 0.28em; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;          /* ≥ 18.66px fett: großer Text, Weiß auf Orange zulässig */
  line-height: 1.1;
  text-decoration: none;
  color: #fff;
  background: var(--ps);
  padding: 0.85em 1.25em 0.9em;
  border-radius: 2px;
  transition: background-color 0.2s, transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  box-shadow: 0 1px 2px rgb(107 53 4 / 0.18);
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; transition: transform 0.4s var(--ease-out); }
.btn:hover { background: var(--ps-600); color: #fff; box-shadow: 0 8px 20px -8px rgb(107 53 4 / 0.45); transform: translateY(-1px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); box-shadow: 0 1px 2px rgb(107 53 4 / 0.2); }
.btn--gray { background: var(--gray-800); box-shadow: 0 1px 2px rgb(0 0 0 / 0.18); }
.btn--gray:hover { background: #2D2D2D; box-shadow: 0 8px 20px -8px rgb(0 0 0 / 0.45); }

.link-quiet {
  font-weight: 500;
  color: var(--cs);
  text-decoration: underline;
  text-decoration-color: var(--cs-200);
}
.link-quiet:hover { text-decoration-color: currentColor; }

/* ---------- Kopfleiste ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color 0.35s, box-shadow 0.35s;
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: min(100% - 2 * var(--gutter), 100rem); margin-inline: auto;
  height: 4.5rem;
}
.site-header .brand {
  display: block; opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity 0.35s, transform 0.5s var(--ease-out);
}
.site-header .brand img { height: 2.5rem; width: auto; }
.site-header.is-solid { background: rgb(242 243 246 / 0.96); box-shadow: 0 1px 0 var(--rule), 0 6px 18px -14px rgb(14 45 53 / 0.35); }
.site-header.is-solid .brand { opacity: 1; transform: none; pointer-events: auto; }

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.25rem); }
.site-nav a { font-weight: 500; text-decoration: none; color: var(--cs); font-size: 1rem; }
.site-nav a:hover { color: var(--ps-600); }
.site-nav a[aria-current="page"] { color: var(--ps-600); }
.site-nav .nav-cta {
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; /* großer Text: Weiß auf Orange zulässig */
  color: #fff; background: var(--ps); padding: 0.4em 0.75em 0.45em; border-radius: 2px;
}
.site-nav .nav-cta:hover { background: var(--ps-600); color: #fff; }

@media (max-width: 40rem) {
  .site-nav .nav-text { display: none; }
  .site-header .bar { height: 4rem; }
  .site-header .brand img { height: 2.1rem; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  max-width: 100rem;
  margin-inline: auto;
}
.hero-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ground); }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 0% 50%; }

.hero-copy { padding: 1.5rem var(--gutter) clamp(3rem, 8vw, 5rem); max-width: 40rem; }
/* Schmal: Das Video zeigt das Logo bereits direkt darüber */
.hero-logo { margin: 0; }
.hero-logo img { display: none; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

.video-toggle {
  position: absolute; left: 2.6%; bottom: 5%;
  display: inline-grid; place-items: center;
  width: 2.5rem; height: 2.5rem; padding: 0;
  border: 1.5px solid var(--cs-200); border-radius: 50%;
  background: rgb(242 243 246 / 0.9); color: var(--cs);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.video-toggle:hover { border-color: var(--ps); color: var(--ps-600); }
.video-toggle svg { width: 1rem; height: 1rem; }
.video-toggle .i-play, .video-toggle .i-replay { display: none; }
.video-toggle[data-state="paused"] .i-pause, .video-toggle[data-state="held"] .i-pause { display: none; }
.video-toggle[data-state="paused"] .i-play { display: block; }
.video-toggle[data-state="held"] .i-replay { display: block; }

/* Hochformat: Video füllt die Höhe, der Bildteil mit Logo und Claims bleibt sichtbar */
@media (max-width: 37.5rem) {
  .hero-media { aspect-ratio: 4 / 5; }
}

/* Breit: Überschrift im freien rechten Bildfeld des Videos */
@media (min-width: 62rem) {
  .hero-copy {
    position: absolute;
    left: 50%; right: 5%;
    top: 15%; bottom: 20%;
    padding: 0;
    max-width: 38rem;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  }
  .hero-logo img { display: block; width: clamp(18rem, 31vw, 34rem); height: auto; }
  .hero-logo { margin-bottom: clamp(1.5rem, 2.6vw, 2.75rem); }
}

/* ---------- Abschnitte ---------- */

.section { padding-block: var(--section); }

.section-head { margin-bottom: clamp(3rem, 6vw, 5rem); max-width: 46rem; }
.section-head h2 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.4rem); }
.section-head p { margin: 1.4rem 0 0; font-size: 1.15em; max-width: 36em; }

/* Leistungen: zwei Disziplinen, Zeilen statt Karten */
.discipline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 4rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
}
.discipline:last-child { border-bottom: 1px solid var(--rule); }
.discipline h3 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); }
.discipline .body { max-width: 38rem; }
.discipline .body p { margin: 0 0 1.5rem; }
@media (min-width: 56rem) {
  .discipline { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
}

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.ticks li { position: relative; padding-left: 1.6rem; font-weight: 500; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 0.62rem; height: 0.62rem; background: var(--ps);
}

/* Kontakt: dunkelgraues Band (Spalte 3) */
.band-dark { background: var(--gray-800); color: #fff; }
.band-dark .display { color: #fff; }
.band-dark .claim .tail { color: var(--ps-100); }
.contact .wrap { display: grid; gap: 3rem 5rem; }
.contact h2 { font-size: clamp(2.4rem, 1.4rem + 4.2vw, 5.4rem); }
.contact .intro { margin: 1.6rem 0 2.4rem; font-size: 1.15em; max-width: 30em; color: var(--gray-200); }
.contact .btn { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem); }
.contact .btn:hover { box-shadow: 0 10px 24px -10px rgb(0 0 0 / 0.55); }

.contact-facts { margin: 0; display: grid; gap: 1.6rem; align-content: end; }
.contact-facts div { padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / 0.22); }
.contact-facts dt {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  color: var(--ps-200); margin-bottom: 0.2rem;
}
.contact-facts dd { margin: 0; font-size: 1.15rem; line-height: 1.5; }
.contact-facts a { color: #fff; text-decoration-color: rgb(255 255 255 / 0.45); }
.contact-facts a:hover { color: var(--ps-200); text-decoration-color: currentColor; }
@media (min-width: 56rem) {
  .contact .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; }
}

/* ---------- Fuß ---------- */

.site-footer { padding-block: 3rem 2.5rem; font-size: 0.95rem; color: var(--ink-muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.site-footer img { height: 3rem; width: auto; }
.site-footer .meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; align-items: center; }
.site-footer .meta p { margin: 0; }
.site-footer a { color: var(--cs); font-weight: 500; }

/* ---------- Impressum ---------- */

.legal { padding-block: clamp(8rem, 14vw, 11rem) var(--section); }
.legal h1 { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.6rem); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.legal-grid { display: grid; gap: 0; max-width: 54rem; }
.legal-grid section {
  display: grid; gap: 0.4rem 3rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--rule);
}
.legal-grid section:last-child { border-bottom: 1px solid var(--rule); }
.legal-grid h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--ink-display); margin: 0; line-height: 1.3; }
.legal-grid p { margin: 0 0 0.6rem; }
.legal-grid p:last-child { margin-bottom: 0; }
@media (min-width: 48rem) {
  .legal-grid section { grid-template-columns: 15rem minmax(0, 1fr); }
}
.legal .back { margin-top: 3rem; }
.legal-intro { max-width: 40rem; margin: 0 0 clamp(2.5rem, 5vw, 3.5rem); font-size: 1.15em; }
.legal-grid .ticks { margin: 0.4rem 0 1rem; gap: 0.4rem; }
.legal-grid .ticks li { font-weight: 400; }
.legal-grid strong { font-weight: 600; }
.legal h1 + .legal-intro { margin-top: calc(-1 * clamp(1rem, 2vw, 1.5rem)); }

/* Platzhalter, die vor Veröffentlichung ersetzt werden müssen */
.todo { background: var(--ps-100); color: var(--ps-800); padding: 0 0.25em; font-weight: 600; }

/* ---------- Bewegung: Blöcke wischen auf wie im Video ---------- */

.js-motion .reveal .block {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.7s var(--ease-out);
}
.js-motion .reveal .tail {
  opacity: 0; transform: translateY(0.25em);
  transition: opacity 0.6s var(--ease-out) 0.3s, transform 0.8s var(--ease-out) 0.3s;
}
.js-motion .reveal.is-visible .block { clip-path: inset(0 0 0 0); }
.js-motion .reveal.is-visible .tail { opacity: 1; transform: none; }
