/* ============================================================
   Elektro Wolf GmbH, Rettenberg — v3 (Variante 4a, Kundenwunsch)
   Design: Claude-Design-Variante 4a, umgesetzt als responsives
   Plain-HTML/CSS. Firmenfarbe Bordeaux #ae1739 (aus dem Logo
   gesampelt), Montserrat variabel, selbst gehostet (DSGVO).
   ============================================================ */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('assets/fonts/montserrat-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('assets/fonts/montserrat-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0;
}

:root {
  --bordeaux: #ae1739;
  --bordeaux-dark: #8e1230;
  --ink: #3a3a3a;
  --body: #4a4a4a;
  --muted: #6b6b6b;
  --soft: #9a9a9a;
  --ghost: #d9d9d9;
  --band-dark: #4d4d4d;
  --band-mid: #9c9c9c;
  --band-footer: #2e2e2e;
  --tile: #f4f4f4;
  --pad-x: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--body);
  font-family: 'Montserrat', -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; }

a { color: inherit; }

h1, h2, h3 { line-height: 1.05; }

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px var(--pad-x);
  /* Seit 27.08. auch am Desktop sticky, leicht durchscheinend (Moderne-Politur) */
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}

/* Anker-Sprünge nicht unter dem klebenden Header verstecken */
section[id] { scroll-margin-top: 90px; }

.logo-link { display: block; line-height: 0; }

.logo { height: 44px; width: auto; display: block; }

.site-nav {
  display: flex;
  gap: clamp(16px, 2.6vw, 34px);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .08em;
  color: #6f6f6f;
}

.site-nav a { text-decoration: none; white-space: nowrap; letter-spacing: .02em; transition: color .2s ease; }
.site-nav a:hover { color: var(--bordeaux); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.header-phone {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .02em;
  padding: 16px 32px;
  border: none;
  border-radius: 8px;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.btn-red { background: var(--bordeaux); color: #fff; }
.btn-red:hover { background: var(--bordeaux-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(174,23,57,.28); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #f2f2f2; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.btn-small { padding: 12px 22px; font-size: 13px; }

.nav-toggle { display: none; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
}

.nav-burger span:not(.sr-only) {
  display: block;
  height: 3px;
  background: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  /* Hoehe + Bildausschnitt so, dass der Bus-Schriftzug auch auf breiten
     Screens im Bild bleibt (Feedback 27.08.: Logo war auf Desktop abgeschnitten).
     Obergrenze haengt am Viewport: Hero + "Man kennt uns"-Logoleiste muessen
     zusammen in den ersten Screen passen (Feedback 27.08. abends);
     200px = Header (~80px) + Logoleiste (~120px).
     Ausschnitt 37% statt 42% + Deckel 700px: mehr Himmel, Bus-Logo sitzt
     tiefer, bleibt aber auf allen Breiten komplett im Bild (Feedback 28.08.) */
  height: clamp(380px, calc(100vh - 200px), 700px);
  background: url('assets/img/hero-van.webp') center 37% / cover no-repeat;
}

/* Handys bekommen das kleine Heldenbild (gleicher Ausschnitt, LCP) */
@media (max-width: 800px) {
  .hero { background-image: url('assets/img/hero-van-800.webp'); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px var(--pad-x);
  /* Weiss zurueckgenommen (Feedback 27.08.), Foto + Schriftzug bleiben sichtbar */
  background: linear-gradient(90deg, rgba(255,255,255,.8) 0%, rgba(255,255,255,.32) 36%, rgba(255,255,255,0) 58%);
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.04;
  font-weight: 400; /* Kundenwunsch: nicht fett */
  letter-spacing: .005em;
  color: var(--ink);
}

.hero h1 span { color: var(--bordeaux); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- Logo-Marquee (bewegt sich, Kundenwunsch) ---------- */

.kennt-uns {
  padding: 30px 0 26px;
  background: #fff;
  overflow: hidden;
}

.kennt-uns-label {
  display: block;
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  color: #6b6b6b; /* Kontrast AA, var(--soft) lag bei 2,8:1 */
  margin-bottom: 22px;
}

.marquee { overflow: hidden; }

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 47s linear infinite; /* 23 Logos, gleiches Tempo wie vorher mit 22 */
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 72px);
  padding-right: clamp(40px, 6vw, 72px);
}

.marquee-group img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .55;
  flex: none;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee-track .marquee-group[aria-hidden="true"] { display: none; }
  .marquee-group { flex-wrap: wrap; justify-content: center; padding-right: 0; }
}

/* ---------- Sektions-Grundgerüst ---------- */

.band { padding: clamp(48px, 7vw, 72px) var(--pad-x); }

.band-dark { background: var(--band-dark); color: #fff; }
.band-mid { background: var(--band-mid); color: #fff; }
.band-light { background: #f0f0f0; }

/* Roter Balken ersetzt durch den "Blitz" aus dem Logo (Kundenwunsch 21.08.) */
.tick {
  width: 154px;
  height: 12px;
  background: url('assets/img/blitz.svg') left center / contain no-repeat;
  margin-bottom: 26px;
}

.band h2 {
  margin: 0 0 22px;
  font-size: clamp(36px, 4.6vw, 58px);
  font-weight: 800;
}

.band-dark h2 { color: var(--ghost); }
.band-mid h2 { color: var(--ink); }

.band-intro { margin: 0 0 44px; font-size: 17px; max-width: 88ch; }
.band-dark .band-intro { color: rgba(255,255,255,.85); }
.band-mid .band-intro { color: #1f1f1f; } /* Weiß auf Grau lag unter AA (2,7:1), so 6:1 */

/* ---------- Leistungen (9 Bereiche laut Kundenliste) ---------- */

.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
}

/* Karten sind seit 21.08. Sprunglinks zu den Detailtexten (Kundenwunsch Nr. 12) */
a.leistung {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.leistung:hover h3 { text-decoration: underline; text-underline-offset: 4px; }

.leistung .tick-small {
  width: 44px;
  height: 10px;
  background: var(--bordeaux);
  margin-bottom: 16px;
}

.leistung h3 {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: .04em;
}

.leistung ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14.5px;
  color: rgba(255,255,255,.85);
}

/* ---------- Themen-Splits (Beleuchtung / Sicherheitstechnik) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}

.split-text {
  padding: clamp(48px, 7vw, 80px) var(--pad-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.split-text h2 {
  margin: 0 0 26px;
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 800;
  color: var(--bordeaux);
}

.split-text p {
  margin: 0 0 34px;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--muted);
}

.split img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  display: block;
}

/* ---------- Leistungen im Detail (Texte von Diana 21.08., Foto-Splits lt. Diana 27.08.) ---------- */

.leistungen-detail {
  background: #fff;
  padding-bottom: 0;
}

.leistungen-detail h2 { color: var(--ink); }

.detail-split .split-text h2 { font-size: clamp(26px, 3vw, 40px); }
.detail-split .split-text p { max-width: 560px; }

/* Stichpunkte + "Mehr anzeigen" gibt es nur mobil (Feedback 27.08. spät);
   Desktop zeigt weiter den vollen Fliesstext */
.detail-points, .mehr-toggle, .mehr-label { display: none; }

/* ---------- Experten / Team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}

/* Ab Tablet quer: 3-2-3-2-Rhythmus (10 Personen), alle Karten gleich breit,
   die Zweier-Reihen mittig — die letzte Karte steht nicht allein (28.08.;
   seit 10.10. schon ab 901px, vorher stand sie am iPad quer allein) */
@media (min-width: 901px) {
  .team-grid { grid-template-columns: repeat(6, 1fr); }
  .team-grid > div { grid-column: span 2; }
  .team-grid > div:nth-child(4),
  .team-grid > div:nth-child(9) { grid-column: 2 / span 2; }
}

/* Porträts (Fotos vom 13.10., alle im Kabellager): Hochformat 2:3, gezeigt wird
   der obere Ausschnitt mit Kopf und Oberkörper */
.portrait {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 10px;
  background: #d9d9d9;
}

.namecard {
  background: #e9e9e9;
  color: var(--ink);
  padding: 14px 18px;
  margin: -24px 0 0 24px;
  position: relative;
}

.namecard strong { display: block; font-weight: 800; font-size: 17px; }
.namecard span { font-size: 13.5px; color: #5c5c5c; } /* Kontrast AA */

/* ---------- Einblicke (Kunden) + Partner ---------- */

.projekt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 22px;
}

.logo-tile {
  height: 200px;
  background: var(--tile);
  display: grid;
  place-items: center;
  padding: 24px;
  margin-bottom: 14px;
  border-radius: 10px;
}

.band-light .logo-tile { background: #fff; }

.logo-tile img {
  max-height: 120px;
  max-width: min(100%, 260px);
  width: auto;
  object-fit: contain;
  filter: grayscale(1); /* Kundenwunsch: schwarz-weiß, farbig beim Drüberfahren */
  transition: filter .35s ease;
}

.projekt:hover .logo-tile img,
.logo-tile img:active { filter: grayscale(0); }

/* Touch-Geräte haben kein Hover: Logos dort gleich farbig (Kundenwunsch-Fallback) */
@media (hover: none) {
  .logo-tile img { filter: grayscale(0); }
}

/* Partner: 7 Karten im Dreier-Raster, die letzte steht mittig statt allein links (Maushart seit 14.10.) */
@media (min-width: 1081px) {
  .partner-grid > .projekt:last-child:nth-child(3n+1) { grid-column: 2; }
}

/* Mobil wischbar, deshalb per Tastatur fokussierbar (tabindex im HTML) */
.projekt-grid:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 2px; border-radius: 10px; }

.projekt h3 {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .03em;
  color: var(--ink);
}

.projekt ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: #666666;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#projekte h2 { color: var(--ghost); }
.band-light h2 { color: #c9c9c9; }

/* ---------- Anfrage ---------- */

.anfrage-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
}

.anfrage-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.anfrage-form input,
.anfrage-form textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 15px 16px;
  border: none;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}

.anfrage-form textarea { resize: vertical; }

.anfrage-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.anfrage-foot small { font-size: 12.5px; color: rgba(255,255,255,.75); }
.anfrage-foot small a { color: #fff; }

/* Dezenter Hinweis unter dem Formular (Rückmeldezeit) */
.anfrage-hinweis {
  margin: 22px 0 0;
  max-width: 760px;
  font-size: 15px;
  color: rgba(255,255,255,.85);
}

/* ---------- Badges vor dem Footer (HWK / Innung / E-Mobilität + Bihler) ---------- */

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 32px 64px;
  padding: 36px var(--pad-x);
  background: #fff;
  border-top: 1px solid #eee;
}

.badge-group { display: flex; flex-direction: column; gap: 18px; }

.badge-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  color: #6b6b6b;
}

.badge-logos { display: flex; align-items: center; flex-wrap: wrap; gap: 36px; }

.badge-logos img { height: 56px; width: auto; }

.badge-logos img.badge-bihler { height: 40px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--band-footer);
  color: #fff;
  padding: 52px var(--pad-x) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
}

.footer-brand { font-weight: 800; font-size: 18px; letter-spacing: .06em; margin-bottom: 12px; }

.footer-grid address {
  font-style: normal;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255,255,255,.6);
}

.footer-head {
  font-size: 11.5px;
  letter-spacing: .08em;
  color: rgba(255,255,255,.6); /* Kontrast AA */
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
}

.footer-col-links a,
.footer-col-links span { color: rgba(255,255,255,.75); text-decoration: none; }
.footer-col-links a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: 12.5px;
  color: rgba(255,255,255,.6);
}

/* ---------- Rechtsseiten (Impressum / Datenschutz) ---------- */

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) var(--pad-x) 72px;
}

.legal-page h1 {
  margin: 0 0 32px;
  font-size: clamp(26px, 4.5vw, 48px);
  font-weight: 800;
  color: var(--ink);
  hyphens: auto;
  overflow-wrap: break-word;
}

.legal-page h2 {
  margin: 36px 0 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--bordeaux);
}

.legal-page p, .legal-page ul {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--body);
}

.legal-page ul { padding-left: 20px; }

.legal-page a { color: var(--bordeaux); }

.legal-stand { margin-top: 40px; color: var(--muted); font-size: 13.5px; }

.site-footer .footer-bottom a { color: rgba(255,255,255,.65); }
.site-footer .footer-bottom a:hover { color: #fff; }

/* "Built with 💚 by Limbi" (Kundenwunsch 27.08.) */
.limbi-credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0; /* Tippfläche mindestens 24px hoch */
  text-decoration: none;
  color: rgba(255,255,255,.65);
  transition: color .2s ease, opacity .2s ease;
}
.limbi-credit img { height: 13px; width: auto; display: block; opacity: .85; transition: opacity .2s ease; }
.limbi-credit:hover { color: #fff; }
.limbi-credit:hover img { opacity: 1; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .leistungen-grid { grid-template-columns: repeat(2, 1fr); }
  .projekt-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  /* Header klebt oben (Basisregel), mobil mit etwas mehr Schatten */
  .site-header { box-shadow: 0 2px 12px rgba(0,0,0,.06); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  /* Fingerfreundliche Footer-Links */
  .footer-col-links { gap: 2px; }
  .footer-col-links a { padding: 6px 0; }
  /* Anker-Sprünge nicht unter dem klebenden Header verstecken */
  section[id] { scroll-margin-top: 84px; }
  .header-phone { display: none; }
  /* Menue als schwebendes Karten-Panel mit Blur, Burger wird zum X (28.08.) */
  .site-nav {
    display: flex;
    position: absolute;
    top: calc(100% + 10px);
    left: 14px;
    right: 14px;
    z-index: 30;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(.98);
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  }
  .nav-toggle:checked ~ .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .22s ease, transform .22s ease;
  }
  .site-nav a { padding: 14px 16px; border-radius: 12px; font-size: 16px; }
  .site-nav a:hover, .site-nav a:active { background: #f4f4f4; }
  .nav-burger { display: flex; }
  /* Tastatur: Checkbox bleibt fokussierbar (nur unsichtbar), Fokusring am Burger */
  .nav-toggle { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
  .nav-toggle:focus-visible ~ .header-actions .nav-burger { outline: 2px solid var(--bordeaux); outline-offset: 2px; border-radius: 6px; }
  .nav-burger span:not(.sr-only) { transition: transform .25s ease, opacity .18s ease; }
  .nav-toggle:checked ~ .header-actions .nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle:checked ~ .header-actions .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .header-actions .nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero { min-height: 480px; height: auto; }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.45) 42%, rgba(255,255,255,0) 65%);
    justify-content: flex-start;
    padding-top: 40px;
    padding-bottom: 20px;
  }
  .hero-ctas {
    margin-top: auto; /* CTAs an die Unterkante, Foto bleibt frei */
    flex-direction: column;
    gap: 10px;
  }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .split { grid-template-columns: 1fr; }
  .split img { order: -1; min-height: 260px; }
}

/* Tablet hochkant (641-900px): Foto und Text bleiben nebeneinander, sonst
   wird die Seite doppelt so lang wie am Telefon (Audit 10.10.) */
@media (min-width: 641px) and (max-width: 900px) {
  .detail-split { grid-template-columns: 1fr 1fr; }
  .detail-split img { order: 0; min-height: 300px; }
  .detail-split .split-text { padding: 36px var(--pad-x); }
  .detail-split .split-text h2 { font-size: 24px; margin-bottom: 16px; }
  .detail-split .split-text p { font-size: 15px; line-height: 1.7; margin-bottom: 24px; }
  .detail-split .btn { padding: 13px 22px; font-size: 13px; }
}

@media (max-width: 640px) {
  /* Angebot: kompaktes 2-spaltiges Sprungmenü — die Stichpunkte stehen
     mobil in den Detailtexten, hier zählt der schnelle Überblick */
  .leistungen-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 18px; }
  .leistung ul { display: none; }
  .leistung h3 { font-size: 14px; }
  /* Pfeil hängt per geschütztem Leerzeichen am letzten Wort (stand sonst allein in der Zeile); Deko, Screenreader lesen ihn nicht vor */
  .leistung h3::after { content: "\00a0›"; content: "\00a0›" / ""; color: rgba(255,255,255,.55); }
  .leistung .tick-small { width: 34px; height: 8px; margin-bottom: 10px; }

  /* Detail-Splits mobil kompakt (v5-Regel): Fotos flach, kein Button-Stapel —
     der klebende ANRUFEN-Knopf ist immer da. Statt Fliesstext: Stichpunkte
     + "Mehr anzeigen"-Akkordeon (Checkbox-Muster wie beim Burger-Menü) */
  .detail-split img { min-height: 0; height: 180px; }
  .detail-split .split-text { padding: 26px var(--pad-x); }
  .detail-split .split-text h2 { font-size: 21px; margin-bottom: 12px; }
  .detail-split .btn { display: none; }
  .detail-split .detail-points {
    display: block;
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.75;
  }
  .detail-split .split-text p { display: none; margin: 12px 0 0; font-size: 15px; }
  .detail-split .mehr-toggle:checked ~ p { display: block; }
  .detail-split .mehr-label {
    display: inline-block;
    margin-top: 2px;
    padding: 10px 0; /* Tippfläche >= 40px */
    font-weight: 700;
    font-size: 14px;
    color: var(--bordeaux);
    cursor: pointer;
  }
  .detail-split .mehr-label .weniger-zeigen { display: none; }
  .detail-split .mehr-toggle { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
  .detail-split .mehr-toggle:focus-visible ~ .mehr-label { outline: 2px solid var(--bordeaux); outline-offset: 2px; border-radius: 4px; }
  .detail-split .mehr-toggle:checked ~ .mehr-label .mehr-zeigen { display: none; }
  .detail-split .mehr-toggle:checked ~ .mehr-label .weniger-zeigen { display: inline; }

  /* Einblicke + Partner: seitlich wischen statt endlos scrollen */
  .projekt-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    margin: 0 calc(-1 * var(--pad-x));
    padding: 0 var(--pad-x) 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .projekt-grid::-webkit-scrollbar { display: none; }
  .projekt { flex: 0 0 78%; scroll-snap-align: start; }
  .logo-tile { height: 150px; padding: 18px; }
  .logo-tile img { max-height: 100px; }

  /* Team: eine Karte pro Person, die sich beim Scrollen aufeinander
     stapeln (sticky-Stapel, Feedback 28.08.) */
  .team-grid { grid-template-columns: 1fr; gap: 16px; }
  .team-grid > div {
    position: sticky;
    background: #fff;
    border-radius: 16px;
    padding: 10px 10px 14px;
    box-shadow: 0 -12px 30px rgba(0,0,0,.16);
  }
  .team-grid > div:nth-child(1) { top: 76px; }
  .team-grid > div:nth-child(2) { top: 86px; }
  .team-grid > div:nth-child(3) { top: 96px; }
  .team-grid > div:nth-child(4) { top: 106px; }
  .team-grid > div:nth-child(5) { top: 116px; }
  .team-grid > div:nth-child(6) { top: 126px; }
  .team-grid > div:nth-child(7) { top: 136px; }
  .team-grid > div:nth-child(8) { top: 146px; }
  .team-grid > div:nth-child(9) { top: 156px; }
  .team-grid > div:nth-child(10) { top: 166px; }
  .portrait { height: 320px; }
  .namecard { margin: -14px 0 0 10px; padding: 10px 12px; }
  .namecard strong { font-size: 14px; }
  .namecard span { font-size: 11.5px; }

  .footer-grid { grid-template-columns: 1fr; }
  .anfrage-row { grid-template-columns: 1fr; }
  .btn { padding: 14px 24px; }
  .header-actions .btn { padding: 12px 18px; font-size: 13px; }
  .marquee-track img { height: 36px; }
}

/* Sehr schmale Telefone (320px): lange Wörter wie "Netzwerktechnik" ragten sonst in den Seitenrand */
@media (max-width: 359px) {
  .leistung h3 { font-size: 13px; }
}

/* Nur für Screenreader sichtbar (z. B. Beschriftung des Menü-Knopfs) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 404: Fußzeile nicht mitten im Bildschirm */
.legal-page.not-found { min-height: calc(100vh - 260px); }
