/* ============================================================
   OEM:plus – premium.css
   Visual upgrades: cineastische Hero, glowing CTAs,
   magic-border cards, animated Ablauf, scroll polish.
   Nach main.css + patch.css einbinden.
   ============================================================ */


/* ============================================================
   1. SCROLL PROGRESS BAR (global, oben)
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), #7be9ff);
  z-index: 2000;
  transition: width 0.08s linear;
  box-shadow: 0 0 10px rgba(12, 208, 255, 0.6);
  pointer-events: none;
}


/* ============================================================
   2. HERO – cineastisch aufwerten
   ============================================================ */

/* Ken-Burns: langsamer Zoom + Pan auf Hero-BG (Start + Unterseiten) */
.hero-bg,
.page-hero-bg {
  animation: kenBurns 28s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenBurns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1.5%, -1%); }
}

/* Grain / Noise Overlay – filmischer Look (Start + Unterseiten) */
.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  z-index: 1;
}

/* Vignette – dezent, für Tiefe */
.hero-overlay,
.page-hero-overlay {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 80%),
    linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.35) 100%);
}

/* Glow hinter der Primary-Zeile (Start + Unterseiten) */
.hero-title .text-primary,
.page-hero-title .text-primary {
  position: relative;
  display: inline-block;
}
.hero-title .text-primary::after,
.page-hero-title .text-primary::after {
  content: "";
  position: absolute;
  inset: -8% -4%;
  background: radial-gradient(ellipse at center, rgba(12,208,255,0.45) 0%, rgba(12,208,255,0) 70%);
  filter: blur(24px);
  z-index: -1;
  animation: heroGlow 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes heroGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.06); }
}

/* Stat-Badge: Glow-Ring + Scan-Sweep */
.hero-stat-badge {
  position: absolute;
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.4),
    0 0 0 1px rgba(12,208,255,0.15),
    0 0 40px rgba(12,208,255,0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.hero-stat-badge:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 40px rgba(0,0,0,0.5),
    0 0 0 1px rgba(12,208,255,0.35),
    0 0 50px rgba(12,208,255,0.25);
}
.hero-stat-badge::before {
  content: "";
  position: absolute;
  top: 0; left: -40%;
  width: 40%; height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(12,208,255,0.15) 50%,
    rgba(255,255,255,0) 100%
  );
  animation: statSweep 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes statSweep {
  0%   { left: -40%; }
  60%  { left: 140%; }
  100% { left: 140%; }
}
.stat-icon {
  filter: drop-shadow(0 0 12px rgba(12,208,255,0.5));
}

/* Hero-Badge pulse schon da – Ring erweitern */
.hero-badge:hover .badge-dot {
  box-shadow: 0 0 0 4px rgba(12,208,255,0.3);
}


/* ============================================================
   3. BUTTONS – Glow & Arrow Slide
   ============================================================ */

/* Primary: türkiser Glow on Hover */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  background: #1a1a1a;
  box-shadow:
    0 6px 20px rgba(0,0,0,0.25),
    0 0 24px rgba(12,208,255,0.35);
  transform: translateY(-2px);
}
.btn-primary::after {
  content: "→";
  margin-left: 2px;
  display: inline-block;
  transition: transform 0.25s ease, margin-left 0.25s ease;
  font-weight: 700;
}
.btn-primary:hover::after {
  transform: translateX(3px);
  margin-left: 4px;
}

/* Outline-Buttons: animated Gradient-Border */
.btn-outline-light, .btn-outline {
  position: relative;
  overflow: hidden;
  transition: color 0.25s ease, background 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
}
.btn-outline-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(12,208,255,0.25);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}
.btn-outline-light::after, .btn-outline::after {
  content: "→";
  margin-left: 2px;
  display: inline-block;
  transition: transform 0.25s ease, margin-left 0.25s ease;
  font-weight: 700;
}
.btn-outline-light:hover::after, .btn-outline:hover::after {
  transform: translateX(3px);
  margin-left: 4px;
}


/* ============================================================
   4. LEISTUNGEN-CARDS – Magic Borders + Tilt + Icon-Glow
   ============================================================ */

.card-service {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  transform-style: preserve-3d;
}

/* Spotlight-Gradient folgt Maus (CSS-Variablen in JS gesetzt) */
.card-service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mx, 50%) var(--my, 50%),
    rgba(12,208,255,0.10),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}
.card-service:hover::before { opacity: 1; }

/* Magic Border Gradient */
.card-service::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--border-radius);
  padding: 1px;
  background: radial-gradient(
    400px circle at var(--mx, 50%) var(--my, 50%),
    rgba(12,208,255,0.7),
    rgba(12,208,255,0) 45%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}
.card-service:hover::after { opacity: 1; }

.card-service:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 40px rgba(0,0,0,0.12),
    0 0 30px rgba(12,208,255,0.08);
}

.card-service > * {
  position: relative;
  z-index: 2;
}

/* Icon wächst + glüht */
.card-service .card-icon {
  transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}
.card-service:hover .card-icon {
  transform: scale(1.1) rotate(-3deg);
  background: rgba(12,208,255,0.12);
  box-shadow: 0 0 20px rgba(12,208,255,0.3);
}


/* ============================================================
   5. ABLAUF – große Watermark-Nummern + Connector-Linie
   ============================================================ */

.ablauf .cards-grid {
  position: relative;
}

/* Horizontale Connector-Linie zwischen Karten (Desktop) */
.ablauf .cards-grid::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(12,208,255,0.35) 8%,
    rgba(12,208,255,0.35) 92%,
    transparent 100%
  );
  z-index: 0;
}
@media (max-width: 960px) {
  .ablauf .cards-grid::before { display: none; }
}

.card-step {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  background: white;
}
.card-step:hover {
  transform: translateY(-5px);
  border-color: rgba(12,208,255,0.3);
  box-shadow: 0 16px 32px rgba(0,0,0,0.08);
}

/* Watermark-Nummer: "01", "02", ... hinter jedem Schritt */
.card-step::before {
  content: attr(data-step);
  position: absolute;
  top: -14px;
  right: -6px;
  font-size: 6rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(12,208,255,0.08);
  letter-spacing: -0.04em;
  pointer-events: none;
  transition: color 0.35s ease, transform 0.35s ease;
  font-family: var(--font-main);
}
.card-step:hover::before {
  color: rgba(12,208,255,0.18);
  transform: scale(1.05);
}

/* Node-Dot oben auf jeder Step-Card (auf Linie) */
.card-step::after {
  content: "";
  position: absolute;
  top: 26px;
  left: 28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow:
    0 0 0 4px white,
    0 0 0 5px rgba(12,208,255,0.35),
    0 0 16px rgba(12,208,255,0.5);
  z-index: 2;
}
@media (max-width: 960px) {
  .card-step::after { display: none; }
}

/* Step-Label bekommt bisschen Abstand von Node */
.card-step .step-label { padding-top: 18px; }


/* ============================================================
   6. ENHANCED FADE-IN (slide-up + scale + stagger)
   ============================================================ */

.fade-in {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}


/* ============================================================
   7. FEATURES-STRIP – subtile Aufwertung
   ============================================================ */

.feature-item {
  transition: transform 0.3s ease;
}
.feature-item:hover {
  transform: translateY(-2px);
}
.feature-item:hover .feature-icon {
  filter: drop-shadow(0 0 8px rgba(12,208,255,0.4));
}
.feature-icon {
  transition: filter 0.3s ease;
}


/* ============================================================
   8. LEISTUNGEN SECTION-LABEL – Glow
   ============================================================ */

.section-label {
  position: relative;
  display: inline-block;
}
.section-label::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 12px rgba(12,208,255,0.7);
  animation: labelPulse 2.5s ease-in-out infinite;
}
@keyframes labelPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}


/* ============================================================
   9. CTA BANNER – Glass-Card auf dunklem, ruhigem BG
   ============================================================ */

.cta-banner {
  position: relative;
  overflow: hidden;
  padding: 90px 0 !important;
  background:
    radial-gradient(ellipse at 15% 25%, rgba(12,208,255,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(12,208,255,0.07) 0%, transparent 55%),
    linear-gradient(180deg, #111111 0%, #080808 100%);
}
/* Kein Grid-Pattern mehr – ruhiger dunkler Verlauf */
.cta-banner::before { display: none !important; }
.cta-banner .container { position: relative; z-index: 1; }

/* Glass-Card */
.cta-inner {
  position: relative;
  z-index: 1;
  padding: 52px 60px !important;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.10);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
          backdrop-filter: blur(14px) saturate(160%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.12) inset,
    0 -1px 0 rgba(0,0,0,0.25) inset,
    0 26px 56px rgba(0,0,0,0.32);
  overflow: hidden;
  gap: 40px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Türkiser Akzent-Strich links */
.cta-inner::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  top: 16px;
  left: 0;
  width: 3px;
  height: calc(100% - 32px);
  background: linear-gradient(180deg, var(--color-primary) 0%, rgba(12,208,255,0.15) 100%);
  box-shadow: 0 0 14px rgba(12,208,255,0.45);
  border-radius: 0 3px 3px 0;
}

/* Dezenter Glow rechts innen */
.cta-inner::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 500px 400px at 92% 50%,
    rgba(12,208,255,0.09),
    transparent 60%
  );
  pointer-events: none;
}

.cta-inner > * {
  position: relative;
  z-index: 2;
}
.cta-inner h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem) !important;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-weight: 900;
  margin: 0;
  flex: 1 1 auto;
  max-width: 620px;
}

/* Button: weiß → Türkis on Hover */
.cta-inner .btn-outline-light {
  background: white !important;
  color: #0a0a0a !important;
  border-color: white !important;
  padding: 14px 28px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  min-height: 48px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25) !important;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  flex-shrink: 0;
}
.cta-inner .btn-outline-light::before { display: none; }
.cta-inner .btn-outline-light:hover {
  background: var(--color-primary) !important;
  color: #0a0a0a !important;
  border-color: var(--color-primary) !important;
  transform: translateY(-2px);
  box-shadow:
    0 14px 32px rgba(12,208,255,0.4),
    0 0 0 4px rgba(12,208,255,0.15) !important;
}


/* ============================================================
   10. PARTNERS MARQUEE – Fade-Masks
   ============================================================ */

.partners-track-wrap {
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
          mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}


/* ============================================================
   11. EINBLICKE IMAGE-STRIP – cinematic hover-dim
   ============================================================ */

section.einblicke-wrap {
  position: relative;
}
.einblicke-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  transition: opacity 0.3s ease;
}
.einblicke-tile {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
}
.einblicke-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}
.einblicke-tile::after {
  content: attr(data-label);
  position: absolute;
  left: 20px;
  bottom: 16px;
  right: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  text-shadow: 0 2px 16px rgba(0,0,0,0.9);
  pointer-events: none;
  z-index: 2;
}
.einblicke-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}
.einblicke-grid:hover .einblicke-tile img {
  filter: brightness(0.55) saturate(0.9);
}
.einblicke-tile:hover img {
  filter: brightness(1.05) saturate(1.1);
  transform: scale(1.06);
}
.einblicke-tile:hover::after,
.einblicke-tile:hover::before {
  opacity: 1;
}
.einblicke-tile:hover::after {
  transform: translateY(0);
}
@media (max-width: 760px) {
  .einblicke-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ============================================================
   12. WERKSTATT-BILD – subtiler Zoom
   ============================================================ */

.werkstatt-img-wrap {
  overflow: hidden;
  border-radius: var(--border-radius);
  position: relative;
}
.werkstatt-img-wrap img {
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.werkstatt-img-wrap:hover img {
  transform: scale(1.04);
}
.werkstatt-img-wrap::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.35), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}
.werkstatt-img-wrap:hover::before { opacity: 1; }


/* ============================================================
   13. GOOGLE REVIEWS – Card-Hover
   ============================================================ */

.greview {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.greview:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}


/* ============================================================
   14. FAQ – Apple-Style: rundes Icon-Badge, saubere Karten
   ============================================================ */

.faq-cat-col details {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
}
.faq-cat-col details:hover {
  border-color: rgba(12, 208, 255, 0.35);
}
.faq-cat-col details[open] {
  border-color: rgba(12, 208, 255, 0.5);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.faq-cat-col summary {
  padding: 18px 22px !important;
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.25s ease;
  letter-spacing: -0.005em;
}
.faq-cat-col summary:hover {
  color: var(--color-primary);
}
.faq-cat-col details[open] summary {
  color: var(--color-primary);
  padding-bottom: 12px !important;
}

.faq-cat-col summary::-webkit-details-marker { display: none; }

/* Rundes Plus-Badge (Apple-Style) – Plus aus 2 Gradient-Linien,
   pixel-perfekt zentriert. Rotate(45deg) → × */
.faq-cat-col summary::after {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  background-color: rgba(12, 208, 255, 0.1);
  background-image:
    linear-gradient(var(--color-primary), var(--color-primary)),
    linear-gradient(var(--color-primary), var(--color-primary));
  background-size: 12px 1.5px, 1.5px 12px;
  background-position: center center, center center;
  background-repeat: no-repeat;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.25s ease;
}
.faq-cat-col details:hover summary::after {
  background-color: rgba(12, 208, 255, 0.18);
}
.faq-cat-col details[open] summary::after {
  transform: rotate(45deg);
  background-color: rgba(12, 208, 255, 0.22);
}

.faq-cat-col details .a {
  padding: 0 22px 20px !important;
  animation: faqFadeIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes faqFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   15. STICKY WHATSAPP / KONTAKT FLOAT (Mobile)
   ============================================================ */

.float-contact {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 900;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-dark);
  color: white;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 24px rgba(0,0,0,0.25),
    0 0 0 4px rgba(12,208,255,0.15);
  font-size: 1.4rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.float-contact:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 12px 30px rgba(0,0,0,0.3),
    0 0 0 6px rgba(12,208,255,0.3);
}
.float-contact::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  opacity: 0.6;
  animation: floatPulse 2s ease-in-out infinite;
}
@keyframes floatPulse {
  0%, 100% { transform: scale(1);   opacity: 0.6; }
  50%      { transform: scale(1.15); opacity: 0; }
}
@media (max-width: 860px) {
  .float-contact { display: inline-flex; }
}


/* ============================================================
   16. CUSTOM SCROLLBAR (dezent)
   ============================================================ */

@media (min-width: 860px) {
  * {
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) transparent;
  }
  *::-webkit-scrollbar { width: 10px; height: 10px; }
  *::-webkit-scrollbar-track { background: transparent; }
  *::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 10px;
    border: 2px solid white;
  }
  *::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
  }
}


/* ============================================================
   18. APPLE POLISH – alle Unterseiten-Komponenten
   ============================================================ */

/* ---- HEADER: smoother transitions, bigger radius für Mobile-Nav ---- */
.site-header {
  transition: background 0.3s ease, box-shadow 0.3s ease !important;
}

/* ---- DROPDOWN – Apple Menu Look ---- */
.dropdown-menu {
  border-radius: 14px !important;
  padding: 8px !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 20px 50px rgba(0, 0, 0, 0.14) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  min-width: 230px !important;
}
.dropdown-menu a {
  border-radius: 10px !important;
  padding: 10px 14px !important;
  font-size: 0.88rem !important;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease !important;
}
.dropdown-menu a:hover {
  background: rgba(12, 208, 255, 0.08) !important;
  color: var(--color-primary) !important;
  padding-left: 18px !important;
}

/* ---- NAV-LINKS: cleaner underline timing ---- */
.nav-link {
  transition: color 0.25s ease !important;
}

/* ---- PAGE-HERO: Breadcrumb + Title Akzente ---- */
.page-hero-title {
  letter-spacing: -0.03em;
}
.page-breadcrumb {
  opacity: 0.85;
}

/* ---- PAGE-HERO-STAT: Glass-Badge ---- */
.page-hero-stat {
  background: rgba(255, 255, 255, 0.08) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%);
          backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 14px !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.page-hero-stat:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(12, 208, 255, 0.35) !important;
}
.page-hero-stat strong {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

/* ---- PAGE-HERO-BADGES (glass pills) ---- */
.page-hero-badges .tag,
.page-hero .tag {
  background: rgba(255, 255, 255, 0.08) !important;
  -webkit-backdrop-filter: blur(14px) saturate(160%);
          backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.page-hero-badges .tag:hover,
.page-hero .tag:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(12, 208, 255, 0.4) !important;
  transform: translateY(-1px);
}


/* ---- FORM INPUTS (Kontakt): Apple Focus Ring ---- */
.form-group input,
.form-group select,
.form-group textarea {
  border-radius: 12px !important;
  border: 1.5px solid var(--color-border) !important;
  padding: 13px 16px !important;
  font-size: 0.92rem !important;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease !important;
}
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: #c8c8c8 !important;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 4px rgba(12, 208, 255, 0.14) !important;
  background: white !important;
}
.form-group label {
  color: #333 !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  margin-bottom: 8px !important;
}
.contact-form-card {
  border-radius: 20px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1) !important;
}


/* ---- PROJECT-CARDS (kundenprojekte): Apple Lift ---- */
.project-card {
  border-radius: 16px !important;
  overflow: hidden !important;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    border-color 0.35s ease !important;
}
.project-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12) !important;
  border-color: rgba(12, 208, 255, 0.3) !important;
}
.project-card-img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.project-card:hover .project-card-img {
  transform: scale(1.04);
}
.tag-pill {
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
}
.tag-pill:hover {
  background: rgba(12, 208, 255, 0.08) !important;
  border-color: rgba(12, 208, 255, 0.4) !important;
  color: var(--color-primary) !important;
}


/* ---- FILTER-BUTTONS: Apple Pills ---- */
.filter-btn {
  border-radius: 999px !important;
  font-weight: 600 !important;
  padding: 9px 20px !important;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.filter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(12, 208, 255, 0.15);
  border-color: var(--color-primary) !important;
  color: var(--color-primary) !important;
}
.filter-btn.active {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
}
.filter-btn.active:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22) !important;
}


/* ---- STATS-ROW & counter values: tabular numbers ---- */
.stat-value,
.stat-number,
.fakt-wert,
.timeline-year,
.ts-val,
.tl-jahr {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}


/* ---- HERO-LIGHT: hellerer Overlay für Seiten mit wichtigem Motiv ---- */
.page-hero.hero-light .page-hero-overlay {
  background:
    linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 55%, rgba(0,0,0,0.15) 100%) !important;
}


/* ---- HERO-KOLLAGE (2x2 Bild-Raster als Hintergrund) ---- */
.page-hero-bg.hero-collage {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  background: #0a0a0f !important;
  animation: none !important;
  transform: none !important;
}
.hc-cell {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}
.hc-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95);
}
.page-hero.has-collage .page-hero-overlay {
  background:
    linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.35) 100%),
    linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.25) 100%) !important;
}


/* ---- TIMELINE: hover-highlight row (ohne Layout-Shift) ---- */
.timeline-item,
.tl-item {
  transition: background 0.25s ease;
  border-radius: 10px;
}
.timeline-item:hover,
.tl-item:hover {
  background: rgba(12, 208, 255, 0.03);
}


/* ---- FEATURE-CARDS (6-Grid, z.B. Unterseiten) ---- */
.feature-card {
  border-radius: 14px !important;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease !important;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(12, 208, 255, 0.3);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
}
.feature-tag {
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.feature-tag:hover {
  background: rgba(12, 208, 255, 0.08);
  border-color: rgba(12, 208, 255, 0.35);
  color: var(--color-primary);
}


/* ---- TECH-NOTE: subtle radius & shadow ---- */
.tech-note {
  border-radius: 12px !important;
  border-left-width: 4px !important;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.tech-note:hover {
  background: rgba(12, 208, 255, 0.04);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}


/* ---- COMPARE-TABLE: cleaner cols ---- */
.compare-col {
  border-radius: 16px !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.compare-col:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}
.compare-col.recommended {
  box-shadow:
    0 0 0 1px rgba(12, 208, 255, 0.3),
    0 10px 28px rgba(12, 208, 255, 0.08) !important;
}
.compare-col.recommended:hover {
  box-shadow:
    0 0 0 1px rgba(12, 208, 255, 0.5),
    0 20px 40px rgba(12, 208, 255, 0.14) !important;
}


/* ---- GALLERY-GRID: smooth lift statt hartem scale ---- */
.gallery-grid img {
  border-radius: 16px !important;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease !important;
}
.gallery-grid img:hover {
  transform: translateY(-3px) scale(1.01) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}


/* ---- CTA-CARD ---- */
.cta-card {
  border-radius: 16px !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.cta-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}


/* ---- TEAM-CARDS (ueber-uns + generisch) ---- */
.team-card,
.team-karte {
  border-radius: 16px !important;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease !important;
}
.team-card:hover,
.team-karte:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1) !important;
}
.team-card-img-wrap img,
.team-foto img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.team-card:hover .team-card-img-wrap img,
.team-karte:hover .team-foto img {
  transform: scale(1.04);
}

/* ueber-uns: .wert-karte, .auto-karte (inline classes dort) */
.wert-karte,
.auto-karte {
  border-radius: 16px !important;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease !important;
}
.wert-karte:hover,
.auto-karte:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}


/* ---- CONTACT-SECTION DETAILS ---- */
.contact-detail-icon {
  transition: transform 0.3s ease, background 0.3s ease;
}
.contact-detail:hover .contact-detail-icon {
  transform: scale(1.08);
  background: rgba(255,255,255,0.22) !important;
}


/* ---- GENERAL: bessere Fokus-Rings fürs Keyboard Navigation ---- */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: inherit;
}


/* ============================================================
   19. MOBILE POLISH – saubere Handy-Ansicht
   ============================================================ */

@media (max-width: 860px) {

  /* ---- Container padding enger ---- */
  .container { padding: 0 20px !important; }

  /* ---- Section-Padding kompakter ---- */
  .section { padding: 60px 0 !important; }

  /* ---- HERO (Startseite) ---- */
  .hero { min-height: 88vh; }
  .hero-content {
    margin-left: 0 !important;
    padding: 90px 20px 40px !important;
    max-width: 100% !important;
  }
  .hero-title {
    font-size: clamp(2.1rem, 8vw, 2.8rem) !important;
    line-height: 1.1;
  }
  .hero-subtitle { font-size: 0.95rem; margin-bottom: 22px; }
  .hero-badge { font-size: 0.74rem; padding: 5px 13px; margin-bottom: 18px; }
  .hero-tags { gap: 6px; margin-bottom: 24px; }
  .hero-tags .tag { font-size: 0.74rem; padding: 5px 11px; }
  .hero-actions { gap: 10px; width: 100%; }
  .hero-actions .btn {
    min-height: 44px;
    padding: 11px 22px;
    font-size: 0.88rem;
    flex: 1;
    justify-content: center;
    min-width: 0;
  }

  /* Ken-Burns langsamer auf Mobile (weniger Ablenkung) */
  .hero-bg, .page-hero-bg { animation-duration: 40s; }

  /* ---- PAGE-HERO (Unterseiten) ---- */
  .page-hero { min-height: 68vh; }
  .page-hero-content {
    padding: 96px 20px 40px !important;
    max-width: 100% !important;
  }
  .page-hero-title {
    font-size: clamp(1.8rem, 7vw, 2.4rem) !important;
    line-height: 1.15;
  }
  .page-hero-sub { font-size: 0.92rem; }
  .page-hero-badges { gap: 8px; }
  .page-hero-stat { padding: 10px 14px !important; }
  .page-hero-stat strong { font-size: 1.3rem !important; }
  .page-hero-stat span { font-size: 0.68rem !important; }

  /* ---- LEISTUNGEN / ALBAUF-Cards ---- */
  .card { padding: 22px 20px !important; border-radius: 14px !important; }
  .card-service .card-icon {
    width: 48px; height: 48px;
    font-size: 1.4rem;
    margin-bottom: 12px;
  }
  .card-step::before { font-size: 3.8rem; top: -4px; right: -2px; }
  .card-step::after { top: 22px; left: 22px; }

  /* Section-Label glow-dot auf Mobile verstecken (zu unruhig) */
  .section-label::before { display: none !important; }

  /* Ablauf connector-linie auf Mobile aus */
  .ablauf .cards-grid::before { display: none !important; }

  /* ---- FAQ ---- */
  .faq-cat-section { padding: 60px 20px !important; }
  .faq-cat-grid { gap: 28px !important; grid-template-columns: 1fr !important; }
  .faq-cat-head { margin-bottom: 28px !important; }
  .faq-cat-head h2 { font-size: clamp(1.6rem, 6vw, 2.1rem); }
  .faq-cat-col summary {
    padding: 16px 18px !important;
    font-size: 0.9rem;
    gap: 12px;
  }
  .faq-cat-col summary::after {
    width: 28px;
    height: 28px;
    background-size: 11px 1.5px, 1.5px 11px !important;
  }
  .faq-cat-col details .a {
    padding: 0 18px 18px !important;
    font-size: 0.85rem;
  }

  /* ---- CTA BANNER (Mobile) – Glass-Card, gestapelt ---- */
  .cta-banner { padding: 56px 20px !important; }
  .cta-inner {
    padding: 34px 26px 34px 30px !important;
    border-radius: 18px !important;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 22px !important;
    text-align: left !important;
  }
  .cta-inner::before {
    width: 2px !important;
    top: 14px !important;
    height: calc(100% - 28px) !important;
  }
  .cta-inner h2 {
    font-size: clamp(1.55rem, 6.5vw, 2rem) !important;
    line-height: 1.15;
    max-width: 100%;
  }
  .cta-inner .btn-outline-light {
    align-self: stretch;
    justify-content: center;
    width: 100%;
    padding: 13px 22px !important;
    font-size: 0.9rem !important;
  }

  /* ---- REVIEWS ---- */
  .greviews { padding: 56px 20px !important; }
  .greviews-inner { padding: 0 !important; }
  .greviews-head { margin-bottom: 28px !important; }
  .greviews-top {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 16px;
    margin-bottom: 24px !important;
  }
  .greviews-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .greview { padding: 20px !important; }

  /* ---- PARTNERS MARQUEE ---- */
  .partners { padding: 44px 0 !important; }
  .partners-head { margin-bottom: 22px !important; padding: 0 20px; }
  .partner img { max-height: 42px; }

  /* ---- FOOTER ---- */
  .footer-inner { padding: 0 24px !important; gap: 14px !important; }

  /* ---- EINBLICKE-Grid ---- */
  .einblicke-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 3px !important; }
  .einblicke-tile::after {
    font-size: 0.62rem;
    padding: 4px 10px;
    bottom: 10px;
    left: 10px;
    letter-spacing: 0.04em;
  }

  /* ---- WERKSTATT-SECTION (inline grid 1.3fr 1fr) ---- */
  .section .container > div[style*="grid-template-columns:1.3fr"],
  .section .container > div[style*="grid-template-columns: 1.3fr"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* ---- FEATURES-STRIP ---- */
  .features-strip { padding: 28px 0 !important; }
  .features-grid { gap: 16px !important; }
  .feature-item { padding: 6px 0; gap: 12px; }

  /* ---- CONTACT FORM ---- */
  .contact-section { padding: 56px 20px !important; }
  .contact-inner { gap: 32px !important; }
  .contact-info h2 { font-size: clamp(1.5rem, 6vw, 2rem) !important; }
  .contact-form-card { padding: 24px 20px !important; border-radius: 16px !important; }
  .form-row { grid-template-columns: 1fr !important; }
  /* iOS-Zoom bei Focus verhindern (font-size ≥16px) */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px !important;
    padding: 12px 14px !important;
  }

  /* ---- BUTTONS: bessere Touch-Targets ---- */
  .btn { min-height: 44px; }

  /* ---- CARDS-GRID Abstände ---- */
  .cards-grid { gap: 14px !important; }

  /* ---- FILTER-BAR ---- */
  .filter-bar {
    gap: 6px !important;
    margin-bottom: 24px !important;
    overflow-x: auto;
    flex-wrap: nowrap !important;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .filter-btn {
    padding: 7px 14px !important;
    font-size: 0.78rem !important;
    white-space: nowrap;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  /* ---- FLOAT-CONTACT ---- */
  .float-contact {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
  }
  .float-contact svg { width: 20px; height: 20px; }

  /* ---- STATS-ROW ---- */
  .stats-row { padding: 36px 0 !important; }
  .stat-value { font-size: 1.85rem !important; }

  /* ---- PAGE-BREADCRUMB ---- */
  .page-breadcrumb { font-size: 0.68rem; }

  /* ---- LEGAL PAGES (impressum/agb/datenschutz) ---- */
  .legal-page { padding: 96px 20px 60px !important; }
  .legal-page h1 { font-size: clamp(1.6rem, 6vw, 2.2rem) !important; }

  /* ---- ÜBER UNS inline-styles (.fakten-leiste, team-grid etc.) ---- */
  .fakten-leiste { grid-template-columns: repeat(2, 1fr) !important; }
  .fakt { padding: 20px 22px !important; }
  .fakt-wert { font-size: 1.6rem !important; }
  .team-grid, .auto-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .tl-item { grid-template-columns: 70px 1fr !important; gap: 18px !important; padding: 22px 0 !important; }
  .tl-jahr { font-size: 1.3rem !important; }

  /* ---- COMPARE TABLE ---- */
  .compare-table { grid-template-columns: 1fr !important; gap: 16px !important; }
  .compare-col { padding: 24px 20px !important; }
}


@media (max-width: 520px) {

  /* Hero auf Phone noch kompakter */
  .hero-content { padding-top: 76px !important; }
  .hero-title { font-size: clamp(1.9rem, 9vw, 2.4rem) !important; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; flex: 0 0 auto; }

  /* Hero-Stat-Badge versteckt (schon in main.css <960px) – sicherstellen */
  .hero-stat-badge { display: none !important; }

  /* Page Hero */
  .page-hero-content { padding-top: 80px !important; }

  /* FAQ title smaller */
  .faq-cat-head h2 { font-size: 1.55rem !important; }
  .faq-cat-col summary { font-size: 0.87rem; }

  /* CTA Banner h2 smaller */
  .cta-inner h2 { font-size: 1.55rem !important; }

  /* Project/Service-Cards Padding */
  .card { padding: 20px 18px !important; }
  .card-service h3 { font-size: 1rem; }
  .card-service p { font-size: 0.84rem; }

  /* Tags/Pills smaller */
  .tag-pill { font-size: 0.7rem; }

  /* Footer stacking clean */
  .footer-nav { gap: 14px !important; }
  .footer-nav a, .footer-copy, .footer-email { font-size: 0.78rem !important; }

  /* Einblicke labels noch kleiner */
  .einblicke-tile::after {
    font-size: 0.58rem;
    padding: 3px 8px;
    bottom: 8px;
    left: 8px;
  }

  /* Section titles */
  .section-title { font-size: clamp(1.5rem, 6vw, 2rem) !important; }
  .section-sub { font-size: 0.92rem; margin-bottom: 32px !important; }

  /* Partner logos kleiner */
  .partner img { max-height: 36px; }

  /* Stat Row in 1 col wenn zu eng */
  .stats-row { grid-template-columns: repeat(2, 1fr) !important; }
  .stat-value { font-size: 1.6rem !important; }
  .stat-desc { font-size: 0.76rem; }

  /* Timeline items */
  .tl-item { grid-template-columns: 60px 1fr !important; gap: 14px !important; }
  .tl-jahr { font-size: 1.15rem !important; }
  .tl-titel { font-size: 0.92rem !important; }
  .tl-desc { font-size: 0.8rem !important; }
}


/* ============================================================
   17. REDUCED MOTION – Respektiere System-Preferences
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .hero-bg,
  .page-hero-bg { animation: none; }
  .hero-title .text-primary::after,
  .page-hero-title .text-primary::after { animation: none; }
  .hero-stat-badge::before { animation: none; }
  .badge-dot { animation: none; }
  .section-label::before { animation: none; }
  .float-contact::before { animation: none; }
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
