/* =========================================================
   Legacy RP Support — Gestaltung
   Dunkles Aktendossier: eine nächtliche Akte statt Neon-HUD —
   warmes Fast-Schwarz, Gold als Tinte. Die Aktenblatt-Struktur
   bleibt (umgeknickte Kartenecke, zweispaltiger Hero mit
   angehefteter Kennzahlen-Akte, Index-Liste statt Karten-Grid),
   nur der Ton kippt von Papier auf Nacht.
   ========================================================= */

:root {
  --bg:       #0C0905;   /* Seitengrund, warmes Fast-Schwarz */
  --bg-2:     #120D07;   /* Abstufung für wechselnde Abschnitte */
  --surface:  #1D160B;   /* Karten */
  --border:   rgba(244,190,90,0.14);
  --border-strong: rgba(244,190,90,0.30);
  --text:     #F5EEDC;
  --text-dim: #B2A386;

  /* ---------------------------------------------------------
     AKZENTFARBE — die einzige Stelle, an der sie steht.
     Zum Umfärben der ganzen Seite genau diese Zeile ändern.
     Alle Tönungen werden per color-mix daraus abgeleitet,
     damit hier nichts nachgezogen werden muss.
     --------------------------------------------------------- */
  --accent:   #F2B807;

  /* Abgeleitete Töne. color-mix hält sie an --accent gebunden;
     die Zeile darüber ist jeweils der Rückfall für ältere Browser,
     dort bleibt die Fläche dann schlicht neutral statt farbig. */
  --accent-soft:   rgba(255,255,255,0.06);
  --accent-soft:   color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-line:   rgba(255,255,255,0.16);
  --accent-line:   color-mix(in srgb, var(--accent) 38%, transparent);
  --accent-hover:  var(--accent);
  --accent-hover:  color-mix(in srgb, var(--accent) 88%, #FFFFFF);
  /* Auf dunklem Grund liest sich das Gold direkt gut — hier keine
     abgedunkelte Lesefassung nötig wie beim hellen Papier. */
  --accent-ink:    var(--accent);

  /* Grün für den Status-Chip „Bewerbung offen" — bewusst
     unabhängig vom Akzent, damit der Status auch nach einem
     Farbwechsel noch als „offen" lesbar bleibt. */
  --ok:        #9AE62A;
  --ok-soft:   rgba(154,230,42,0.12);
  --ok-line:   rgba(154,230,42,0.32);

  --radius:      8px;
  --radius-lg:   10px;
  --fold:        22px;   /* Größe der umgeknickten Kartenecke */
  --maxw:        1200px;
  --maxw-narrow: 780px;

  /* Systemschriften: keine Webfont-Datei, kein fremder Server.
     Eine schmale, großgeschriebene Display-Schrift für Titel wie
     auf einem Aktendeckel, Mono für Kennzahlen und Aktenvermerke,
     normaler Systemtext für den Fließtext. */
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial,
          "Noto Sans", "Liberation Sans", sans-serif;
  --font-display: "Arial Narrow", "Liberation Sans Narrow", "Roboto Condensed",
          "Segoe UI Semibold", var(--font);
  --font-mono: "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono",
          "Courier New", monospace;
}

/* ---------- Grundlagen ---------- */

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

html {
  scroll-behavior: smooth;
  /* Sprungziele landen sonst unter der klebenden Kopfleiste */
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Sicherung gegen waagerechtes Scrollen, falls ein Element doch
     einmal breiter wird als der Bereich (z. B. lange Wörter). */
  overflow-x: hidden;
  position: relative;
}

/* Ganz feines Korn über der Seite — kein Bild, per SVG-Rauschen
   erzeugt, kaum wahrnehmbar, bricht nur die digitale Glätte. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

body > * { position: relative; z-index: 1; }

img, svg { max-width: 100%; }
svg { display: block; }

/* Eigene display-Angaben (etwa display:grid am FAQ-Panel) überstimmen sonst
   das hidden-Attribut aus dem Browser-Stylesheet. */
[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 700;
}

p { margin: 0; }

/* Ein einheitlicher, gut sichtbarer Fokusring für die Tastaturbedienung. */
:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.container-narrow {
  max-width: var(--maxw-narrow);
  margin-inline: auto;
}

/* ---------- Karten ---------- */

/* Formularblatt statt Neon-Panel: schlichte Kante, dafür eine
   umgeknickte Ecke oben rechts, als läge hier eine echte Akte im
   Stapel. Die Ecke besteht aus zwei Dreiecken übereinander: eines
   in Seitenfarbe (das "umgeklappte" Papier), eines als feiner
   Knick-Schatten darunter. */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: var(--fold);
  height: var(--fold);
  background:
    linear-gradient(135deg, transparent 50%, rgba(0,0,0,0.35) 50.5%, transparent 52%),
    var(--bg);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

/* ---------- Knöpfe ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease,
              transform .18s ease, border-color .18s ease,
              box-shadow .18s ease, filter .18s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-light {
  background: var(--text);
  color: var(--surface);
}
.btn-light:hover { background: #3A2C10; }

.btn-accent {
  background: var(--accent);
  color: #241600;   /* dunkle Schrift auf Gold liest sich besser als weiße */
  box-shadow: 0 1px 0 var(--accent-line), 0 8px 20px -12px rgba(37,27,10,0.4);
}
.btn-accent:hover { background: var(--accent-hover); }

.btn-lg {
  padding: 15px 26px;
  font-size: 16px;
}

/* =========================================================
   1. Kopfleiste
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12,9,5,0.86);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-grid {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  flex-shrink: 0;
}
.brand-mark { color: var(--accent-ink); display: flex; }
.brand-text { font-weight: 400; color: var(--text); }
.brand-text strong { font-weight: 700; }

/* Die Hülle nimmt den ganzen Rest der Zeile ein; darin liegen die Links
   mittig und der Anmelde-Knopf ganz rechts. */
.nav-panel {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}

.site-nav a {
  color: var(--text-dim);
  transition: color .18s ease;
}
.site-nav a:hover { color: var(--accent-ink); }

.nav-external {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;         /* nur auf schmalen Anzeigen sichtbar */
  margin-left: auto;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
}

/* =========================================================
   2. Hero — zweispaltiges Deckblatt statt zentriertem Stapel
   ========================================================= */

.hero {
  position: relative;
  padding: 76px 0 96px;
}

.hero-inner { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

.hero-copy { text-align: left; }

/* Ein kleiner, leicht gedrehter Stempel — wie ein Vermerk auf einer
   echten Akte. Rein dekorativ, per mix-blend-mode wie eingedruckt. */
.hero-stamp {
  position: absolute;
  top: -34px;
  right: 14%;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid var(--accent-ink);
  box-shadow: inset 0 0 0 3px rgba(242,184,7,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(-11deg);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-ink);
  line-height: 1.35;
  opacity: 0.8;
  pointer-events: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  margin: 26px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.hero-title span { display: block; }
.line-1 { color: var(--text); }
.line-2 { color: var(--accent-ink); }

.hero-text {
  max-width: 480px;
  margin: 22px 0 0;
  color: var(--text-dim);
  font-size: 17px;
}

.hero .btn-lg { margin-top: 30px; }

/* ---------- 3. Kennzahlen-Akte ---------- */

/* Statt drei einzelner Kennzahl-Karten: eine einzige geheftete Akte
   mit den drei Werten als Zeilen, gestrichelt getrennt wie ein
   ausgefülltes Formular. */
.hero-file {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px 28px 20px;
  position: relative;
}

.hero-file::before,
.hero-file::after {
  /* zwei "Heftlöcher" oben, wie bei einer Akte im Ordner */
  content: "";
  position: absolute;
  top: 14px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--border-strong);
}
.hero-file::before { left: 24px; }
.hero-file::after   { right: 24px; }

.hero-file-tab {
  margin: 22px 0 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: right;
}

.stats {
  display: flex;
  flex-direction: column;
}

.stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px dashed var(--border-strong);
}
.stat:first-child { border-top: 1px dashed var(--border-strong); }

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-ink);
  letter-spacing: -0.01em;
}

.stat-label {
  color: var(--text-dim);
  font-size: 13.5px;
  text-align: right;
}

/* =========================================================
   Abschnitte allgemein
   ========================================================= */

.section {
  position: relative;
  padding: 96px 0;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - 48px, var(--maxw));
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}

.eyebrow {
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-head h2 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  font-weight: 800;
}

.section-sub {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 16px;
}

/* ---------- 4. Womit wir helfen — Index-Liste statt Karten-Grid ---------- */

.feature-list {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
}

.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

/* Die untere Kante der zweiten Zeile pro Spalte soll auch eine Linie
   ziehen, damit das Raster wie ein abgeschlossener Registerblock wirkt. */
.feature-row:nth-child(3),
.feature-row:nth-child(4) {
  border-bottom: 1px solid var(--border);
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  color: var(--accent-ink);
  flex-shrink: 0;
}

.icon-box-accent {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-ink);
}

.icon-box-lg {
  width: 58px;
  height: 58px;
  border-radius: 10px;
}

.feature-body h3 {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
}

.feature-body p {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 14px;
}

/* ---------- 5. Bewerbungskarte — Abrissabschnitt wie ein Ticket ---------- */

.join {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 36px 40px;
}

.join-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
}

.chip {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--ok-soft);
  border: 1px solid var(--ok-line);
  color: var(--ok);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.join-body p {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 15px;
}

.join-body .btn { margin-top: 22px; }

/* ---------- 6. FAQ ---------- */

.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 17px 20px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-q:hover { color: var(--accent-ink); }

.chevron {
  flex-shrink: 0;
  color: var(--text-dim);
  transition: transform .22s ease;
}

.faq-q[aria-expanded="true"] .chevron { transform: rotate(180deg); color: var(--accent-ink); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .24s ease;
}
.faq-a.open { grid-template-rows: 1fr; }

.faq-a-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-a p {
  padding: 0 20px 20px;
  color: var(--text-dim);
  font-size: 15px;
}

/* =========================================================
   7. Fußzeile
   ========================================================= */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  background: var(--bg-2);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--text-dim);
}
.footer-links a { transition: color .18s ease; }
.footer-links a:hover { color: var(--accent-ink); }

.footer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.footer-meta a:hover { color: var(--accent-ink); }

/* =========================================================
   Anpassung an schmale Anzeigen
   ========================================================= */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; }
  .hero-text { margin-inline: auto; }
  .hero-file { max-width: 460px; margin: 0 auto; }
  .hero-stamp { display: none; }
  .feature-list { grid-template-columns: 1fr; }
  .feature-row:nth-child(3) { border-bottom: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }

  .nav-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 8px 24px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .nav-panel.open { display: flex; }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav a { padding: 12px 0; }

  .header-grid { position: relative; }
}

@media (max-width: 720px) {
  .hero { padding-top: 48px; }
  .section { padding: 64px 0; }

  .join {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 22px;
  }

  .footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Wer Bewegung abbestellt hat, bekommt die Zustände ohne Übergang. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
