/* Karlsruhe-Seite (27.11.2026): Referenzen direkt auf der Seite (Haertelt gross,
   weitere als Handy-Karten), Bewertungen, Umkreiskarte, Ablauf in zwei Listen.
   Geraet und Video kommen aus referenzen.css/referenzen.js. */

.ka-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.ka-nebenlink { color: var(--ink); font-weight: 800; border-bottom: 2px solid var(--blue-soft); padding-bottom: 2px; }
.ka-nebenlink:hover { border-color: var(--blue); }

/* ---------- Referenzen ---------- */
.ka-projekte {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding: clamp(56px, 8vw, 104px) 0;
  background: var(--paper);
  border-block: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.ka-abschnittskopf h2 { margin: 8px 0 0; font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.1; letter-spacing: -.03em; }

.ka-haupt {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-top: clamp(32px, 5vw, 56px);
  scroll-margin-top: 110px;
}
.ka-haupt-bild { position: relative; padding: 0 clamp(40px, 7vw, 96px) clamp(48px, 6vw, 80px) 0; }
.ka-browser {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(7, 20, 38, .1), 0 34px 80px rgba(7, 20, 38, .18);
}
.ka-browser img { width: 100%; height: auto; }
.ka-browser-leiste {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  background: #e8eef5;
  border-bottom: 1px solid rgba(7, 20, 38, .08);
}
.ka-browser-leiste i { width: 9px; height: 9px; border-radius: 50%; background: #c3cfdc; }
.ka-browser-leiste span {
  margin-left: 10px;
  padding: 3px 12px;
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.ka-haupt-handy.rf-handy {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(130px, 15vw, 196px);
}
.ka-haupt-handy .rf-geraet { border-radius: 18px; box-shadow: 0 0 0 6px #15345c, 0 30px 60px rgba(7, 20, 38, .3); }
.ka-haupt-handy::before { display: none; }
.ka-haupt-text h3 { margin: 10px 0 0; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.12; letter-spacing: -.025em; }
.ka-haupt-text > p { color: var(--muted); line-height: 1.7; }
.ka-haupt-text .reference-all-link { margin-top: 18px; font-size: 16px; }

.ka-weitere { margin-top: clamp(56px, 8vw, 96px); }
.ka-weitere-kopf { margin: 0; color: var(--muted); font-weight: 800; font-size: 15px; }
.ka-karten {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.ka-karte { min-width: 0; }
.ka-karte .rf-geraet { margin: 6px 6px 22px; border-radius: 18px; box-shadow: 0 0 0 6px #15345c, 0 24px 50px rgba(7, 20, 38, .2); }
.ka-karte h3 { margin: 6px 0 0; font-size: 1.15rem; line-height: 1.25; }
.ka-karte p:not(.rf-nr) { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.ka-karte .rf-nr { font-size: .72rem; }
.ka-karte-link { display: inline-block; margin-top: 10px; color: var(--ink); font-weight: 800; font-size: 14px; border-bottom: 2px solid var(--blue-soft); padding-bottom: 1px; }
.ka-karte-link:hover { border-color: var(--blue); }
.ka-alle { margin-top: 32px; }
.delay-3 { transition-delay: .2s; }

/* ---------- Bewertungen ---------- */
.ka-stimmen { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(40px, 6vw, 72px); }
.ka-stimmen-raster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px clamp(24px, 3vw, 40px);
  margin: 32px 0 28px;
}
.ka-stimmen-raster .stimme:first-child { grid-column: span 3; max-width: 760px; }
.ka-stimmen-raster .stimme:first-child blockquote p { font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.45; font-weight: 700; }

/* ---------- Termin vor Ort ---------- */
.ka-vorort-raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.ka-vorort-text h2 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; letter-spacing: -.03em; }
.ka-vorort-text p { color: var(--muted); font-size: 17px; line-height: 1.7; max-width: 60ch; }
.ka-karte-umkreis { margin: 0; color: var(--navy); }
.ka-karte-umkreis svg { display: block; width: 100%; height: auto; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.ka-kreis { fill: rgba(66, 109, 169, .07); stroke: var(--blue); stroke-width: 1.5; stroke-dasharray: 6 6; }
.ka-kreis--innen { fill: none; stroke-opacity: .35; }
.ka-radius { stroke: var(--blue); stroke-width: 1.2; }
.ka-radius-text { fill: var(--blue); font: 700 12px "Manrope", "Manrope Fallback", sans-serif; }
.ka-ort circle { fill: var(--navy); }
.ka-ort text { fill: var(--ink); font: 700 13px "Manrope", "Manrope Fallback", sans-serif; }
.ka-ort--mitte circle { fill: var(--blue); stroke: #fff; stroke-width: 3; }
.ka-ort--mitte text { font-size: 16px; font-weight: 800; }
.ka-karte-umkreis figcaption { margin-top: 12px; color: var(--muted); font-size: 13px; }

/* ---------- Ablauf ---------- */
.ka-zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); margin-top: 28px; }
.ka-liste { padding: clamp(22px, 3vw, 32px); border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.ka-liste--sie { background: var(--navy); color: #fff; box-shadow: none; }
.ka-liste h3 { margin: 0 0 14px; font-size: 1.25rem; }
.ka-liste ul { margin: 0; padding: 0; list-style: none; }
.ka-liste li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid var(--line); line-height: 1.5; }
.ka-liste--sie li { border-color: rgba(255, 255, 255, .14); color: #dbe7f6; }
.ka-liste li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--blue);
  border-bottom: 2.5px solid var(--blue);
  transform: rotate(-45deg);
}
.ka-liste--sie li::before { border-color: #8fc1ff; }
.ka-zeit { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding: 18px 22px; border-radius: 14px; background: rgba(66, 109, 169, .1); }
.ka-zeit svg { flex: none; width: 34px; height: 34px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; }
.ka-zeit p { margin: 0; line-height: 1.5; }

/* FAQ-Fragen als echte Ueberschriften, Optik wie vorher */
.faq-item summary h3.faq-q-text { margin: 0; font: inherit; color: inherit; }

@media (max-width: 960px) {
  .ka-karten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ka-stimmen-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ka-stimmen-raster .stimme:first-child { grid-column: span 2; }
}
@media (max-width: 860px) {
  .ka-haupt, .ka-vorort-raster, .ka-zwei { grid-template-columns: minmax(0, 1fr); }
  .ka-haupt-bild { padding: 0 56px 56px 0; }
  .ka-haupt-handy.rf-handy { width: clamp(112px, 30vw, 160px); }
  .ka-karte-umkreis { max-width: 420px; }
}
@media (max-width: 560px) {
  /* Karten am Handy als Wischreihe, damit vier Handys nicht winzig werden */
  .ka-karten {
    display: flex;
    gap: 18px;
    margin-inline: -16px;
    padding: 0 16px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
  }
  .ka-karte { flex: none; width: min(64vw, 240px); scroll-snap-align: start; }
  .ka-stimmen-raster { grid-template-columns: minmax(0, 1fr); }
  .ka-stimmen-raster .stimme:first-child { grid-column: auto; }
  .ka-browser-leiste { height: 22px; }
  .ka-browser-leiste span { font-size: 10px; padding: 1px 8px; }
}

/* Faktenliste wie auf der Referenzseite (dort nur unter .seite-referenzen) */
.seite-karlsruhe .referenz-fakten {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px;
  margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); max-width: 52ch;
}
.seite-karlsruhe .referenz-fakten dt { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.seite-karlsruhe .referenz-fakten dd { margin: 2px 0 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.seite-karlsruhe [data-preis] { white-space: nowrap; }

/* Grosse Stimme oben, die vier weiteren breit in einer Reihe */
@media (min-width: 1100px) {
  .ka-stimmen-raster { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ka-stimmen-raster .stimme:first-child { grid-column: span 4; }
}

/* Adresse im Abschnitt Termin vor Ort, Schreibweise wie im Impressum */
.ka-vorort-text p.ka-adresse { margin-top: 18px; color: var(--ink); font-weight: 700; }
.ka-adresse span { white-space: nowrap; }

/* Zweites Hauptprojekt (Die Raeumer, 27.11.2026): gespiegelt, Text links */
.ka-haupt + .ka-haupt { margin-top: clamp(64px, 9vw, 120px); }
.ka-haupt--rechts { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.ka-haupt--rechts .ka-haupt-bild { order: 2; }
@media (max-width: 860px) {
  .ka-haupt--rechts { grid-template-columns: minmax(0, 1fr); }
  .ka-haupt--rechts .ka-haupt-bild { order: 0; }
}
