/* ============================================
   RM Autoservice — design tokens + global styles
   Dark layered grays, orange #fc6100 accent.
   ============================================ */

/* ---------- Self-hosted Inter (no Google Fonts CDN) ---------- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/Inter-Light.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Inter-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Inter-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Inter-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Inter-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/Inter-ExtraBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/Inter-Black.woff2') format('woff2');
}

:root {
  --bg-0:        #0a0a0c;
  --bg-1:        #0e0e11;
  --bg-2:        #15151a;
  --bg-3:        #1c1c22;
  --bg-elev:    #24242b;

  --border:     #2a2a32;
  --border-strong: #3a3a44;

  --ink-1:      #f6f6f7;
  --ink-2:      #c8c8cf;
  --ink-3:      #8a8a93;
  --ink-4:      #5a5a63;

  --brand:           #fc6100;
  --brand-hover:     #ff7a26;
  --brand-soft:      #ff8c42;
  --brand-glow:      rgba(252, 97, 0, 0.18);
  --brand-line:      rgba(252, 97, 0, 0.45);

  --ok:    #4ade80;
  --err:   #ef4444;

  --container: 1240px;
  --gutter:    clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 10vw, 128px);

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast:    160ms;
  --t-mid:     280ms;
}

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

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: transparent; color: inherit; }
input, textarea, select { font: inherit; }
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, h5, p { margin: 0; }

/* ---------- Body ---------- */

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--brand); color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff;
  padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.accent { color: var(--brand); }

/* ============================================
   HEADER
   ============================================ */

.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}

.site-header.is-scrolled {
  background: rgba(10, 10, 12, 0.92);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.header-logo img {
  height: 36px;
  width: auto;
  transition: opacity var(--t-fast) var(--ease);
}
.header-logo:hover img { opacity: 0.85; }

.nav-desktop {
  display: flex;
  gap: 36px;
  margin-left: auto;
  margin-right: 32px;
}

.nav-desktop a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  padding: 6px 0;
  transition: color var(--t-fast) var(--ease);
}

.nav-desktop a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-mid) var(--ease);
}

.nav-desktop a:hover { color: var(--ink-1); }
.nav-desktop a:hover::after { transform: scaleX(1); }

.nav-desktop a.is-active { color: var(--ink-1); }
.nav-desktop a.is-active::after { transform: scaleX(1); }

.nav-mobile a.is-active { color: var(--brand); }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-1);
  padding: 9px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.header-phone:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(252, 97, 0, 0.06);
}
.header-phone svg { color: var(--brand); }

.hamburger {
  display: none;
  width: 40px; height: 40px;
  position: relative;
  margin-left: 8px;
}
.hamburger span {
  position: absolute; left: 9px; right: 9px;
  height: 2px;
  background: var(--ink-1);
  transition: transform var(--t-mid) var(--ease), opacity var(--t-mid) var(--ease), top var(--t-mid) var(--ease);
}
.hamburger span:nth-child(1) { top: 13px; }
.hamburger span:nth-child(2) { top: 19px; }
.hamburger span:nth-child(3) { top: 25px; }
.hamburger.is-open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed; top: 76px; left: 0; right: 0;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  padding: 16px var(--gutter) 24px;
  flex-direction: column;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  display: block;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-1);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile-phone {
  margin-top: 8px;
  color: var(--brand) !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
}

/* ---------- Language switcher (DE | EN) ---------- */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-right: 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.lang-switch button {
  appearance: none;
  background: transparent;
  border: none;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  cursor: pointer;
  position: relative;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  text-transform: uppercase;
}

.lang-switch button + button {
  border-left: 1px solid var(--border-strong);
}

.lang-switch button:hover {
  color: var(--ink-1);
  background: rgba(255, 255, 255, 0.04);
}

.lang-switch button.is-active {
  color: var(--brand);
  background: rgba(252, 97, 0, 0.08);
}

.lang-switch button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

/* Mobile: language switcher block (appears in mobile menu instead of header) */
.nav-mobile .lang-switch {
  margin: 16px 0 0;
  align-self: flex-start;
}

/* ---------- Flash prevention for non-default lang ---------- */

html.i18n-pending body { visibility: hidden; }

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(0.2) contrast(1.05);
  z-index: -2;
}

.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,12,0.55) 0%, rgba(10,10,12,0.75) 40%, rgba(10,10,12,0.96) 100%),
    radial-gradient(ellipse at 75% 30%, rgba(252, 97, 0, 0.14) 0%, transparent 55%);
  z-index: -1;
}

.hero-content {
  max-width: 920px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
}
.hero-eyebrow-line {
  width: 36px; height: 1px;
  background: var(--brand);
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink-1);
  margin-bottom: 28px;
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.65;
  max-width: 620px;
  color: var(--ink-2);
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}

.hero-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-3);
}
.hero-marks li::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--brand);
  margin-right: 10px;
  vertical-align: middle;
  transform: rotate(45deg);
}
.hero-marks strong { color: var(--ink-1); font-weight: 600; }

.hero-scroll {
  position: absolute;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
  z-index: 2;
  animation: heroScroll 2.4s ease-in-out infinite;
}
.hero-scroll svg { color: var(--brand); }
@keyframes heroScroll {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.7; }
  50%      { transform: translate(-50%, 6px); opacity: 1; }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  position: relative;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 24px -8px var(--brand-glow), 0 0 0 0 var(--brand-glow);
}
.btn-primary:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -10px rgba(252, 97, 0, 0.45);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink-1);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(252, 97, 0, 0.05);
}

/* ============================================
   SECTIONS — generic
   ============================================ */

.section {
  padding: var(--section-y) 0;
  scroll-margin-top: 80px;
  position: relative;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-1);
  margin-bottom: 20px;
}

.section-lead {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 620px;
}

/* ============================================
   LEISTUNGEN
   ============================================ */

.section-leistungen {
  background: linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  background: var(--bg-2);
  padding: clamp(32px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background var(--t-mid) var(--ease);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-mid) var(--ease);
}
.service-card:hover { background: var(--bg-3); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px; height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(252, 97, 0, 0.08);
  color: var(--brand);
  border: 1px solid rgba(252, 97, 0, 0.25);
  border-radius: var(--radius);
  margin-bottom: 28px;
}

.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-1);
  margin-bottom: 20px;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 12px; height: 1px;
  background: var(--brand);
}

.services-foot {
  margin-top: 40px;
  font-size: 14px;
  color: var(--ink-3);
  text-align: center;
}
.services-foot a {
  color: var(--brand);
  border-bottom: 1px solid var(--brand-line);
  transition: border-color var(--t-fast) var(--ease);
}
.services-foot a:hover { border-bottom-color: var(--brand); }

/* ============================================
   ÜBER UNS
   ============================================ */

.section-about {
  background: var(--bg-1);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.about-text p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.about-text p:last-of-type { margin-bottom: 32px; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.about-stats div {
  padding: 0 18px;
  border-right: 1px solid var(--border);
}
.about-stats div:first-child { padding-left: 0; }
.about-stats div:last-child { border-right: none; }

.about-stats dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 6px;
}
.about-stats dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-1);
  letter-spacing: -0.01em;
}

.about-figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-2);
}
.about-figure::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  pointer-events: none;
}
.about-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.about-figure:hover img { transform: scale(1.04); }

/* ============================================
   KONTAKT
   ============================================ */

.section-contact {
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact-info .section-lead {
  margin-bottom: 36px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 8px;
}
.contact-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contact-list li:last-child { border-bottom: none; }
.contact-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding-top: 3px;
}
.contact-value {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-1);
}
.contact-value a {
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.contact-value a:hover { color: var(--brand); border-bottom-color: var(--brand); }

/* ----- Form ----- */

.contact-form {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  position: relative;
}

.form-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink-1);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.form-row {
  margin-bottom: 20px;
}
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.req { color: var(--brand); margin-left: 2px; }
.opt {
  color: var(--ink-4);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 4px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-1);
  color: var(--ink-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.5;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  font-family: inherit;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--bg-0);
  box-shadow: 0 0 0 3px var(--brand-glow);
}
.form-row textarea { resize: vertical; min-height: 120px; }

.hp-field {
  position: absolute;
  left: -9999px; top: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 8px 0 24px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-3);
}
.form-consent input {
  margin-top: 3px;
  width: 16px; height: 16px;
  accent-color: var(--brand);
  flex-shrink: 0;
}
.form-consent label { font-weight: 400; letter-spacing: 0; margin: 0; }
.form-consent a {
  color: var(--brand);
  border-bottom: 1px solid var(--brand-line);
}

.form-submit {
  width: 100%;
  padding: 16px 24px;
  position: relative;
}
.form-submit .submit-spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: 10px;
}
.form-submit.is-loading { pointer-events: none; opacity: 0.7; }
.form-submit.is-loading .submit-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.5;
  display: none;
}
.form-status.is-success {
  display: block;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: var(--ok);
}
.form-status.is-error {
  display: block;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--err);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--bg-0);
  border-top: 1px solid var(--border);
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--brand) 50%, transparent 100%);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 0 48px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-3);
  margin-top: 18px;
  max-width: 280px;
}
.footer-logo {
  height: 34px;
  width: auto;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-1);
  margin-bottom: 18px;
}
.footer-col ul li {
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.5;
}
.footer-col ul a {
  transition: color var(--t-fast) var(--ease);
}
.footer-col ul a:hover { color: var(--brand); }

.footer-bar {
  border-top: 1px solid var(--border);
  padding: 22px 0;
}
.footer-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  color: var(--ink-4);
}
.footer-bar-inner a:hover { color: var(--brand); }

/* ============================================
   USP / TRUST BAR (below hero on home)
   ============================================ */

.usp-bar {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.usp-bar::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 2px;
  background: var(--brand);
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 40px 0;
}

.usp-item {
  padding: 8px 32px;
  border-right: 1px solid var(--border);
  text-align: left;
}
.usp-item:last-child { border-right: none; }

.usp-number {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand);
  line-height: 1.1;
  margin-bottom: 6px;
}

.usp-label {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}
.usp-label strong { color: var(--ink-1); font-weight: 600; display: block; margin-bottom: 2px; }

/* ============================================
   HOME TEASER CARDS (3-up: Über/Leistungen/Kontakt)
   ============================================ */

.section-teasers {
  padding: var(--section-y) 0;
  background: var(--bg-0);
}

.teasers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: clamp(40px, 5vw, 64px);
}

.teaser {
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: border-color var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}
.teaser::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-mid) var(--ease);
  z-index: 2;
}
.teaser:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.teaser:hover::before { transform: scaleX(1); }
.teaser:hover .teaser-img img { transform: scale(1.06); }
.teaser:hover .teaser-link { color: var(--brand); }
.teaser:hover .teaser-link svg { transform: translateX(4px); }

.teaser-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-3);
  position: relative;
}
.teaser-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,10,12,0.6) 100%);
}
.teaser-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
  filter: grayscale(0.15) contrast(1.03);
}

.teaser-body {
  padding: clamp(24px, 3vw, 32px);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.teaser-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.teaser-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-1);
  margin-bottom: 12px;
  line-height: 1.2;
}
.teaser-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 24px;
  flex: 1;
}
.teaser-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-1);
  transition: color var(--t-fast) var(--ease);
}
.teaser-link svg {
  transition: transform var(--t-fast) var(--ease);
  color: var(--brand);
}

/* ============================================
   PAGE HERO (smaller hero for inner pages)
   ============================================ */

.page-hero {
  position: relative;
  padding: 180px 0 96px;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(0.2) contrast(1.05);
  z-index: -2;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,12,0.55) 0%, rgba(10,10,12,0.75) 40%, rgba(10,10,12,0.96) 100%),
    radial-gradient(ellipse at 75% 30%, rgba(252, 97, 0, 0.14) 0%, transparent 55%);
  z-index: -1;
}

.page-hero-inner {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.page-hero-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 20px;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink-1);
  margin-bottom: 20px;
}

.page-hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 640px;
}

.crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 24px;
}
.crumbs a { color: var(--ink-3); transition: color var(--t-fast) var(--ease); }
.crumbs a:hover { color: var(--brand); }
.crumbs span { color: var(--ink-2); }

/* ============================================
   SPLIT BLOCKS (alternating image+text)
   ============================================ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  margin-bottom: clamp(64px, 8vw, 120px);
}
.split:last-child { margin-bottom: 0; }

.split.split-reverse .split-media { order: 2; }
.split.split-reverse .split-content { order: 1; }

.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-2);
}
.split-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  pointer-events: none;
}
.split-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
  filter: grayscale(0.15) contrast(1.03);
}
.split:hover .split-media img { transform: scale(1.04); }

.split-media-label {
  position: absolute;
  left: 24px; bottom: 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-1);
  background: rgba(10, 10, 12, 0.75);
  backdrop-filter: blur(6px);
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  z-index: 1;
}

.split-content .kicker {
  margin-bottom: 16px;
}
.split-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ink-1);
  margin-bottom: 20px;
}
.split-content p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 16px;
}

.split-content .service-list {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
}

.split-content .split-cta {
  margin-top: 28px;
}

/* ============================================
   SERVICES TEASER on home (compact)
   ============================================ */

/* (use existing .services-grid + .service-card from earlier; reused as-is) */

/* ============================================
   KONTAKT page extras
   ============================================ */

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.map-embed {
  margin-top: clamp(56px, 7vw, 88px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  aspect-ratio: 16 / 7;
  background: var(--bg-2);
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.map-embed.is-loaded iframe {
  filter: grayscale(0.6) invert(0.92) hue-rotate(180deg) contrast(0.9);
}

/* ----- Map placeholder (2-click solution) ----- */

.map-placeholder {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(252, 97, 0, 0.06) 0%, transparent 60%),
    repeating-linear-gradient(45deg, var(--bg-2) 0 22px, var(--bg-3) 22px 24px),
    var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
}

.map-placeholder-inner {
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.map-placeholder-pin {
  color: var(--brand);
  margin-bottom: 4px;
  opacity: 0.85;
}

.map-placeholder-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  margin: 0;
}

.map-load-btn {
  margin: 4px 0 2px;
  min-width: 180px;
}

.map-placeholder-notice {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 380px;
  margin: 0;
}
.map-placeholder-notice a {
  color: var(--ink-1);
  border-bottom: 1px solid var(--brand-line);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.map-placeholder-notice a:hover {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* ============================================
   IMPRESSUM page
   ============================================ */

.impressum-page {
  padding: 140px 0 var(--section-y);
  background: var(--bg-0);
  min-height: 100vh;
}
.impressum-page .container { max-width: 880px; }

.impressum-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-1);
  margin-bottom: 48px;
}

.impressum-page h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-1);
  margin: 48px 0 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.impressum-page h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.impressum-page h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-1);
  margin: 28px 0 12px;
}

.impressum-page h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-1);
  margin: 22px 0 8px;
  letter-spacing: -0.005em;
}

.impressum-page .ds-list {
  margin: 8px 0 18px;
  padding-left: 4px;
}
.impressum-page .ds-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
}
.impressum-page .ds-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 12px; height: 1px;
  background: var(--brand);
}

.impressum-page p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 14px;
}

.impressum-page .impressum-block {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 32px;
}
.impressum-page .impressum-block p { margin-bottom: 6px; }

.impressum-page a { color: var(--brand); border-bottom: 1px solid var(--brand-line); }
.impressum-page a:hover { border-bottom-color: var(--brand); }

.impressum-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-bottom: 32px;
  border-bottom: none !important;
}
.impressum-back:hover { color: var(--brand); }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 960px) {
  .nav-desktop, .header-phone { display: none; }
  .hamburger { display: block; }

  .header-inner { height: 68px; }
  .nav-mobile { top: 68px; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 32px 28px; }

  .usp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 0;
    padding: 28px 0;
  }
  .usp-item { padding: 16px 20px; }
  .usp-item:nth-child(2) { border-right: none; }
  .usp-item:nth-child(1), .usp-item:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }

  .teasers-grid { grid-template-columns: 1fr; gap: 20px; }

  .split,
  .split.split-reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .split.split-reverse .split-media,
  .split.split-reverse .split-content { order: initial; }
  .split-media { aspect-ratio: 16 / 11; max-height: 480px; }

  .split-content .service-list { grid-template-columns: 1fr; }

  .kontakt-grid { grid-template-columns: 1fr; gap: 48px; }

  .page-hero { padding: 130px 0 70px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-figure { aspect-ratio: 16/11; max-height: 480px; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 56px 0 40px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .hero {
    padding: 110px 0 80px;
    min-height: 88vh;
    min-height: 88svh;
  }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-marks { gap: 10px 20px; font-size: 12.5px; }
  .hero-scroll { display: none; }

  .contact-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .contact-label { padding-top: 0; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-bar-inner {
    flex-direction: column;
    text-align: center;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .about-stats div {
    padding: 12px 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .about-stats div:last-child { border-bottom: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================
   WebP background images (toggled by JS detection)
   ============================================ */

html.webp  body[data-page="home"] .hero-bg            { background-image: url('images/home-hero-bg.webp'); }
html.no-webp body[data-page="home"] .hero-bg          { background-image: url('images/home-hero-bg.jpg'); }

html.webp  body[data-page="ueber-uns"] .page-hero-bg  { background-image: url('images/ueber-uns-hero-bg.webp'); }
html.no-webp body[data-page="ueber-uns"] .page-hero-bg { background-image: url('images/ueber-uns-hero-bg.jpg'); }

html.webp  body[data-page="leistungen"] .page-hero-bg { background-image: url('images/leistungen-hero-bg.webp'); }
html.no-webp body[data-page="leistungen"] .page-hero-bg { background-image: url('images/leistungen-hero-bg.jpg'); }

html.webp  body[data-page="kontakt"] .page-hero-bg    { background-image: url('images/kontakt-hero-bg.webp'); }
html.no-webp body[data-page="kontakt"] .page-hero-bg  { background-image: url('images/kontakt-hero-bg.jpg'); }

html.webp  body[data-page="404"] .page-hero-bg        { background-image: url('images/404-error.webp'); }
html.no-webp body[data-page="404"] .page-hero-bg      { background-image: url('images/404-error.jpg'); }
