/* ==========================================================================
   VOLTWERK - Elektrotechnik & Service
   Mobile-first · CSS Custom Properties · Grid / Flexbox · clamp()
   ========================================================================== */

/* ---------- Fonts (lokal / DSGVO) ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design Tokens ---------- */
:root {
  --navy: #051937;
  --navy-deep: #041e42;
  --navy-mid: #0a2a4f;
  --blue: #1877f2;
  --blue-bright: #1d7dfa;
  --blue-soft: #e8f1fe;
  --blue-glow: rgba(29, 125, 250, 0.18);
  --surface: #f8fafc;
  --white: #ffffff;
  --text: #0b1c33;
  --text-muted: #5a6b7d;
  --text-on-dark: #e8eef6;
  --text-on-dark-muted: #a8b8cc;
  --border: rgba(5, 25, 55, 0.1);
  --border-dark: rgba(255, 255, 255, 0.12);
  --radius: 4px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(5, 25, 55, 0.06);
  --shadow-md: 0 12px 32px rgba(5, 25, 55, 0.1);
  --shadow-lg: 0 24px 48px rgba(5, 25, 55, 0.16);
  --header-height: 4.5rem;
  --header-h: var(--header-height);
  --container: 1400px;
  --touch: 48px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --focus: 0 0 0 3px rgba(24, 119, 242, 0.45);

  --fs-xs: clamp(0.7rem, 0.65rem + 0.2vw, 0.78rem);
  --fs-sm: clamp(0.85rem, 0.8rem + 0.25vw, 0.95rem);
  --fs-base: clamp(1rem, 0.95rem + 0.3vw, 1.1rem);
  --fs-md: clamp(1.1rem, 1rem + 0.4vw, 1.25rem);
  --fs-lg: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem);
  --fs-xl: clamp(1.75rem, 1.35rem + 1.6vw, 2.75rem);
  --fs-2xl: clamp(2.25rem, 1.6rem + 2.6vw, 4rem);
  --fs-hero: clamp(2.4rem, 1.7rem + 3.2vw, 4.6rem);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip; /* clip statt body-overflow: fixed-Footer hängt sonst am Handy */
}

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  max-width: 100%;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 10000;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
}
.skip-link:focus {
  top: 1rem;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--narrow {
  width: min(100% - 2rem, 48rem);
  margin-inline: auto;
}

.overline {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.overline--dark {
  color: var(--navy);
}

.section {
  padding-block: clamp(3rem, 5vw, 5.5rem);
}

.section__head {
  max-width: 48rem;
  margin-bottom: 2rem;
}

.section__head--center {
  text-align: center;
  margin-inline: auto;
}

.section__title {
  font-size: var(--fs-xl);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--navy);
}

.section__sub {
  margin-top: 0.85rem;
  color: var(--text-muted);
  font-size: var(--fs-md);
  line-height: 1.55;
}

.arrow {
  display: inline-block;
  font-style: normal;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}
a:hover .arrow,
button:hover .arrow {
  transform: translate(2px, -2px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--touch);
  min-width: var(--touch);
  padding: 0.75rem 1.35rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn--primary:hover {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.35);
}

.btn--white {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}
.btn--white:hover {
  background: var(--blue-soft);
  color: var(--navy);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn--ghost-dark {
  background: transparent;
  color: var(--navy);
  border-color: transparent;
  padding-inline: 0.5rem;
}
.btn--ghost-dark:hover {
  color: var(--blue);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--full {
  width: 100%;
}

.btn--sm {
  min-height: var(--touch);
  padding: 0.55rem 1rem;
  font-size: var(--fs-xs);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  overflow: visible;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-block: 8px;
  max-width: min(58vw, 13rem);
  overflow: visible;
  line-height: 0;
}
.logo img {
  display: block;
  width: auto;
  height: 52px;
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: none;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  position: relative;
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  border-radius: var(--radius);
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: var(--blue-bright);
}
.nav-link.active {
  color: var(--blue);
}
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--blue);
  border-radius: 99px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-phone {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius);
  transition: color 0.2s ease;
}
.header-phone:hover {
  color: var(--blue);
}
.header-phone svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.header-cta {
  display: none;
}

.nav-toggle {
  width: var(--touch);
  height: var(--touch);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  flex-shrink: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: none;
}
.nav-toggle:focus,
.nav-toggle:focus-visible,
.nav-toggle:active {
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--navy);
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 76px;
  z-index: 9999;
  background: rgba(5, 25, 55, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.nav-mobile.is-open {
  opacity: 1;
  visibility: visible;
}
.nav-mobile__panel {
  background: var(--white);
  height: 100%;
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  box-shadow: var(--shadow-md);
  transform: translateY(-0.5rem);
  transition: transform 0.3s var(--ease);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-mobile.is-open .nav-mobile__panel {
  transform: translateY(0);
}
.nav-mobile a.nav-link {
  display: flex;
  align-items: center;
  min-height: var(--touch);
  padding: 0.85rem 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: var(--fs-sm);
  color: var(--navy);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}
.nav-mobile a.nav-link:last-child {
  border-bottom: none;
}
.nav-mobile a.nav-link:hover,
.nav-mobile a.nav-link.active {
  color: var(--blue);
}
.nav-mobile a.nav-link.active::after {
  display: none;
}

@media (min-width: 768px) {
  :root {
    --header-height: 5.5rem;
  }
  .container,
  .site-header__inner {
    padding-inline: 2rem;
  }
  .logo {
    max-width: 16rem;
  }
  .logo img {
    height: 64px;
  }
}

@media (min-width: 1024px) {
  :root {
    --header-height: 96px;
  }
  .site-header {
    height: 96px !important;
  }
  .container,
  .site-header__inner {
    max-width: 1400px !important;
    padding-inline: 2.5rem;
  }
  .nav {
    display: flex;
    gap: 2.25rem;
  }
  .header-phone {
    display: inline-flex;
    min-height: var(--touch);
  }
  .header-cta {
    display: inline-flex;
    padding: 0.9rem 1.75rem !important;
    font-size: 1rem !important;
  }
  .nav-toggle {
    display: none;
  }
  .logo {
    max-width: 18rem;
  }
  .logo img {
    height: 76px !important;
    width: auto !important;
    max-height: none !important;
    object-fit: contain;
  }
  .nav-link {
    min-height: var(--touch);
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 1rem !important;
    font-weight: 700;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      105deg,
      rgba(4, 30, 66, 0.92) 0%,
      rgba(5, 25, 55, 0.78) 42%,
      rgba(5, 25, 55, 0.45) 68%,
      rgba(24, 119, 242, 0.28) 100%
    ),
    linear-gradient(to top, rgba(4, 30, 66, 0.85) 0%, transparent 45%);
}

.hero__content {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 3rem 1.25rem;
  animation: heroIn 0.9s var(--ease) both;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .overline {
  color: rgba(232, 241, 254, 0.95);
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
  max-width: 920px;
}

.hero h1 .accent {
  color: #7eb6ff;
  display: block;
}

.hero__sub {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-on-dark);
  max-width: 680px;
  margin-bottom: 1.75rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding-top: 1.25rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.trust-bar li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
}
.trust-bar .check {
  color: #5eead4;
  font-weight: 800;
}

/* ---------- Services ---------- */
.services {
  background:
    radial-gradient(ellipse 60% 50% at 10% 0%, var(--blue-glow), transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 100%, rgba(24, 119, 242, 0.08), transparent 55%),
    var(--surface);
}

.service-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(24, 119, 242, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8) inset, var(--shadow-sm);
  backdrop-filter: blur(8px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 32px var(--blue-glow);
  border-color: rgba(24, 119, 242, 0.4);
}

.service-card__media {
  height: 180px;
  overflow: hidden;
  background: var(--navy-mid);
}
.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.service-card:hover .service-card__media img {
  transform: scale(1.06);
}

.service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem 1.35rem 1.65rem;
}

.service-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.service-card__num {
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.06em;
}

.service-card__arrow {
  color: var(--blue-bright);
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}
.service-card:hover .service-card__arrow {
  transform: translate(3px, -3px);
}

.service-card h3 {
  font-size: clamp(1.2rem, 1rem + 0.55vw, 1.55rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.service-card__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 0.85rem;
}

.service-card ul {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.service-card li {
  position: relative;
  padding-left: 0.95rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

/* ---------- Configurator ---------- */
.configurator {
  background: var(--white);
}

.config-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(24, 119, 242, 0.04), transparent 40%),
    var(--white);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.config-box__head {
  padding: 1.5rem 1.5rem 0;
  border-bottom: none;
}
.config-box__head h2 {
  font-size: var(--fs-lg);
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.config-box__head p {
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.config-progress {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  padding: 0;
}
.config-progress__step {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: rgba(5, 25, 55, 0.12);
  overflow: hidden;
  line-height: 0;
}
.config-progress__step span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--blue);
  border-radius: inherit;
  transition: width 0.35s var(--ease);
}
.config-progress__step.is-done span,
.config-progress__step.is-active span {
  width: 100%;
}

.config-panel {
  display: none;
  padding: 1.5rem;
  animation: fadeSlide 0.35s var(--ease);
}
.config-panel.is-active {
  display: block;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.config-panel h3 {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.option-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .option-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.option {
  position: relative;
  cursor: pointer;
}
.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.option__card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.1rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  min-height: 4.5rem;
}
.option__card strong {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--navy);
}
.option__card span {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.option:hover .option__card {
  border-color: rgba(24, 119, 242, 0.45);
}
.option input:checked + .option__card {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: 0 0 0 3px var(--blue-glow);
}
.option input:focus-visible + .option__card {
  box-shadow: var(--focus);
}

.config-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.config-form {
  display: grid;
  gap: 1rem;
}
.config-form .field-row {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .config-form .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: var(--touch);
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea {
  min-height: 7rem;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: var(--focus);
  outline: none;
}

.config-summary {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  background: var(--blue-soft);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  color: var(--navy);
}
.config-summary strong {
  font-weight: 700;
}

.form-note {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 0.75rem;
}
/* Honeypot gegen Spam-Bots – für Menschen unsichtbar */
.hp-field {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-error {
  display: none;
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: #fdecec;
  color: #8a1f1f;
  border: 1px solid #f0c2c2;
  font-size: 0.95rem;
}

.form-error.is-visible {
  display: block;
}

.form-success {
  display: none;
  padding: 1rem;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: var(--radius);
  color: #065f46;
  font-weight: 600;
  margin-top: 1rem;
}
.form-success.is-visible {
  display: block;
}

/* ---------- Why / USPs ---------- */
.why {
  background: var(--navy-deep);
  color: var(--white);
}

.why .section__title {
  color: var(--white);
}
.why .section__sub {
  color: var(--text-on-dark-muted);
}

.usp-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .usp-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .usp-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.usp-card {
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease);
}
.usp-card:hover {
  border-color: rgba(29, 125, 250, 0.55);
  background: rgba(24, 119, 242, 0.08);
  transform: translateY(-4px);
}

.usp-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border: 1px solid rgba(29, 125, 250, 0.45);
  border-radius: var(--radius);
  color: var(--blue-bright);
  font-size: 1.1rem;
  font-weight: 800;
}

.usp-card h3 {
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.015em;
}
.usp-card p {
  font-size: var(--fs-sm);
  color: var(--text-on-dark-muted);
  line-height: 1.5;
}

/* ---------- Process ---------- */
.process {
  background: var(--surface);
}

.process-steps {
  display: grid;
  gap: 0;
  counter-reset: step;
}
@media (min-width: 1024px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.process-step {
  position: relative;
  padding: 1.5rem 0 1.5rem 1.25rem;
  border-left: 2px solid rgba(24, 119, 242, 0.25);
}
@media (min-width: 1024px) {
  .process-step {
    padding: 0;
    border-left: none;
    border-top: 2px solid rgba(24, 119, 242, 0.25);
    padding-top: 1.75rem;
  }
  .process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: -0.4rem;
    right: -0.85rem;
    width: 0.7rem;
    height: 0.7rem;
    border-top: 2px solid var(--blue);
    border-right: 2px solid var(--blue);
    transform: rotate(45deg);
  }
}

.process-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.85rem;
  margin-left: -2.4rem;
  background: var(--blue);
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 800;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--surface);
}
@media (min-width: 1024px) {
  .process-step__num {
    margin-left: 0;
    position: absolute;
    top: -1.15rem;
    left: 0;
  }
}

.process-step h3 {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.process-step p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--white);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 48rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item[open],
.faq-item.is-open {
  border-color: rgba(24, 119, 242, 0.35);
  box-shadow: var(--shadow-sm);
  background: var(--white);
}

.faq-item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  text-align: left;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--navy);
  line-height: 1.35;
}
.faq-item__btn .chevron {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 0.85rem;
  color: var(--blue);
  transition: transform 0.3s var(--ease), background 0.2s ease;
}
.faq-item.is-open .chevron {
  transform: rotate(180deg);
  background: var(--blue-soft);
}

.faq-item__panel {
  display: none;
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.faq-item.is-open .faq-item__panel {
  display: block;
  animation: fadeSlide 0.3s var(--ease);
}

/* ---------- Contact ---------- */
.contact {
  color-scheme: dark;
  background:
    radial-gradient(ellipse 50% 60% at 100% 0%, rgba(24, 119, 242, 0.2), transparent 55%),
    var(--navy-deep);
  color: var(--white);
}

.contact .section__title {
  color: var(--white);
}
.contact .section__sub {
  color: var(--text-on-dark-muted);
}

.contact-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 3rem;
    align-items: start;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-dark);
}
.contact-card:last-of-type {
  border-bottom: none;
}

.contact-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(29, 125, 250, 0.4);
  border-radius: var(--radius);
  color: var(--blue-bright);
  font-size: 1rem;
}

.contact-card h3 {
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.contact-card a,
.contact-card p {
  font-size: var(--fs-sm);
  color: var(--text-on-dark-muted);
}
.contact-card a:hover {
  color: var(--blue-bright);
}

.contact-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.contact-form-wrap {
  position: relative;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
}

.contact-form-wrap .field-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .contact-form-wrap .field-row {
    grid-template-columns: 1fr 1fr;
  }
}
.contact-form-wrap .field {
  margin-bottom: 1rem;
}
.contact-form-wrap .checkbox {
  margin-bottom: 1.25rem;
}

.contact-form-wrap .field label {
  color: var(--text-on-dark);
}
.contact-form-wrap .field input,
.contact-form-wrap .field select,
.contact-form-wrap .field textarea {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-dark);
  color: var(--white);
  color-scheme: dark;
}
.contact-form-wrap .field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-color: rgba(4, 30, 66, 0.85);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-on-dark-muted) 50%),
    linear-gradient(135deg, var(--text-on-dark-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 1.15rem) 50%,
    calc(100% - 0.75rem) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.contact-form-wrap .field select option {
  background-color: var(--navy-deep);
  color: var(--white);
}
.contact-form-wrap .field select:focus {
  border-color: var(--blue-bright);
  box-shadow: var(--focus);
  outline: none;
}
.contact-form-wrap .field input::placeholder,
.contact-form-wrap .field textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.contact-form-wrap .form-note {
  color: var(--text-on-dark-muted);
}

.checkbox {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: var(--fs-xs);
  color: var(--text-on-dark-muted);
  line-height: 1.45;
}
.checkbox input {
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--blue);
  flex-shrink: 0;
}
.checkbox a {
  color: var(--blue-bright);
  text-decoration: underline;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #031229;
  color: var(--text-on-dark-muted);
  padding-block: 3rem 6.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
@media (min-width: 1024px) {
  .site-footer {
    padding-bottom: 3rem;
  }
}

.footer-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand img {
  height: auto;
  width: min(100%, 14rem);
  max-height: 5.5rem;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 1rem;
}
.footer-brand p {
  font-size: var(--fs-sm);
  max-width: 22rem;
  line-height: 1.55;
}

.footer-col h3 {
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-col a {
  font-size: var(--fs-sm);
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--blue-bright);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: var(--fs-xs);
}
.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Mobile bottom bar ---------- */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10002;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.55rem 0.75rem;
  padding-bottom: max(0.55rem, env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(5, 25, 55, 0.1);
  /* Position wird per JS an visualViewport gekoppelt (kein Hüpfen) */
  will-change: transform;
}
.mobile-bar .btn {
  min-height: var(--touch);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  padding-inline: 0.5rem;
  width: 100%;
}
@media (max-width: 1023px) {
  body {
    padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
  }
}
@media (min-width: 1024px) {
  .mobile-bar {
    display: none;
  }
}

/* ---------- About / Owner ---------- */
.about {
  background: var(--surface);
}

.about-grid {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 3rem;
  }
}

.about-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
}
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(4, 30, 66, 0.92);
  color: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(29, 125, 250, 0.45);
}
.about-badge span {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-bright);
  font-weight: 700;
}
.about-badge strong {
  font-size: var(--fs-md);
  font-weight: 800;
}

.about-text {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

.about-quote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.25rem 1.25rem 1.15rem;
  border-left: 3px solid var(--blue);
  background: var(--white);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
}
.about-quote p {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
  font-style: italic;
}
.about-quote footer {
  margin-top: 0.75rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-style: normal;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Projects gallery ---------- */
.projects {
  background: var(--white);
}

.project-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1280px) {
  .project-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.project-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy-mid);
}
.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.project-card:hover .project-card__media img {
  transform: scale(1.07);
}

.project-card__badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.35rem 0.65rem;
  background: rgba(4, 30, 66, 0.9);
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid rgba(29, 125, 250, 0.45);
}

.project-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.15rem 1.15rem 1.35rem;
  flex: 1;
}
.project-card__body h3 {
  font-size: var(--fs-md);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.015em;
}
.project-card__body p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.5;
}
.project-card__result {
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs) !important;
  color: var(--navy) !important;
}

.mobile-bar .btn {
  min-height: var(--touch);
}

/* ---------- Legal pages ---------- */
.legal-hero {
  background: var(--navy-deep);
  color: var(--white);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.legal-hero h1 {
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.legal-hero p {
  margin-top: 0.5rem;
  color: var(--text-on-dark-muted);
  font-size: var(--fs-sm);
}

.legal-content {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.legal-content h2 {
  font-size: var(--fs-lg);
  color: var(--navy);
  font-weight: 800;
  margin: 2rem 0 0.75rem;
}
.legal-content h3 {
  font-size: var(--fs-md);
  color: var(--navy);
  font-weight: 700;
  margin: 1.35rem 0 0.5rem;
}
.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}
.legal-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.legal-content a {
  color: var(--blue);
  text-decoration: underline;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Desktop premium scale (final overrides) ---------- */
@media (min-width: 1024px) {
  .container,
  .site-header__inner,
  .hero__content {
    max-width: 1400px !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  .site-header {
    height: 96px !important;
  }

  .logo img {
    height: 76px !important;
    width: auto !important;
    max-height: none !important;
    object-fit: contain;
  }

  .nav {
    gap: 2.25rem !important;
  }

  .nav-link {
    font-size: 1rem !important;
    font-weight: 700;
  }

  .header-cta {
    padding: 0.9rem 1.75rem !important;
    font-size: 1rem !important;
  }

  .hero {
    align-items: center !important;
    justify-content: center;
    min-height: calc(100vh - 96px);
  }

  .hero__content {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }

  .hero .overline {
    font-size: 1rem !important;
    letter-spacing: 0.14em;
    margin-bottom: 1.25rem !important;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 5.2vw, 4.8rem) !important;
    line-height: 1.05 !important;
    max-width: 920px !important;
    margin-bottom: 1.5rem !important;
  }

  .hero__sub {
    font-size: 1.25rem !important;
    line-height: 1.6 !important;
    max-width: 680px !important;
    margin-bottom: 2.5rem !important;
  }

  .hero__cta .btn {
    padding: 1.15rem 2.25rem !important;
    font-size: 1.1rem !important;
  }

  .trust-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    font-size: 1rem !important;
    margin-top: 2.5rem;
  }

  .trust-bar li {
    font-size: 1rem !important;
  }

  .section__title {
    font-size: clamp(2.4rem, 3.8vw, 3.4rem) !important;
    line-height: 1.12;
    margin-bottom: 1rem;
  }

  .service-grid {
    gap: 2.25rem !important;
  }

  .service-card__media {
    height: 240px !important;
  }

  .service-card__body {
    padding: 2.25rem !important;
  }

  .service-card h3 {
    font-size: 1.65rem !important;
  }

  .service-card li {
    font-size: 1.05rem !important;
    line-height: 1.6;
  }
}
