/* ═══════════════════════════════════════
   FONTS (lokal, kein Google CDN)
═══════════════════════════════════════ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/space-grotesk-latin.woff2') format('woff2');
}

/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ═══════════════════════════════════════
   CUSTOM PROPERTIES
═══════════════════════════════════════ */
:root {
  --bg:         #ffffff;
  --bg2:        #f6f8fb;
  --bg3:        #eef2f8;
  --border:     #e2e8f0;
  --border-h:   rgba(31,111,75,0.35);
  --accent:     #1f6f4b;
  --accent-l:   #2f8f61;
  --accent-d:   #154a33;
  --glow:       rgba(31,111,75,0.07);
  --glow-lg:    rgba(31,111,75,0.16);
  --white:      #10192b;
  --muted:      #64748b;
  --muted2:     #47566b;
  --card:       #ffffff;
  --shadow-sm:  0 1px 2px rgba(15,23,42,0.04), 0 2px 8px rgba(15,23,42,0.05);

  --font-h:     'Space Grotesk', sans-serif;
  --font-b:     'Inter', sans-serif;

  --section-py: 7rem;
  --r-sm:       8px;
  --r:          12px;
  --r-lg:       18px;
  --t:          0.2s ease;
  --t-slow:     0.35s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.service-icon .icon { width: 1.5rem; height: 1.5rem; stroke: var(--accent-l); }
.contact-icon .icon { width: 1.1rem; height: 1.1rem; stroke: var(--accent-l); }

/* ═══════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2.5rem;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: padding var(--t), background var(--t), border-color var(--t), box-shadow var(--t);
}

nav.scrolled {
  padding: 0.8rem 2.5rem;
  background: rgba(255,255,255,0.9);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 24px rgba(15,23,42,0.05);
}

.nav-logo {
  font-family: var(--font-h);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color var(--t);
}

.nav-links a:hover { color: var(--white); }

.nav-menu-cta,
.nav-menu-contact { display: none; }

.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: var(--r-sm);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background var(--t), transform var(--t);
}

.nav-cta:hover {
  background: var(--accent-l);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-text {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  z-index: 2;
  width: clamp(320px, 50vw, 600px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 3rem 3.5rem 4rem;
  color: #f8fafc;
  background-color: #0b1424;
  background-image:
    radial-gradient(ellipse 70% 55% at 100% 100%, rgba(31,111,75,0.28) 0%, transparent 70%),
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 100% 100%, 44px 44px, 44px 44px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 5rem) 100%, 0 100%);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248,250,252,0.75);
  margin-bottom: 1.5rem;
}

.hero-eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 2px;
  background: var(--accent-l);
  flex-shrink: 0;
}

#hero h1 {
  font-family: var(--font-h);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: #f8fafc;
}

#hero h1 .accent { color: var(--accent-l); }

.hero-sub {
  font-size: 1.02rem;
  color: rgba(248,250,252,0.8);
  max-width: 440px;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.hero-line {
  font-size: 0.82rem;
  color: rgba(248,250,252,0.5);
  letter-spacing: 0.01em;
}

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.875rem 2rem;
  border-radius: var(--r-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  box-shadow: 0 4px 18px rgba(31,111,75,0.32);
}

.btn-primary:hover {
  background: var(--accent-l);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(31,111,75,0.42);
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #f8fafc;
  border: 1px solid rgba(248,250,252,0.35);
  padding: 0.875rem 2rem;
  border-radius: var(--r-sm);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color var(--t), transform var(--t), background var(--t);
}

.btn-secondary:hover {
  border-color: rgba(248,250,252,0.6);
  background: rgba(255,255,255,0.14);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════
   SECTION BASE
═══════════════════════════════════════ */
section { padding: var(--section-py) 2rem; }

.container { max-width: 1100px; margin: 0 auto; }

.section-label {
  display: inline-block;
  color: var(--accent-l);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-h);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 520px;
  line-height: 1.8;
}

/* ═══════════════════════════════════════
   LEISTUNGEN
═══════════════════════════════════════ */
#leistungen { background: var(--bg2); }

.leistungen-teaser {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.leistungen-teaser-photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}

.leistungen-teaser-photo img { width: 100%; height: 100%; object-fit: cover; }

.leistungen-teaser-text .section-sub { max-width: 460px; margin-bottom: 2rem; }

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--glow);
  border: 1px solid rgba(31,111,75,0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1rem;
}

.service-list li {
  color: var(--muted);
  font-size: 0.875rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.3rem 0;
}

.service-list li::before {
  content: "·";
  color: var(--accent-l);
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.1;
}

/* Vollständige Leistungen-Unterseite */
.services-page-inner { max-width: 1080px; }

.services-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0 3rem;
}

.service-full-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  scroll-margin-top: 6.5rem;
}

.service-full-photo { aspect-ratio: 16 / 9; }
.service-full-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.5) contrast(1.05);
}

.service-full-body { padding: 1.5rem 1.75rem 1.75rem; }
.service-full-body .service-icon { margin-bottom: 1rem; }

.service-full-body h2 {
  font-family: var(--font-h);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.service-full-body > p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.service-full-card-external {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform var(--t), box-shadow var(--t);
}

.service-full-card-external:hover { transform: translateY(-3px); }

.service-full-external-photo {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-d) 100%);
}

.service-full-external-photo .icon { width: 28px; height: 28px; stroke: #fff; }

.service-full-external-photo span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}

.service-external-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  color: var(--accent-l);
  font-weight: 600;
  font-size: 0.9rem;
}

.services-page-cta {
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.services-page-cta p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ═══════════════════════════════════════
   GERÄTE
═══════════════════════════════════════ */
#geraete { background: var(--bg); }

/* Horizontale Scroll-Leiste */
.devices-scroll-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin-top: 2.75rem;
  padding-bottom: 0.75rem;
  scrollbar-width: thin;
}

.devices-scroll {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  padding: 0.25rem 0;
  scroll-snap-type: x proximity;
}

.device-card {
  flex: 0 0 auto;
  width: 220px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
  transition: border-color var(--t), transform var(--t);
}

.device-card:hover { border-color: rgba(31,111,75,0.35); transform: translateY(-3px); }

.device-card-photo { aspect-ratio: 4 / 3; }
.device-card-photo img { width: 100%; height: 100%; object-fit: cover; }

.device-card-body { padding: 1.1rem 1.25rem 1.35rem; }

.device-card-body h3 {
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.device-card-body p { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }

.device-card-all {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-d) 100%);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.35;
}

.device-card-all:hover { transform: translateY(-3px); }

/* Such-Unterseite: Suchfeld + Geräte-Gruppen */
.devices-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  margin: 2rem 0 2.5rem;
  max-width: 420px;
  box-shadow: var(--shadow-sm);
}

.devices-search .icon { width: 1.1rem; height: 1.1rem; stroke: var(--muted); flex-shrink: 0; }

.devices-search input {
  border: none;
  outline: none;
  background: none;
  font: inherit;
  font-size: 0.95rem;
  width: 100%;
  color: var(--white);
}

.devices-search input::placeholder { color: var(--muted); }

.device-group {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--border);
}

.device-group:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.device-group-photo {
  flex: 0 0 140px;
  width: 140px;
  aspect-ratio: 4 / 3;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.device-group-photo img { width: 100%; height: 100%; object-fit: cover; }

.device-group-body { flex: 1; min-width: 0; }

.device-group h2 {
  font-family: var(--font-h);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.device-chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.device-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--muted2);
  background: var(--bg2);
  transition: border-color var(--t), color var(--t);
}

.device-chip:hover { border-color: rgba(31,111,75,0.4); color: var(--white); }

/* ═══════════════════════════════════════
   ÜBER MICH
═══════════════════════════════════════ */
#ueber-mich { background: var(--bg2); }

.about-text {
  max-width: 680px;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-text p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-text p strong { color: var(--white); font-weight: 600; }

.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.value-icon {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  stroke: var(--accent);
  flex-shrink: 0;
}

.value-text h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.value-text p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ═══════════════════════════════════════
   PROZESS
═══════════════════════════════════════ */
#prozess { background: var(--bg); }

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 4.5rem;
  text-align: center;
}

.steps::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step { position: relative; }

.step-node {
  position: relative;
  z-index: 1;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: border-color var(--t), background var(--t);
}

.step-node .icon { width: 1.4rem; height: 1.4rem; stroke: var(--accent-l); }

.step-num {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-h);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
}

.step:hover .step-node {
  border-color: rgba(31,111,75,0.4);
  background: var(--glow);
}

.step h3 {
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.step p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 240px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════
   KONTAKT
═══════════════════════════════════════ */
#kontakt {
  background-image:
    linear-gradient(to bottom, rgba(246,248,251,0.97) 0%, rgba(246,248,251,0.94) 100%),
    url('img/kontakt-bg.webp');
  background-size: cover, cover;
  background-position: center, center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
}

.contact-info { display: flex; flex-direction: column; gap: 1rem; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  color: var(--white);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}

.contact-item:hover {
  border-color: rgba(31,111,75,0.4);
  transform: translateX(5px);
  box-shadow: -4px 0 20px rgba(31,111,75,0.1);
}

.contact-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glow);
  border-radius: var(--r-sm);
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.15rem;
}

.contact-val { font-weight: 500; font-size: 0.925rem; }

.contact-form { display: flex; flex-direction: column; gap: 0.875rem; }

.contact-form input,
.contact-form textarea {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.9rem 1.1rem;
  color: var(--white);
  font-family: var(--font-b);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  resize: vertical;
  width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted); }

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31,111,75,0.12);
}

.contact-form textarea { min-height: 140px; }

.contact-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  padding: 0.9rem;
  font-size: 0.975rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  font-family: var(--font-b);
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px rgba(31,111,75,0.28);
}

.contact-form button:hover {
  background: var(--accent-l);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(31,111,75,0.38);
}

.contact-form button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 4.5rem 2rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-logo {
  font-family: var(--font-h);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-block;
  margin-bottom: 0.9rem;
}

.footer-logo span { color: var(--accent); }

.footer-tagline {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
  max-width: 280px;
  margin-bottom: 1.35rem;
}

.footer-contact-mini {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-contact-mini a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--t);
}

.footer-contact-mini a:hover { color: var(--accent-d); }
.footer-contact-mini .icon { width: 0.95rem; height: 0.95rem; stroke: var(--accent-l); }

.footer-col-title {
  font-family: var(--font-h);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.15rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--t);
}

.footer-links a:hover { color: var(--accent-d); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy { color: var(--muted); font-size: 0.8rem; }

/* ═══════════════════════════════════════
   WHATSAPP FAB
═══════════════════════════════════════ */
.whatsapp-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,0.4), 0 2px 10px rgba(15,23,42,0.18);
  transition: transform var(--t), box-shadow var(--t);
}

.whatsapp-fab svg { width: 30px; height: 30px; fill: currentColor; }

.whatsapp-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 26px rgba(37,211,102,0.5), 0 4px 14px rgba(15,23,42,0.22);
}

@media (max-width: 480px) {
  .whatsapp-fab { right: 1.1rem; bottom: 1.1rem; width: 50px; height: 50px; }
  .whatsapp-fab svg { width: 26px; height: 26px; }
}

/* ═══════════════════════════════════════
   EBAY FAB
═══════════════════════════════════════ */
.ebay-fab {
  position: fixed;
  right: 1.5rem;
  bottom: calc(1.5rem + 70px);
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0064d2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,100,210,0.4), 0 2px 10px rgba(15,23,42,0.18);
  transition: transform var(--t), box-shadow var(--t);
}

.ebay-fab svg { width: 26px; height: 26px; fill: currentColor; }

.ebay-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 26px rgba(0,100,210,0.5), 0 4px 14px rgba(15,23,42,0.22);
}

@media (max-width: 480px) {
  .ebay-fab { right: 1.1rem; bottom: calc(1.1rem + 62px); width: 50px; height: 50px; }
  .ebay-fab svg { width: 23px; height: 23px; }
}

/* ═══════════════════════════════════════
   LEGAL PAGES
═══════════════════════════════════════ */
.legal-page {
  display: none;
  min-height: 100vh;
  padding: 8rem 2rem 5rem;
}

.legal-page.active { display: block; }

.legal-inner {
  max-width: 980px;
  margin: 0 auto;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent-l);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2.5rem;
  transition: gap var(--t);
}

.legal-back:hover { gap: 0.7rem; }

.legal-page h1 {
  font-family: var(--font-h);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
}

/* Sidebar-Inhaltsverzeichnis + Content */
.legal-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 3.5rem;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 6.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem;
}

.legal-toc-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.legal-toc a {
  font-size: 0.83rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.3rem 0 0.3rem 0.75rem;
  border-left: 2px solid var(--border);
  transition: color var(--t), border-color var(--t);
}

.legal-toc a:hover { color: var(--accent-l); border-left-color: var(--accent-l); }

.legal-content section {
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 6.5rem;
}

.legal-content section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.legal-page h2 {
  font-family: var(--font-h);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  font-size: 0.925rem;
  line-height: 1.78;
  margin-bottom: 0.5rem;
}

.legal-page ul { padding-left: 1.5rem; margin-bottom: 0.5rem; }

.legal-page a { color: var(--accent-l); }
.legal-page a:hover { text-decoration: underline; }

.legal-page a.btn-primary { color: #fff; text-decoration: none; }

#main-content { display: block; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 640px) {
  .legal-layout { grid-template-columns: 1fr; gap: 1.75rem; }

  .legal-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 0.25rem;
  }

  .legal-toc-label { width: 100%; }

  .legal-toc a {
    border-left: none;
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 0.35rem 0.85rem;
  }

  .legal-toc a:hover { border-color: var(--accent-l); }
}

@media (max-width: 900px) {
  #hero { min-height: auto; display: block; }

  .hero-photo {
    position: relative;
    inset: auto;
    height: 46vh;
    min-height: 280px;
  }

  .hero-text {
    position: relative;
    inset: auto;
    top: auto; left: auto; bottom: auto;
    width: 100%;
    clip-path: none;
    padding: 3rem 1.75rem 3.25rem;
  }
}

@media (max-width: 768px) {
  :root { --section-py: 5rem; }

  nav { padding: 1rem 1.25rem; }

  .hamburger {
    display: flex;
    position: relative;
    z-index: 101;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    transform: translateY(-100%);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    background: radial-gradient(ellipse 80% 60% at 110% 0%, rgba(31,111,75,0.10) 0%, transparent 60%),
                radial-gradient(ellipse 60% 50% at -10% 100%, rgba(31,111,75,0.06) 0%, transparent 60%),
                #ffffff;
    z-index: 99;
    gap: 0;
    padding: 6rem 2.5rem 3rem;
    overflow: hidden;
  }

  .nav-links.open { transform: translateY(0); }

  .nav-links li {
    width: 100%;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-links.open li:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.18s; }
  .nav-links.open li:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.24s; }
  .nav-links.open li:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.30s; }
  .nav-links.open li:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.36s; }
  .nav-links.open li:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.42s; }
  .nav-links.open li:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.46s; }

  .nav-links a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0;
    font-size: 2.2rem;
    font-weight: 700;
    font-family: var(--font-head);
    color: rgba(16,25,43,0.32);
    letter-spacing: -0.03em;
    border-bottom: 1px solid rgba(16,25,43,0.08);
    transition: color 0.2s, gap 0.2s;
  }

  .nav-links a:active,
  .nav-links a:focus { color: var(--white); gap: 1.4rem; }

  .nav-num {
    font-size: 0.75rem;
    font-weight: 500;
    font-family: var(--font-body);
    color: var(--accent);
    letter-spacing: 0.05em;
    min-width: 1.8rem;
    padding-top: 0.35rem;
    align-self: flex-start;
  }

  .nav-menu-cta,
  .nav-menu-contact { display: block; }

  .nav-menu-cta {
    margin-top: 2rem;
    border-top: 1px solid rgba(16,25,43,0.1);
    padding-top: 0.5rem;
  }

  .nav-menu-cta a {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    background: var(--accent);
    border-radius: 0.6rem;
    padding: 0.85rem 1.5rem !important;
    display: inline-flex !important;
    border-bottom: none !important;
    letter-spacing: -0.01em !important;
    gap: 0 !important;
    width: auto;
  }

  .nav-menu-contact a {
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    color: rgba(16,25,43,0.4) !important;
    border-bottom: none !important;
    padding: 0.6rem 0 !important;
    font-family: var(--font-body) !important;
    letter-spacing: 0 !important;
    gap: 0 !important;
  }

  .nav-cta { display: none; }

  .hero-photo { height: 38vh; min-height: 220px; }
  .hero-text { padding: 2.5rem 1.5rem 2.75rem; }

  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }

  .leistungen-teaser { grid-template-columns: 1fr; gap: 2rem; }
  .leistungen-teaser-photo { aspect-ratio: 16 / 9; }
  .leistungen-teaser-text .section-sub { max-width: none; }

  .services-page-cta { flex-direction: column; align-items: stretch; text-align: center; }

  .device-group { flex-direction: column; }
  .device-group-photo { width: 100%; flex-basis: auto; }

  .steps {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    text-align: left;
    margin-top: 3rem;
  }

  .steps::before {
    top: 30px;
    bottom: 30px;
    left: 30px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .step { display: flex; align-items: flex-start; gap: 1.25rem; }
  .step-node { margin: 0; flex-shrink: 0; }
  .step-text { flex: 1; min-width: 0; }
  .step p { max-width: none; margin: 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-tagline { max-width: 420px; }
}

@media (max-width: 560px) {
  footer { padding: 3.5rem 1.5rem 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  #hero h1 { letter-spacing: -0.02em; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; }
}

/* ═══════════════════════════════════════
   SCROLL ANIMATIONEN
═══════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}

.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}

.fade-left.in-view {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(14px);
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}

.fade-right.in-view {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-up, .fade-left, .fade-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
