/* ==========================================================================
   K-tec Elektrotechnik — kramer-tec.at
   Dark warm-gray craftsman theme · signature red accent · M PLUS Rounded 1c
   ========================================================================== */

:root {
  --dark:        #443E3E;
  --dark-deep:   #2E2A2A;
  --dark-deeper: #241F1F;
  --light:       #F5F5F5;
  --accent:      #E8453A;
  --accent-dark: #B7262D;
  --gray:        #797879;
  --gray-soft:   #A8A4A4;

  --font: "M PLUS Rounded 1c", system-ui, sans-serif;

  --radius-s: 6px;
  --radius-m: 6px;
  --radius-l: 6px;

  --container: 1280px;
  --pad-x: clamp(1.25rem, 4vw, 3rem);
  --section-gap: clamp(6rem, 12vw, 10rem);

  --header-h: 84px;

  --ease: cubic-bezier(.22, .8, .3, 1);
  --t-fast: 220ms var(--ease);
  --t-med: 420ms var(--ease);

  --shadow-card: 0 24px 60px -24px rgba(0, 0, 0, .55);
}

/* ---------- Reset / base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--light);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(232, 69, 58, .07), transparent 60%),
    radial-gradient(900px 600px at -10% 35%, rgba(0, 0, 0, .35), transparent 60%),
    var(--dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--light); }

button { font-family: inherit; cursor: pointer; }

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

::selection { background: var(--accent); color: var(--light); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--dark-deep); }
::-webkit-scrollbar-thumb { background: #5d5656; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dark); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: calc(var(--section-gap) / 2); position: relative; }

/* ---------- Grain atmosphere ---------- */

.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 2000;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal[data-reveal-delay="1"] { transition-delay: 120ms; }
.reveal[data-reveal-delay="2"] { transition-delay: 240ms; }
.reveal[data-reveal-delay="3"] { transition-delay: 360ms; }
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .85em 2em;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: .02em;
  border: 0;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast);
}

.btn--primary {
  color: var(--light);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 12px 28px -10px rgba(232, 69, 58, .55);
}
.btn--primary:hover {
  color: var(--light);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -10px rgba(232, 69, 58, .7);
}
.btn--primary:active { transform: translateY(0); }

.floating-appointment {
  position: fixed;
  right: max(var(--pad-x), env(safe-area-inset-right));
  bottom: max(1.15rem, env(safe-area-inset-bottom));
  z-index: 95;
  white-space: nowrap;
}
.floating-appointment:hover {
  transform: translateY(-2px);
}
.floating-appointment:active {
  transform: none;
}

.btn--ghost {
  color: var(--light);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(245, 245, 245, .35);
}
.btn--ghost:hover {
  background: var(--accent);
  box-shadow: inset 0 0 0 1.5px var(--accent);
  transform: translateY(-2px);
}

/* ---------- Section heading ---------- */

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.section-head__index {
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .12em;
  color: var(--accent);
  position: relative;
  top: -.2em;
}
.section-head__index::after {
  content: "";
  display: inline-block;
  width: 34px;
  height: 2px;
  background: var(--accent);
  margin-left: .65rem;
  vertical-align: middle;
  border-radius: 6px;
}

.section-head__title {
  font-size: clamp(1.9rem, 4.2vw, 2.75rem);
  font-weight: 700;
  margin: 0;
}

/* ---------- Prose ---------- */

.prose p { color: var(--gray-soft); max-width: 65ch; }
.prose p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Decorations — circuit traces, powerline dividers, solder-dot grids
   ========================================================================== */

/* Circuit traces (hero corners) */

.hero__circuit {
  position: absolute;
  width: min(340px, 36vw);
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.hero__circuit--tr { top: calc(var(--header-h) + 28px); right: 0; }
.hero__circuit--bl { bottom: 28px; left: 0; transform: rotate(180deg); }

.circuit-trace {
  stroke: rgba(245, 245, 245, .2);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.circuit-pad {
  fill: none;
  stroke: rgba(245, 245, 245, .32);
  stroke-width: 1.5;
}
.circuit-pad--live {
  fill: var(--accent);
  stroke: none;
  opacity: .85;
}
.circuit-pulse {
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 36 420;
  stroke-dashoffset: 456;
  animation: circuitPulse 6.5s linear infinite;
  filter: drop-shadow(0 0 6px rgba(232, 69, 58, .75));
}
.hero__circuit--bl .circuit-pulse { animation-delay: 3.25s; }
@keyframes circuitPulse { to { stroke-dashoffset: 0; } }

/* Powerline section divider — a wire with a travelling spark */

.flowline {
  position: relative;
  max-width: min(560px, 70vw);
  height: 2px;
  margin-inline: auto;
  border-radius: 6px;
  background: linear-gradient(90deg, transparent, rgba(245, 245, 245, .13) 18% 82%, transparent);
  overflow: hidden;
}
.flowline::after {
  content: "";
  position: absolute;
  top: 0;
  left: -15%;
  width: 52px;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  animation: flowSpark 7s linear infinite;
}
@keyframes flowSpark {
  0%   { left: -15%; opacity: 0; }
  8%   { opacity: .9; }
  42%  { opacity: .9; }
  50%  { left: 100%; opacity: 0; }
  100% { left: 100%; opacity: 0; }
}
.flowline__node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--dark);
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  z-index: 1;
}

/* Solder-dot grids peeking out behind media frames */

.split__media,
.emob__media { position: relative; }

.split__media::before,
.emob__media::before {
  content: "";
  position: absolute;
  top: -42px;
  right: -42px;
  width: 210px;
  height: 210px;
  background-image: radial-gradient(rgba(232, 69, 58, .55) 1.5px, transparent 1.6px);
  background-size: 19px 19px;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent);
  mask-image: radial-gradient(closest-side, #000 30%, transparent);
  opacity: .4;
  pointer-events: none;
  z-index: -1;
}
.split--reverse .split__media::before {
  right: auto;
  left: -42px;
  top: auto;
  bottom: -42px;
}
.emob__media::before {
  top: auto;
  bottom: -46px;
  right: -46px;
}

@media (max-width: 900px) {
  /* stacked layouts: keep the dots inside the viewport */
  .split__media::before,
  .split--reverse .split__media::before,
  .emob__media::before {
    width: 150px;
    height: 150px;
    top: auto;
    bottom: -28px;
    left: auto;
    right: -16px;
  }
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  transition: background var(--t-med), box-shadow var(--t-med);
}

.site-header.is-scrolled {
  background: rgba(36, 31, 31, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(245, 245, 245, .07), 0 18px 40px -28px rgba(0, 0, 0, .7);
}

.site-header__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-header__logo img {
  width: 89px;
  height: auto;
  transition: transform var(--t-fast);
}
.site-header__logo:hover img { transform: scale(1.04); }

.site-nav__list {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: .4em 0;
  color: var(--light);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .01em;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 6px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-fast);
}
.site-nav__link:hover { color: var(--light); }
.site-nav__link:hover::after,
.site-nav__link.is-active::after { transform: scaleX(1); }
.site-nav__link.is-active { color: var(--light); }

/* Burger */

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 10px;
  background: transparent;
  border: 0;
  z-index: 120;
}
.burger__line {
  display: block;
  height: 2.5px;
  width: 100%;
  border-radius: 6px;
  background: var(--light);
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.burger.is-open .burger__line:nth-child(1) { transform: translateY(8.5px) rotate(45deg); background: var(--accent); }
.burger.is-open .burger__line:nth-child(2) { opacity: 0; }
.burger.is-open .burger__line:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); background: var(--accent); }

@media (max-width: 1100px) {
  .burger { display: flex; }

  .site-nav {
    position: fixed;
    inset: 0;
    background: rgba(36, 31, 31, .96);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-med), visibility var(--t-med);
    z-index: 110;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }

  .site-nav__list {
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    text-align: center;
  }
  .site-nav__link {
    font-size: 1.5rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 400ms var(--ease), transform 400ms var(--ease);
  }
  .site-nav.is-open .site-nav__link { opacity: 1; transform: none; }
  .site-nav.is-open li:nth-child(1) .site-nav__link { transition-delay: 60ms; }
  .site-nav.is-open li:nth-child(2) .site-nav__link { transition-delay: 110ms; }
  .site-nav.is-open li:nth-child(3) .site-nav__link { transition-delay: 160ms; }
  .site-nav.is-open li:nth-child(4) .site-nav__link { transition-delay: 210ms; }
  .site-nav.is-open li:nth-child(5) .site-nav__link { transition-delay: 260ms; }
  .site-nav.is-open li:nth-child(6) .site-nav__link { transition-delay: 310ms; }
  .site-nav.is-open li:nth-child(7) .site-nav__link { transition-delay: 360ms; }
  .site-nav.is-open li:nth-child(8) .site-nav__link { transition-delay: 410ms; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; z-index: -1; }

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(36, 31, 31, .55) 0%, rgba(36, 31, 31, .25) 40%, rgba(68, 62, 62, .92) 100%),
    radial-gradient(80% 60% at 50% 45%, transparent 0%, rgba(0, 0, 0, .45) 100%);
}

.hero__content {
  text-align: center;
  padding-inline: var(--pad-x);
  animation: heroIn 1100ms var(--ease) both 150ms;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(34px); }
  to   { opacity: 1; transform: none; }
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1.2rem;
  font-weight: 500;
  font-size: clamp(.95rem, 1.6vw, 1.2rem);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--light);
}

.spark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(232, 69, 58, .6);
  animation: sparkPulse 2.4s ease-out infinite;
}
@keyframes sparkPulse {
  0%   { box-shadow: 0 0 0 0 rgba(232, 69, 58, .6); }
  70%  { box-shadow: 0 0 0 14px rgba(232, 69, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 69, 58, 0); }
}

.hero__title {
  margin: 0;
  font-size: clamp(2.75rem, 9vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.05;
  text-shadow: 0 10px 50px rgba(0, 0, 0, .5);
}

.hero__title-accent {
  color: var(--accent);
  text-shadow: 0 0 60px rgba(232, 69, 58, .45), 0 10px 50px rgba(0, 0, 0, .5);
}

.hero__scrollcue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 56px;
  display: grid;
  justify-items: center;
}
.hero__scrollcue-line {
  width: 2px;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(180deg, transparent, var(--accent));
  animation: cueDrop 1.8s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cueDrop {
  0%   { transform: scaleY(0); opacity: 0; }
  35%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(18px); opacity: 0; }
}

/* ==========================================================================
   Services slider
   ========================================================================== */

.services__slider {
  position: relative;
  max-width: calc(var(--container) + 8rem);
  margin-inline: auto;
  padding-inline: clamp(3.25rem, 7vw, 6rem);
  overflow: hidden;
}

.services .swiper { overflow: visible; padding-block: 1rem 3.2rem; }

.service-card {
  background: linear-gradient(165deg, #4E4747 0%, var(--dark-deep) 70%);
  border: 1px solid rgba(245, 245, 245, .07);
  border-radius: var(--radius-l);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--t-med), border-color var(--t-med);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark) 55%, transparent);
  opacity: 0;
  transition: opacity var(--t-med);
}

.swiper-slide { height: auto; opacity: .35; transition: opacity var(--t-med); }
.swiper-slide-active { opacity: 1; }
.swiper-slide-active .service-card { border-color: rgba(232, 69, 58, .35); }
.swiper-slide-active .service-card::before { opacity: 1; }

.service-card__title {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 700;
  margin: 0;
}

.service-card__text { flex: 1; }
.service-card__text p {
  color: var(--gray-soft);
  font-size: .98rem;
  font-weight: 300;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card__more { align-self: flex-start; }

.swiper-pagination { bottom: 0 !important; }
.swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  background: var(--gray);
  opacity: .6;
  transition: all var(--t-fast);
}
.swiper-pagination-bullet-active {
  background: var(--accent);
  opacity: 1;
  width: 26px;
  border-radius: 6px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(245, 245, 245, .25);
  background: rgba(36, 31, 31, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.slider-arrow::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 12px;
  border-right: 2.5px solid var(--light);
  border-top: 2.5px solid var(--light);
  transform: rotate(45deg) translate(-2px, 2px);
}
.slider-arrow--prev { left: .4rem; }
.slider-arrow--prev::after { transform: rotate(-135deg) translate(-2px, 2px); }
.slider-arrow--next { right: .4rem; }
.slider-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.06);
}

/* ==========================================================================
   Split sections (Profil / Beleuchtungstechnik)
   ========================================================================== */

.split__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.split--reverse .split__grid > .split__text { order: 2; }
.split--reverse .split__grid > .split__media { order: 1; }

.split__text .btn { margin-top: 1.8rem; }

.media-frame {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(245, 245, 245, .08);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(245, 245, 245, .06), inset 0 -60px 80px -50px rgba(36, 31, 31, .8);
  pointer-events: none;
}
.media-frame video,
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--tall { aspect-ratio: 4 / 4.6; }

@media (max-width: 900px) {
  .split__grid { grid-template-columns: 1fr; }
  .split--reverse .split__grid > .split__text { order: 1; }
  .split--reverse .split__grid > .split__media { order: 2; }
}

/* ==========================================================================
   E-Mobilität — numbered list
   ========================================================================== */

.emob__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.rules {
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.4rem;
}

.rules__item {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 1.1rem 1.5rem;
  border-radius: var(--radius-m);
  background: rgba(36, 31, 31, .45);
  border: 1px solid rgba(245, 245, 245, .06);
  transition: border-color var(--t-fast), transform var(--t-fast), background var(--t-fast);
}
.rules__item:hover {
  border-color: rgba(232, 69, 58, .45);
  background: rgba(36, 31, 31, .7);
  transform: translateX(6px);
}

.rules__index {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  min-width: 1.4ch;
  text-align: center;
}

.rules__text h3 { font-size: 1.15rem; margin-bottom: .2em; }
.rules__text p { color: var(--gray-soft); font-weight: 300; font-size: .95rem; margin: 0; }

@media (max-width: 900px) {
  .emob__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Brand statement (watermark logo)
   ========================================================================== */

.statement {
  overflow: hidden;
  padding-block: var(--section-gap);
  background: linear-gradient(180deg, transparent, rgba(36, 31, 31, .5) 18% 82%, transparent);
}

.statement__watermark {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%) rotate(-6deg);
  width: min(62vw, 760px);
  opacity: .07;
  pointer-events: none;
  user-select: none;
}

.statement__inner { position: relative; }

.statement__prose p {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 300;
  max-width: 56ch;
}

/* ==========================================================================
   Accordion
   ========================================================================== */

.accordion { margin-top: 1.8rem; display: grid; gap: .8rem; }

.accordion__item {
  border: 1px solid rgba(245, 245, 245, .08);
  border-radius: var(--radius-m);
  background: rgba(36, 31, 31, .45);
  overflow: hidden;
  transition: border-color var(--t-med), background var(--t-med);
}
.accordion__item.is-open {
  border-color: rgba(232, 69, 58, .4);
  background: rgba(36, 31, 31, .75);
}

.accordion__heading { margin: 0; }

.accordion__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  width: 100%;
  padding: 1.15rem 1.5rem;
  background: transparent;
  border: 0;
  color: var(--light);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  line-height: 1.45;
}

.accordion__icon {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--gray);
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-med);
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--light);
  border-radius: 6px;
  transition: transform var(--t-med), background var(--t-fast);
}
.accordion__icon::before { width: 12px; height: 2px; }
.accordion__icon::after { width: 2px; height: 12px; }

.accordion__item.is-open .accordion__icon {
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(180deg);
}
.accordion__item.is-open .accordion__icon::after { transform: scaleY(0); }

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-med);
}
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__panel > .accordion__body { overflow: hidden; }
.accordion__body { padding: 0 1.5rem; }
.accordion__item.is-open .accordion__body { padding-bottom: 1.3rem; }
.accordion__body p { font-size: .95rem; font-weight: 300; }

/* ==========================================================================
   Reviews
   ========================================================================== */

.reviews {
  padding-top: calc(var(--section-gap) / 2);
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.6rem);
}

.review-card {
  min-height: 210px;
  padding: clamp(1.35rem, 2.4vw, 1.75rem);
  border-radius: var(--radius-m);
  background: linear-gradient(160deg, rgba(78, 71, 71, .72), rgba(36, 31, 31, .9));
  border: 1px solid rgba(245, 245, 245, .08);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
  transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 69, 58, .4);
  background: linear-gradient(160deg, rgba(78, 71, 71, .9), rgba(36, 31, 31, .96));
}

.review-card__top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.review-card__avatar {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
}

.review-card__avatar--purple { background: #7E4BD3; }
.review-card__avatar--cyan { background: #19B7C7; }
.review-card__avatar--blue { background: #2380D7; }

.review-card__name {
  font-size: 1.05rem;
  margin: 0 .3rem .2rem 0;
  color: var(--light);
}

.review-card__source,
.review-card__date {
  margin: 0;
  color: var(--gray-soft);
  font-size: .9rem;
  line-height: 1.45;
}

.review-card__rating {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--light);
  font-weight: 800;
}

.review-card__stars {
  color: var(--accent);
  letter-spacing: .08em;
  font-size: 1rem;
}

.review-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.55em;
  margin-left: .45rem;
  padding: .15rem .45rem;
  border-radius: 6px;
  background: rgba(245, 245, 245, .12);
  color: var(--light);
  font-size: .72rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  .reviews__grid { grid-template-columns: 1fr; }
  .review-card { min-height: auto; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  margin-top: calc(var(--section-gap) / 2);
  background: var(--dark-deeper);
  border-top: 1px solid rgba(245, 245, 245, .07);
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(420px, 50vw);
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.site-footer__inner {
  display: grid;
  gap: clamp(2.25rem, 5vw, 3.5rem);
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(1.8rem, 4vw, 2.4rem);
}

.site-footer__info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.site-footer__contact h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: .4em;
}
.site-footer__contact {
  font-style: normal;
}
.site-footer__contact p {
  margin: 0 0 .15em;
  color: var(--gray-soft);
  font-weight: 300;
}
.site-footer__contact a {
  color: var(--gray-soft);
}
.site-footer__contact a:hover {
  color: var(--light);
}

.site-footer__legal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .75rem clamp(1.25rem, 3vw, 2rem);
  border-top: 1px solid rgba(245, 245, 245, .1);
  padding-top: clamp(1rem, 2.5vw, 1.35rem);
}

.legal-link {
  display: inline-block;
  background: transparent;
  border: 0;
  padding: .2em 0;
  color: var(--light);
  font-size: .92rem;
  font-weight: 500;
  position: relative;
}
.legal-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(.35);
  transform-origin: left;
  transition: transform var(--t-fast);
  border-radius: 6px;
}
.legal-link:hover::after { transform: scaleX(1); }

@media (max-width: 900px) {
  .site-footer__info {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .site-footer__legal { justify-content: center; }
}

/* ==========================================================================
   Modals (native <dialog>)
   ========================================================================== */

.modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(720px, calc(100vw - 2.5rem));
  width: 100%;
  max-height: 85vh;
  margin: auto;
}

.modal--legal { max-width: min(860px, calc(100vw - 2.5rem)); }

.modal::backdrop {
  background: rgba(20, 17, 17, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal[open] .modal__surface { animation: modalIn 360ms var(--ease) both; }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(26px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

.modal__surface {
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  background: linear-gradient(170deg, #3A3434, var(--dark-deep) 60%);
  border: 1px solid rgba(245, 245, 245, .1);
  border-radius: var(--radius-l);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .8);
  overflow: hidden;
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 1.9rem;
  border-bottom: 1px solid rgba(245, 245, 245, .08);
  background: rgba(36, 31, 31, .6);
}

.modal__title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
}
.modal__title::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: .65rem;
  vertical-align: .12em;
}

.modal__close {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(245, 245, 245, .25);
  background: transparent;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.modal__close::before,
.modal__close::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 15px;
  height: 2px;
  border-radius: 6px;
  background: var(--light);
}
.modal__close::before { transform: rotate(45deg); }
.modal__close::after { transform: rotate(-45deg); }
.modal__close:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(90deg);
}

.modal__body {
  padding: 1.7rem 1.9rem 2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal__body::-webkit-scrollbar { width: 8px; }

.appointment-form {
  display: grid;
  gap: 1.1rem;
}

.appointment-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: .45rem;
  color: var(--light);
  font-weight: 700;
  font-size: .95rem;
  min-width: 0;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(245, 245, 245, .14);
  border-radius: 6px;
  background: rgba(36, 31, 31, .72);
  color: var(--light);
  padding: .85rem 1rem;
  font: inherit;
  line-height: 1.4;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-field input::placeholder { color: rgba(245, 245, 245, .42); }

.form-field input:focus,
.form-field textarea:focus {
  outline: 0;
  border-color: rgba(232, 69, 58, .72);
  background: rgba(36, 31, 31, .9);
  box-shadow: 0 0 0 3px rgba(232, 69, 58, .16);
}

.appointment-form__submit {
  justify-self: start;
  margin-top: .35rem;
}

.prose--legal h2 { font-size: 1.3rem; margin-top: 1.4em; color: #fff; }
.prose--legal h3 { font-size: 1.08rem; margin-top: 1.6em; color: #fff; }
.prose--legal h4 { font-size: 1rem; margin-top: 1.5em; color: #fff; }
.prose--legal p, .prose--legal div, .prose--legal li {
  color: var(--gray-soft);
  font-weight: 300;
  font-size: .95rem;
  max-width: none;
}
.prose--legal a { word-break: break-word; }

body.modal-open { overflow: hidden; }

/* ==========================================================================
   Cookie consent (vanilla-cookieconsent v3 theming)
   ========================================================================== */

#cc-main {
  --cc-font-family: var(--font);
  --cc-bg: var(--dark-deep);
  --cc-primary-color: var(--light);
  --cc-secondary-color: var(--gray-soft);
  --cc-btn-primary-bg: var(--accent);
  --cc-btn-primary-color: #fff;
  --cc-btn-primary-border-color: var(--accent);
  --cc-btn-primary-hover-bg: var(--accent-dark);
  --cc-btn-primary-hover-border-color: var(--accent-dark);
  --cc-btn-secondary-bg: #4E4747;
  --cc-btn-secondary-color: var(--light);
  --cc-btn-secondary-border-color: #4E4747;
  --cc-btn-secondary-hover-bg: #5d5656;
  --cc-btn-secondary-hover-border-color: #5d5656;
  --cc-separator-border-color: rgba(245, 245, 245, .1);
  --cc-toggle-on-bg: var(--accent);
  --cc-toggle-off-bg: #5d5656;
  --cc-toggle-readonly-bg: #444;
  --cc-cookie-category-block-bg: rgba(36, 31, 31, .6);
  --cc-cookie-category-block-border: rgba(245, 245, 245, .08);
  --cc-cookie-category-block-hover-bg: rgba(36, 31, 31, .85);
  --cc-cookie-category-block-hover-border: rgba(232, 69, 58, .3);
  --cc-overlay-bg: rgba(20, 17, 17, .65);
  --cc-btn-border-radius: 6px;
  --cc-modal-border-radius: 6px;
  --cc-link-color: var(--accent);
}

/* ==========================================================================
   Mobile refinements (≤640px)
   ========================================================================== */

@media (max-width: 640px) {
  :root {
    --header-h: 68px;
    --section-gap: clamp(4.5rem, 16vw, 6rem);
  }

  /* Long German compound words must hyphenate instead of overflowing */
  h1, h2, h3,
  .prose p {
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .site-header__logo img { width: 72px; }

  /* Hero */
  .hero__circuit { width: min(190px, 46vw); }
  .hero__circuit--bl { display: none; } /* keep the scroll cue area clean */
  .hero__kicker { letter-spacing: .2em; font-size: .85rem; }
  .hero__title { font-size: clamp(2.3rem, 11.5vw, 3.4rem); }
  .hero__scrollcue { bottom: 1.4rem; height: 44px; }

  /* Section headings */
  .section-head { gap: .75rem; }
  .section-head__index::after { width: 22px; }
  .section-head__title { font-size: clamp(1.55rem, 7.5vw, 1.9rem); }

  /* Services slider: full-width swipe cards, no arrows */
  .services__slider { padding-inline: var(--pad-x); }
  .slider-arrow { display: none; }
  .service-card { padding: 1.5rem 1.35rem; border-radius: var(--radius-m); }
  .service-card__text p { -webkit-line-clamp: 8; }

  /* Numbered list */
  .rules { gap: 1rem; }
  .rules__item { gap: 1.1rem; padding: 1rem 1.1rem; }
  .rules__item:hover { transform: none; }
  .rules__index { font-size: 2.3rem; -webkit-text-stroke-width: 1.6px; }

  /* EV photo: landscape crop instead of tall portrait */
  .media-frame--tall { aspect-ratio: 16 / 11; }

  /* Watermark logo */
  .statement__watermark { right: 0; width: min(88vw, 520px); }

  /* Accordion */
  .accordion__button { padding: 1rem 1.1rem; font-size: .95rem; gap: .9rem; }
  .accordion__body { padding: 0 1.1rem; }
  .accordion__item.is-open .accordion__body { padding-bottom: 1.1rem; }
  .split__text .btn { margin-top: 1.4rem; }

  .floating-appointment {
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(.85rem, env(safe-area-inset-bottom));
    max-width: calc(100vw - 2rem);
    justify-content: center;
    padding-inline: 1.45rem;
    font-size: .95rem;
  }

  /* Modals: use the dynamic viewport, tighter chrome */
  .modal,
  .modal--legal { max-width: calc(100vw - 1.5rem); max-height: 92dvh; }
  .modal__surface { max-height: 92dvh; border-radius: var(--radius-m); }
  .modal__head { padding: 1.1rem 1.25rem; }
  .modal__title { font-size: 1.2rem; }
  .modal__body { padding: 1.25rem 1.25rem 1.5rem; }
  .appointment-form__row { grid-template-columns: 1fr; }

  /* Footer */
  .site-footer__inner { gap: 2rem; }
  .site-footer__legal { gap: 1.1rem 1.4rem; }
  .legal-link { padding: .55em 0; } /* ≥44px tap target */
}

@media (max-width: 400px) {
  .hero__kicker { letter-spacing: .14em; }
  .service-card__title { font-size: 1.3rem; }
}
