/* =========================================================
   Autohaus Geng · One-Pager
   Markenfarben aus Logo: Anthrazit #3f3e3a, Grün #82c341, Weiß
   ========================================================= */

/* ---------- Fonts (self-hosted, DSGVO-konform) ---------- */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/nunito-v25-latin-regular.woff2") format("woff2"),
    url("../fonts/nunito-v25-latin-regular.woff") format("woff");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/nunito-v25-latin-700.woff2") format("woff2"),
    url("../fonts/nunito-v25-latin-700.woff") format("woff");
}

/* ---------- Design Tokens ---------- */
:root {
  --green: #82c341;
  --green-dark: #6aa831;
  --green-darker: #588b27;
  --ink: #3f3e3a; /* Logo-Anthrazit */
  --ink-soft: #55534e;
  --ink-deep: #2b2a27;
  --muted: #6b6a65;
  --bg: #ffffff;
  --bg-muted: #f5f6f2;
  --line: #e6e6e0;
  --white: #ffffff;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(43, 42, 39, 0.06);
  --shadow: 0 12px 30px rgba(43, 42, 39, 0.1);
  --shadow-lg: 0 22px 50px rgba(43, 42, 39, 0.16);

  --container: 1180px;
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Dark Mode Variablen ---------- */
[data-theme="dark"] {
  --bg: #181714;
  --bg-muted: #212019;
  --white: #252321;
  --ink: #e0dfd8;
  --ink-soft: #c2c1ba;
  --ink-deep: #f0efe9;
  --muted: #9a9892;
  --line: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.45);
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 22px 50px rgba(0, 0, 0, 0.65);
}

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--green-darker);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink-deep);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  letter-spacing: -0.02em;
}
h3 {
  font-size: 1.25rem;
}
p {
  margin: 0 0 1rem;
}
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1200;
  background: var(--ink-deep);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

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

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  font-weight: 700;
  font-size: 1.02rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease), color 0.2s var(--ease);
  text-decoration: none;
  line-height: 1.1;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--green);
  color: #15310a;
  box-shadow: 0 10px 22px rgba(130, 195, 65, 0.35);
}
.btn-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 14px 28px rgba(130, 195, 65, 0.45);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background: #fff;
  color: var(--ink-deep);
  border-color: #fff;
}
.btn-block {
  width: 100%;
}
.btn-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #3f3e3a; /* Logo-Anthrazit – immer dunkel, kein Theme-Switch */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.25s var(--ease);
}
.site-header.scrolled {
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.35);
}
.nav-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  flex-shrink: 0;
  margin-right: auto; /* schiebt Toggle + Nav nach rechts */
}
.brand img {
  height: 52px;
  width: auto;
}
/* Desktop: Dark-Toggle nach den Nav-Links positionieren */
@media (min-width: 861px) {
  .dark-toggle { order: 10; }
}
.main-nav {
  display: flex;
  align-items: center;
}
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  position: relative;
  display: inline-block;
  padding: 10px 6px;
  margin-inline: 8px;
  color: rgba(255, 255, 255, 0.82); /* weiß auf dunklem Nav */
  font-weight: 700;
  transition: color 0.2s var(--ease);
}
/* Grüner Unterstrich-Indikator – Logo-Grün #82c341 */
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 2px;
  height: 3px;
  border-radius: 3px;
  background: #82c341;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s var(--ease);
}
.nav-menu a:hover,
.nav-menu a.active {
  color: #fff;
  background: transparent;
  text-decoration: none;
}
.nav-menu a:hover::after,
.nav-menu a.active::after {
  transform: scaleX(1);
}
.nav-menu .nav-cta {
  margin-left: 16px;
  padding: 11px 22px;
  border-radius: 999px;
  background: #82c341; /* Logo-Grün */
  color: #15310a;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-menu .nav-cta::after {
  display: none;
}
.nav-menu .nav-cta:hover {
  background: #9ad44f;
  color: #0f2506;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  margin-inline: auto;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

/* ---------- Dark-Mode-Umschalter ---------- */
.dark-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.35s var(--ease);
}
.dark-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(18deg);
}
.dark-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun  { display: block; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- Eyebrow / Section heads ---------- */
.eyebrow {
  display: inline-block;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 0.9rem;
}
.section {
  padding: clamp(60px, 8vw, 110px) 0;
}
.section--muted {
  background: var(--bg-muted);
}
.section--dark {
  background: #2b2a27; /* hardcoded – bleibt im Dark Mode dunkel */
  color: #d9d8d2;
}
.section--dark h2 {
  color: #fff;
}
.section-head {
  max-width: 720px;
  margin: 0 0 clamp(36px, 5vw, 56px);
}
.section-lead {
  max-width: 60ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.12rem;
}
.section--dark .section-lead {
  color: #b8b7b0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  display: flex;
  align-items: center;
  min-height: min(88vh, 760px);
  padding: calc(var(--header-h) + 30px) 0 70px;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  background-color: #2b2a27; /* fest dunkel – --ink-deep wird im Dark Mode hell */
  background-image: linear-gradient(120deg, #4a4945 0%, #2b2a27 60%),
    repeating-linear-gradient(
      135deg,
      rgba(130, 195, 65, 0.06) 0 22px,
      transparent 22px 44px
    );
  background-blend-mode: overlay;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      120% 90% at 80% 10%,
      rgba(130, 195, 65, 0.22),
      transparent 55%
    ),
    linear-gradient(90deg, rgba(20, 19, 17, 0.92) 0%, rgba(20, 19, 17, 0.55) 55%, rgba(20, 19, 17, 0.3) 100%);
}
/* Scheinwerfer-Lichtkegel – Position setzt main.js per Maus (--spot-x/--spot-y) */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    520px circle at var(--spot-x, 72%) var(--spot-y, 38%),
    rgba(130, 195, 65, 0.16),
    rgba(130, 195, 65, 0.05) 40%,
    transparent 70%
  );
  pointer-events: none;
}

/* Live-Öffnungsstatus */
.hero-status {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  margin: 0 0 1.2rem;
  padding: 7px 16px 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  font-size: 0.92rem;
  font-weight: 700;
  color: #f2f2ee;
}
.hero-status[hidden] {
  display: none;
}
.hero-status-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e0574f;
}
.hero-status.is-open .hero-status-dot {
  background: var(--green);
}
.hero-status.is-open .hero-status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  animation: status-pulse 1.8s ease-out infinite;
}
@keyframes status-pulse {
  from { transform: scale(1); opacity: 0.7; }
  to   { transform: scale(2.8); opacity: 0; }
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero h1 {
  max-width: 14em;
  color: #fff;
  margin-bottom: 0.4em;
}
.hero .eyebrow {
  color: var(--green);
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: #e7e7e2;
  max-width: 600px;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 2.4rem;
}
.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
  padding: 0;
}
.hero-badges li {
  position: relative;
  padding-left: 26px;
  font-weight: 700;
  color: #f2f2ee;
}
.hero-badges li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='m9.5 16.2-3.7-3.7 1.4-1.4 2.3 2.3 6-6 1.4 1.4z'/></svg>")
    center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='m9.5 16.2-3.7-3.7 1.4-1.4 2.3 2.3 6-6 1.4 1.4z'/></svg>")
    center / contain no-repeat;
}

/* ---------- Über uns ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.about-media {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius-lg);
  background-color: var(--bg-muted);
  background-image: linear-gradient(135deg, #e9ebe3, #d6dccb),
    repeating-linear-gradient(135deg, rgba(63, 62, 58, 0.05) 0 18px, transparent 18px 36px);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.about-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}
.about-text .checklist {
  margin-top: 1.4rem;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.team-photo {
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #3f3e3a; /* Logo-Anthrazit – fest, kein Theme-Switch */
  color: var(--green);
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.team-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-deep);
  margin-bottom: 0.8rem;
}
.team-name span {
  display: block;
  font-size: 0.95rem;
  color: var(--muted);
}
.team-text p {
  max-width: 60ch;
}
.team-text .btn {
  margin-top: 0.8rem;
}

/* ---------- Checklist ---------- */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.checklist li {
  position: relative;
  padding-left: 36px;
  font-weight: 600;
  color: var(--ink-soft);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(130, 195, 65, 0.16);
  -webkit-mask: none;
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 7px;
  width: 14px;
  height: 14px;
  background: var(--green-darker);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='m9.5 16.2-3.7-3.7 1.4-1.4 2.3 2.3 6-6 1.4 1.4z'/></svg>")
    center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='m9.5 16.2-3.7-3.7 1.4-1.4 2.3 2.3 6-6 1.4 1.4z'/></svg>")
    center / contain no-repeat;
}

/* ---------- Leistungen ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(32px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}
.service-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 20px;
  align-items: start;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.service-card > :not(.service-icon) {
  grid-column: 2;
}
.service-icon {
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(130, 195, 65, 0.14);
}
.service-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--green-darker);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card h3 {
  margin-bottom: 0.3rem;
}
.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}
.service-card--accent .service-icon {
  background: var(--green);
}
.service-card--accent .service-icon svg {
  stroke: #15310a;
}

/* ---------- Vorteile ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.benefit {
  padding: 4px 0 4px 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}
.benefit-icon {
  display: block;
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
}
.benefit-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.benefit h3 {
  color: #fff;
}
.benefit p {
  margin: 0;
  color: #b6b5ae;
  font-size: 0.98rem;
}

/* ---------- Kundenstimmen ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review {
  margin: 0;
  background: var(--bg-muted);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}
.stars {
  color: #f5a623;
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.review blockquote {
  margin: 0 0 20px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink);
  flex: 1;
}
.review figcaption {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.review figcaption strong {
  color: var(--ink-deep);
}
.review figcaption span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
  align-items: start;
}
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field {
  margin-bottom: 18px;
}
.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-deep);
  margin-bottom: 7px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink-deep);
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg-muted);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(130, 195, 65, 0.18);
}
.form-field textarea {
  resize: vertical;
  min-height: 120px;
}
.form-field input.invalid,
.form-field textarea.invalid {
  border-color: #d9534f;
  box-shadow: 0 0 0 4px rgba(217, 83, 79, 0.14);
}
.checkbox-field {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 22px;
  line-height: 1.5;
}
.checkbox-field input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--green-dark);
}
.form-note {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 14px 0 0;
}
.form-status {
  margin: 12px 0 0;
  font-weight: 700;
  min-height: 1.2em;
}
.form-status.error {
  color: #c0392b;
}
.form-status.ok {
  color: var(--green-darker);
}

/* Kontakt-Infos */
.contact-info {
  display: grid;
  gap: 22px;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}
.info-card h3 {
  margin-bottom: 0.3rem;
}
.info-owner {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}
.info-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 16px;
}
.info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.info-ic {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(130, 195, 65, 0.14);
}
.info-ic svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--green-darker);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.info-list small {
  color: var(--muted);
}
.hours {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
.hours th,
.hours td {
  text-align: left;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.hours th {
  font-weight: 700;
  color: var(--ink-deep);
  width: 38%;
}
.hours td {
  color: var(--ink-soft);
}
.hours tr:last-child th,
.hours tr:last-child td {
  border-bottom: none;
}
.info-hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Karte */
.map-wrap {
  margin-top: 30px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--white);
}
.map-wrap iframe {
  width: 100%;
  height: 380px;
  display: block;
}
.map-link {
  display: block;
  padding: 14px 22px;
  font-weight: 700;
  background: var(--white);
  border-top: 1px solid var(--line);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #3f3e3a; /* Logo-Anthrazit – immer dunkel, kein Theme-Switch */
  color: #c4c3bc;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-top: 64px;
  padding-bottom: 50px;
}
.footer-brand img {
  height: 60px;
  width: auto;
  margin-bottom: 16px;
}
.footer-brand p {
  max-width: 320px;
  color: #aeada6;
}
.footer-col h4 {
  color: #fff;
  font-size: 1.02rem;
  margin-bottom: 1rem;
}
.footer-col p,
.footer-col a {
  color: #c4c3bc;
}
.footer-col a:hover {
  color: var(--green);
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.partner-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #e7e6e0;
  background: rgba(255, 255, 255, 0.04);
}
.partner-note {
  font-size: 0.78rem;
  color: #b5b4ad;
  margin: 0;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: #b5b4ad;
  text-align: center;
}

/* ---------- Modals ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] {
  display: none;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 19, 17, 0.6);
  backdrop-filter: blur(3px);
  animation: fade 0.25s var(--ease);
}
.modal-box {
  position: relative;
  z-index: 1;
  background: var(--bg);
  width: min(720px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 44px);
  box-shadow: var(--shadow-lg);
  animation: pop 0.3s var(--ease);
}
.modal-box h2 {
  margin-top: 0;
}
.modal-box h3 {
  font-size: 1.05rem;
  margin-top: 1.6rem;
}
.modal-box p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.modal-hint {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: none;
  background: var(--bg-muted);
  border-radius: 50%;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover {
  background: var(--ink-deep);
  color: #fff;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-deep);
  border-radius: 50%;
  box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease), background 0.2s;
}
.back-to-top[hidden] {
  display: none;
}
.back-to-top svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--green);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.back-to-top:hover {
  transform: translateY(-3px);
  background: var(--green);
}
.back-to-top:hover svg {
  stroke: #15310a;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 72px;
  }
  .nav-toggle {
    display: flex;
  }

  /* ---- Rechtes Drawer-Menü ---- */
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(300px, 82vw);
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: calc(var(--header-h) + 20px) 16px 32px;
    background: #3f3e3a; /* Logo-Anthrazit – gleiche Farbe wie Header */
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.45);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0.35s;
    overflow-y: auto;
    z-index: 990; /* unter dem Header (1000) */
  }
  .nav-menu.open {
    transform: translateX(0);
    visibility: visible;
  }
  .nav-menu li {
    width: 100%;
  }
  .nav-menu a {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-size: 1.06rem;
    color: rgba(255, 255, 255, 0.82);
    border-radius: 10px;
    margin: 0;
    transition: background 0.18s, color 0.18s;
  }
  .nav-menu a::after {
    display: none; /* kein Unterstrich im Drawer */
  }
  .nav-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }
  .nav-menu a.active {
    color: #82c341;
    background: rgba(130, 195, 65, 0.1);
  }
  .nav-menu .nav-cta {
    margin: 14px 0 0;
    width: 100%;
    text-align: center;
    border-radius: 10px;
    padding: 15px 22px;
    font-size: 1.06rem;
  }

  /* Overlay hinter dem Drawer */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 980;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
  }
  .nav-overlay.visible {
    opacity: 1;
    visibility: visible;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
  .about-media {
    min-height: 280px;
    order: -1;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .team-photo {
    max-width: 340px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Dark-Mode-Overrides für hart kodierte Werte ---------- */
[data-theme="dark"] .review {
  background: var(--white);
}
[data-theme="dark"] .contact-form-wrap,
[data-theme="dark"] .info-card {
  background: var(--white);
  border-color: rgba(255, 255, 255, 0.07);
}
[data-theme="dark"] .about-media {
  background-image: linear-gradient(135deg, #2e2d2a, #1e1d1a);
}
[data-theme="dark"] .modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
[data-theme="dark"] .map-wrap {
  border-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 560px) {
  body {
    font-size: 1rem;
  }
  .services-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

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