/* ============================================
   Corridori — Autolackiererei & Karosserie
   GLOBAL
   ============================================ */
:root {
  --bg: #0c0f13;
  --bg-elevated: #12161c;
  --card: rgba(255, 255, 255, 0.03);
  --card-hover: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #d5dbe2;
  --heading: #f2f5f9;
  --muted: #98a4b2;
  --accent: #3b6ee0;
  --cta: #2f5fd0;
  --cta-hover: #4275ea;
  --accent-light: #7fa4f0;
  --success: #3d9b6a;
  --danger: #d35a5a;
  --max: 1240px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 18px;
  --header-h: 74px;
  --font-display: "Space Grotesk", Helvetica, Arial, sans-serif;
  --font-body: "Barlow", Helvetica, Arial, sans-serif;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #a8c4f8;
}

ul, ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--heading);
  font-weight: 600;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(32px, 5vw, 60px);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(18px, 2vw, 22px);
}

p {
  overflow-wrap: anywhere;
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.section {
  padding: 88px 0;
}

.section-header {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-header p {
  margin-top: 14px;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--cta);
  color: #fff;
}

.btn-primary:hover {
  background: var(--cta-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--heading);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--accent-light);
  padding-inline: 8px;
}

.btn-block {
  width: 100%;
}

.price {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--heading);
}

.price-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 20px;
  max-width: 780px;
  line-height: 1.55;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.img-ph {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(59, 110, 224, 0.12), transparent 55%),
    linear-gradient(180deg, #151a22, #0e1218);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.img-ph::before {
  content: none;
}

.img-ph span {
  position: relative;
  z-index: 1;
  max-width: 220px;
  line-height: 1.4;
  padding: 20px;
}

.img-ph img,
.media-frame img,
.hero-image img,
.ba-layer img,
.gallery-item img,
.product-card img,
.blog-card img,
.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-frame {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #151a22;
}

.media-frame--hero {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
}

.media-frame--card {
  aspect-ratio: 4 / 3;
  border: none;
  border-radius: 0;
}

.media-frame--blog {
  aspect-ratio: 16 / 10;
  border: none;
  border-radius: 0;
}

.media-frame--product {
  aspect-ratio: 1 / 1;
  border: none;
  border-radius: 0;
  background: #10151c;
}

.media-frame--article {
  aspect-ratio: 16 / 9;
  margin: 28px 0 36px;
}

.media-frame--about {
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(12, 15, 19, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--heading);
  flex-shrink: 0;
}

.logo:hover {
  color: var(--heading);
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--accent-light);
  background: rgba(59, 110, 224, 0.1);
}

.logo-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.logo-text small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 2px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 8px;
}

.nav a:hover,
.nav a.is-active {
  color: var(--heading);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--heading);
}

.cart-btn:hover {
  border-color: var(--border-strong);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--cta);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  place-items: center;
  gap: 5px;
  flex-direction: column;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--heading);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(12, 15, 19, 0.97);
  padding: 24px 20px 40px;
  z-index: 999;
  overflow-y: auto;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  color: var(--heading);
  font-size: 18px;
  font-family: var(--font-display);
}

.mobile-nav .btn {
  margin-top: 24px;
  width: 100%;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 48px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-copy .badge {
  margin-bottom: 22px;
}

.hero-copy h1 {
  margin-bottom: 18px;
}

.hero-copy > p {
  color: var(--muted);
  font-size: 18px;
  max-width: 540px;
  margin-bottom: 28px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  position: relative;
}

.hero-image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
}

.ba-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card .media-frame--product,
.blog-card .media-frame--blog,
.gallery-item .media-frame--card {
  transition: transform 0.25s ease;
}

.product-card:hover .media-frame--product img,
.blog-card:hover .media-frame--blog img,
.gallery-item:hover .media-frame--card img {
  transform: scale(1.02);
}

.product-card .media-frame--product img,
.blog-card .media-frame--blog img,
.gallery-item .media-frame--card img {
  transition: transform 0.25s ease;
}

.tech-card {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: min(240px, calc(100% - 36px));
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(12, 15, 19, 0.88);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.tech-card .label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: 4px;
}

.tech-card .title {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--heading);
  margin-bottom: 10px;
}

.tech-meter {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.tech-meter span {
  display: block;
  width: 72%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: inherit;
}

.tech-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
}

/* ============================================
   TRUST STRIP
   ============================================ */
.trust-strip {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.trust-strip h2 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 18px;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.trust-item {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  font-size: 14px;
  color: var(--heading);
  font-family: var(--font-display);
  font-weight: 500;
  text-align: center;
}

/* ============================================
   SERVICES
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.service-card:hover {
  border-color: var(--border-strong);
  background: var(--card-hover);
  transform: translateY(-2px);
}

.service-card .num {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: 14px;
}

.service-card h3 {
  margin-bottom: 10px;
}

.service-card p {
  color: var(--muted);
  font-size: 15px;
  flex: 1;
  margin-bottom: 18px;
}

.service-card .price {
  font-size: 18px;
}

.service-card a.more {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
}

/* ============================================
   PROCESS
   ============================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.process-card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
}

.process-card .num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(59, 110, 224, 0.12);
  color: var(--accent-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 16px;
}

.process-card h3 {
  margin-bottom: 8px;
}

.process-card p {
  color: var(--muted);
  font-size: 15px;
}

/* ============================================
   BEFORE AFTER
   ============================================ */
.ba-wrap {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.ba-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  user-select: none;
  touch-action: none;
  background: #151a22;
}

.ba-layer {
  position: absolute;
  inset: 0;
}

.ba-layer .img-ph,
.ba-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  border: none;
  aspect-ratio: auto;
}

.ba-after {
  clip-path: inset(0 0 0 50%);
}

.ba-label {
  position: absolute;
  top: 14px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(12, 15, 19, 0.8);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--heading);
}

.ba-label.before { left: 14px; }
.ba-label.after { right: 14px; }

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  z-index: 3;
  transform: translateX(-50%);
}

.ba-handle::after {
  content: "↔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: #0c0f13;
  display: grid;
  place-items: center;
  font-size: 14px;
  box-shadow: var(--shadow);
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
}

.ba-side h3 {
  margin-bottom: 12px;
}

.ba-points {
  display: grid;
  gap: 10px;
  margin: 20px 0 28px;
}

.ba-points li {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--heading);
  font-size: 14px;
}

.ba-caption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}

/* ============================================
   PRODUCTS / SHOP
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.product-card .img-ph {
  border: none;
  border-radius: 0;
  aspect-ratio: 4 / 3;
}

.product-card .img-ph:hover,
.product-card:hover .img-ph {
  transform: none;
}

.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-cat {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 8px;
}

.product-body h3 {
  margin-bottom: 8px;
}

.product-body p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
  flex: 1;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.availability {
  font-size: 13px;
  color: var(--success);
}

.product-body .btn {
  width: 100%;
}

/* ============================================
   REFERENCES / TYPICAL WORK
   ============================================ */
.refs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.ref-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
}

.ref-card h3 {
  margin-bottom: 10px;
}

.ref-card p {
  color: var(--muted);
  font-size: 15px;
}

/* ============================================
   BLOG
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.blog-card .img-ph {
  border: none;
  border-radius: 0;
  aspect-ratio: 16 / 10;
}

.blog-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.blog-body h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.blog-body h3 a {
  color: var(--heading);
}

.blog-body h3 a:hover {
  color: var(--accent-light);
}

.blog-body p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
  flex: 1;
}

.article {
  max-width: 760px;
  margin: 0 auto;
}

.article-hero {
  margin: 28px 0 36px;
}

.article h2 {
  margin: 36px 0 14px;
  font-size: clamp(22px, 3vw, 28px);
}

.article h3 {
  margin: 24px 0 10px;
}

.article p,
.article li {
  color: var(--text);
  margin-bottom: 14px;
}

.article ul,
.article ol {
  margin: 0 0 18px 18px;
}

.article ul { list-style: disc; }
.article ol { list-style: decimal; }

.article li {
  margin-bottom: 8px;
  padding-left: 4px;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 820px;
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 52px 18px 20px;
  color: var(--heading);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  position: relative;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-light);
  font-size: 22px;
  font-weight: 400;
}

.faq-item.is-open .faq-question::after {
  content: "−";
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 15px;
}

.faq-item.is-open .faq-answer {
  display: block;
}

.faq-cta {
  margin-top: 40px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(59, 110, 224, 0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.faq-cta h3 {
  margin-bottom: 6px;
}

.faq-cta p {
  color: var(--muted);
  max-width: 480px;
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
  padding: 72px 0;
}

.final-cta-box {
  padding: 48px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(circle at 85% 20%, rgba(59, 110, 224, 0.18), transparent 40%),
    var(--bg-elevated);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.final-cta-box p {
  color: var(--muted);
  margin-top: 12px;
  max-width: 520px;
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}

.page-hero p {
  margin-top: 14px;
  color: var(--muted);
  max-width: 640px;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--heading);
}

/* ============================================
   LEISTUNGEN DETAIL
   ============================================ */
.leistungen-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: start;
}

.side-nav {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.side-nav h2 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.side-nav a {
  display: block;
  padding: 10px 8px;
  color: var(--text);
  border-radius: 8px;
  font-size: 14px;
}

.side-nav a:hover,
.side-nav a.is-active {
  background: rgba(59, 110, 224, 0.1);
  color: var(--heading);
}

.leistung-block {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  margin-bottom: 20px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.leistung-block h2 {
  margin-bottom: 12px;
}

.leistung-block > p {
  color: var(--muted);
  margin-bottom: 20px;
}

.leistung-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.meta-box {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.meta-box span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.meta-box strong {
  color: var(--heading);
  font-family: var(--font-display);
}

.leistung-block h3 {
  margin: 22px 0 10px;
  font-size: 16px;
}

.leistung-block ul {
  list-style: disc;
  margin-left: 18px;
  color: var(--muted);
}

.leistung-block li {
  margin-bottom: 6px;
}

/* ============================================
   PREISE
   ============================================ */
.price-warning {
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(127, 164, 240, 0.35);
  background: rgba(59, 110, 224, 0.08);
  color: var(--text);
  margin-bottom: 36px;
  font-size: 15px;
}

.price-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 36px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.price-table th,
.price-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.price-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.price-table td {
  font-size: 15px;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-cat {
  margin: 40px 0 16px;
  font-size: 20px;
}

/* ============================================
   GALERIE
   ============================================ */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-btn {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.filter-btn.is-active,
.filter-btn:hover {
  color: var(--heading);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--card);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
  border-color: var(--border-strong);
}

.gallery-item .img-ph {
  border: none;
  border-radius: 0;
  aspect-ratio: 4 / 3;
}

.gallery-item figcaption {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  place-items: center;
  padding: 24px;
}

.lightbox.is-open {
  display: grid;
}

.lightbox-content {
  width: min(900px, 100%);
  position: relative;
}

.lightbox-content .media-frame,
.lightbox-content img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  object-fit: cover;
}

.lightbox-caption {
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: #fff;
  font-size: 22px;
}

/* ============================================
   FORMS / CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.form-card,
.company-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--heading);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--heading);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group .error {
  display: none;
  margin-top: 6px;
  font-size: 13px;
  color: var(--danger);
}

.form-group.has-error .error {
  display: block;
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: var(--danger);
}

.checkbox-group {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 18px 0 22px;
}

.checkbox-group input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--cta);
}

.checkbox-group label {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.form-success {
  display: none;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(61, 155, 106, 0.12);
  border: 1px solid rgba(61, 155, 106, 0.35);
  color: #9ed6b8;
  margin-bottom: 16px;
  font-size: 14px;
}

.form-success.is-visible {
  display: block;
}

.company-card h2 {
  font-size: 20px;
  margin-bottom: 18px;
}

.company-card dl {
  display: grid;
  gap: 14px;
}

.company-card dt {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.company-card dd {
  color: var(--heading);
  font-size: 15px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: 64px 0 28px;
  border-top: 1px solid var(--border);
  background: #0a0d11;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-col h3 {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-col p,
.footer-col a {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.footer-col a {
  display: block;
}

.footer-col a:hover {
  color: var(--heading);
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-brand .logo-text strong {
  font-size: 18px;
}

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* ============================================
   CART
   ============================================ */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100%);
  height: 100%;
  z-index: 2100;
  background: #10151c;
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}

.cart-drawer.is-open {
  transform: none;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.cart-header h2 {
  font-size: 18px;
}

.cart-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--heading);
  font-size: 20px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.cart-empty {
  color: var(--muted);
  font-size: 14px;
  padding: 20px 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.cart-item .qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.cart-item .qty-row button {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--heading);
}

.cart-item .remove {
  color: var(--danger);
  font-size: 13px;
  margin-top: 6px;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--heading);
}

.cart-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.45;
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 3000;
  max-width: 560px;
  margin-left: auto;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: #121820;
  box-shadow: var(--shadow);
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner h2 {
  font-size: 16px;
  margin-bottom: 8px;
}

.cookie-banner p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-settings {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.cookie-settings.is-open {
  display: block;
}

.cookie-cat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
}

.cookie-cat label {
  color: var(--heading);
}

.cookie-cat small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

/* ============================================
   LEGAL / CONTENT PAGES
   ============================================ */
.legal-content {
  max-width: 780px;
}

.legal-content h2 {
  margin: 32px 0 12px;
  font-size: 22px;
}

.legal-content h3 {
  margin: 22px 0 10px;
  font-size: 17px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  margin-bottom: 12px;
}

.legal-content ul {
  list-style: disc;
  margin: 0 0 16px 18px;
}

.company-card dd,
.footer-col p,
.legal-content a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-col a[href^="mailto:"],
.footer-col a[href^="tel:"],
.company-card a[href^="mailto:"],
.company-card a[href^="tel:"] {
  color: var(--heading);
}

.footer-col a[href^="mailto:"]:hover,
.footer-col a[href^="tel:"]:hover,
.company-card a[href^="mailto:"]:hover,
.company-card a[href^="tel:"]:hover {
  color: var(--accent-light);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.content-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .trust-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .nav,
  .header-actions .btn {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-grid,
  .ba-wrap,
  .contact-grid,
  .leistungen-layout,
  .two-col {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
  }

  .services-grid,
  .products-grid,
  .refs-grid,
  .blog-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .leistung-meta {
    grid-template-columns: 1fr;
  }

  .trust-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 28px 0 48px;
  }

  .hero-copy > p {
    font-size: 16px;
  }

  .hero-ctas .btn,
  .final-cta-actions .btn {
    width: 100%;
  }

  .services-grid,
  .products-grid,
  .refs-grid,
  .blog-grid,
  .gallery-grid,
  .process-grid,
  .trust-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .final-cta-box {
    padding: 32px 22px;
  }

  .form-card,
  .company-card,
  .leistung-block {
    padding: 20px;
  }

  .tech-card {
    left: 12px;
    bottom: 12px;
  }

  .page-hero {
    padding: 36px 0 28px;
  }
}
