/* =========================================================
   areal4 Immobilien – Relaunch 2026
   Webdesign & Umsetzung: Polar Marketing GmbH
   ========================================================= */

/* ---------- Web-Fonts: DSGVO-konform lokal ausgeliefert ---------- */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                 U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design-Tokens ---------- */
:root {
  /* Markenfarben, übernommen aus dem Bestand (Rot / Grau / Blau) */
  --red: #a7081e;
  --red-dark: #86061a;
  --red-tint: #fdf1f2;
  --slate: #5c727d;
  --slate-dark: #2b3a42;
  --slate-deep: #1c272d;
  --blue: #8593a9;
  --blue-tint: #eef1f6;

  --ink: #1a2227;
  --body: #4a5760;
  --muted: #7b8791;
  --line: #e3e7ea;
  --line-soft: #eef1f3;
  --surface: #ffffff;
  --surface-alt: #f6f8f9;

  /* im Onboarding gewünscht: breitere Darstellung für heutige Monitorgrößen */
  --wrap: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 2px rgba(28, 39, 45, .06), 0 2px 8px rgba(28, 39, 45, .05);
  --shadow-md: 0 4px 12px rgba(28, 39, 45, .07), 0 12px 32px rgba(28, 39, 45, .07);

  --ease: cubic-bezier(.22, .61, .36, 1);

  /* Hoehe der klebenden Kopfzeile – Sprungmarken und Sticky muessen darunter bleiben */
  --header-h: 4.75rem;
}

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

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv05';
}

img, svg { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }   /* Browser-Standard sind 1em 40px */

/* Grundsatz: nirgends unterstreichen – Hover läuft über Farbe und Bewegung */
a { color: var(--red); text-decoration: none; transition: color .18s var(--ease); }
a:hover { text-decoration: none; color: var(--red-dark); }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.018em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul { margin: 0 0 1.1em; padding-left: 1.1em; }
li { margin-bottom: .45em; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--red); color: #fff; padding: .75rem 1.25rem;
}
.skip-link:focus { left: 0; }

/* ---------- Layout-Helfer ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-bottom: 1rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red);
}
.eyebrow::before {
  content: ''; width: 1.75rem; height: 2px;
  background: var(--red); flex: none;
}
.eyebrow--light { color: #fff; }
.eyebrow--light::before { background: rgba(255, 255, 255, .55); }
/* im hellen Hero gilt wieder die normale Auszeichnung */
.hero .eyebrow--light { color: var(--red); }
.hero .eyebrow--light::before { background: var(--red); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { font-size: 1.1rem; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.6rem;
  border: 1px solid transparent; border-radius: var(--radius);
  font-size: .97rem; font-weight: 600; letter-spacing: .005em;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { flex: none; }

/* Wichtig: Die Textfarbe muss bei jeder Variante auch im Hover-Zustand
   gesetzt sein, sonst greift die allgemeine Regel a:hover und die
   Beschriftung verschwindet im Hintergrund. */
.btn--primary,
.btn--primary:hover { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }

.btn--ghost,
.btn--ghost:hover { color: var(--ink); }
.btn--ghost { background: transparent; border-color: var(--line); }
.btn--ghost:hover { border-color: var(--slate); background: #fff; }

.btn--onDark,
.btn--onDark:hover { color: #fff; }
.btn--onDark { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .32); }
.btn--onDark:hover { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .7); }

/* WhatsApp-Grün wie im schwebenden Element, Schrift und Icon weiß */
.btn--wa,
.btn--wa:hover { color: #fff; }
.btn--wa { background: #25d366; border-color: #25d366; }
.btn--wa:hover { background: #1da851; border-color: #1da851; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.link-arrow,
.link-arrow:hover {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; font-size: .95rem; color: var(--red);
}
.link-arrow::after { content: '\2192'; transition: transform .18s var(--ease); }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover::after { transform: translateX(4px); }

/* =========================================================
   Kopfbereich
   ========================================================= */
.topbar {
  background: var(--slate-deep);
  color: rgba(255, 255, 255, .82);
  font-size: .84rem;
}
.topbar .wrap {
  display: flex; flex-wrap: wrap; gap: .35rem 1.5rem;
  align-items: center; justify-content: space-between;
  min-height: 2.6rem; padding-block: .4rem;
}
.topbar a { color: inherit; transition: color .18s var(--ease); }
.topbar a:hover { color: #fff; }
.footer-bottom nav a:hover { color: #fff; }
.topbar-group { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; }
.topbar-sep { color: rgba(255, 255, 255, .3); }
.topbar-item { display: inline-flex; align-items: center; gap: .4rem; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 4.75rem;
}

/* Original-Wortmarke des Kunden */
.logo { display: inline-flex; align-items: center; }
.logo img { width: 168px; height: auto; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  position: relative;
  padding: .6rem .85rem;
  font-size: .95rem; font-weight: 500; color: var(--ink);
  border-radius: var(--radius);
}
.nav a:hover { color: var(--red); text-decoration: none; background: var(--surface-alt); }
.nav a[aria-current='page'] { color: var(--red); font-weight: 600; }
.nav a[aria-current='page']::after {
  content: ''; position: absolute; left: .85rem; right: .85rem; bottom: .25rem;
  height: 2px; background: var(--red);
}
.nav .btn { margin-left: .6rem; padding: .7rem 1.15rem; }
/* Der Button ist kein normaler Navigationslink – Schrift bleibt weiß */
.nav a.btn--primary,
.nav a.btn--primary:hover { color: #fff; background: var(--red); }
.nav a.btn--primary:hover { background: var(--red-dark); }
.nav a.btn--primary::after { display: none; }

.nav-toggle {
  display: none;
  width: 2.9rem; height: 2.9rem;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; color: var(--ink);
}

/* ---------- Schwebendes Kontaktelement (rechts) ---------- */
.float-cta {
  position: fixed; right: 0; top: 50%; z-index: 90;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 2px;
  /* flex-end: die nicht angesteuerte Schaltfläche bleibt am rechten Rand
     stehen, statt beim Ausfahren der Nachbarin mitzuwandern */
  align-items: flex-end;
}
/* Eingefahren ist ausschließlich das Icon zu sehen – die Beschriftung
   ist ausgeblendet und fährt erst beim Überfahren auf. */
.float-cta a {
  display: flex; align-items: center;
  height: 3.2rem;
  padding-left: .95rem;
  background: var(--red); color: #fff;
  font-size: .8rem; font-weight: 600; white-space: nowrap;
  border-radius: 4px 0 0 4px;
  overflow: hidden;
  width: 3.2rem;
  transition: width .28s var(--ease), background-color .18s var(--ease);
}
.float-cta a svg { flex: none; }
/* auch hier die Farbe im Hover festhalten */
.float-cta a, .float-cta a:hover { color: #fff; }
.float-cta a span {
  padding: 0 1rem 0 .6rem;
  opacity: 0;
  transition: opacity .18s var(--ease);
}
.float-cta a:hover { text-decoration: none; background: var(--red-dark); width: var(--w, 15rem); }
.float-cta a:hover span { opacity: 1; transition-delay: .06s; }
/* Original-WhatsApp-Grün #25D366 mit weißem Icon und weißer Schrift –
   so gibt es auch WhatsApp selbst für seine Buttons vor. */
.float-cta a.is-wa { background: #25d366; }
.float-cta a.is-wa:hover { background: #1fbb59; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  background: var(--surface-alt);
  color: var(--body);
  overflow: hidden;
}
/* dezentes Raster statt der bisherigen »Welle« – auf hellem Grund entsprechend dunkel */
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(26, 34, 39, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26, 34, 39, .05) 1px, transparent 1px);
  background-size: 5.5rem 5.5rem;
  mask-image: radial-gradient(120% 90% at 82% 15%, #000 15%, transparent 72%);
  pointer-events: none;
}
/* zarter Rotschimmer statt des kräftigen Leuchtens auf Dunkel */
.hero::after {
  content: ''; position: absolute;
  width: 34rem; height: 34rem; right: -10rem; top: -12rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 8, 30, .07), transparent 66%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid; gap: clamp(2.5rem, 5vw, 4.5rem);
  grid-template-columns: 1fr 1.02fr; align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.hero h1 { color: var(--ink); max-width: 20ch; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero-lead { color: var(--body); font-size: clamp(1.05rem, 1.7vw, 1.28rem); max-width: 46ch; }
.hero .btn-row { margin-top: 2rem; }

/* Drei Kennzahlen – identisches Raster oben im Hero und unten im Unternehmensteil */
.hero-facts {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
  max-width: 34rem;
  margin-top: 2.75rem; padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.hero-fact strong {
  display: block; margin-bottom: .3rem;
  font-size: clamp(1.75rem, 2.6vw, 2.15rem); font-weight: 700;
  color: var(--ink); letter-spacing: -.035em; line-height: 1.05;
  white-space: nowrap;
}
.hero-fact span {
  display: block;
  font-size: .82rem; line-height: 1.35; color: var(--muted);
}

.hero-media { position: relative; }
.hero-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero-figure img { width: 100%; height: auto; }

/* rechts unten: überdeckt die Figur der Illustration nicht */
.badge-cert {
  position: absolute; right: -1.5rem; bottom: -1.5rem;
  background: #fff; color: var(--ink);
  padding: .95rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: .75rem;
  max-width: 18.5rem;
}
.badge-cert > div { line-height: 1.35; }
.badge-cert strong { display: block; font-size: .88rem; }
.badge-cert span { font-size: .76rem; color: var(--muted); }
.badge-cert .seal {
  flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--red-tint); color: var(--red);
  display: grid; place-content: center; font-size: .7rem; font-weight: 700;
}

/* =========================================================
   USP-Leiste
   ========================================================= */
.usp-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
.usp {
  padding: 1.9rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
}
.usp-icon {
  display: grid; place-content: center;
  width: 3.1rem; height: 3.1rem; margin-bottom: 1.15rem;
  border-radius: 50%;
  background: var(--red-tint); color: var(--red);
}
.usp h3 { margin-bottom: .5rem; }
.usp p { font-size: .96rem; margin: 0; }

/* =========================================================
   Leistungen
   ========================================================= */
.service-grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(3, 1fr); }
.service {
  display: flex; flex-direction: column;
  padding: 2rem 1.85rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.service:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #d5dbdf; }
/* Illustrationsband am Kartenkopf (Kundenmaterial aus den EPS-Dateien).
   Die Motive werden unverändert gezeigt: kein Beschnitt, kein Filter –
   nur proportional skaliert. */
/* Bildband füllt den Kartenkopf randlos aus – die Motive haben
   unterschiedliche Seitenverhältnisse, deshalb formatfüllend beschnitten */
.service-media {
  margin: -2rem -1.85rem 1.5rem;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.service-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}

.panel-media {
  margin: 0 0 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-media img { width: 100%; height: auto; }
.service p { font-size: .97rem; }
.service ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.service ul li {
  position: relative; padding-left: 1.35rem; font-size: .94rem; color: var(--body);
}
/* Haken statt Aufzählungspunkt */
.service ul li::before {
  content: '';
  position: absolute; left: .15rem; top: .42em;
  width: .34rem; height: .62rem;
  border: solid var(--red);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.service .link-arrow { margin-top: auto; }

/* =========================================================
   Ablauf
   ========================================================= */
/* drei Schritte laut Textvorlage; das Raster trägt auch vier oder fünf */
.steps { display: grid; gap: 1.5rem 1.75rem; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; }
/* plakative Ziffer statt kleiner Kreis */
.step-no {
  display: block;
  margin-bottom: 1rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--red);
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  font-weight: 700; line-height: 1; letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}
.step h3 { margin-bottom: .4rem; }
.step p { font-size: .96rem; margin: 0; }
.step--todo { opacity: .6; }
.step--todo .step-no { background: transparent; color: var(--muted); border: 1px dashed var(--line); }

/* =========================================================
   Preise / Gutachten
   ========================================================= */
.price-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
.price {
  display: flex; flex-direction: column; gap: .9rem;
  padding: 1.9rem 1.85rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.price--featured { border-color: var(--red); box-shadow: var(--shadow-sm); }
.price-icon {
  display: grid; place-content: center;
  width: 2.9rem; height: 2.9rem; margin-bottom: .25rem;
  border-radius: 50%;
  background: var(--red-tint); color: var(--red);
}
.price-tag {
  display: inline-block; align-self: flex-start;
  padding: .2rem .55rem; border-radius: 2px;
  background: var(--red-tint); color: var(--red);
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.price h3 { margin: 0; }
.price p { font-size: .95rem; margin: 0; }
.price-meta {
  display: flex; flex-wrap: wrap; gap: .35rem 1.5rem;
  margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line-soft);
  font-size: .88rem;
}
.price-meta dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; }
.price-meta dd { margin: .1rem 0 0; font-weight: 600; color: var(--ink); font-size: 1rem; }
.price-meta > div { min-width: 8rem; }
.price .btn { align-self: flex-start; margin-top: 1.1rem; }
.price-note { margin-top: 1.5rem; font-size: .88rem; color: var(--muted); }

/* =========================================================
   Marktanalyse-Fragen
   ========================================================= */
.split {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: .95fr 1.05fr; align-items: start;
}
/* ---------- FAQ-Akkordeon ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.25rem;
  padding: 1.05rem 0;
  font-size: 1rem; font-weight: 600; color: var(--ink);
  transition: color .18s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--red); }
.faq-item summary:focus-visible { outline-offset: 0; }

/* Plus, das beim Aufklappen zum Minus wird */
.faq-toggle {
  position: relative; flex: none;
  width: 1.35rem; height: 1.35rem; margin-top: .12rem;
}
.faq-toggle::before, .faq-toggle::after {
  content: ''; position: absolute; background: var(--red); border-radius: 1px;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.faq-toggle::before { left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; }
.faq-toggle::after  { top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; }
.faq-item[open] .faq-toggle::after { transform: scaleY(0); opacity: 0; }

.faq-answer { padding: 0 3rem 1.3rem 0; }
.faq-answer p { margin: 0; font-size: .97rem; }

/* =========================================================
   Bewertungen
   ========================================================= */
.reviews-head {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: flex-end; justify-content: space-between;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
/* Bewertungen als Slider mit Pfeilen – Abstände wie im Rest der Seite */
.review-slider { position: relative; padding-inline: 3.75rem; }
.review-track {
  display: flex; gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.review-track::-webkit-scrollbar { display: none; }
.review-track > .review {
  flex: 0 0 calc((100% - 2.5rem) / 3);
  scroll-snap-align: start;
}

.review-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2;
  width: 2.9rem; height: 2.9rem;
  display: grid; place-content: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: #fff; color: var(--ink); cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s var(--ease), color .18s var(--ease), opacity .18s var(--ease);
}
.review-nav:hover { border-color: var(--red); color: var(--red); }
.review-nav[disabled] { opacity: .3; cursor: default; }
.review-nav[disabled]:hover { border-color: var(--line); color: var(--ink); }
.review-nav--prev { left: 0; }
.review-nav--next { right: 0; }

.review { scroll-snap-align: start; }

.review-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2;
  width: 2.9rem; height: 2.9rem;
  display: grid; place-content: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: #fff; color: var(--ink); cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s var(--ease), color .18s var(--ease), opacity .18s var(--ease);
}
.review-nav:hover { border-color: var(--red); color: var(--red); }
.review-nav[disabled] { opacity: .3; cursor: default; }
.review-nav[disabled]:hover { border-color: var(--line); color: var(--ink); }
.review-nav--prev { left: -1.45rem; }
.review-nav--next { right: -1.45rem; }
.review {
  display: flex; flex-direction: column;
  /* figure bringt vom Browser 40 px Außenabstand mit – das war die Lücke */
  margin: 0;
  padding: 1.5rem 1.4rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius);
}
/* Namen auf gleicher Höhe, unabhängig von der Textlänge */
.review figcaption { margin-top: auto; padding-top: 1rem; }
.stars { display: flex; gap: .12rem; margin-bottom: .8rem; color: #f0a12a; }
.review blockquote { margin: 0; font-size: .96rem; line-height: 1.55; color: var(--ink); }
.review figcaption { font-size: .86rem; color: var(--muted); }
.review figcaption strong { display: block; color: var(--ink); font-size: .93rem; }
.rating-summary { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.rating-summary .stars { margin: 0; }
.rating-summary p { margin: 0; font-size: .92rem; color: var(--body); }
.rating-summary strong { color: var(--ink); font-size: 1.05rem; }

/* =========================================================
   Vermarktung / Partner
   ========================================================= */
.panel {
  background: var(--slate-deep); color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 5vw, 3.5rem);
}
.panel h2 { color: #fff; }
.panel p { color: rgba(255, 255, 255, .78); }
.panel .split { align-items: center; grid-template-columns: 1.05fr .95fr; }
.panel-media { align-self: center; }

/* =========================================================
   Unternehmen
   ========================================================= */
.people { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
.person {
  display: flex; gap: 1.5rem; align-items: flex-start;
  padding: 1.75rem 1.6rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.portrait {
  flex: none; margin: 0;
  width: 7rem; height: 7rem;
  border-radius: 50%; overflow: hidden;
  background: var(--blue-tint);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin-bottom: .2rem; font-size: 1.15rem; }
.person p { margin: 0 0 .5rem; font-size: .92rem; }
.person p:last-of-type { margin-bottom: 0; }
.person-role { font-weight: 600; color: var(--slate-dark); }
/* Siegelreihe wie auf der Bestandsseite – Motive unverändert, nur skaliert */
.seals {
  list-style: none; padding: 0;
  margin: 1rem 0 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem;
}
.seals li { margin: 0; }
.seals img { height: 82px; width: auto; }

.certs { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.certs-title {
  margin-bottom: 1.25rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.cert-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(4, 1fr);
}
.cert-grid--3 { grid-template-columns: repeat(3, 1fr); max-width: 46rem; }
.cert-grid li { margin: 0; }
.cert-grid a {
  display: block;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: .5rem;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.cert-grid a:hover { border-color: var(--slate); box-shadow: var(--shadow-sm); }
.cert-grid img { width: 100%; height: auto; }
.cert-grid span {
  display: block; margin-top: .6rem;
  font-size: .84rem; color: var(--muted);
}

/* Platzhalter, solange eine Bilddatei noch fehlt */
.img-missing {
  display: grid; place-content: center; text-align: center;
  width: 100%; padding: 1rem;
  border: 1px dashed var(--line); border-radius: var(--radius);
  background: var(--surface-alt);
  font-size: .78rem; line-height: 1.35; color: var(--muted);
}
.seals .img-missing { width: 6rem; padding: .6rem; aspect-ratio: 1 / 1 !important; font-size: .68rem; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.chip {
  padding: .2rem .6rem; border-radius: 2px;
  background: var(--surface-alt); border: 1px solid var(--line);
  font-size: .76rem; font-weight: 600; color: var(--slate);
}

.stat-row {
  display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr);
  max-width: 34rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.stat strong {
  display: block; margin-bottom: .3rem;
  font-size: clamp(1.75rem, 2.6vw, 2.15rem); font-weight: 700;
  color: var(--ink); letter-spacing: -.035em; line-height: 1.05;
  white-space: nowrap;
}
.stat span { display: block; font-size: .82rem; line-height: 1.35; color: var(--muted); }


/* =========================================================
   Abschluss-CTA
   ========================================================= */
.cta-final {
  background: linear-gradient(120deg, var(--red) 0%, #8c0a20 100%);
  color: #fff;
}
.cta-final h2 { color: #fff; }
.cta-final p { color: rgba(255, 255, 255, .85); }
.cta-final .split { align-items: center; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.contact-list li { display: flex; gap: .75rem; align-items: flex-start; margin: 0; font-size: 1rem; }
/* Kontaktdaten: Hover wie im Fußbereich – Farbwechsel plus kleiner Versatz nach
   rechts, kein Unterstrich und keine Fläche. Grundfarbe ist die Textfarbe der
   Seite; Weiß gilt nur in den dunklen Abschnitten, sonst stünde Weiß auf Weiß. */
.contact-list a {
  color: var(--ink);
  display: inline-block;
  transition: color .18s var(--ease), transform .18s var(--ease);
}
.contact-list a:hover {
  color: var(--red);
  transform: translateX(3px);
}
.contact-list svg { flex: none; margin-top: .25rem; opacity: .8; }

/* Auf Rot und auf dunklem Grund */
.cta-final .contact-list a,
.panel .contact-list a { color: rgba(255, 255, 255, .88); }
.cta-final .contact-list a:hover,
.panel .contact-list a:hover { color: #fff; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--slate-deep); color: rgba(255, 255, 255, .68); font-size: .93rem; }
/* Footer-Links: rücken beim Überfahren leicht nach rechts und hellen auf */
.site-footer a {
  color: rgba(255, 255, 255, .78);
  display: inline-block;
  transition: color .18s var(--ease), transform .18s var(--ease);
}
.site-footer a:hover { color: #fff; transform: translateX(3px); }
.site-footer .social a:hover { transform: translateY(-2px); }
.footer-bottom a:hover { transform: none; }
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.site-footer h4 {
  margin-bottom: 1rem; color: #fff;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }

/* Aufzählungsstrich vor den Linkspalten */
.site-footer ul a:not(.has-icon a)::before {
  content: '–';
  margin-right: .5rem;
  color: rgba(255, 255, 255, .35);
  transition: color .18s var(--ease);
}
.site-footer ul a:hover::before { color: var(--red); }

/* Kontaktzeilen mit Symbol */
.site-footer li.has-icon {
  display: flex; align-items: flex-start; gap: .6rem;
  margin-bottom: .9rem;
}
.site-footer li.has-icon svg { flex: none; margin-top: .28rem; opacity: .6; }
.site-footer li.has-icon a::before { content: none; }
/* Logo unverändert – dafür steht es im dunklen Footer auf hellem Grund */
.footer-brand .logo-plate {
  display: inline-block;
  padding: .9rem 1.1rem;
  background: #fff;
  border-radius: var(--radius);
}
.footer-brand .logo-plate img { width: 150px; height: auto; }
.footer-brand p { margin-top: 1.1rem; max-width: 28ch; font-size: .92rem; }
.social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.social a {
  width: 2.4rem; height: 2.4rem; border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
  display: grid; place-content: center;
  transition: background-color .18s var(--ease);
}
.social a:hover { background: rgba(255, 255, 255, .18); }

/* ImmoScout24-Siegel im Footer */
.is24 { margin-top: 2rem; }
.is24 h4 { margin-bottom: .6rem; }
.is24-note { margin: 0 0 .85rem; font-size: .82rem; line-height: 1.5; color: rgba(255, 255, 255, .55); }
.is24 .btn { padding: .6rem 1rem; font-size: .86rem; }
/* Das Widget bringt seine eigene weiße Karte mit – kein zweiter Rahmen,
   sonst entstehen ungleiche Ränder. */
.consent-frame { display: block; line-height: 0; }
.consent-frame iframe { display: block; border: 0; }
/* Karte: fuellt die Breite des Elternelements */
.consent-frame--fill { width: 100%; }
.consent-frame--fill iframe { width: 100%; height: clamp(18rem, 42vw, 26rem); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  align-items: center; justify-content: space-between;
  padding-block: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .85rem; color: rgba(255, 255, 255, .55);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.credit { font-size: .82rem; opacity: .85; }

/* =========================================================
   Rechtstexte – Impressum, Datenschutz
   ========================================================= */
.page-head {
  padding-block: clamp(2.25rem, 5vw, 4rem);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { margin-bottom: .35em; font-size: clamp(1.9rem, 4vw, 2.9rem); }
.page-head p { max-width: 54ch; margin: 0; font-size: 1.05rem; }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .55rem;
  margin: 0 0 1.15rem; padding: 0;
  list-style: none; font-size: .84rem; color: var(--muted);
}
.breadcrumb li { margin: 0; display: inline-flex; align-items: center; gap: .55rem; }
.breadcrumb li + li::before { content: '\203A'; color: var(--muted); opacity: .6; }
.breadcrumb a { color: var(--slate); transition: color .18s var(--ease), transform .18s var(--ease); }
.breadcrumb a:hover { color: var(--red); transform: translateX(-2px); }
.breadcrumb [aria-current='page'] { color: var(--ink); }

.legal-layout {
  display: grid; align-items: start;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: 17.5rem minmax(0, 1fr);
  /* Rechtstexte lesen sich schmal besser als über die volle Blattbreite */
  max-width: 68rem;
}

.legal-toc {
  position: sticky; top: calc(var(--header-h) + 1.25rem);
  padding: 1.35rem 1.5rem;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  font-size: .92rem;
}
.legal-toc h2 {
  margin-bottom: .85rem;
  font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted);
}
.legal-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.legal-toc li { margin-bottom: .45rem; counter-increment: toc; }
.legal-toc li:last-child { margin-bottom: 0; }
.legal-toc a {
  display: flex; gap: .55rem;
  color: var(--slate-dark); line-height: 1.4;
  transition: color .18s var(--ease), transform .18s var(--ease);
}
.legal-toc a::before { content: counter(toc) '.'; flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.legal-toc a:hover { color: var(--red); transform: translateX(3px); }
.legal-toc a:hover::before { color: var(--red); }

.legal { max-width: 46rem; }
.legal > section + section { margin-top: clamp(2.25rem, 4vw, 3.25rem); }
.legal > section { scroll-margin-top: calc(var(--header-h) + 1.25rem); }
.legal h2 {
  margin-bottom: .75em; padding-bottom: .45rem;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 1.25rem);
}
.legal h3 { margin: 1.7em 0 .5em; font-size: 1.05rem; }
.legal h3:first-of-type { margin-top: 0; }
.legal p, .legal ul, .legal ol { font-size: .98rem; }
.legal ul, .legal ol { padding-left: 1.15em; }
.legal li { margin-bottom: .35em; }
.legal address { font-style: normal; }

/* Adress- und Datenblock */
.legal-card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.legal-dl {
  display: grid; gap: .95rem 1.75rem;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  margin: 0; font-size: .98rem;
}
.legal-dl dt {
  padding-top: .15em;
  font-size: .76rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted);
}
.legal-dl dd { margin: 0; color: var(--ink); }
.legal-dl dd a { color: var(--red); }

/* Hinweis, der beim Redigieren nicht übersehen werden darf */
.legal-todo {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  background: var(--red-tint);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .92rem;
}
.legal-todo strong { color: var(--red-dark); }
.legal-todo p:last-child { margin-bottom: 0; }

.legal code {
  padding: .1em .35em;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: .9em;
}

.footer-bottom nav a[aria-current='page'] { color: #fff; }

.legal-meta { margin-top: clamp(2.25rem, 4vw, 3rem); padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }

/* =========================================================
   Blog – Übersicht und Einzelbeitrag
   ========================================================= */
.post-list { display: grid; gap: 1.75rem; grid-template-columns: repeat(2, 1fr); }

.post-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #d5dbdf; }
.post-card-media { overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-alt); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.6rem 1.7rem; }
.post-card h3 { margin-bottom: .5rem; font-size: 1.15rem; }
.post-card h3 a, .post-card h3 a:hover { color: var(--ink); }
.post-card:hover h3 a { color: var(--red); }
.post-card p { font-size: .95rem; }
.post-card .link-arrow { margin-top: auto; padding-top: 1.1rem; }

/* Übersicht: alle Karten gleich, dreispaltig. Die Beitragsseiten zeigen
   zwei weitere Beiträge und bleiben beim Zweierraster. */
.post-list--3 { grid-template-columns: repeat(3, 1fr); }

.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem;
  margin-bottom: .8rem;
  font-size: .8rem; color: var(--muted);
}
.post-meta .tag {
  padding: .2rem .55rem;
  background: var(--red-tint); border-radius: 2px;
  color: var(--red); font-weight: 600;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .07em;
}
.post-meta time { font-variant-numeric: tabular-nums; }
.post-meta .dot { opacity: .5; }

/* ---------- Einzelbeitrag ---------- */
.article { max-width: 44rem; margin-inline: auto; }
.article > figure:first-child { margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.article-figure { border-radius: var(--radius-lg); overflow: hidden; }
.article-figure img { width: 100%; height: auto; }
.article figcaption { margin-top: .6rem; font-size: .82rem; line-height: 1.5; color: var(--muted); }
.article figcaption .credit { display: inline-block; margin-left: .2rem; opacity: .75; }

.article-lead { font-size: clamp(1.1rem, 1.7vw, 1.28rem); line-height: 1.6; color: var(--ink); }
.article h2 {
  margin-top: 2.1em; margin-bottom: .6em;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  scroll-margin-top: calc(var(--header-h) + 1.25rem);
}
.article h3 { margin-top: 1.9em; margin-bottom: .45em; }
.article > h2:first-child, .article > h3:first-child { margin-top: 0; }
.article ul, .article ol { padding-left: 1.15em; }
.article li { margin-bottom: .4em; }

/* Kernaussage zum Herausstellen */
.article blockquote {
  margin: 1.75rem 0;
  padding: .35rem 0 .35rem 1.4rem;
  border-left: 3px solid var(--red);
  font-size: 1.1rem; line-height: 1.55; color: var(--ink);
}
.article blockquote p:last-child { margin-bottom: 0; }

/* Aufzählung mit Häkchen wie in den Leistungskarten */
.article ul.checks { list-style: none; padding: 0; }
.article ul.checks li { position: relative; padding-left: 1.6rem; }
.article ul.checks li::before {
  content: ''; position: absolute; left: .25rem; top: .5em;
  width: .34rem; height: .62rem;
  border: solid var(--red); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.article-note {
  margin: 1.75rem 0;
  padding: 1.15rem 1.35rem;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  font-size: .95rem;
}
.article-note p:last-child { margin-bottom: 0; }
.article-note strong { color: var(--ink); }

/* ---------- Nachdruck: Beitrag ist zuerst woanders erschienen ---------- */
.press-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .7rem;
  margin-bottom: .9rem;
  font-size: .85rem; color: var(--body);
}
.press-line .quelle { font-weight: 700; color: var(--ink); }
.press-line .anzeige {
  padding: .16rem .5rem;
  border: 1px solid var(--line); border-radius: 2px;
  background: var(--surface);
  font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .09em; color: var(--muted);
}
.press-line .dot { opacity: .5; }

/* Hinweisleiste über dem Nachdruck */
.reprint-bar {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .75rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  padding: .95rem 1.2rem;
  background: var(--blue-tint);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .9rem;
}
.reprint-bar p { margin: 0; }
.reprint-bar a { font-weight: 600; white-space: nowrap; }

/* Interview */
.qa + .qa { margin-top: 1.5rem; }
.qa-q {
  margin-bottom: .5rem;
  padding-left: 1.15rem;
  border-left: 3px solid var(--red);
  font-weight: 700; color: var(--ink);
}
.qa-a { margin-bottom: 0; padding-left: 1.15rem; }

/* Autorenzeile */
.author {
  display: flex; align-items: center; gap: 1.25rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 1.4rem 1.5rem;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.author img { flex: none; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.author strong { display: block; color: var(--ink); }
.author p { margin: 0; font-size: .9rem; }

.post-source { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }

/* Abschluss-Aufforderung im Beitrag */
.post-cta {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.6rem, 4vw, 2.5rem);
  background: var(--slate-deep);
  border-radius: var(--radius-lg);
  color: rgba(255, 255, 255, .8);
}
.post-cta h2 { margin: 0 0 .5em; color: #fff; font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.post-cta p { font-size: .98rem; }
.post-cta .btn-row { margin-top: 1.5rem; }

.post-nav { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.post-nav h2 { margin-bottom: 1.5rem; font-size: 1.3rem; }


/* Aufzaehlung mit Haekchen, wie in den Leistungskarten */
.liste-checks { list-style: none; padding: 0; }
.liste-checks li { position: relative; padding-left: 1.6rem; font-size: .98rem; }
.liste-checks li::before {
  content: ''; position: absolute; left: .25rem; top: .5em;
  width: .34rem; height: .62rem;
  border: solid var(--red); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* =========================================================
   Kontaktformular
   ========================================================= */
.form-card {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; gap: 1.1rem 1.25rem; grid-template-columns: repeat(2, 1fr); }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field .hint { font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font: inherit;
  font-size: .97rem;
  color: var(--ink);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--slate); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(167, 8, 30, .12);
  outline: none;
}
/* :user-invalid statt :invalid – sonst waeren alle Pflichtfelder schon beim Laden rot */
.field input:user-invalid,
.field textarea:user-invalid { border-color: var(--red); }

/* Einwilligung */
.form-consent {
  display: flex; align-items: flex-start; gap: .7rem;
  grid-column: 1 / -1;
  margin-top: .35rem;
  font-size: .9rem;
}
.form-consent input { flex: none; width: 1.1rem; height: 1.1rem; margin-top: .18rem; accent-color: var(--red); }
.form-required { margin: 0 0 1.5rem; font-size: .84rem; color: var(--muted); }
/* Pflichtfeld-Sternchen: nur das Zeichen, keine Unterstreichung */
.req { color: var(--red); text-decoration: none; }
.form-card .btn { margin-top: 1.5rem; }

/* Honeypot: fuer Menschen unsichtbar, fuer Bots ein Koeder */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Karte mit Einwilligung */
.map-box { margin-top: 1.25rem; padding: 1.35rem 1.5rem; background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.map-box h3 { margin-bottom: .5rem; font-size: 1.05rem; }
.map-box .consent-note { margin: 0 0 1rem; font-size: .88rem; color: var(--body); }
.map-box .consent-frame { border-radius: var(--radius); overflow: hidden; }

/* =========================================================
   Vergleichstabelle
   ========================================================= */
.tabelle-wrap { overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tabelle th, .tabelle td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabelle thead th { background: var(--surface-alt); color: var(--ink); font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; }
.tabelle tbody th { font-weight: 600; color: var(--ink); }
.tabelle tr:last-child th, .tabelle tr:last-child td { border-bottom: 0; }


/* =========================================================
   Sprung nach oben
   ========================================================= */
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.9rem; height: 2.9rem;
  background: var(--slate-deep);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transition: background-color .18s var(--ease), opacity .22s var(--ease),
              transform .22s var(--ease), visibility .22s;
}
/* Weiß in beiden Zuständen, sonst schlägt die allgemeine a:hover-Regel durch */
.to-top, .to-top:hover { color: #fff; }
.to-top:hover { background: var(--red); transform: translateY(-3px); }

/* Ohne JavaScript bleibt der Button sichtbar – er ist ein gewöhnlicher Anker
   auf #top und funktioniert auch dann. JS blendet ihn oben auf der Seite aus. */
.to-top[data-visible='false'] {
  opacity: 0; visibility: hidden; transform: translateY(.6rem);
  pointer-events: none;
}

/* Auf schmalen Geräten ist das schwebende Element ausgeblendet, da ist unten
   rechts Platz. Auf breiten Geräten etwas höher, damit nichts kollidiert. */
@media (min-width: 881px) {
  .to-top { bottom: 1.75rem; right: 1.75rem; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 26rem; }
  .badge-cert { right: 1.25rem; bottom: -1.25rem; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-grid, .usp-grid, .review-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .post-list--3 { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .review-track > .review { flex-basis: calc((100% - 1.25rem) / 2); }
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .75rem var(--gutter) 1.25rem;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav[data-open='true'] { display: flex; }
  .nav a { padding: .85rem .25rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav a[aria-current='page']::after { display: none; }
  .nav .btn { margin: 1rem 0 0; }
  .site-header .wrap { position: relative; }
  .float-cta { display: none; }
  /* Inhaltsverzeichnis wandert über den Text, Sticky waere hier nur im Weg */
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; top: auto; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .service-grid, .usp-grid, .review-grid, .steps, .price-grid, .people,
  .footer-grid, .post-list, .post-list--3, .form-grid { grid-template-columns: 1fr; }
  .author { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .logo img { width: 140px; }
  .topbar .wrap { justify-content: space-between; }
  .topbar-claim { display: none; }
  .topbar-sep { display: none; }
  /* auch schmal dreispaltig – die Kennzahlen sollen plakativ nebeneinander stehen */
  .hero-facts, .stat-row { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .review-slider { padding-inline: 0; }
  .review-track > .review { flex-basis: 85%; }
  .review-nav { display: none; }
  .hero-fact strong, .stat strong { font-size: 1.4rem; }
  .hero-fact span, .stat span { font-size: .74rem; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .price .btn, .cta-final .btn { width: auto; }
  .legal-dl { grid-template-columns: 1fr; gap: .25rem; }
  .legal-dl dt { padding-top: .8rem; }
  .legal-dl dt:first-child { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .btn:hover, .service:hover { transform: none; }
}
