/* =========================================================
   Tankstelle Stettner – Premium Stylesheet
   Art Direction: dunkel & kinoreif · RAL 3020 (Verkehrsrot)
   Selbst gehostete Schriften (DSGVO-konform, kein externes CDN)
   ========================================================= */

/* ---------- Fonts (lokal, woff2) ---------- */
@font-face { font-family:"Sora"; src:url("/assets/fonts/sora-700.woff2") format("woff2"); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"Sora"; src:url("/assets/fonts/sora-800.woff2") format("woff2"); font-weight:800; font-style:normal; font-display:swap; }
@font-face { font-family:"Inter"; src:url("/assets/fonts/inter-400.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Inter"; src:url("/assets/fonts/inter-500.woff2") format("woff2"); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:"Inter"; src:url("/assets/fonts/inter-600.woff2") format("woff2"); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:"Inter"; src:url("/assets/fonts/inter-700.woff2") format("woff2"); font-weight:700; font-style:normal; font-display:swap; }

:root {
  /* Unternehmensfarbe RAL 3020 (Verkehrsrot) */
  --red: #d4070d;
  --red-2: #b8050a;
  --red-dark: #8f0407;
  --red-light: #ef3b34;

  /* Dunkle Flächen (kinoreif, leicht warm) */
  --dark: #131315;
  --dark-2: #0c0c0e;
  --dark-3: #1c1c20;
  --on-dark: #f4f4f6;
  --on-dark-muted: #a8a8b3;
  --line-dark: rgba(255,255,255,.10);

  /* Helle Flächen */
  --ink: #16171a;
  --muted: #5c626b;
  --line: #e8e8ec;
  --bg: #ffffff;
  --bg-alt: #f6f6f4;

  --green: #2e8b57;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;

  --shadow-sm: 0 1px 2px rgba(16,17,20,.06), 0 2px 8px rgba(16,17,20,.06);
  --shadow: 0 10px 30px rgba(16,17,20,.10), 0 2px 8px rgba(16,17,20,.06);
  --shadow-lg: 0 24px 60px rgba(16,17,20,.16), 0 8px 24px rgba(16,17,20,.10);
  --shadow-red: 0 14px 40px rgba(212,7,13,.30);

  --maxw: 1180px;
  --header-h: 74px;

  --font-display: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body:not(.has-hero) { padding-top: var(--header-h); }

img { max-width: 100%; display: block; }
a { color: var(--red-2); text-decoration-thickness: 1px; text-underline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08; color: var(--ink); margin: 0 0 .5em;
  letter-spacing: -.02em; font-weight: 800;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--red); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font: inherit; font-weight: 600; cursor: pointer; letter-spacing: -.01em;
  padding: .85em 1.6em; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; white-space: nowrap;
  transition: transform .18s cubic-bezier(.2,.7,.2,1), background .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); box-shadow: var(--shadow-red); }
.btn-primary:hover { background: var(--red-2); border-color: var(--red-2); }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.45); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.8); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: #000; }
.btn-lg { padding: 1em 1.9em; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand-logo { height: 38px; width: auto; transition: filter .3s ease; }
.footer-logo { height: 48px; filter: brightness(0) invert(1); }

.main-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; align-items: center; }
.main-nav a {
  display: block; padding: .55em .85em; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; letter-spacing: -.01em;
  transition: background .15s ease, color .15s ease;
}
.main-nav a:hover { background: var(--bg-alt); color: var(--red-2); }
.main-nav .nav-cta { background: var(--red); color: #fff; padding: .6em 1.2em; box-shadow: var(--shadow-red); }
.main-nav .nav-cta:hover { background: var(--red-2); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--ink); border-radius: 3px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Transparent über dem Hero (nur Startseite, ganz oben) */
.has-hero .site-header:not(.scrolled) {
  background: transparent; border-bottom-color: transparent; backdrop-filter: none;
}
.has-hero .site-header:not(.scrolled) .brand-logo { filter: brightness(0) invert(1); }
.has-hero .site-header:not(.scrolled) .main-nav a { color: #fff; }
.has-hero .site-header:not(.scrolled) .main-nav a:hover { background: rgba(255,255,255,.14); color: #fff; }
.has-hero .site-header:not(.scrolled) .nav-toggle span { background: #fff; }
.has-hero .site-header:not(.scrolled) .nav-cta { background: var(--red); color: #fff; }

/* ---------- Hero (cinematic) ---------- */
.hero { position: relative; min-height: 92vh; min-height: 92dvh; display: flex; align-items: center; color: #fff; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 600px at 78% 12%, rgba(212,7,13,.30), transparent 60%),
    linear-gradient(90deg, rgba(8,8,10,.92) 0%, rgba(8,8,10,.72) 38%, rgba(8,8,10,.30) 70%, rgba(8,8,10,.55) 100%),
    linear-gradient(0deg, rgba(8,8,10,.85) 0%, transparent 38%);
}
.hero-inner { width: 100%; padding-top: calc(var(--header-h) + 36px); padding-bottom: 64px; display: grid; grid-template-columns: 1.25fr .85fr; gap: 48px; align-items: center; }
.hero-content { max-width: 640px; }
.hero h1 { color: #fff; margin: .12em 0 .28em; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero h1 .accent { color: var(--red-light); }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: #e9e9ee; max-width: 50ch; margin: 0; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

.badge {
  display: inline-flex; align-items: center; gap: .55em;
  background: rgba(255,255,255,.10); color: #fff; border: 1px solid rgba(255,255,255,.22);
  padding: .5em 1em; border-radius: 999px; font-size: .85rem; font-weight: 600; letter-spacing: .01em;
  backdrop-filter: blur(8px);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red-light); box-shadow: 0 0 0 4px rgba(239,59,52,.22); }
.badge-24h { color: #fff; }

.hero-card {
  background: rgba(20,20,24,.55); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 28px; backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-lg);
}
.hero-card-title { font-family: var(--font-display); color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.hero-facts li { display: grid; gap: 3px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.12); }
.hero-facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-facts strong { color: var(--red-light); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.hero-facts span { color: #eef0f3; font-weight: 500; }
.hero-facts a { color: #fff; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 1;
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,.7); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
}
.hero-scroll .mouse { width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.55); border-radius: 14px; position: relative; }
.hero-scroll .mouse::after { content:""; position:absolute; left:50%; top:7px; width:4px; height:7px; border-radius:3px; background:#fff; transform:translateX(-50%); animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0%{opacity:0; transform:translate(-50%,0);} 30%{opacity:1;} 70%{opacity:1; transform:translate(-50%,9px);} 100%{opacity:0; transform:translate(-50%,9px);} }

/* ---------- Stats strip ---------- */
.stats {
  background: var(--dark); color: var(--on-dark);
  border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
}
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(120px, 190px)); justify-content: center; gap: 56px; padding: 40px 0; }
.stat { text-align: center; padding: 8px; position: relative; }
.stat + .stat::before { content:""; position:absolute; left:-28px; top:50%; transform:translateY(-50%); width:1px; height:46px; background: var(--line-dark); }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1; color: #fff; letter-spacing: -.02em; }
.stat-num .unit { color: var(--red-light); }
.stat-label { margin-top: 8px; color: var(--on-dark-muted); font-size: .9rem; font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: var(--on-dark); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em; color: var(--red-2); font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; margin-bottom: 1em;
}
.eyebrow::before { content:""; width: 26px; height: 2px; background: var(--red); border-radius: 2px; }
.section-dark .eyebrow { color: var(--red-light); }
.section-head .back-link { display: inline-block; margin-bottom: 18px; font-weight: 600; }
.section-dark .back-link { color: var(--red-light); }
.section-lead { color: var(--muted); font-size: 1.12rem; }
.section-dark .section-lead { color: var(--on-dark-muted); }

/* ---------- Öffnungszeiten ---------- */
.opening-grid { display: flex; justify-content: center; }
.opening-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 48px; text-align: center; max-width: 520px; position: relative; overflow: hidden;
}
.opening-card::before { content:""; position:absolute; top:0; left:0; right:0; height:4px; background: var(--red); }
.opening-icon { color: var(--red); margin-bottom: 10px; }
.opening-big { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--ink); margin: 0; }
.opening-time { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: var(--red); margin: .12em 0 .3em; letter-spacing: -.02em; }
.opening-note { color: var(--muted); margin: 0; }

/* ---------- Kraftstoffe (editoriale Liste) ---------- */
.fuel-list { margin-top: 8px; border-top: 1px solid var(--line); }
.fuel-row {
  display: grid; grid-template-columns: minmax(210px, 290px) 1fr;
  gap: clamp(20px, 5vw, 64px); align-items: start;
  padding: clamp(26px, 3.4vw, 40px) 24px clamp(26px, 3.4vw, 40px) 28px;
  border-bottom: 1px solid var(--line); position: relative;
  transition: background .25s ease;
}
.fuel-row::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 42px; border-radius: 0 3px 3px 0;
  background: var(--fuel, var(--red)); transition: height .3s cubic-bezier(.2,.7,.2,1);
}
.fuel-row:hover { background: #fff; }
.fuel-row:hover::before { height: calc(100% - 32px); }
.fuel-kind {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fuel, var(--red)); margin-bottom: .7em;
}
.fuel-row h3 { font-size: clamp(1.35rem, 2.6vw, 1.95rem); margin: 0; line-height: 1.1; }
.fuel-row h3 small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; letter-spacing: .02em; margin-top: .45em; }
.fuel-row-desc { color: var(--muted); margin: 0; max-width: 62ch; font-size: 1.04rem; }
@media (max-width: 720px) {
  .fuel-row { grid-template-columns: 1fr; gap: 12px; padding-right: 8px; }
  .fuel-kind { margin-bottom: .4em; }
}

.b0-benefits {
  margin-top: 36px; background:
    radial-gradient(700px 380px at 90% -10%, rgba(212,7,13,.22), transparent 60%),
    var(--dark);
  color: var(--on-dark); border: 1px solid var(--line-dark);
  border-radius: var(--radius); padding: clamp(28px, 4vw, 48px);
}
.b0-benefits h3 { color: #fff; font-size: 1.5rem; margin-bottom: 1em; }
.benefit-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.benefit-list li { position: relative; padding-left: 36px; color: var(--on-dark-muted); }
.benefit-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px;
  background: var(--red); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='black'/%3E%3C/svg%3E") center/14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='black'/%3E%3C/svg%3E") center/14px no-repeat;
}
.benefit-list strong { color: #fff; font-weight: 600; }
.b0-foot { margin: 0; color: var(--on-dark-muted); }
.b0-foot strong { color: var(--red-light); }

/* ---------- Preise CTA ---------- */
.price-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(212,7,13,.10), transparent 60%),
    linear-gradient(135deg, #fff, var(--bg-alt));
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(30px, 4vw, 52px); box-shadow: var(--shadow-sm);
}
.price-cta h2 { margin-bottom: .2em; }
.price-cta p { color: var(--muted); margin: 0; max-width: 48ch; }

/* ---------- Zahlung ---------- */
.payment-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px;
}
.payment-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 22px 14px; box-shadow: var(--shadow-sm); min-height: 118px;
  transition: transform .18s ease, box-shadow .2s ease;
}
.payment-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.payment-item img { height: 40px; width: auto; }
.payment-item img.pay-photo { height: 66px; width: auto; border-radius: 0; box-shadow: none; filter: drop-shadow(0 6px 10px rgba(16,17,20,.18)); }
.payment-item span { font-size: .86rem; font-weight: 600; color: var(--muted); }

/* ---------- Service ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm); text-align: left;
  transition: transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, #fff1f0, #ffe2e0); color: var(--red);
}
.service-card h3 { margin-bottom: .3em; }
.service-card p { color: var(--muted); margin-bottom: 0; }

/* ---------- Über uns ---------- */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.about-card {
  background: var(--dark-3); border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 32px; position: relative; overflow: hidden;
}
.about-card::before { content:""; position:absolute; left:0; top:28px; width:3px; height:34px; background: var(--red); border-radius:0 3px 3px 0; }
.about-card h3 { color: #fff; }
.about-card p { color: var(--on-dark-muted); margin-bottom: 0; }

.about-feature { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; margin-bottom: 56px; }
.about-feature .lead { font-size: 1.18rem; color: var(--on-dark-muted); }
.about-feature .lead strong { color: #fff; font-weight: 600; }
.feature-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line-dark); position: relative; }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* ---------- Impressionen (Bento-Mosaik) ---------- */
.bento-gallery {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(132px, 16vw, 204px); grid-auto-flow: dense; gap: 14px; margin-top: 8px;
}
.bento-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line-dark); box-shadow: var(--shadow); background: var(--dark-3);
}
.bento-lg { grid-column: span 2; grid-row: span 2; }
.bento-wide { grid-column: span 2; }
.bento-tall { grid-row: span 2; }
@media (max-width: 760px) {
  .bento-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(118px, 30vw, 168px); }
  .bento-tall { grid-row: span 1; }
}
.gallery-link { display: block; width: 100%; height: 100%; overflow: hidden; position: relative; }
.gallery-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.25,.46,.45,.94); }
.gallery-link:hover img { transform: scale(1.07); }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(212,7,13,.55), rgba(12,12,14,.10)); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s ease; }
.gallery-link:hover .gallery-overlay { opacity: 1; }
.gallery-icon {
  background: rgba(255,255,255,.96); color: var(--ink); width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; box-shadow: var(--shadow);
  transform: translateY(10px); transition: transform .25s cubic-bezier(.25,.46,.45,.94);
}
.gallery-link:hover .gallery-icon { transform: translateY(0); }
.aerial-gallery-caption { color: var(--on-dark-muted); font-size: .9rem; margin-top: 16px; text-align: center; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(8,8,10,.94); backdrop-filter: blur(10px); z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox-content { position: relative; max-width: 90%; max-height: 82vh; display: flex; align-items: center; justify-content: center; }
.lightbox-img { max-width: 100%; max-height: 82vh; border-radius: var(--radius-sm); box-shadow: 0 20px 60px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.12); transform: scale(.96); transition: transform .3s cubic-bezier(.25,.46,.45,.94); }
.lightbox.active .lightbox-img { transform: scale(1); }
.lightbox-close { position: absolute; top: -52px; right: 0; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; padding: 5px; line-height: 1; opacity: .85; transition: opacity .2s; }
.lightbox-close:hover { opacity: 1; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: 0; color: #fff; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; transition: background .2s, opacity .2s; opacity: .85; }
.lightbox-nav:hover { background: var(--red); opacity: 1; }
.lightbox-prev { left: -68px; }
.lightbox-next { right: -68px; }
@media (max-width: 768px) {
  .lightbox-prev { left: 10px; top: auto; bottom: -66px; transform: none; }
  .lightbox-next { right: 10px; top: auto; bottom: -66px; transform: none; }
  .lightbox-close { right: 10px; top: 10px; position: fixed; }
}

/* ---------- Downloads ---------- */
.downloads-layout { display: grid; grid-template-columns: 340px 1fr; gap: 36px; align-items: start; }
.transponder-figure { margin: 0; position: sticky; top: calc(var(--header-h) + 20px); }
.transponder-figure img { width: 100%; border: 0; border-radius: 0; box-shadow: none; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(16,17,20,.22)); }
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.download-card {
  display: flex; align-items: center; gap: 18px; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow-sm); color: var(--ink);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.download-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #dcdce2; }
.download-card .dl-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #fff1f0, #ffe2e0); color: var(--red); flex-shrink: 0; }
.download-card h3 { margin: 0 0 .2em; font-size: 1.08rem; }
.download-card p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ci { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #fff1f0, #ffe2e0); color: var(--red); flex-shrink: 0; }
.contact-list a { color: var(--red-2); }

.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; background: var(--bg-alt); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 28px; background: var(--bg-alt); color: var(--muted); }
.map-consent svg { color: var(--red); }
.map-consent h4 { margin: 0; font-family: var(--font-display); }
.map-consent p { margin: 0; font-size: .9rem; max-width: 42ch; }
.map-remember { font-size: .85rem; display: inline-flex; align-items: center; gap: 6px; }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 38px); box-shadow: var(--shadow); }
.contact-form h3 { font-size: 1.4rem; }
.form-row { display: grid; gap: 6px; margin-bottom: 18px; }
.form-row label { font-weight: 600; font-size: .92rem; }
.form-row label small { font-weight: 400; color: var(--muted); }
.form-row input, .form-row textarea { font: inherit; padding: .8em 1em; border: 1.5px solid var(--line); border-radius: var(--radius-xs); background: #fbfbfc; color: var(--ink); width: 100%; transition: border-color .15s, box-shadow .15s, background .15s; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(212,7,13,.14); background: #fff; }
.form-consent label { display: block; position: relative; padding-left: 30px; font-weight: 400; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.form-consent input { position: absolute; left: 0; top: 3px; margin: 0; accent-color: var(--red); }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status { margin: 14px 0 0; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red-2); }

/* ---------- Kontakt-CTA (mailto statt Formular) ---------- */
.contact-cta { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow); align-self: start; }
.contact-cta h3 { font-size: 1.4rem; }
.contact-cta > p { color: var(--muted); margin: 0; }
.contact-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 14px; }
.contact-cta-actions .btn { flex: 1 1 auto; justify-content: center; }
.contact-cta-mail { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-2); color: #b9bbc2; padding: 64px 0 32px; border-top: 1px solid var(--line-dark); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.footer-brand p { margin: 16px 0 0; font-size: .92rem; max-width: 40ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: flex-end; }
.footer-nav a { color: #b9bbc2; text-decoration: none; font-size: .95rem; transition: color .15s; }
.footer-nav a:hover { color: #fff; }
.footer-copy { grid-column: 1 / -1; border-top: 1px solid var(--line-dark); margin: 32px 0 0; padding-top: 22px; font-size: .85rem; color: #80828b; }

/* ---------- Cookie Banner ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); max-width: 760px; margin-inline: auto; }
.cookie-inner { display: flex; align-items: center; gap: 18px; padding: 20px 24px; flex-wrap: wrap; }
.cookie-inner p { margin: 0; font-size: .9rem; color: var(--muted); flex: 1 1 320px; }
.cookie-actions { flex-shrink: 0; }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(40px, 6vw, 72px) 0; }
.legal .container { max-width: 820px; }
.legal h1 { color: var(--ink); }
.legal h2 { font-size: 1.5rem; margin-top: 1.8em; }
.legal h3 { font-size: 1.15rem; margin-top: 1.4em; }
.legal p, .legal li { color: #2c3138; }
.legal a { color: var(--red-2); }
.legal .back-link { display: inline-block; margin-bottom: 24px; font-weight: 600; }
.legal .updated { color: var(--muted); font-style: italic; }

/* ---------- Scroll-Reveal (nur bei aktivem JS verstecken; ohne JS sichtbar) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-card { max-width: 520px; }
  .about-feature { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .downloads-layout { grid-template-columns: 1fr; }
  .transponder-figure { position: static; max-width: 420px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px 24px; }
  .stat:nth-child(3)::before, .stat + .stat::before { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .main-nav.open { max-height: 560px; box-shadow: var(--shadow); }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px; gap: 2px; }
  .main-nav a, .has-hero .site-header:not(.scrolled) .main-nav a { padding: .85em 1em; color: var(--ink); }
  .main-nav .nav-cta { box-shadow: none; }
  .hero { min-height: 90vh; min-height: 90dvh; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero-scroll .mouse::after { animation: none; }
}
