/* ==========================================================================
   OAMC Reinheim – Website Preview 2
   A modern, sporty redesign for a grassroots motorsport club.
   Fonts: Barlow Condensed (display) + Barlow (body) via Google Fonts.
   ========================================================================== */

:root {
  /* Brand + palette */
  --yellow: #ffcc00;
  --yellow-dark: #e6b800;
  --yellow-soft: #fff4cc;
  --ink: #101319;          /* near-black for hero/footer */
  --ink-2: #191d26;
  --ink-3: #232935;
  --paper: #ffffff;
  --surface: #f4f6fb;      /* light section background */
  --surface-2: #eaedf5;
  --line: #e3e7f0;
  --text: #161a21;
  --muted: #626b7a;
  --muted-light: #9aa3b2;

  /* Effects */
  --shadow-sm: 0 2px 10px rgba(16, 22, 40, 0.06);
  --shadow: 0 14px 40px rgba(16, 22, 40, 0.10);
  --shadow-lg: 0 30px 70px rgba(16, 22, 40, 0.18);
  --ring: 0 0 0 3px rgba(255, 204, 0, 0.35);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --max-width: 1240px;
  --header-h: 84px;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  color: var(--text);
  margin: 0;
  letter-spacing: 0.3px;
}

p {
  margin: 0 0 1rem;
  color: #3a414d;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* Eyebrow / kicker label used above section headings */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow-dark);
  margin: 0 0 14px;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
}

.eyebrow.center {
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--yellow);
  color: #14171d;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 0;
  border-radius: 999px;
  padding: 14px 30px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 8px 22px rgba(255, 204, 0, 0.35);
}

.btn:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 204, 0, 0.45);
}

.btn:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  box-shadow: none;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 30px rgba(16, 22, 40, 0.10);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  line-height: 1;
}

.brand-name span {
  color: var(--yellow-dark);
}

/* ----- Navigation ----- */
.main-nav {
  margin-left: auto;
  align-self: stretch;
  display: flex;
}

.main-nav > ul {
  display: flex;
  align-items: stretch;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}

.main-nav > ul > li {
  display: flex;
  align-items: center;
}

.main-nav a {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #2c333e;
  padding: 0 14px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}

.main-nav > ul > li > a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 24px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a {
  color: var(--text);
}

.main-nav > ul > li > a:hover::after,
.main-nav > ul > li.active > a::after {
  transform: scaleX(1);
}

.has-dropdown {
  height: 100%;
}

.has-dropdown > a {
  height: 100%;
}

.main-nav .caret {
  font-size: 0.65rem;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.has-dropdown:hover .caret {
  transform: rotate(180deg);
}

/* Dropdown / full-width mega submenu */
.has-dropdown {
  position: static;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--ink);
  box-shadow: 0 26px 44px rgba(16, 22, 40, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 60;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 28px;
  display: flex;
  gap: 64px;
}

.dropdown-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--yellow);
  margin-bottom: 16px;
}

.dropdown-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown-col a {
  padding: 8px 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #d6dae4;
  transition: color 0.15s ease, padding-left 0.18s ease;
}

.dropdown-col a:hover {
  color: var(--yellow);
  padding-left: 8px;
}

/* ADAC logo (right) */
.adac-logo {
  flex-shrink: 0;
  margin-left: 6px;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
}

.adac-logo img {
  height: 66px;
  width: auto;
  object-fit: contain;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  width: 46px;
  height: 46px;
  cursor: pointer;
  padding: 11px;
}

.nav-toggle span {
  display: block;
  height: 2.6px;
  background: var(--text);
  border-radius: 3px;
  transition: all 0.25s ease;
}

.nav-toggle span + span {
  margin-top: 5px;
}

/* ==========================================================================
   Hero (start page)
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(78vh, 660px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 14s ease-out forwards;
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 19, 25, 0.35) 0%, rgba(16, 19, 25, 0.55) 45%, rgba(16, 19, 25, 0.92) 100%),
    linear-gradient(90deg, rgba(16, 19, 25, 0.55) 0%, rgba(16, 19, 25, 0) 60%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px 68px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 204, 0, 0.16);
  border: 1px solid rgba(255, 204, 0, 0.5);
  color: var(--yellow);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  max-width: 16ch;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.hero h1 em {
  font-style: normal;
  color: var(--yellow);
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.86);
  max-width: 56ch;
  margin: 20px 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Stats strip beneath hero */
.stats-strip {
  background: var(--ink-2);
  border-top: 4px solid var(--yellow);
}

.stats-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 34px 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat {
  text-align: center;
  color: #fff;
  position: relative;
}

.stat + .stat::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  height: 46px;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--yellow);
}

.stat-label {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 6px;
}

/* ==========================================================================
   Page banner (interior pages) — dark banner with yellow accent
   ========================================================================== */
.page-banner {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  border-bottom: 4px solid var(--yellow);
}

/* Checkered-flag motif on the right of the banner */
.page-banner::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 42%;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.05) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.05) 75%);
  background-size: 26px 26px;
  background-position: 0 0, 13px 13px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
  mask-image: linear-gradient(90deg, transparent, #000);
  opacity: 0.7;
}

.page-banner-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 54px 28px 48px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.15s ease;
}

.breadcrumb a:hover {
  color: var(--yellow);
}

.breadcrumb .sep {
  color: rgba(255, 255, 255, 0.3);
}

.breadcrumb .current {
  color: var(--yellow);
}

.page-banner h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding: 84px 0;
}

.section.tight {
  padding: 64px 0;
}

.section.surface {
  background: var(--surface);
}

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

.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  text-transform: uppercase;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
  margin-top: 14px;
}

/* ==========================================================================
   Alternating image / text feature rows (start page)
   ========================================================================== */
.feature-rows {
  display: flex;
  flex-direction: column;
  gap: 70px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 54px;
  align-items: center;
}

.feature-row.reverse .feature-media {
  order: 2;
}

.feature-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-media::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--yellow);
  z-index: 2;
}

.feature-media img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.feature-media:hover img {
  transform: scale(1.06);
}

.feature-text h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.feature-text p {
  font-size: 1.05rem;
  color: #444b57;
}

.feature-text .btn {
  margin-top: 8px;
}

/* Notice / alert card (Verkehrsübungsplatz closed) */
.notice {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--yellow-soft);
  border: 1px solid #f3dd8a;
  border-left: 6px solid var(--yellow);
  border-radius: var(--radius);
  padding: 26px 30px;
}

.notice svg {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  color: var(--yellow-dark);
  margin-top: 2px;
}

.notice h3 {
  font-size: 1.35rem;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* ==========================================================================
   Sparten cards (start page) + generic card grid
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(16, 19, 25, 0) 30%, rgba(16, 19, 25, 0.85) 100%);
  transition: background 0.3s ease;
}

.card:hover img {
  transform: scale(1.08);
}

.card-body {
  padding: 30px;
  width: 100%;
}

.card-body h3 {
  font-size: 1.9rem;
  text-transform: uppercase;
  color: #fff;
}

.card-body p {
  color: rgba(255, 255, 255, 0.82);
  margin: 8px 0 16px;
  font-size: 0.98rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  font-size: 0.98rem;
}

.card-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.card:hover .card-link svg {
  transform: translateX(5px);
}

/* ==========================================================================
   Prose (single-column article pages: Kart, Motorrad, Verein, Historie)
   ========================================================================== */
.prose {
  max-width: 820px;
  margin: 0 auto;
}

.prose > .eyebrow {
  margin-bottom: 10px;
}

.prose h2 {
  font-size: 1.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 2.4rem 0 0.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.prose h2:first-of-type,
.prose > .eyebrow + h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  font-size: 1.3rem;
  margin: 1.8rem 0 0.5rem;
}

.prose p {
  font-size: 1.08rem;
  line-height: 1.8;
  color: #3d444f;
}

.prose a {
  color: var(--yellow-dark);
  font-weight: 600;
  border-bottom: 2px solid rgba(255, 204, 0, 0.4);
  transition: border-color 0.15s ease;
}

.prose a:hover {
  border-color: var(--yellow-dark);
}

.lead {
  font-size: 1.22rem !important;
  line-height: 1.7 !important;
  color: var(--muted) !important;
}

/* Info chips row (e.g. training times) */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
}

.chip svg {
  width: 18px;
  height: 18px;
  color: var(--yellow-dark);
}

/* ==========================================================================
   Historie timeline
   ========================================================================== */
.timeline {
  margin-top: 2.4rem;
  border-left: 3px solid var(--line);
  padding-left: 34px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -43px;
  top: 5px;
  width: 16px;
  height: 16px;
  background: var(--yellow);
  border: 3px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--yellow);
}

.timeline-item h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  text-transform: uppercase;
}

.timeline-item .year {
  color: var(--yellow-dark);
  font-family: var(--font-display);
  font-weight: 700;
}

.timeline-item p {
  color: #4a515c;
}

/* ==========================================================================
   Kontakt page
   ========================================================================== */
.kontakt-top {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 44px;
  align-items: stretch;
  margin-bottom: 48px;
}

.kontakt-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.kontakt-photo img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.kontakt-info {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 42px;
  box-shadow: var(--shadow);
}

.kontakt-info h2 {
  font-size: 1.9rem;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 6px;
}

.kontakt-info .lead {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 1.05rem !important;
  margin-bottom: 26px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item:first-of-type {
  border-top: 0;
}

.info-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 204, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-item svg {
  width: 20px;
  height: 20px;
  color: var(--yellow);
}

.info-item address,
.info-item span,
.info-item a {
  font-style: normal;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.info-item a:hover {
  color: var(--yellow);
}

.info-item .info-key {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--yellow);
  margin-bottom: 3px;
}

.kontakt-bottom {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 44px;
  align-items: stretch;
}

.kontakt-photo-2 {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.kontakt-photo-2 img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

/* ----- Form ----- */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 42px;
}

.contact-form h2 {
  margin: 0 0 6px;
  font-size: 1.9rem;
  text-transform: uppercase;
}

.contact-form .form-intro {
  color: var(--muted);
  margin-bottom: 26px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #2d333d;
}

.form-field label .req {
  color: #d64545;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid #d3d9e6;
  background: var(--paper);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: var(--ring);
}

/* ==========================================================================
   Floating action buttons (docked to the right, reveal label on hover)
   ========================================================================== */
.fab-rail {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  z-index: 40;
}

.fab-rail a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: var(--yellow);
  color: #14171d;
  border-radius: 12px 0 0 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: background 0.15s ease;
}

.fab-rail a:hover {
  background: var(--yellow-dark);
}

.fab-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab-label {
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
  transition: max-width 0.28s ease, opacity 0.2s ease, padding 0.28s ease;
}

.fab-rail a:hover .fab-label,
.fab-rail a:focus-visible .fab-label,
.fab-rail a.revealed .fab-label {
  max-width: 170px;
  opacity: 1;
  padding-left: 16px;
}

.fab-rail svg {
  width: 20px;
  height: 20px;
}

.fab-rail-mobile {
  display: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 30px;
  margin-top: 0;
  border-top: 4px solid var(--yellow);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand > img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 6px;
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
}

.footer-tag {
  color: var(--muted-light);
  font-size: 0.95rem;
  margin-top: 6px;
  max-width: 30ch;
}

.footer-col h4 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--yellow);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  transition: color 0.15s ease, padding-left 0.18s ease;
}

.footer-links a:hover {
  color: var(--yellow);
  padding-left: 5px;
}

.footer-contact {
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

.footer-contact a:hover {
  color: var(--yellow);
}

.footer-adac {
  margin-top: 18px;
  width: 170px;
  height: auto;
  border-radius: 8px;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 44px auto 0;
  padding: 22px 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted-light);
}

.footer-bottom a:hover {
  color: var(--yellow);
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-bg {
    animation: none;
    transform: none;
  }
}

/* ==========================================================================
   Responsive / Mobile
   ========================================================================== */
@media (max-width: 980px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 24px;
  }

  .stat:nth-child(3)::before {
    display: none;
  }

  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .feature-row.reverse .feature-media {
    order: 0;
  }

  .feature-media img {
    height: 300px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 66px;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  .brand-name {
    font-size: clamp(1.1rem, 5vw, 1.4rem);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .adac-logo {
    display: none;
  }

  .nav-toggle {
    display: block;
    order: 4;
    margin-left: 0;
    flex-shrink: 0;
  }

  /* Slide-down mobile menu */
  .main-nav {
    order: 5;
    margin-left: 0;
    align-self: auto;
    display: block;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-header.nav-open .main-nav {
    max-height: 640px;
  }

  .header-inner {
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
    row-gap: 6px;
  }

  .brand {
    margin-right: auto;
    flex: 1 1 auto;
    min-width: 0;
    gap: 10px;
  }

  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 14px;
    height: auto;
  }

  .main-nav > ul > li,
  .has-dropdown {
    display: block;
    height: auto;
    border-top: 1px solid var(--line);
  }

  .main-nav a,
  .has-dropdown > a {
    padding: 15px 4px;
    height: auto;
    width: 100%;
    justify-content: space-between;
    font-size: 1.15rem;
  }

  .main-nav > ul > li > a::after {
    display: none;
  }

  /* Dropdown becomes static/expanded on mobile */
  .dropdown {
    position: static;
    width: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
  }

  .dropdown-inner {
    display: block;
    max-width: none;
    margin: 0;
    padding: 0 0 6px 16px;
  }

  .dropdown-title {
    display: none;
  }

  .dropdown-col a {
    padding: 12px 4px;
    display: block;
    color: #2c333e;
  }

  .dropdown-col a:hover {
    color: var(--yellow-dark);
    padding-left: 0;
  }

  /* Nav toggle animation */
  .site-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7.6px) rotate(45deg);
  }
  .site-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  .site-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7.6px) rotate(-45deg);
  }

  /* Hero */
  .hero {
    min-height: 74vh;
  }

  .hero-inner {
    padding-bottom: 44px;
  }

  /* Sections */
  .section {
    padding: 56px 0;
  }

  .section.tight {
    padding: 44px 0;
  }

  .section-head {
    margin-bottom: 36px;
  }

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

  .kontakt-top,
  .kontakt-bottom {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .kontakt-photo img,
  .kontakt-photo-2 img {
    min-height: 240px;
  }

  .kontakt-info,
  .contact-form {
    padding: 30px 26px;
  }

  .page-banner-inner {
    padding: 40px 28px 34px;
  }

  /* Hide the fixed desktop rail; use the inline mobile copy instead */
  .fab-rail {
    display: none;
  }

  .fab-rail-mobile {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
    gap: 8px;
    padding: 20px 16px 4px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }

  .fab-rail-mobile a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--text);
    box-shadow: none;
    overflow: visible;
  }

  .fab-rail-mobile .fab-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--yellow);
  }

  .fab-rail-mobile svg {
    width: 22px;
    height: 22px;
  }

  .fab-rail-mobile .fab-label {
    position: static;
    max-width: none;
    opacity: 1;
    padding: 0;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

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

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 18px;
  }

  .header-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    padding: 26px 18px;
  }

  .stat-num {
    font-size: 2.1rem;
  }
}
