:root {
  --bg: #f3f5f8;
  --bg-strong: #e5e9ef;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --surface-dark: #0f1216;
  --text: #11151b;
  --muted: #64707d;
  --line: rgba(17, 21, 27, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --brand: #c8180f;
  --brand-dark: #930f09;
  --brand-soft: rgba(200, 24, 15, 0.08);
  --success: #24362f;
  --shadow: 0 22px 48px rgba(14, 18, 22, 0.08);
  --shadow-strong: 0 34px 86px rgba(6, 9, 13, 0.42);
  --radius-sm: 0.9rem;
  --radius-md: 1.25rem;
  --radius-lg: 1.75rem;
  --container: min(1140px, calc(100% - 2rem));
  --font-display: "Montserrat", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(200, 24, 15, 0.09), transparent 28%),
    radial-gradient(circle at bottom right, rgba(26, 34, 44, 0.1), transparent 26%),
    linear-gradient(180deg, #fbfcfd 0%, var(--bg) 100%);
  line-height: 1.6;
}

section[id] {
  scroll-margin-top: 6.5rem;
}

body.nav-open {
  overflow: hidden;
}

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

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

iframe {
  display: block;
  width: 100%;
  border: 0;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background:
    linear-gradient(90deg, rgba(200, 24, 15, 0.12), transparent 18%),
    rgba(9, 11, 14, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 -1px 0 rgba(200, 24, 15, 0.18);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 5.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: #fff;
}

.brand img {
  width: 3.1rem;
  height: 3.1rem;
  object-fit: contain;
}

.brand__text {
  display: grid;
  gap: 0.15rem;
}

.brand__eyebrow {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.9);
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.34rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #df2014;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.site-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), #ffb78d);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav a[aria-current="page"] {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.header-badge {
  padding: 0.62rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #fff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.3rem;
  border-radius: 0.95rem;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

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

.button--primary {
  background: linear-gradient(135deg, #d51910, #a80f09);
  color: #fff;
  box-shadow: 0 18px 36px rgba(200, 24, 15, 0.28);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.button--light {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
}

.button--sm {
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: clamp(28rem, 72vh, 48rem);
}

.page-hero--compact {
  min-height: clamp(24rem, 54vh, 32rem);
}

.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
}

.page-hero::before {
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.page-hero::after {
  background:
    linear-gradient(110deg, rgba(5, 7, 10, 0.92) 0%, rgba(5, 7, 10, 0.72) 45%, rgba(107, 16, 11, 0.56) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.52));
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: 2rem;
  align-items: end;
  padding: clamp(7rem, 16vw, 10rem) 0 4rem;
}

.page-hero__inner::after {
  content: "";
  position: absolute;
  top: 3rem;
  right: 0;
  width: min(20rem, 26vw);
  height: min(16rem, 22vw);
  border-top: 3px solid rgba(255, 255, 255, 0.78);
  border-right: 3px solid rgba(255, 255, 255, 0.78);
  opacity: 0.9;
}

.page-hero--compact .page-hero__inner {
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.48fr);
  align-items: center;
  padding-bottom: 3rem;
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 46rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.84);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
}

.hero-title,
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.hero-title {
  max-width: 12ch;
  font-size: clamp(3.2rem, 8vw, 6.2rem);
  text-wrap: balance;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.28);
}

.hero-code {
  display: inline-block;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: rgba(255, 121, 88, 0.92);
}

.page-hero--compact .hero-title {
  max-width: 11ch;
  font-size: clamp(2.7rem, 6vw, 4.7rem);
}

.hero-copy p,
.section-lead {
  font-size: clamp(1.05rem, 1.9vw, 1.24rem);
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.hero-panel {
  padding: 1.55rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)),
    rgba(9, 11, 14, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-strong), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  backdrop-filter: blur(10px);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: calc(var(--radius-lg) - 0.5rem);
  pointer-events: none;
}

.hero-panel h2,
.card h3,
.board-card h3,
.split-copy h2,
.download-card h3,
.cta-band h2,
.footer-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.hero-panel p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.82);
}

.stack-list,
.fact-list,
.link-list,
.board-list,
.tag-list {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.stack-list li,
.fact-list li,
.board-list li {
  padding-left: 1rem;
  position: relative;
}

.stack-list li::before,
.fact-list li::before,
.board-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 999px;
  background: var(--brand);
}

.hero-stats,
.stats-grid,
.cards-grid,
.board-grid,
.photo-grid,
.link-grid,
.facts-grid,
.timeline-grid {
  display: grid;
  gap: 1.2rem;
}

.hero-stats,
.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero-stats {
  position: relative;
  z-index: 4;
  margin-top: -4.2rem;
}

.cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.board-grid,
.link-grid,
.facts-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.photo-grid {
  grid-template-columns: 1.4fr 1fr 1fr;
}

.stat-card,
.card,
.board-card,
.download-card,
.legal-card,
.note-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.stat-card {
  padding: 1.35rem;
  position: relative;
  overflow: hidden;
}

.stat-card::before,
.card::before,
.board-card::before,
.download-card::before,
.legal-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), rgba(200, 24, 15, 0));
}

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text);
}

.stat-card span {
  color: var(--muted);
  font-size: 0.98rem;
}

.stat-card:hover,
.card:hover,
.board-card:hover,
.download-card:hover,
.legal-card:hover,
.note-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 24, 15, 0.18);
  box-shadow: 0 26px 56px rgba(14, 18, 22, 0.12);
}

.section {
  position: relative;
  padding: clamp(3.8rem, 7vw, 6rem) 0;
}

.section--tight {
  padding-top: 2.2rem;
}

.section--contrast {
  background:
    radial-gradient(circle at top right, rgba(200, 24, 15, 0.22), transparent 22%),
    linear-gradient(180deg, #12161c, #090c10);
  color: #fff;
}

.section--contrast .section-lead,
.section--contrast p,
.section--contrast li,
.section--contrast span {
  color: rgba(255, 255, 255, 0.8);
}

.section--contrast .card,
.section--contrast .board-card,
.section--contrast .download-card,
.section--contrast .legal-card {
  color: var(--text);
}

.section--contrast .card p,
.section--contrast .board-card p,
.section--contrast .download-card p,
.section--contrast .legal-card p {
  color: var(--muted);
}

.section--contrast .card li,
.section--contrast .board-card li,
.section--contrast .download-card li,
.section--contrast .legal-card li,
.section--contrast .card span,
.section--contrast .board-card span,
.section--contrast .download-card span,
.section--contrast .legal-card span {
  color: var(--text);
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-title {
  font-size: clamp(2.15rem, 4.7vw, 3.5rem);
  text-wrap: balance;
}

.section-copy {
  max-width: 42rem;
}

.card,
.board-card,
.download-card,
.legal-card,
.note-card {
  padding: 1.5rem;
  position: relative;
}

.card h3,
.board-card h3,
.download-card h3,
.legal-card h3 {
  font-size: clamp(1.18rem, 1.9vw, 1.45rem);
  line-height: 1.02;
}

.card__media,
.split-media img,
.photo-card img,
.gallery-card img {
  width: 100%;
  border-radius: calc(var(--radius-md) - 0.25rem);
  object-fit: cover;
}

.card__media {
  aspect-ratio: 16 / 10;
  margin-bottom: 1rem;
}

.card p,
.board-card p,
.download-card p,
.legal-card p,
.note-card p {
  margin: 0;
  color: var(--muted);
}

.card .link-list a,
.footer a,
.legal-card a,
.download-card a,
.note-card a {
  color: var(--brand-dark);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.split-media {
  position: relative;
}

.split-media img {
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-strong);
}

.split-copy {
  max-width: 34rem;
}

.split-copy p {
  color: var(--muted);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.62rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(200, 24, 15, 0.09), rgba(200, 24, 15, 0.04));
  border: 1px solid rgba(200, 24, 15, 0.12);
  color: var(--brand-dark);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.photo-card,
.gallery-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.photo-card--tall img {
  aspect-ratio: 3 / 4;
}

.photo-card--wide img,
.gallery-card img {
  aspect-ratio: 16 / 10;
}

.download-stack {
  display: grid;
  gap: 1rem;
}

.download-card {
  display: grid;
  gap: 1rem;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.download-meta span {
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: rgba(25, 20, 17, 0.06);
  color: var(--muted);
  font-size: 0.86rem;
}

.iframe-shell {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}

.iframe-shell iframe {
  min-height: 36rem;
}

.cta-band {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.09), transparent 22%),
    linear-gradient(135deg, #10141a, #59120d);
  color: #fff;
  box-shadow: var(--shadow-strong);
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: calc(var(--radius-lg) - 0.55rem);
  pointer-events: none;
}

.cta-band p {
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.82);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.site-footer {
  padding: 3rem 0 2rem;
  background:
    linear-gradient(90deg, rgba(200, 24, 15, 0.08), transparent 18%),
    #090c10;
  color: rgba(255, 255, 255, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.85fr;
  gap: 1.5rem;
}

.footer-title {
  color: #fff;
  font-size: 1.15rem;
}

.footer-copy,
.footer-list {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-bottom {
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-strong);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.9rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 400ms ease, transform 400ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

body[data-page="home"] {
  --hero-image:
    linear-gradient(0deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)),
    url("../index_htm_files/2722@2x.png");
}

body[data-page="verein"] {
  --hero-image:
    linear-gradient(0deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)),
    url("../index_htm_files/3126.jpg");
}

body[data-page="fahrzeuge"] {
  --hero-image:
    linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url("../index_htm_files/2875.jpg");
}

body[data-page="aktuelles"] {
  --hero-image:
    linear-gradient(0deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)),
    url("../index_htm_files/3444@2x.png");
}

body[data-page="atemschutz"] {
  --hero-image:
    linear-gradient(0deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)),
    url("../index_htm_files/2894.jpg");
}

body[data-page="uebungsplan"] {
  --hero-image:
    linear-gradient(0deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.16)),
    url("../index_htm_files/2722@2x.png");
}

body[data-page="kontakt"] {
  --hero-image:
    linear-gradient(0deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.16)),
    url("../index_htm_files/3096.jpg");
}

body[data-page="impressum"] {
  --hero-image:
    radial-gradient(circle at top right, rgba(196, 42, 27, 0.45), transparent 30%),
    linear-gradient(135deg, #1c1512, #4c140e 52%, #120e0d);
}

@media (max-width: 980px) {
  .site-header__inner {
    min-height: 5rem;
  }

  .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  .site-nav {
    position: fixed;
    inset: 5rem 1rem auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(9, 11, 14, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: var(--shadow-strong);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  body.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    width: 100%;
    padding: 0.7rem 0.2rem;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-actions .button {
    display: none;
  }

  .page-hero__inner,
  .page-hero--compact .page-hero__inner,
  .split,
  .hero-stats,
  .stats-grid,
  .cards-grid,
  .board-grid,
  .link-grid,
  .facts-grid,
  .footer-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .hero-title,
  .page-hero--compact .hero-title {
    max-width: 100%;
  }

  .page-hero__inner::after {
    width: 10rem;
    height: 9rem;
  }

  .section-heading {
    margin-bottom: 1.4rem;
  }

  .hero-stats {
    margin-top: -1.6rem;
  }

  .iframe-shell iframe {
    min-height: 26rem;
  }
}

@media (max-width: 640px) {
  .brand__eyebrow {
    font-size: 0.78rem;
  }

  .brand__name {
    font-size: 1.08rem;
    letter-spacing: 0.12em;
  }

  .page-hero {
    min-height: 26rem;
  }

  .page-hero__inner {
    padding-top: 6.5rem;
  }

  .page-hero__inner::after {
    top: 2rem;
    width: 6rem;
    height: 5rem;
    border-width: 2px;
  }

  .hero-panel,
  .card,
  .board-card,
  .download-card,
  .legal-card,
  .note-card,
  .cta-band {
    padding: 1.2rem;
  }

  .cta-band__actions,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
