/* ============================================
   RFS Road Feeder Service Speditions GmbH — Stylesheet
   Autor: Thorsten Joormann | Tel: +49 162 16 15 396
   ============================================ */

:root {
  --forest:      #0F2A47;
  --forest-mid:  #1B3E60;
  --stone:       #F1F3F6;
  --stone-mid:   #E2E7ED;
  --moss:        #3D6C8C;
  --sandstone:   #A9B4BE;
  --leaf:        #7FAFC9;
  --gold:        #C9A24B;
  --gold-bright: #D9B868;
  --text-muted:  #5C6672;
  --radius:      14px;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'Space Mono', monospace;

  --pad-x:   clamp(1.5rem, 6vw, 6rem);
  --pad-sec: clamp(5rem, 10vw, 9rem);
  --container: min(1320px, 100% - 3rem);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--stone);
  color: var(--forest);
  overflow-x: hidden;
}

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

/* ─── SKIP-LINK (Barrierefreiheit) ──────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  background: var(--gold);
  color: var(--forest);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.25rem;
  border-radius: 2px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}

/* ─── NAV ────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(15,42,71,0.08);
  transition: box-shadow 0.4s, padding 0.4s;
}
.nav.scrolled {
  padding: 0.75rem var(--pad-x);
  box-shadow: 0 2px 24px rgba(15,42,71,0.12);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.nav-logo-img { height: 48px; width: auto; }

.gate-logo-img {
  height: 46px;
  width: auto;
  margin: 0 auto 1.4rem;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  color: var(--forest);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links .nav-cta {
  background: var(--gold);
  color: var(--forest) !important;
  font-weight: 700 !important;
  padding: 0.55rem 1.4rem;
  border-radius: 2px;
  transition: background 0.2s !important;
}
.nav-links .nav-cta:hover { background: var(--gold-bright) !important; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 102;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--forest);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── HERO ───────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/hero.jpg') center/cover no-repeat,
              linear-gradient(160deg, #0F2A47 0%, #163A5C 60%, #3D6C8C 100%);
  transform: scale(1.04);
  transition: transform 10s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    150deg,
    rgba(15, 42, 71,0.88) 0%,
    rgba(15, 42, 71,0.55) 55%,
    rgba(15, 42, 71,0.15) 100%
  );
}

.hero-coords {
  position: absolute;
  top: 7rem;
  right: var(--pad-x);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(241, 243, 246,0.35);
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
  user-select: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad-x) clamp(4rem, 8vh, 8rem);
  max-width: 860px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--sandstone);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 300;
  line-height: 1.0;
  color: var(--stone);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s 0.5s forwards;
}
.hero-headline em {
  font-style: italic;
  color: var(--leaf);
}

/* Kurze Fenster (breit, aber wenig Höhe, z.B. verkleinertes Browserfenster):
   die Headline-Größe basiert nur auf Breite (vw), nicht auf Höhe - ohne diese
   Regel würde der Text bei geringer Höhe größer bleiben als der verfügbare
   Platz und teilweise hinter der fixierten Navigation verschwinden. */
@media (max-height: 700px) {
  .hero { min-height: 380px; align-items: flex-start; }
  .hero-content { padding-top: 6.5rem; }
  .hero-eyebrow { margin-bottom: 0.6rem; }
  .hero-headline { font-size: clamp(1.9rem, 4vw, 3.75rem); margin-bottom: 0.6rem; }
  .hero-sub { margin-bottom: 0.75rem; line-height: 1.5; }
}
@media (max-height: 520px) {
  .hero { min-height: 320px; }
  .hero-eyebrow { display: none; }
  .hero-headline { font-size: clamp(1.6rem, 3.2vw, 2.75rem); }
  .hero-sub { display: none; }
}

.hero-sub {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: rgba(241, 243, 246,0.7);
  font-weight: 300;
  max-width: 440px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s 0.75s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s 1s forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.btn-primary {
  background: var(--moss);
  color: var(--stone);
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: #2C5570; transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: rgba(241, 243, 246,0.8);
  padding: 0.9rem 2rem;
  border: 1px solid rgba(241, 243, 246,0.3);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--sandstone); color: var(--sandstone); }

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  right: var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: rgba(241, 243, 246,0.3);
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, rgba(241, 243, 246,0.35));
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { transform: scaleY(1); opacity: 0.4; }
  50% { transform: scaleY(0.5); opacity: 0.9; }
}

/* ─── CONTAINER ──────────────────────────── */
.container {
  width: var(--container);
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--forest);
}
.section-title em { font-style: italic; color: var(--moss); }

/* ─── SERVICES ───────────────────────────── */
.services {
  padding: var(--pad-sec) 0;
  background: var(--stone);
}

.services-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 3.5rem;
}
.services-intro-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.service-card {
  position: relative;
  aspect-ratio: 5/4;
  overflow: hidden;
  cursor: default;
  border-radius: var(--radius);
}

.service-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: linear-gradient(135deg, #163A5C 0%, #0F2A47 100%);
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.service-card:hover .service-card-bg { transform: scale(1.06); }

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(15, 42, 71,0.92) 0%,
    rgba(15, 42, 71,0.3) 55%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 2.2rem;
  transition: background 0.4s;
}
.service-card:hover .service-card-overlay {
  background: linear-gradient(
    0deg,
    rgba(15, 42, 71,0.92) 0%,
    rgba(15, 42, 71,0.5) 60%,
    transparent 100%
  );
}

.service-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 400;
  color: var(--stone);
  line-height: 1.15;
  margin-bottom: 0.6rem;
}

.service-card-desc {
  font-size: 0.85rem;
  color: rgba(241, 243, 246,0.75);
  font-weight: 300;
  line-height: 1.65;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
}
.service-card:hover .service-card-desc { max-height: 80px; }

.service-card-link {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--sandstone);
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s 0.1s, transform 0.3s 0.1s;
  border: none;
  background: none;
  padding: 0;
  font-weight: inherit;
  cursor: pointer;
}
.service-card:hover .service-card-link { opacity: 1; transform: translateX(0); }
.service-card-link::after {
  content: '→';
  font-family: var(--font-body);
}

/* ─── ABOUT ──────────────────────────────── */
.about {
  background: var(--forest);
  padding: var(--pad-sec) 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 7rem;
  align-items: center;
}

.about-quote {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--stone);
  line-height: 1.3;
  position: relative;
}
.about-quote::before {
  content: '"';
  position: absolute;
  top: -1.5rem;
  left: -0.5rem;
  font-size: 8rem;
  color: rgba(201,162,75,0.25);
  font-style: normal;
  line-height: 1;
  font-family: var(--font-display);
}
.about-quote .hl { color: var(--leaf); }

.about-body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.about-text {
  font-size: 1rem;
  color: rgba(241, 243, 246,0.65);
  line-height: 1.85;
  font-weight: 300;
}
.about-text strong { color: var(--stone); font-weight: 500; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(241, 243, 246,0.1);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--sandstone);
  line-height: 1;
}
.stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: rgba(241, 243, 246,0.35);
  text-transform: uppercase;
  margin-top: 0.3rem;
}

/* ─── PROJECTS ───────────────────────────── */
.projects {
  padding: var(--pad-sec) 0;
  background: var(--stone-mid);
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  gap: 2rem;
}
.projects-link {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--moss);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.2s;
  white-space: nowrap;
}
.projects-link:hover { color: var(--forest); }

.projects-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.projects-track {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px;
}
.projects-track::-webkit-scrollbar { display: none; }

.projects-arrow {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(241, 243, 246,0.25);
  background: rgba(15, 42, 71,0.6);
  color: var(--stone);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.projects-arrow:hover {
  background: var(--moss);
  border-color: var(--moss);
  transform: scale(1.06);
}
.projects-arrow:active { transform: scale(0.96); }

.project-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: default;
  flex: 0 0 calc((100% - 2 * 14px) / 3);
  aspect-ratio: 4/3;
  scroll-snap-align: start;
}

.project-item-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: linear-gradient(160deg, #163A5C 0%, #0F2A47 100%);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.project-item:hover .project-item-bg { transform: scale(1.05); }

.project-label {
  position: absolute;
  bottom: 0.9rem;
  left: 0.9rem;
  background: rgba(15, 42, 71,0.85);
  color: var(--stone);
  padding: 0.35rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  backdrop-filter: blur(4px);
  border-radius: 1px;
}

/* ─── VIDEOS ─── */
.videos {
  padding: var(--pad-sec) 0;
  background: var(--forest);
}

.videos-header { margin-bottom: 3rem; }

.videos-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.videos-track {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px;
}
.videos-track::-webkit-scrollbar { display: none; }

.videos-arrow {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(241, 243, 246,0.25);
  background: rgba(241, 243, 246,0.08);
  color: var(--stone);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.videos-arrow:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--forest);
  transform: scale(1.06);
}
.videos-arrow:active { transform: scale(0.96); }

.video-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  flex: 0 0 calc((100% - 2 * 14px) / 3);
  aspect-ratio: 16/9;
  scroll-snap-align: start;
  border: none;
  padding: 0;
  cursor: pointer;
  background-image: linear-gradient(rgba(10,25,40,0.5), rgba(10,25,40,0.6)), url('../img/textures/tex-stahl.webp');
  background-size: cover;
  background-position: center;
  font: inherit;
  text-align: left;
}

.video-item-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.video-item:hover .video-item-preview { transform: scale(1.05); }

.video-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(15, 42, 71,0.65);
  color: var(--stone);
  font-size: 1.1rem;
  backdrop-filter: blur(2px);
  transition: background 0.2s, transform 0.2s;
}
.video-item:hover .video-play-badge {
  background: var(--gold);
  color: var(--forest);
  transform: translate(-50%, -50%) scale(1.08);
}

.video-label {
  position: absolute;
  bottom: 0.9rem;
  left: 0.9rem;
  background: rgba(15, 42, 71,0.85);
  color: var(--stone);
  padding: 0.35rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  backdrop-filter: blur(4px);
  border-radius: 1px;
}

/* ─── VIDEO-LIGHTBOX ─── */
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.video-lightbox.show { opacity: 1; }
.video-lightbox[hidden] { display: none; }

.video-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,12,9,0.8);
}

.video-lightbox-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  height: 86vh;
  display: flex;
  transform: scale(0.96);
  transition: transform 0.3s;
}
.video-lightbox.show .video-lightbox-card { transform: scale(1); }

.video-lightbox-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(201,162,75,0.35);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  background: rgba(15,18,13,0.55);
  backdrop-filter: blur(7px);
}

.video-lightbox-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ─── Eigene Video-Steuerleiste (dunkelgrün/gold) ─── */
.video-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.9rem;
  background: var(--forest);
  border-top: 2px solid var(--gold);
}

.video-controls-btn {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.video-controls-btn:hover { background: rgba(201,162,75,0.18); color: var(--gold-bright); }

#videoPlayToggle .icon-pause { display: none; }
#videoPlayToggle.is-playing .icon-play { display: none; }
#videoPlayToggle.is-playing .icon-pause { display: block; }

#videoMuteToggle .icon-volume-off { display: none; }
#videoMuteToggle.is-muted .icon-volume-on { display: none; }
#videoMuteToggle.is-muted .icon-volume-off { display: block; }

.video-controls-time {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--stone);
  font-variant-numeric: tabular-nums;
  min-width: 2.6em;
}

.video-controls-seek {
  flex: 1;
  min-width: 40px;
}

.video-controls-volume {
  width: 70px;
  flex-shrink: 0;
}

.video-controls input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: rgba(241, 243, 246,0.25);
  outline: none;
  cursor: pointer;
}
.video-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--forest);
  cursor: pointer;
}
.video-controls input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--forest);
  cursor: pointer;
}
.video-controls input[type="range"]::-moz-range-progress {
  background: var(--gold);
  height: 4px;
  border-radius: 999px;
}

@media (max-width: 560px) {
  .video-controls-volume { display: none; }
}

.video-lightbox-close {
  position: absolute;
  top: -2.6rem;
  right: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(241, 243, 246,0.12);
  color: var(--stone);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.video-lightbox-close:hover { background: var(--gold); color: var(--forest); }

/* ─── Mobil: Bedienleiste + Schließen-Button dürfen nie hinter der
   Browser-Symbolleiste verschwinden. Schließen-Button wandert ins
   Videofenster (statt oberhalb der Karte), Steuerleiste bekommt
   zusätzlichen Sicherheitsabstand für Home-Indicator/Toolbar. ─── */
@media (max-width: 860px) {
  .video-lightbox { padding: 0.75rem; }

  .video-lightbox-card {
    height: 86vh;
    height: min(86vh, calc(100svh - 3rem));
  }

  .video-lightbox-close {
    top: 0.6rem;
    right: 0.6rem;
    width: 36px;
    height: 36px;
    background: rgba(10,12,9,0.55);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(201,162,75,0.35);
    z-index: 3;
  }

  .video-controls {
    flex-wrap: wrap;
    padding-bottom: calc(0.55rem + env(safe-area-inset-bottom));
  }
}

/* ─── LEISTUNGEN-LIGHTBOX ("Mehr erfahren") ─── */
.service-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.service-lightbox.show { opacity: 1; }
.service-lightbox[hidden] { display: none; }

.service-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,12,9,0.92);
}

.service-lightbox-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: 86vh;
  overflow-y: auto;
  padding: 3rem 2.5rem 2.5rem;
  border-radius: var(--radius);
  background-image: linear-gradient(rgba(10,25,40,0.88), rgba(10,25,40,0.93)), url('../img/textures/tex-stahl.webp');
  background-size: cover;
  background-position: center;
  transform: scale(0.96);
  transition: transform 0.3s;
}
.service-lightbox.show .service-lightbox-card { transform: scale(1); }

.service-lightbox-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--stone);
  margin: 0 0 1.2rem;
}
.service-lightbox-body p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(241, 243, 246,0.85);
  font-weight: 300;
  margin: 0 0 1rem;
}
.service-lightbox-body p:last-child { margin-bottom: 0; }

.service-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(241, 243, 246,0.14);
  color: var(--stone);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.service-lightbox-close:hover { background: var(--gold); color: var(--forest); }

/* ─── FAQ ────────────────────────────────── */
.faq { padding: var(--pad-sec) 0; }
.faq-head { margin-bottom: 3rem; max-width: 640px; }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 860px;
}
.faq-item {
  border: 1px solid rgba(201,162,75,0.22);
  border-radius: var(--radius);
  background: rgba(241, 243, 246,0.03);
  padding: 0 1.5rem;
  transition: border-color 0.25s, background 0.25s;
}
.faq-item:hover {
  border-color: var(--gold);
  background: rgba(201,162,75,0.06);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--stone);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding-bottom: 1.25rem;
  color: rgba(241, 243, 246,0.65);
  line-height: 1.7;
  font-size: 0.92rem;
}

/* ─── CONTACT ────────────────────────────── */
.contact {
  padding: var(--pad-sec) 0;
  background: var(--stone);
}

.contact-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8rem;
  align-items: start;
}

.contact-details { display: flex; flex-direction: column; gap: 2rem; }

.contact-detail-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.35rem;
}
.contact-detail-value {
  font-size: 0.95rem;
  color: var(--forest);
  font-weight: 400;
  line-height: 1.6;
}
.contact-detail-value a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.contact-detail-value a:hover { color: var(--moss); }

.contact-opening {
  padding: 1.75rem;
  background: var(--stone-mid);
  border-left: 2px solid var(--moss);
  border-radius: 2px;
}
.contact-opening-title {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.75rem;
}
.contact-opening-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--forest);
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(15, 42, 71,0.08);
}
.contact-opening-row:last-child { border-bottom: none; }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-field { display: flex; flex-direction: column; gap: 0.4rem; }

.form-field label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-field input,
.form-field textarea,
.form-field select {
  background: var(--stone-mid);
  border: 1px solid rgba(15, 42, 71,0.14);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--forest);
  width: 100%;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--moss);
  background: #fff;
}
.form-field textarea { resize: vertical; min-height: 130px; }

.form-privacy {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.form-privacy a { color: var(--moss); }

.form-field-checkbox { flex-direction: row; }
.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--forest);
  cursor: pointer;
}
.form-checkbox-label input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  min-width: 1.05rem;
  margin-top: 0.15rem;
  accent-color: var(--moss);
  cursor: pointer;
}
.form-checkbox-label a { color: var(--moss); }

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  font-size: 0.88rem;
  min-height: 1.4em;
}
.form-status-success { color: var(--moss); }
.form-status-error { color: #c0463b; }

.form-submit {
  display: flex;
  justify-content: flex-end;
}

/* ─── RATGEBER / DOWNLOADS ───────────────── */
.downloads {
  background: var(--forest);
  padding: var(--pad-sec) 0;
}
.downloads-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 3rem;
}
.downloads .section-label { color: var(--leaf); }
.downloads .section-title { color: var(--stone); }
.downloads .section-title em { color: var(--gold); }
.downloads-intro {
  font-size: 1rem;
  color: rgba(241, 243, 246,0.6);
  line-height: 1.8;
  font-weight: 300;
}

.downloads-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.download-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.75rem;
  background: rgba(241, 243, 246,0.03);
  border: 1px solid rgba(201,162,75,0.22);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.download-card:hover {
  border-color: var(--gold);
  background: rgba(201,162,75,0.06);
  transform: translateY(-3px);
}
.download-icon {
  flex-shrink: 0;
  width: 46px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--forest);
  background: var(--gold);
  border-radius: 2px;
  position: relative;
}
.download-icon::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  border-width: 0 9px 9px 0;
  border-style: solid;
  border-color: var(--forest) var(--forest) transparent transparent;
}
.download-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--stone);
  line-height: 1.15;
  margin-bottom: 0.45rem;
}
.download-desc {
  font-size: 0.85rem;
  color: rgba(241, 243, 246,0.6);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 0.9rem;
}
.download-link {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ─── FOOTER ─────────────────────────────── */
footer {
  background: var(--stone);
  border-top: 1px solid var(--stone-mid);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.footer-logo-img { height: 34px; width: auto; }

/* Pfeil-Button: unauffälliger Admin-Zugang, kein sichtbarer Hinweis */
.footer-tree-btn {
  background: none;
  border: none;
  padding: 0.3rem;
  margin: 0;
  line-height: 0;
  display: inline-flex;
  color: rgba(15,42,71,0.3);
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}
.footer-tree-btn:hover,
.footer-tree-btn:focus-visible {
  color: var(--gold);
  transform: translateX(2px);
}
.footer-tree-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 50%;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.78rem;
  color: var(--forest);
  opacity: 0.7;
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}
.footer-links a:hover { color: var(--gold); opacity: 1; }

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Rechtsbündige Gruppe: Copyright-Zeile + darunter "Design by: [Joormann-Logo]",
   rechte Kante beider Zeilen liegt automatisch übereinander (align-items: flex-end). */
.footer-attribution {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}
.footer-design-by {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}
.footer-design-by a {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.footer-design-by a:hover,
.footer-design-by a:focus-visible {
  opacity: 1;
}
.footer-design-by-logo {
  height: 15px;
  width: auto;
}

/* Verstecktes "C" im Copyright-Zeichen: unauffälliger zweiter Admin-Zugang,
   optisch nicht von normalem Fließtext zu unterscheiden. */
.footer-copyright-trigger {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: text;
  -webkit-user-select: text;
  user-select: text;
}
.footer-copyright-trigger:focus-visible {
  outline: 1px dotted currentColor;
  outline-offset: 2px;
}

/* ─── REVEAL ANIMATIONS ──────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ─── MOBILE NAV OVERLAY ─────────────────── */
@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--forest);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 101;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.2rem; }
  .nav-links .nav-cta { padding: 0.75rem 2rem; }
  .nav-burger { display: flex; }
}

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 860px) {
  .services-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { aspect-ratio: auto; min-height: 360px; }
  .service-card-desc { max-height: none; }
  .service-card-link { opacity: 1; transform: translateX(0); }

  .about-inner { grid-template-columns: 1fr; gap: 3.5rem; }
  .about-quote::before { font-size: 5rem; }

  .projects-header { flex-direction: column; align-items: flex-start; }
  .projects-arrow { display: none; }
  .project-item { flex-basis: 82%; }

  .videos-arrow { display: none; }
  .video-item { flex-basis: 82%; }

  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ─── LEGAL PAGES (Impressum / Datenschutz) ─ */
.legal-page { background: var(--stone); min-height: 100vh; }

.legal-hero {
  background: var(--forest);
  padding: 9rem 0 3.5rem;
}
.legal-hero .container { display: flex; flex-direction: column; gap: 1rem; }
.legal-back {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sandstone);
  text-decoration: none;
  width: fit-content;
}
.legal-back:hover { color: var(--gold); }
.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 300;
  color: var(--stone);
  line-height: 1.1;
}
.legal-hero h1 em { font-style: italic; color: var(--gold); }

.legal-body { padding: var(--pad-sec) 0; }
.legal-body .container { max-width: 760px; }

.legal-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--moss);
  margin: 2.5rem 0 0.75rem;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p,
.legal-body address {
  font-size: 0.95rem;
  font-style: normal;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.legal-body strong { color: var(--forest); font-weight: 500; }
.legal-body a { color: var(--moss); }

/* ─── COOKIE-BUTTONS (im Gate genutzt) ───── */
.cookie-btn {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.7rem 1.4rem;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.cookie-accept {
  background: var(--gold);
  color: var(--forest);
  border: 1px solid var(--gold);
}
.cookie-accept:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.cookie-decline {
  background: transparent;
  color: rgba(241, 243, 246,0.8);
  border: 1px solid rgba(241, 243, 246,0.3);
}
.cookie-decline:hover { border-color: var(--sandstone); color: var(--sandstone); }

/* ─── COOKIE-GATE (blockierend, Startseite) ── */
.cookie-gate {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.cookie-gate.show { opacity: 1; }
.cookie-gate[hidden] { display: none; }

.cookie-gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,18,13,0.88);
  backdrop-filter: blur(7px);
}

.cookie-gate-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  text-align: center;
  background: var(--forest);
  border: 1px solid rgba(201,162,75,0.35);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 2.25rem 2rem 2rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  transform: translateY(14px);
  transition: transform 0.4s ease;
}
.cookie-gate.show .cookie-gate-card { transform: translateY(0); }

.cookie-gate-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--stone);
  margin-bottom: 0.75rem;
}
.cookie-gate-text {
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(241, 243, 246,0.68);
  font-weight: 300;
  margin-bottom: 1.6rem;
}
.cookie-gate-text a { color: var(--gold); }

.cookie-gate-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.3rem;
}
.cookie-gate-actions .cookie-btn { flex: 1; text-align: center; }

.cookie-gate-links {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(241, 243, 246,0.35);
}
.cookie-gate-links a {
  color: rgba(241, 243, 246,0.55);
  text-decoration: none;
}
.cookie-gate-links a:hover { color: var(--gold); }

body.gate-locked { overflow: hidden; }

/* ─── ADMIN-LOGIN MODAL (versteckter Zugang über Footer-Baum) ── */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.admin-modal.show { opacity: 1; }
.admin-modal[hidden] { display: none; }

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,18,13,0.88);
  backdrop-filter: blur(7px);
}

.admin-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  text-align: center;
  background: var(--forest);
  border: 1px solid rgba(201,162,75,0.35);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 2.25rem 2rem 2rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  transform: translateY(14px);
  transition: transform 0.3s ease;
}
.admin-modal.show .admin-modal-card { transform: translateY(0); }

.admin-modal-close {
  position: absolute;
  top: 0.85rem; right: 0.85rem;
  width: 30px; height: 30px;
  border: none;
  background: transparent;
  color: rgba(241, 243, 246,0.5);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}
.admin-modal-close:hover { color: var(--gold); }


.admin-modal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--stone);
  margin-bottom: 1.4rem;
}

.admin-modal-field { text-align: left; margin-bottom: 1rem; }
.admin-modal-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(241, 243, 246,0.5);
  margin-bottom: 0.4rem;
}
.admin-modal-field input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: rgba(241, 243, 246,0.06);
  border: 1px solid rgba(241, 243, 246,0.18);
  border-radius: 6px;
  color: var(--stone);
  font-family: var(--font-body);
  font-size: 0.92rem;
}
.admin-modal-field input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(241, 243, 246,0.1);
}

/* Browser-Autofill (gelber Hintergrund) auf das dunkle Design zwingen,
   sonst verschwindet das helle Augen-Symbol auf hellem Autofill-Gelb */
.admin-modal-field input:-webkit-autofill,
.admin-modal-field input:-webkit-autofill:hover,
.admin-modal-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--stone);
  -webkit-box-shadow: 0 0 0 1000px rgba(15,42,71,0.95) inset;
  box-shadow: 0 0 0 1000px rgba(15,42,71,0.95) inset;
  transition: background-color 9999s ease-in-out 0s;
}

.admin-modal-password-wrap { position: relative; }
.admin-modal-password-wrap input { padding-right: 2.6rem; }

.admin-modal-toggle-pw {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.3rem;
  display: flex;
  color: rgba(241, 243, 246,0.45);
  cursor: pointer;
  transition: color 0.2s;
}
.admin-modal-toggle-pw:hover,
.admin-modal-toggle-pw:focus-visible { color: var(--gold); }
.admin-modal-toggle-pw.is-visible { color: var(--gold); }

.admin-modal-status {
  min-height: 1.2em;
  font-size: 0.78rem;
  margin-bottom: 0.8rem;
  color: rgba(241, 243, 246,0.6);
}
.admin-modal-status.is-error { color: #D97B5F; }

.admin-modal-actions { margin-top: 0.4rem; }
.admin-modal-actions .btn-primary { width: 100%; border: none; cursor: pointer; }

.admin-modal-forgot { margin-top: 1rem; font-size: 0.8rem; }
.admin-modal-forgot a { color: rgba(241, 243, 246,0.7); }
.admin-modal-forgot a:hover { color: var(--gold); }

/* ─── WARTUNGSSEITE (ersetzt index.php, solange Wartungsmodus aktiv ist) ── */
.maintenance-body { background: var(--forest); }

.maintenance-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.maintenance-card {
  width: 100%;
  max-width: 460px;
  text-align: center;
  background: var(--forest-mid);
  border: 1px solid rgba(201,162,75,0.35);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 3rem 2.25rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.maintenance-logo {
  width: min(280px, 80%);
  margin: 0 auto 1.8rem;
  background: var(--stone);
  padding: 0.9rem 1.2rem;
  border-radius: 8px;
}

.maintenance-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--stone);
  margin-bottom: 0.9rem;
}
.maintenance-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(241, 243, 246,0.7);
  font-weight: 300;
}

@media (max-width: 480px) {
  .cookie-gate-actions { flex-direction: column; }
}

/* Downloads responsive */
@media (max-width: 860px) {
  .downloads-head { grid-template-columns: 1fr; gap: 1.5rem; }
  .downloads-grid { grid-template-columns: 1fr; }
}

/* ─── MOBILE AKTIONSLEISTE ───────────────── */
.mobile-actionbar { display: none; }

@media (max-width: 860px) {
  .mobile-actionbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(10,25,40,0.94);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(201,162,75,0.3);
  }
  .mab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-align: center;
    padding: 14px 12px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
  }
  .mab-call {
    background: transparent;
    color: var(--gold);
    border: 1px solid rgba(201,162,75,0.55);
  }
  .mab-cta {
    background: var(--moss);
    color: var(--stone);
  }
  /* Platz schaffen, damit Footer nicht verdeckt wird */
  body { padding-bottom: 74px; }
}

/* Logo auf schmalen Geräten verkleinern (kein Überlauf) */
@media (max-width: 520px) {
  .nav-logo-img { height: 38px; }
}
@media (max-width: 360px) {
  .nav-logo-img { height: 32px; }
}

/* ═══════════════════════════════════════════
   RICHTUNG 4 — Erdig-dunkle, animierte Sektionen
   (ersetzt die hellen Creme-Hintergründe)
   ═══════════════════════════════════════════ */
.services, .about, .projects, .downloads, .faq, .contact {
  position: relative;
  overflow: hidden;
}
.container { position: relative; z-index: 1; }

/* dunkle Basisfarbe (überschreibt die hellen Hintergründe) */
.services, .faq, .contact { background-color: var(--forest); }
.projects { background-color: var(--forest); }

/* Textur-Ebene */
.services::before, .about::before, .projects::before,
.downloads::before, .faq::before, .contact::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
}
.services::before  { background-image: linear-gradient(rgba(10,25,40,0.88), rgba(10,25,40,0.93)), url('../img/textures/tex-asphalt.webp'); }
.about::before     { background-image: linear-gradient(rgba(10,25,40,0.85), rgba(10,25,40,0.92)), url('../img/textures/tex-nebel.webp'); }
.projects::before  { background-image: linear-gradient(rgba(10,25,40,0.88), rgba(10,25,40,0.93)), url('../img/textures/tex-stahl.webp'); }
.downloads::before { background-image: linear-gradient(rgba(10,25,40,0.90), rgba(10,25,40,0.94)), url('../img/textures/tex-stahl.webp'); }
.faq::before       { background-image: linear-gradient(rgba(10,25,40,0.88), rgba(10,25,40,0.93)), url('../img/textures/tex-nebel.webp'); }
.contact::before   { background-image: linear-gradient(rgba(10,25,40,0.86), rgba(10,25,40,0.93)), url('../img/textures/tex-nebel.webp'); }

/* wandernde Licht-Animation */
.services::after, .about::after, .projects::after,
.downloads::after, .faq::after, .contact::after {
  content: '';
  position: absolute; inset: -30%; z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 48% at 22% 28%, rgba(61,108,140,0.45), transparent 70%),
    radial-gradient(44% 54% at 78% 68%, rgba(201,162,75,0.30), transparent 72%),
    radial-gradient(40% 50% at 60% 18%, rgba(127,175,201,0.14), transparent 70%);
  filter: blur(10px);
  animation: bgdrift 22s ease-in-out infinite alternate;
}
.about::after     { animation-delay: -5s; }
.projects::after  { animation-delay: -10s; }
.downloads::after { animation-delay: -7s; }
.faq::after       { animation-delay: -18s; }
.contact::after   { animation-delay: -14s; }
@keyframes bgdrift {
  0%   { transform: translate(-3%, -2%) scale(1.06); }
  100% { transform: translate(4%, 3%) scale(1.16); }
}

/* Text-Anpassungen für die nun dunklen Sektionen */
.services .section-title,
.projects .section-title,
.videos .section-title,
.faq .section-title,
.contact .section-title { color: var(--stone); }
.services .section-title em,
.projects .section-title em,
.videos .section-title em,
.faq .section-title em,
.contact .section-title em { color: var(--gold); }
.services .section-label,
.projects .section-label,
.videos .section-label,
.faq .section-label,
.contact .section-label { color: var(--leaf); }
.services-intro-text { color: rgba(241, 243, 246,0.65); }

.projects-link { color: var(--gold); }
.projects-link:hover { color: var(--stone); }

.contact-detail-label { color: var(--gold); }
.contact-detail-value { color: var(--stone); }
.contact-detail-value a:hover { color: var(--leaf); }
.contact-opening {
  background: rgba(241, 243, 246,0.05);
  border-left-color: var(--gold);
}
.contact-opening-title { color: var(--gold); }
.contact-opening-row {
  color: rgba(241, 243, 246,0.85);
  border-bottom-color: rgba(241, 243, 246,0.1);
}
/* Formular auf dunklem Grund */
.form-field label { color: rgba(241, 243, 246,0.55); }
.form-field input,
.form-field textarea,
.form-field select {
  background: rgba(241, 243, 246,0.06);
  border-color: rgba(241, 243, 246,0.18);
  color: var(--stone);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(241, 243, 246,0.4); }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--gold);
  background: rgba(241, 243, 246,0.1);
}
.contact select option { color: #0F2A47; }
.form-privacy { color: rgba(241, 243, 246,0.6); }
.form-privacy a { color: var(--gold); }
.form-checkbox-label { color: rgba(241, 243, 246,0.85); }
.form-checkbox-label a { color: var(--gold); }

/* Rechtsseiten ebenfalls erdig-dunkel */
.legal-page { background-color: var(--forest); }
.legal-body { position: relative; overflow: hidden; }
.legal-body::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-size: cover; background-position: center;
  background-image: linear-gradient(rgba(10,25,40,0.90), rgba(10,25,40,0.94)), url('../img/textures/tex-asphalt.webp');
}
.legal-body h2 { color: var(--gold); }
.legal-body p, .legal-body address { color: rgba(241, 243, 246,0.72); }
.legal-body strong { color: var(--stone); }
.legal-body a { color: var(--leaf); }

@media (prefers-reduced-motion: reduce) {
  .services::after, .about::after, .projects::after,
  .downloads::after, .faq::after, .contact::after { animation: none; }
}

/* ─── REDUCED MOTION ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-eyebrow, .hero-headline, .hero-sub, .hero-actions {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .hero-bg { transition: none; }
  .scroll-line { animation: none; }
}
