/* =========================================================
   RS-Autoservice - Premium Design System (Vanilla CSS)
   Design read: Trust-first lokale Kfz-Werkstatt mit Premium-/
   Engineering-Anspruch. Dunkel-automotive, ein Orange-Akzent
   auf Anthrazit-Neutralen. Light + Dark Theme.
   Dials: VARIANCE 6 / MOTION 4 / DENSITY 4
   ========================================================= */

/* ---------- Selbst gehostete Schrift (DSGVO: kein CDN) ---------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("media/fonts/manrope-400.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("media/fonts/manrope-500.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("media/fonts/manrope-600.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("media/fonts/manrope-700.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("media/fonts/manrope-800.woff2") format("woff2");
}

/* =========================================================
   Design Tokens
   ========================================================= */
:root {
  /* Neutrale (kühl, technisch) - Light Theme */
  --bg: #eceef2;
  --bg-grad: radial-gradient(120% 90% at 100% 0%, #e3e7ee 0%, var(--bg) 46%);
  --surface: #ffffff;
  --surface-2: #f5f7fa;
  --surface-3: #eef1f5;
  --ink: #14181f;
  --ink-soft: #434b57;
  --muted: #6b7480;
  --line: rgba(20, 24, 31, 0.12);
  --line-strong: rgba(20, 24, 31, 0.2);

  /* Marken-Akzent (ein Orange, projektweit gelockt) */
  --accent: #e8491d;
  --accent-strong: #c93c14;
  --accent-soft: rgba(232, 73, 29, 0.12);
  --on-accent: #ffffff;

  /* Feste dunkle Flächen (Hero/Footer-Kontext) */
  --night: #0b0e13;
  --night-2: #11151d;
  --on-night: #eef1f5;
  --on-night-soft: #aab3c0;

  /* Radius-System: Buttons/Badges = pill, Cards = 18px, Inputs = 10px */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-pill: 999px;

  /* Tinted shadows (kein reines Schwarz) */
  --shadow-sm: 0 2px 6px rgba(16, 22, 33, 0.06), 0 1px 2px rgba(16, 22, 33, 0.08);
  --shadow-md: 0 14px 34px rgba(16, 22, 33, 0.1);
  --shadow-lg: 0 30px 70px rgba(16, 22, 33, 0.16);

  /* Layout */
  --maxw: 1200px;
  --gap: clamp(1rem, 2.4vw, 1.6rem);
  --section-y: clamp(3.5rem, 7vw, 6.5rem);
  --header-h: 72px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="dark"] {
  --bg: #0b0e13;
  --bg-grad: radial-gradient(120% 90% at 100% 0%, #131925 0%, var(--bg) 50%);
  --surface: #12161d;
  --surface-2: #161b24;
  --surface-3: #1b212c;
  --ink: #eef1f5;
  --ink-soft: #c2cad5;
  --muted: #8a93a0;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --accent: #ff6a3d;
  --accent-strong: #ff5722;
  --accent-soft: rgba(255, 106, 61, 0.16);
  --on-accent: #1a0d07;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 34px 80px rgba(0, 0, 0, 0.6);
}

/* =========================================================
   Reset & Base
   ========================================================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-grad);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover,
a:focus-visible {
  color: var(--accent-strong);
}

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

h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* =========================================================
   Layout-Utilities
   ========================================================= */
.container {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

.section-head {
  max-width: 56ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section-head.center .eyebrow {
  justify-content: center;
}

h2.section-title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
}

.section-lead {
  margin-top: 1rem;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 60ch;
}
.section-head.center .section-lead {
  margin-inline: auto;
}

/* =========================================================
   Buttons (pill)
   ========================================================= */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--on-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover,
.btn:focus-visible {
  background: var(--accent-strong);
  color: var(--on-accent);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px var(--accent-soft);
}
.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  --btn-bg: var(--surface);
  background: var(--surface);
  color: var(--ink);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

/* Auf dunklem Grund (Hero) */
.on-dark .btn-ghost {
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.42);
}
.on-dark .btn-ghost:hover,
.on-dark .btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}

.btn-block {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--accent);
}
.text-link i {
  transition: transform 0.2s var(--ease);
}
.text-link:hover i,
.text-link:focus-visible i {
  transform: translateX(4px);
}

/* =========================================================
   Header / Navigation
   ========================================================= */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: color-mix(in srgb, var(--night) 90%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-sm);
}

.navbar {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand img {
  height: 40px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.9rem);
}
.nav-links a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--nav-fg, #f1f3f7);
  padding-block: 0.3rem;
  transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

/* Header ist über Hero transparent und beim Scrollen dunkel: Nav-Links bleiben hell. */

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  border: 1px solid var(--tg-border, rgba(255, 255, 255, 0.35));
  background: transparent;
  color: var(--nav-fg, #f1f3f7);
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.15s var(--ease), color 0.2s var(--ease);
}
.header.is-scrolled .theme-toggle {
  --tg-border: rgba(255, 255, 255, 0.35);
}
.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle .bar {
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--nav-fg, #f1f3f7);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: clamp(3rem, 8vh, 6rem);
  color: #fff;
  background: var(--night);
  overflow: hidden;
}
.hero__media,
.hero__media video,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      105deg,
      rgba(7, 9, 13, 0.92) 0%,
      rgba(7, 9, 13, 0.72) 40%,
      rgba(7, 9, 13, 0.4) 100%
    ),
    linear-gradient(0deg, rgba(7, 9, 13, 0.85) 0%, transparent 45%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
}
.hero__content {
  max-width: 46rem;
}
.hero .eyebrow {
  color: #ff8a5f;
}
.hero .eyebrow::before {
  background: #ff8a5f;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.3rem);
  letter-spacing: -0.03em;
}
.hero h1 .accent {
  color: var(--accent);
}
.hero__lead {
  margin-top: 1.3rem;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: rgba(255, 255, 255, 0.86);
  max-width: 40ch;
}
.hero__cta {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Hero Vertrauens-Punkte (unter den CTAs, kompakt) */
.hero__trust {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}
.hero__trust i {
  color: var(--accent);
}

/* =========================================================
   Trust-Strip (Zertifizierungen + Partner) - unter Hero
   ========================================================= */
.trust {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2rem, 4vw, 2.8rem);
}
.trust__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.trust__certs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
}
.cert-badge i {
  color: var(--accent);
}
.trust__partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.7rem, 2vw, 1.2rem);
}
/* Logos auf weißen "Chips" - in hell und dunkel gleichermaßen lesbar
   (viele Partner-PNGs haben einen weißen Hintergrund). */
.trust__partners img {
  height: 50px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  padding: 9px 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.trust__partners img:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* =========================================================
   Über uns (Split)
   ========================================================= */
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about__media {
  position: relative;
}
.about__media img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
}
.about__badge {
  position: absolute;
  left: -1.2rem;
  bottom: -1.2rem;
  background: var(--accent);
  color: var(--on-accent);
  padding: 1.1rem 1.3rem;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  max-width: 14rem;
}
.about__badge strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1;
}
.about__badge span {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.92;
}
.about__text p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.about__points {
  list-style: none;
  margin-top: 1.6rem;
  display: grid;
  gap: 0.9rem;
}
.about__points li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-weight: 600;
  color: var(--ink);
}
.about__points i {
  margin-top: 0.2rem;
  color: var(--accent);
  flex-shrink: 0;
}

/* =========================================================
   Leistungen (Bento-Grid)
   ========================================================= */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.service {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
  overflow: hidden;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.service:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service:hover::before {
  transform: scaleX(1);
}
.service__icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
}
.service h3 {
  font-size: 1.18rem;
  margin-bottom: 0.5rem;
}
.service p {
  color: var(--muted);
  font-size: 0.95rem;
}
/* Featured-Tile (Bento-Rhythmus: erstes Element breiter + dunkel) */
.service--feature {
  grid-column: span 2;
  background: var(--night);
  border-color: transparent;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
  background-image: linear-gradient(135deg, rgba(232, 73, 29, 0.22), transparent 60%);
}
.service--feature h3 {
  color: #fff;
  font-size: 1.5rem;
}
.service--feature p {
  color: rgba(255, 255, 255, 0.78);
}
.service--feature .service__icon {
  background: rgba(255, 255, 255, 0.1);
  color: #ff8a5f;
}

/* =========================================================
   Elektro-Experte (dunkle Highlight-Sektion, Split)
   ========================================================= */
.ev {
  position: relative;
  background: var(--night);
  color: var(--on-night);
  border-radius: 0;
}
.ev__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.ev .eyebrow {
  color: #ff8a5f;
}
.ev .eyebrow::before {
  background: #ff8a5f;
}
.ev h2 {
  color: #fff;
}
.ev__text p {
  color: var(--on-night-soft);
  margin-bottom: 1rem;
}
.ev__levels {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}
.ev__levels span {
  padding: 0.5rem 0.95rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  font-weight: 700;
}
.ev__media {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 0.9rem;
}
.ev__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.ev__media img:first-child {
  grid-row: span 2;
}

/* =========================================================
   Referenzen / Projekte
   ========================================================= */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.project {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.project:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.project__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}
.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.project:hover .project__media img {
  transform: scale(1.06);
}
.project__tag {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--night) 78%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.project__body {
  padding: 1.4rem 1.5rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project__body h3 {
  font-size: 1.18rem;
  margin-bottom: 0.5rem;
}
.project__body p {
  color: var(--muted);
  font-size: 0.94rem;
  flex: 1;
}
.project__date {
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

/* =========================================================
   Bewertungen
   ========================================================= */
.reviews {
  background: var(--surface-2);
  border-block: 1px solid var(--line);
}
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

/* Bewertungen als 3D-Coverflow-Karussell */
.reviews__carousel {
  position: relative;
}
.coverflow {
  width: 100%;
  overflow: hidden;
  perspective: 1400px;
}
.coverflow__stage {
  position: relative;
  height: var(--cf-h, 320px);
  transform-style: preserve-3d;
  touch-action: pan-y; /* horizontale Wischgesten dem Skript überlassen */
}
.coverflow__stage > .review {
  position: absolute;
  top: 0;
  left: 50%;
  width: clamp(280px, 82vw, 380px);
  height: 100%;
  margin: 0;
  transform: translateX(-50%);
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease), box-shadow 0.3s var(--ease);
  will-change: transform, opacity;
  cursor: pointer;
}
.coverflow__stage > .review.is-active {
  cursor: default;
  box-shadow: var(--shadow-lg);
}
.coverflow__stage > .review blockquote p {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reviews__nav {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.4rem;
}
.carousel-btn {
  width: 46px;
  height: 46px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.carousel-btn:hover,
.carousel-btn:focus-visible {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}
@media (max-width: 600px) {
  .coverflow__stage {
    --cf-h: 340px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .coverflow__stage > .review {
    transition: opacity 0.2s linear;
  }
}
.review {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.stars {
  display: inline-flex;
  gap: 0.15rem;
  color: var(--accent);
  font-size: 0.95rem;
}
.review p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  flex: 1;
}
.review__author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}
.review__avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}
.review__author strong {
  display: block;
  font-size: 0.95rem;
}
.review__author span {
  font-size: 0.84rem;
  color: var(--muted);
}
.reviews__summary {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.reviews__summary .stars {
  font-size: 1.05rem;
}

/* =========================================================
   Kontakt / Termin anfragen
   ========================================================= */
.contact__grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.info-card {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.info-card__icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}
.info-card h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.info-card p,
.info-card a {
  font-size: 0.96rem;
  color: var(--ink-soft);
}
.info-card a:hover {
  color: var(--accent);
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-md);
}
.form-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}
.form-card > p.form-card__lead {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 1.4rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-field.full {
  grid-column: 1 / -1;
}
.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-field textarea {
  resize: vertical;
  min-height: 120px;
}
.form-consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-top: 0.2rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.form-consent input {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.form-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.9rem;
}
.form-actions {
  margin-top: 1.3rem;
}
/* Honeypot - visuell entfernt, für Bots sichtbar */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Alerts */
.form-alert {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-sm);
  margin-bottom: 1.3rem;
  font-size: 0.94rem;
}
.form-alert i {
  margin-top: 0.15rem;
}
.form-alert--success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #15803d;
}
.form-alert--error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #b91c1c;
}
html[data-theme="dark"] .form-alert--success {
  color: #4ade80;
}
html[data-theme="dark"] .form-alert--error {
  color: #fca5a5;
}

.map-embed {
  margin-top: 0.4rem;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  line-height: 0;
}
.map-embed iframe {
  width: 100%;
  height: 220px;
  border: 0;
  filter: grayscale(0.2);
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--night);
  color: var(--on-night-soft);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__brand img {
  height: 42px;
  margin-bottom: 1rem;
}
.footer__brand p {
  max-width: 34ch;
  font-size: 0.94rem;
}
.footer__col h4 {
  color: #fff;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer__col ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}
.footer__col a {
  color: var(--on-night-soft);
  font-size: 0.95rem;
}
.footer__col a:hover {
  color: var(--accent);
}
.footer__social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.15s var(--ease);
}
.footer__social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.5rem 2rem;
  font-size: 0.86rem;
}
.footer__bottom nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* Back-to-top */
.back-to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: 46px;
  height: 46px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
    background 0.2s var(--ease);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--accent-strong);
  color: var(--on-accent);
  transform: translateY(-3px);
}

/* =========================================================
   Scroll-Reveal
   ========================================================= */
/* WhatsApp-Button (schwebend, site-weit) */
.whatsapp-float {
  position: fixed;
  left: 1.4rem;
  bottom: 1.4rem;
  width: 56px;
  height: 56px;
  border-radius: var(--r-pill);
  background: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: var(--shadow-md);
  z-index: 900;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid #25d366;
  opacity: 0.45;
  animation: wa-pulse 2.4s ease-out infinite;
}
.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-3px) scale(1.05);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { opacity: 0; }
}
@media (max-width: 600px) {
  .whatsapp-float { width: 52px; height: 52px; font-size: 1.55rem; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float::after { animation: none; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .services__grid,
  .projects__grid,
  .reviews__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service--feature {
    grid-column: span 2;
  }
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 64px;
  }
  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: color-mix(in srgb, var(--surface) 97%, transparent);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 1.25rem 1rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav-links.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav-links a {
    --nav-fg: var(--ink);
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .nav-links a::after {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  /* Header über Hero hat helle Icons; Mobile-Menü offen -> Theme-Farben */
  .about__grid,
  .ev__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .ev__media {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .ev__media img:first-child {
    grid-row: auto;
    grid-column: span 2;
    aspect-ratio: 16/9;
  }
  .trust__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .trust__partners {
    justify-content: center;
  }
  .about__badge {
    left: 1rem;
    bottom: 1rem;
  }
}

@media (max-width: 600px) {
  .services__grid,
  .projects__grid,
  .reviews__grid {
    grid-template-columns: 1fr;
  }
  .service--feature {
    grid-column: span 1;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .footer__top {
    grid-template-columns: 1fr;
  }
  .hero__cta .btn {
    width: 100%;
  }
}

/* =========================================================
   Solider Header (Seiten ohne Hero) + Rechtsseiten-Prose
   ========================================================= */
.header.is-solid {
  background: color-mix(in srgb, var(--night) 92%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-sm);
}
.header.is-solid .theme-toggle {
  --tg-border: rgba(255, 255, 255, 0.35);
}

.legal {
  padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 3.5rem));
  padding-bottom: var(--section-y);
}
.legal__head {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.legal__head h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}
.legal__head p {
  color: var(--muted);
  margin-top: 0.6rem;
}
.prose {
  max-width: 78ch;
  color: var(--ink-soft);
}
.prose h2 {
  font-size: 1.4rem;
  margin: 2.2rem 0 0.8rem;
  color: var(--ink);
}
.prose h3 {
  font-size: 1.08rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--ink);
}
.prose p {
  margin-bottom: 1rem;
}
.prose ul {
  margin: 0 0 1.1rem 1.3rem;
}
.prose li {
  margin-bottom: 0.45rem;
}
.prose a {
  word-break: break-word;
}
.prose strong {
  color: var(--ink);
}
.legal__note {
  margin-top: 2.5rem;
  padding: 1rem 1.2rem;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.legal__note strong {
  color: var(--ink);
}

/* Projekt-Detail */
.pd-cover {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}
.pd-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.pd-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}

/* =========================================================
   Reduced Motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
