/* ==========================================================================
   RÜMPELSTIEL.DE – Stylesheet
   Aufbau: 1. Farben & Grundwerte  2. Basis  3. Bausteine  4. Abschnitte
           5. Animationen  6. Responsiv
   ========================================================================== */

/* ---------- 1. Farben & Grundwerte ---------- */

:root {
  /* Markenfarbe (beide Modi) */
  --red: #cf1820;
  --red-hover: #b0121a;
  --on-red: #ffffff;
  --wa: #0f7a3f;
  --wa-hover: #0b6b37;
  --wa-icon: #128c4a;

  /* Heller Modus */
  --bg: #ffffff;
  --bg-alt: #f4f4f5;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --border: #e4e4e7;
  --border-strong: #c9c9d0;
  --input-border: #85858f;
  --text: #1c1c1f;
  --text-muted: #55555e;
  --heading: #0e0e10;
  --red-text: #c0161d;
  --red-tint: rgba(207, 24, 32, 0.09);
  --focus: #c0161d;

  --feature-bg: #1c1c1f;
  --feature-surface: #2a2a2f;
  --feature-text: #f4f4f5;
  --feature-muted: #c9c9d1;
  --feature-red-text: #ff6f6f;

  --swoosh-grey: #e6e6e9;
  --ph-bg: #fff4d6;
  --ph-border: #b7791f;
  --ph-text: #6b4a08;
  --placeholder-stripe: rgba(0, 0, 0, 0.035);

  --shadow-sm: 0 1px 2px rgba(15, 15, 20, 0.06);
  --shadow: 0 10px 30px -12px rgba(15, 15, 20, 0.18);

  color-scheme: light;

  /* Maße & Schrift */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --container: 1180px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Dunkler Modus: einmal für die Geräteeinstellung, einmal für die manuelle Wahl */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141416;
    --bg-alt: #1b1b1e;
    --surface: #212125;
    --surface-2: #29292e;
    --border: #33333a;
    --border-strong: #4a4a52;
    --input-border: #74747e;
    --text: #e9e9ec;
    --text-muted: #a9a9b3;
    --heading: #ffffff;
    --red-text: #ff6b6b;
    --red-tint: rgba(255, 90, 90, 0.12);
    --focus: #ff7a7a;
    --wa-icon: #3ddc84;

    --feature-bg: #222226;
    --feature-surface: #2d2d33;
    --feature-text: #f4f4f5;
    --feature-muted: #c4c4cc;
    --feature-red-text: #ff7a7a;

    --swoosh-grey: #26262b;
    --ph-bg: #3a2f12;
    --ph-border: #d6a23a;
    --ph-text: #f5d58a;
    --placeholder-stripe: rgba(255, 255, 255, 0.03);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 12px 32px -14px rgba(0, 0, 0, 0.7);

    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #141416;
  --bg-alt: #1b1b1e;
  --surface: #212125;
  --surface-2: #29292e;
  --border: #33333a;
  --border-strong: #4a4a52;
  --input-border: #74747e;
  --text: #e9e9ec;
  --text-muted: #a9a9b3;
  --heading: #ffffff;
  --red-text: #ff6b6b;
  --red-tint: rgba(255, 90, 90, 0.12);
  --focus: #ff7a7a;
  --wa-icon: #3ddc84;

  --feature-bg: #222226;
  --feature-surface: #2d2d33;
  --feature-text: #f4f4f5;
  --feature-muted: #c4c4cc;
  --feature-red-text: #ff7a7a;

  --swoosh-grey: #26262b;
  --ph-bg: #3a2f12;
  --ph-border: #d6a23a;
  --ph-text: #f5d58a;
  --placeholder-stripe: rgba(255, 255, 255, 0.03);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 12px 32px -14px rgba(0, 0, 0, 0.7);

  color-scheme: dark;
}

/* ---------- 2. Basis ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  color: var(--heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); font-weight: 850; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 750; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--red-text); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

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

[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--red);
  color: var(--on-red);
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Platzhalter für fehlende Angaben – in beiden Modi deutlich erkennbar */
.ph {
  background: var(--ph-bg);
  color: var(--ph-text);
  border: 1px dashed var(--ph-border);
  border-radius: 4px;
  padding: 0.05em 0.35em;
  font-weight: 600;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.draft-bar {
  background: var(--ph-bg);
  color: var(--ph-text);
  border-bottom: 1px dashed var(--ph-border);
  font-size: 0.875rem;
  padding: 0.45rem 0;
}

/* ---------- 3. Bausteine ---------- */

/* Wortmarke */
.brand { display: inline-flex; flex: none; text-decoration: none; color: inherit; border-radius: 6px; }
.wordmark {
  display: inline-flex;
  align-items: flex-end;
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--heading);
  white-space: nowrap;
}
.wm-b { color: var(--red); }
.wm-c { margin-left: -0.05em; }
.wm-broom {
  flex: none;
  max-width: none;
  width: 0.62em;
  height: 1.24em;
  margin: 0 -0.02em -0.05em 0.02em;
  fill: var(--red);
  transform-origin: 50% 90%;
  transition: transform 250ms var(--ease);
}
.brand:hover .wm-broom { transform: rotate(-10deg); }

/* Schaltflächen */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: 10px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms var(--ease), box-shadow 180ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { min-height: 54px; padding: 0.85rem 1.5rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--red); color: var(--on-red); box-shadow: 0 8px 20px -10px rgba(207, 24, 32, 0.7); }
.btn-primary:hover { background: var(--red-hover); color: var(--on-red); }

.btn-secondary { background: var(--surface); color: var(--heading); border-color: var(--input-border); }
.btn-secondary:hover { border-color: var(--red); color: var(--heading); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); min-height: 44px; padding: 0.5rem 1rem; font-size: 0.95rem; }
.btn-ghost:hover { border-color: var(--red); }

.btn[disabled] { opacity: 0.65; cursor: progress; transform: none; }

.link-arrow {
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.link-arrow::after { content: "→"; transition: transform 180ms var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  color: var(--red-text);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.kicker::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--red); }

/* ---------- Kopfbereich ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.main-nav { margin-left: auto; }

.nav-menu { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  display: block;
  white-space: nowrap;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}
.nav-menu a:hover { color: var(--red-text); background: var(--red-tint); }
.nav-menu a[aria-current="page"] { color: var(--red-text); box-shadow: inset 0 -2px 0 var(--red); border-radius: 8px 8px 0 0; }
.nav-menu-phone { display: none; }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: 10px;
  background: var(--red);
  color: var(--on-red);
  font-weight: 750;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms var(--ease);
}
.header-phone:hover { background: var(--red-hover); transform: translateY(-1px); }

.theme-toggle,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 44px;
  height: 44px;
  padding: 0 0.6rem;
  border-radius: 10px;
  border: 1.5px solid var(--input-border);
  background: var(--surface);
  color: var(--heading);
  font: inherit;
  font-weight: 650;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--red); }
.theme-toggle .icon { width: 20px; height: 20px; transition: transform 300ms var(--ease); }
.theme-toggle:hover .icon { transform: rotate(-15deg); }

/* Symbol zeigt, wohin umgeschaltet wird: Mond im hellen, Sonne im dunklen Modus */
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: block; }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
}

.nav-toggle { display: none; }
.nav-toggle-bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle-bars span { height: 2px; border-radius: 2px; background: currentColor; transition: transform 220ms var(--ease), opacity 160ms ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Abschnitte allgemein ---------- */

.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 3.5rem) 1rem; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 720px; margin: 0 auto clamp(2.2rem, 4vw, 3.2rem); text-align: center; }
.section-head .kicker { justify-content: center; }
.section-head > p:not(.kicker) { color: var(--text-muted); font-size: 1.1rem; }
.section-head-left { text-align: left; margin-inline: 0; }
.section-head-left .kicker { justify-content: flex-start; }

.subheading { font-size: 1.15rem; font-weight: 750; letter-spacing: 0; margin-bottom: 1rem; color: var(--text-muted); }

/* ---------- 4. Abschnitte ---------- */

/* Einstieg */
.hero {
  position: relative;
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(6rem, 12vw, 9.5rem);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1.1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--red-tint);
  color: var(--red-text);
  font-weight: 750;
  font-size: 0.92rem;
}

.hero h1 { margin-bottom: 0.45em; }
.hero-title .eyebrow { display: table; letter-spacing: normal; line-height: 1.4; border-radius: 0.9rem; }
.hero-title-main { display: block; }
.area-note { margin: 1.75rem 0 0; text-align: center; color: var(--text-muted); }
.town-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; max-width: 760px; margin: 0 auto !important; }
.town-list li {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-weight: 700;
  color: var(--heading);
}
.town-list li:first-child { background: var(--red); border-color: var(--red); color: var(--on-red); }
.hero-lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--text-muted); max-width: 38ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 5px solid var(--red);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  box-shadow: var(--shadow);
}

.tagline {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.4em;
  margin-bottom: 1.4rem;
  font-size: clamp(1.35rem, 2.4vw, 1.6rem);
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--heading);
}
.tagline span:nth-child(2) { color: var(--red-text); }

.hero-facts { display: grid; gap: 1.1rem; }
.hero-facts li { display: flex; gap: 0.85rem; align-items: flex-start; }
.hero-facts .icon { width: 22px; height: 22px; margin-top: 0.15rem; color: var(--red-text); }
.hero-facts strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.hero-facts a { font-weight: 800; font-size: 1.2rem; text-decoration: none; }
.hero-facts a:hover { text-decoration: underline; }

.hero-swoosh {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(60px, 9vw, 130px);
}
.sw-grey { fill: var(--swoosh-grey); }
.sw-red { fill: var(--red); }
.sw-base { fill: var(--bg); }

/* Leistungen */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.service-card {
  position: relative;
  padding: 1.75rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 220ms var(--ease), border-color 220ms ease, box-shadow 220ms ease;
}
.service-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--red) 45%, var(--border)); box-shadow: var(--shadow); }
.service-card h3 { hyphens: manual; }
.service-card p { color: var(--text-muted); font-size: 1rem; }

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  background: var(--red-tint);
  color: var(--red-text);
}
.service-icon .icon { width: 26px; height: 26px; }

.service-note {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
}
.service-note .icon { color: var(--red-text); width: 24px; height: 24px; }
.service-note p { flex: 1 1 280px; margin: 0; }

/* Ablauf */
.steps {
  --steps-gap: 2.75rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--steps-gap);
}
.step {
  position: relative;
  padding: 2rem 1.75rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: var(--red);
  color: var(--on-red);
  font-weight: 850;
  font-size: 1.2rem;
}
.step p { color: var(--text-muted); }
/* Pfeil mittig im Zwischenraum zur nächsten Karte, auf Höhe der Nummer */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(2rem + 23px - 6px);
  right: calc(var(--steps-gap) / -2 - 4px);
  width: 12px;
  height: 12px;
  border: solid var(--red);
  border-width: 3px 3px 0 0;
  transform: rotate(45deg);
}

/* Immobilienverkauf */
.feature {
  background: var(--feature-bg);
  color: var(--feature-text);
  position: relative;
  border-top: 6px solid var(--red);
}
.feature h2 { color: #ffffff; }
.feature .kicker { color: var(--feature-red-text); }
.feature a:not(.btn) { color: var(--feature-red-text); }

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.feature-lead { font-size: 1.15rem; color: var(--feature-muted); }
.footnote-ref { font-weight: 800; text-decoration: none; padding: 0 0.1em; }

.check-list { display: grid; gap: 0.8rem; margin: 1.6rem 0 2rem !important; }
.check-list li { position: relative; padding-left: 2.1rem; font-weight: 600; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--red);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 0.47rem;
  top: 0.38em;
  width: 0.38rem;
  height: 0.7rem;
  border: solid #ffffff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.conditions {
  background: var(--feature-surface);
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.conditions h3 { color: #ffffff; font-size: 1.1rem; }
.conditions p { color: var(--feature-muted); font-size: 1rem; line-height: 1.7; }
.conditions-more { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.12); }

/* Über uns */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.about-copy > p { color: var(--text-muted); }
.about-copy > p:first-of-type { color: var(--text); }

.values { display: grid; gap: 0.9rem; margin-top: 1.8rem !important; }
.values li {
  display: grid;
  gap: 0.1rem;
  padding: 0.9rem 1.1rem 0.9rem 1.25rem;
  border-left: 3px solid var(--red);
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.values span { color: var(--text-muted); font-size: 0.98rem; }

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  border: 2px dashed var(--ph-border);
  border-radius: var(--radius-lg);
  color: var(--ph-text);
  background:
    repeating-linear-gradient(135deg, var(--placeholder-stripe) 0 12px, transparent 12px 24px),
    var(--ph-bg);
}
.photo-placeholder .icon { width: 40px; height: 40px; }
.photo-portrait { aspect-ratio: 4 / 5; position: sticky; top: calc(var(--header-h) + 24px); }
.ph-title { font-weight: 750; }
.ph-text { font-size: 0.92rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 4rem) !important;
}
.gallery .photo-placeholder { aspect-ratio: 4 / 3; font-size: 0.95rem; }

/* FAQ */
.faq-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.faq-preview .section-head { margin-bottom: 0; }
.faq-preview .section-head .btn { margin-top: 1.4rem; }

.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); transition: background-color 200ms ease; }
.faq-q { margin: 0; font-size: inherit; letter-spacing: 0; }

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem 0.25rem;
  background: none;
  border: 0;
  color: var(--heading);
  font: inherit;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease;
}
.faq-trigger:hover { color: var(--red-text); }
.faq-item.is-open .faq-trigger { color: var(--red-text); }

.faq-icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--input-border);
  transition: transform 250ms var(--ease), background-color 200ms ease, border-color 200ms ease;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 250ms var(--ease), opacity 200ms ease;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item.is-open .faq-icon { background: var(--red); border-color: var(--red); color: var(--on-red); transform: rotate(180deg); }
.faq-item.is-open .faq-icon::after { transform: rotate(0deg); opacity: 0; }

.faq-answer { padding: 0 0.25rem 1.3rem; color: var(--text-muted); max-width: 70ch; }
.faq-answer ul { margin: 0 0 1em; padding-left: 1.2rem; }
.faq-answer li { margin-bottom: 0.25rem; }

/* Mit JavaScript werden Antworten eingeklappt; ohne JavaScript bleiben sie sichtbar */
.js .faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 280ms var(--ease), visibility 0s linear 280ms;
}
.js .faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 280ms var(--ease), visibility 0s;
}
.faq-panel-inner { overflow: hidden; min-height: 0; }

.faq-page { padding-bottom: 1rem; }
.faq-tools { display: flex; justify-content: flex-end; margin: 1.5rem 0 0.5rem; }
.faq-group { padding-block: 2.5rem 1rem; }
.faq-group h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-bottom: 0.35rem; }
.faq-group-summary { color: var(--text-muted); margin-bottom: 1.5rem; }

.topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.topic-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  height: 100%;
  padding: 1.3rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 200ms ease, transform 200ms var(--ease), box-shadow 200ms ease;
}
.topic-card:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow); }
.topic-title { font-weight: 800; color: var(--heading); line-height: 1.3; }
.topic-summary { color: var(--text-muted); font-size: 0.95rem; flex: 1; }
.topic-count { font-size: 0.85rem; font-weight: 700; color: var(--red-text); }

/* Unterseiten-Kopf */
.page-hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  background: var(--bg-alt);
  border-bottom: 4px solid var(--red);
}
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.page-hero-lead { max-width: 60ch; color: var(--text-muted); font-size: 1.12rem; margin-bottom: 1.6rem; }
.page-hero-small h1 { margin-bottom: 0; }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.2rem; font-size: 0.92rem; color: var(--text-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--border-strong); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--red-text); }

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: var(--feature-bg);
  color: var(--feature-muted);
  border-left: 6px solid var(--red);
}
.cta-panel h2 { color: #ffffff; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-panel .btn-secondary { background: transparent; color: #ffffff; border-color: rgba(255, 255, 255, 0.4); }
.cta-panel .btn-secondary:hover { border-color: #ffffff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* Rechtstexte */
.prose { max-width: 760px; padding-block: clamp(2.5rem, 5vw, 4rem); }
.prose h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.prose ul { padding-left: 1.3rem; margin: 0 0 1em; }
.prose li { margin-bottom: 0.3rem; }
.legal-date { margin-top: 2.5rem; color: var(--text-muted); font-size: 0.95rem; }
.legal-note, .tech-note {
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.legal-note { background: var(--ph-bg); color: var(--ph-text); border: 1px dashed var(--ph-border); }
.legal-note p { margin-top: 0.4rem; }
.tech-note { background: var(--bg-alt); border: 1px solid var(--border); font-size: 0.97rem; }
.tech-note strong { display: block; margin-bottom: 0.3rem; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }

/* Kontakt */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact-intro > p { color: var(--text-muted); font-size: 1.1rem; }

.phone-big {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin: 1.4rem 0 1.6rem;
  padding: 1rem 1.4rem 1rem 1rem;
  border-radius: var(--radius-lg);
  background: var(--red);
  color: var(--on-red);
  text-decoration: none;
  box-shadow: 0 14px 30px -16px rgba(207, 24, 32, 0.8);
  transition: background-color 180ms ease, transform 180ms var(--ease);
}
.phone-big:hover { background: var(--red-hover); transform: translateY(-2px); }
.phone-big-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(255, 255, 255, 0.16); }
.phone-big-icon .icon { width: 26px; height: 26px; }
.phone-big-label { display: block; font-size: 0.85rem; font-weight: 650; opacity: 0.92; }
.phone-big-number { display: block; font-size: clamp(1.4rem, 3vw, 1.75rem); font-weight: 850; letter-spacing: -0.01em; white-space: nowrap; }

.contact-facts { display: grid; gap: 0.4rem; margin-bottom: 1.6rem !important; }

.photo-hint {
  display: flex;
  gap: 0.9rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.98rem;
}
.photo-hint .icon { color: var(--red-text); width: 24px; height: 24px; margin-top: 0.1rem; }
.photo-hint + .photo-hint { margin-top: 1rem; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  box-shadow: var(--shadow);
}
.form-title { font-size: 1.35rem; }

.demo-note {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--ph-bg);
  color: var(--ph-text);
  border: 1px dashed var(--ph-border);
  font-size: 0.95rem;
}
.demo-note a { color: inherit; font-weight: 700; }

.form-status {
  margin-bottom: 1.2rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border-strong);
  font-weight: 600;
}
.form-status[data-type="error"] { border-color: var(--red); background: var(--red-tint); }
.form-status[data-type="demo"] { border-color: var(--ph-border); background: var(--ph-bg); color: var(--ph-text); }
.form-status[data-type="success"] { border-color: #2f9e5b; background: rgba(47, 158, 91, 0.12); }
.form-status a { color: inherit; }

.form-legend { font-size: 0.9rem; color: var(--text-muted); }

.field { display: grid; gap: 0.35rem; margin-bottom: 1.15rem; }
.field label, .field-group legend { font-weight: 700; color: var(--heading); font-size: 0.98rem; }
.req { color: var(--red-text); }
.optional { font-weight: 500; color: var(--text-muted); }
.field-hint { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1.5px solid var(--input-border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text-muted); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent);
}
.field [aria-invalid="true"] { border-color: var(--red); background: var(--red-tint); }

.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem; cursor: pointer; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border: solid var(--text-muted);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  pointer-events: none;
}

.field-error { margin: 0; font-size: 0.92rem; font-weight: 650; color: var(--red-text); }
.field-error:empty { display: none; }
.field-error:not(:empty)::before { content: "! "; font-weight: 900; }

[hidden] { display: none !important; }

.check-label { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 600; color: var(--text); cursor: pointer; line-height: 1.5; }
.check-label input { flex: none; width: 22px; height: 22px; margin: 0.1rem 0 0; accent-color: var(--red); cursor: pointer; }
.consent-field { padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--border); }

.field-group { border: 0; padding: 0; margin: 0 0 1.15rem; min-width: 0; }
.field-group legend { padding: 0; margin-bottom: 0.2rem; }
.field-group .field-hint { margin-bottom: 0.6rem; }
.field-group.has-error { padding: 0.9rem; margin-inline: -0.9rem; border-radius: var(--radius); background: var(--red-tint); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-row .field { margin-bottom: 0.4rem; }

.form-privacy { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.2rem; }

/* Fußbereich */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  color: var(--text-muted);
  font-size: 0.98rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-tagline { margin: 1rem 0 0.5rem; font-weight: 800; color: var(--heading); }
.footer-heading { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--heading); margin-bottom: 1rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-list a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 0.45rem; }
.footer-list a:hover { color: var(--red-text); text-decoration: underline; }
.footer-list .icon { color: var(--red-text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-block: 1.3rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}
.footer-bottom p { margin: 0; }

/* Feste Kontaktleiste (nur Smartphone) */
.mobile-bar { display: none; }

/* ---------- Unterseiten-Bausteine ---------- */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.section-more { margin-top: 2rem; text-align: center; }

/* Klickbare Leistungskarten auf der Startseite */
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-link:focus-visible { outline: none; }
.service-card:has(.card-link:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.service-card:has(.card-more) { display: flex; flex-direction: column; }
.card-more {
  display: inline-flex;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.9rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--red-text);
}
.card-more::after { content: "→"; transition: transform 180ms var(--ease); }
.service-card:hover .card-more::after { transform: translateX(3px); }

/* Schaltfläche auf dunklem Grund */
.btn-on-dark { background: transparent; color: #ffffff; border-color: rgba(255, 255, 255, 0.45); }
.btn-on-dark:hover { border-color: #ffffff; color: #ffffff; }

/* Kurze Werte-Liste auf der Startseite */
.pill-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.5rem 0 1.8rem !important; }
.pill-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-weight: 650;
  font-size: 0.95rem;
}
.pill-list .icon { width: 18px; height: 18px; color: var(--red-text); }
.about-teaser .photo-portrait { aspect-ratio: 4 / 3; position: static; }
.about-teaser { align-items: center; }
.about-grid > :only-child { grid-column: 1 / -1; max-width: 820px; }

/* Echte Fotos: Vorher/Nachher und Anhänger */
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.ba-item {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  box-shadow: var(--shadow-sm);
}
.ba-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ba-item figcaption { position: absolute; top: 0.75rem; left: 0.75rem; }
.ba-label {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(20, 20, 22, 0.85);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.ba-label-after { background: var(--red); }
.work-photos .before-after { max-width: 760px; }
.wide-photo { margin: 1.25rem 0 0; max-width: 760px; }
.wide-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.wide-photo figcaption { padding-top: 0.7rem; color: var(--text-muted); font-size: 0.95rem; }
.ai-note { white-space: nowrap; font-size: 0.88rem; }

/* Sprungliste im Seitenkopf (Leistungen) */
.jump-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.jump-list a {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--input-border);
  background: var(--surface);
  color: var(--heading);
  font-weight: 650;
  font-size: 0.92rem;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease;
}
.jump-list a:hover { border-color: var(--red); color: var(--red-text); }

/* Leistungen im Detail */
.service-details { padding-block: clamp(2.5rem, 6vw, 4.5rem); display: grid; gap: 1.25rem; }
.service-detail {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--red);
  border-radius: var(--radius-lg);
}
.service-detail h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
.service-detail > div > p { color: var(--text-muted); max-width: 68ch; }
.service-icon-lg { width: 64px; height: 64px; border-radius: 16px; margin: 0; }
.service-icon-lg .icon { width: 32px; height: 32px; }

.included-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1.5rem;
  margin: 1.2rem 0 0 !important;
}
.included-list li { display: flex; gap: 0.55rem; align-items: flex-start; font-weight: 600; }
.included-list .icon { width: 20px; height: 20px; margin-top: 0.15rem; color: var(--red-text); }

.detail-hint {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-top: 1.2rem !important;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.98rem;
}
.detail-hint .icon { color: var(--red-text); width: 22px; height: 22px; margin-top: 0.1rem; }

.scale-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.scale-list li {
  display: grid;
  gap: 0.2rem;
  padding: 1.4rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
}
.scale-list strong { font-size: 1.1rem; color: var(--heading); }
.scale-list span { color: var(--text-muted); font-size: 0.95rem; }

/* Ablauf im Detail */
.step-details { display: grid; gap: 1.25rem; }
.step-detail {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 1.75rem);
  padding: clamp(1.5rem, 3.5vw, 2.2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.step-detail .step-num { margin: 0; }
.step-detail h3 { font-size: 1.35rem; }
.step-detail > div > p { color: var(--text-muted); }
.step-detail .included-list { margin-bottom: 1rem !important; }

/* Immobilienverkauf */
.feature-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 7vw, 5.5rem); border-top: 0; border-bottom: 6px solid var(--red); }
.feature-hero h1 { color: #ffffff; font-size: clamp(2.1rem, 5vw, 3.4rem); }
.breadcrumb-on-dark ol, .feature .breadcrumb-on-dark a { color: var(--feature-muted); }
.feature .breadcrumb-on-dark a:hover { color: #ffffff; }
.breadcrumb-on-dark li + li::before { color: rgba(255, 255, 255, 0.35); }

.partner-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.partner-box {
  padding: clamp(1.5rem, 3.5vw, 2.2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 5px solid var(--red);
  border-radius: var(--radius-lg);
}
.partner-box > p:not(.kicker) { color: var(--text-muted); }
.partner-note { margin-top: 1rem !important; font-size: 0.85rem; }

.gallery-title { margin-top: clamp(2.5rem, 5vw, 4rem); }
.gallery-title + .gallery { margin-top: 0 !important; }

/* ---------- WhatsApp ---------- */

.btn-whatsapp .icon { color: var(--wa-icon); }
.hero-facts .is-whatsapp .icon { color: var(--wa-icon); }
.btn-whatsapp:hover { border-color: var(--wa-icon); }

.header-whatsapp {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--wa);
  color: #ffffff;
  transition: background-color 160ms ease, transform 160ms var(--ease);
}
.header-whatsapp:hover { background: var(--wa-hover); transform: translateY(-1px); }
.header-whatsapp .icon { width: 22px; height: 22px; }

.whatsapp-big { background: var(--wa); box-shadow: 0 14px 30px -16px rgba(15, 122, 63, 0.8); }
.whatsapp-big:hover { background: var(--wa-hover); }
.phone-big + .whatsapp-big { margin-top: -0.6rem; }
.contact-intro .phone-big { display: flex; max-width: 22rem; }

/* Spam-Falle im Formular: für Menschen unsichtbar */
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 5. Animationen ---------- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Sanftes Erscheinen im Einstieg – Inhalte bleiben sichtbar, falls keine Animation läuft */
  .hero-anim { animation: rise-in 350ms var(--ease) both; animation-delay: var(--d, 0ms); }

  /* Einblenden beim Scrollen: JavaScript markiert nur Elemente unterhalb des sichtbaren Bereichs */
  .is-pending { opacity: 0; transform: translateY(14px); }
  .reveal-anim {
    transition: opacity 350ms var(--ease) var(--stagger, 0ms), transform 350ms var(--ease) var(--stagger, 0ms) !important;
  }

  /* Kurzer Farbwechsel beim Umschalten hell/dunkel */
  .theme-switching,
  .theme-switching *,
  .theme-switching *::before,
  .theme-switching *::after {
    transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease, fill 250ms ease, box-shadow 250ms ease !important;
  }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .is-pending { opacity: 1; transform: none; }
}

@media print {
  .is-pending { opacity: 1 !important; transform: none !important; }
  .site-header, .mobile-bar, .theme-toggle, .draft-bar { display: none !important; }
}

/* ---------- 6. Responsiv ---------- */

@media (max-width: 1140px) {
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 200ms ease, transform 200ms var(--ease), visibility 0s linear 200ms;
  }
  .site-header.nav-open .main-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 200ms ease, transform 200ms var(--ease), visibility 0s;
  }
  .nav-menu {
    flex-direction: column;
    gap: 0;
    width: min(var(--container), 100% - 2.5rem);
    margin-inline: auto;
    padding: 0.6rem 0 1.1rem;
    max-height: calc(100vh - var(--header-h) - 2rem);
    overflow-y: auto;
  }
  .nav-menu a { padding: 0.85rem 0.6rem; font-size: 1.08rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-menu a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); border-radius: 0; padding-left: 0.9rem; }
  .nav-menu-phone { display: block; margin-top: 0.8rem; }
  .nav-menu-phone a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    background: var(--red);
    color: var(--on-red);
    font-weight: 750;
  }
  .nav-menu-phone a:hover { background: var(--red-hover); color: var(--on-red); }
  .nav-menu-whatsapp { margin-top: 0.5rem; }
  .nav-menu-whatsapp a { background: var(--wa); }
  .nav-menu-whatsapp a:hover { background: var(--wa-hover); }
}

@media (max-width: 960px) {
  .hero-grid, .feature-grid, .about-grid, .contact-grid, .faq-preview, .partner-grid { grid-template-columns: 1fr; }
  .scale-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; --steps-gap: 2.25rem; }
  .step:not(:last-child)::after {
    top: auto;
    right: auto;
    left: 50%;
    bottom: calc(var(--steps-gap) / -2 - 4px);
    margin-left: -6px;
    transform: rotate(135deg);
  }
  .photo-portrait { position: static; aspect-ratio: 16 / 10; max-height: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  :root { --header-h: 64px; }
  body { font-size: 1rem; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

  .header-phone, .header-whatsapp { display: none; }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .wordmark { font-size: 1.22rem; }

  .hero-actions .btn { flex: 1 1 100%; }
  .service-grid, .topic-grid, .gallery { grid-template-columns: 1fr; }
  .gallery .photo-placeholder { aspect-ratio: 16 / 7; }
  .field-row { grid-template-columns: 1fr; }
  .included-list { grid-template-columns: 1fr; }
  .service-detail, .step-detail { grid-template-columns: 1fr; }
  .scale-list { grid-template-columns: 1fr; }
  .section-more .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .faq-tools { justify-content: flex-start; }
  .cta-actions .btn { flex: 1 1 100%; }

  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 0.5rem;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
    background: var(--bg);
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
  }
  .mobile-bar .btn { min-height: 50px; padding-inline: 0.5rem; gap: 0.4rem; }
}

@media (max-width: 380px) {
  .wordmark { font-size: 1.08rem; }
  .header-inner { gap: 0.75rem; }
}

@media (max-width: 360px) {
  .mobile-bar { gap: 0.4rem; padding-inline: 0.5rem; }
  .mobile-bar .btn { font-size: 0.92rem; padding-inline: 0.3rem; }
  .mobile-bar .btn:has(.icon + span) .icon { display: none; }
}
