:root {
  --bg: #111923;
  --surface: #192433;
  --surface-light: #243447;
  --text: #f5f8fb;
  --muted: #b8c5d1;
  --blue: #83b9d8;
  --line: rgba(230, 240, 248, .16);
  --content-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 "Manrope", system-ui, sans-serif;
}

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

button {
  font: inherit;
}

.wrap {
  width: min(var(--content-width), calc(100% - 40px));
  margin-inline: auto;
}

/* Startseite mit vollflächigem Titelbild */
.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  background-color: #16202c;
  background-image:
    linear-gradient(90deg, rgba(8, 15, 24, .55), rgba(8, 15, 24, .27) 72%),
    linear-gradient(0deg, rgba(8, 15, 24, .66), transparent 55%),
    url("https://kcvg.de/bilder/gruppenbild/Gruppenbild%202024-flux-bea.png");
  background-size: cover;
  background-position: center 71%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 75% 35%, transparent 10%, rgba(8, 15, 24, .12) 80%);
  pointer-events: none;
}

.site-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 20, 29, .42);
  backdrop-filter: blur(12px);
}

.topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 14px;
  background: rgba(131, 185, 216, .2);
  color: white;
  font-size: 13px;
  letter-spacing: -.05em;
}

.brand-name {
  font-size: 15px;
  line-height: 1.25;
}

.brand-name span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav a {
  padding: 10px 13px;
  border-radius: 10px;
  color: #f0f4f7;
  font-size: 13px;
  font-weight: 700;
  transition: background .2s, color .2s;
}

.nav a:hover,
.nav a.active {
  background: rgba(131, 185, 216, .2);
  color: white;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: white;
  cursor: pointer;
}

.hero-content {
  width: min(var(--content-width), calc(100% - 40px));
  margin: auto;
  padding-block: 80px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--blue);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: 1.04;
  text-wrap: balance;
  opacity: 0.5; /* 0 = unsichtbar, 1 = vollständig deckend */
}

.hero h1 span {
  color: var(--blue-light);
}

.hero-content p {
  max-width: 580px;
  margin: 24px 0 0;
  color: #e1e8ee;
  font-size: clamp(16px, 2vw, 19px);
  opacity: 0.8;
  /* 0 = unsichtbar, 1 = vollständig deckend */
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  color: white;
  font-size: 13px;
  font-weight: 800;
  transition: transform .2s, background .2s;
}

.button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .2);
}

.button-primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #10202c;
}

.button-primary:hover {
  background: #a2cde4;
}

.hero-caption {
  position: absolute;
  right: 24px;
  bottom: 20px;
  color: rgba(255, 255, 255, .78);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Beispiel-Unterseiten */
.page-view {
  min-height: 100vh;
  display: none;
  background:
    radial-gradient(ellipse at 80% 0, rgba(131, 185, 216, .12), transparent 38%),
    var(--bg);
}

.page-view.active {
  display: block;
}

.page-header {
  background: rgba(12, 20, 29, .72);
  border-bottom: 1px solid var(--line);
}

.page-content {
  padding-block: clamp(56px, 9vw, 100px);
}

.page-content h1 {
  margin: 8px 0 14px;
  font-size: clamp(38px, 6vw, 64px);
  letter-spacing: -.06em;
  line-height: 1.1;
}

.page-intro {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.content-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, var(--surface-light), var(--surface));
}

.content-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -.03em;
}

.content-card .section-info {
  margin: -10px 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}

.content-card p {
  margin: 0;
  color: var(--muted);
}

.placeholder {
  margin-top: 28px;
  padding: 16px 18px;
  border-left: 3px solid var(--blue);
  background: rgba(131, 185, 216, .09);
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 820px) {
  .menu-toggle {
    display: grid;
    place-items: center;
    font-size: 19px;
  }

  .nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #172331;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px;
  }

  .hero {
    background-position: 55% center;
  }
}

@media (max-width: 600px) {

  .wrap,
  .hero-content {
    width: min(100% - 30px, var(--content-width));
  }

  .topbar {
    min-height: 70px;
  }

  .hero {
    min-height: 100svh;
    background-position: 55% center;
  }

  .hero-content {
    padding-block: 70px;
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 62px);
  }

  .hero-caption {
    right: 15px;
    bottom: 14px;
    font-size: 9px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }
}


/* Static multi-page additions */
.content-card {
  background: linear-gradient(145deg, var(--surface-light), var(--surface))
}

.content-card .section-info {
  margin: -10px 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px
}

.footer-nav a {
  color: var(--muted)
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 50;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(23, 35, 49, .85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s, transform .25s, background .2s;
}

.to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.to-top:hover {
  background: rgba(131, 185, 216, .35);
}

.page-header,
.site-header.page-header {
  position: sticky;
  top: 0;
  z-index: 100;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: #111923;
}

.page-header .topbar {
  position: relative;
}

@media (max-width: 820px) {
  .page-header .nav {
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 101;
  }

  .page-header .nav.open {
    display: flex;
  }
}

/* Weiterlesen-Funktion */
.collapsible .collapsible-body {
  position: relative;
  max-height: 500px; /* sichtbare Textlänge anpassen */
  overflow: hidden;
  transition: max-height .4s ease;
}

.collapsible .collapsible-body::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 90px;
  background: linear-gradient(to bottom, transparent, var(--surface));
  pointer-events: none;
  transition: opacity .3s;
}

.collapsible.expanded .collapsible-body::after {
  opacity: 0;
}

.read-more {
  margin-top: 16px;
  padding: 10px 18px;
  border: 1px solid var(--blue);
  border-radius: 12px;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.read-more:hover {
  background: var(--blue);
  color: #10202c;
}
