/* =============================================================
   Leistungsseite Gewerbe & Büro — projektneutral
   Ergänzt paper.css + paper_02.css + paper_03.css
   ============================================================= */

/* Übersicht mit neun Einträgen: 3 × 3, etwas kompakter */
.toc.four { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .toc.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .toc.four { grid-template-columns: 1fr; } }
.toc.four li { padding: 18px 24px 18px 0; }
.toc.four li + li { padding-left: 24px; }
@media (min-width: 1101px) {
  /* erstes Element jeder Zeile bündig, Folgezeilen mit Trennlinie */
  .toc.four li:nth-child(3n+1) { padding-left: 0; }
  .toc.four li:nth-child(3n) { border-right: 0; }
  .toc.four li:nth-child(n+4) { border-top: 1px solid var(--border); }
}
@media (min-width: 641px) and (max-width: 1100px) {
  .toc.four li:nth-child(2n+1) { padding-left: 0; }
  .toc.four li:nth-child(2n) { border-right: 0; }
}
.toc.four b { font-size: 14px; }
.toc.four span { font-size: 12px; }
@media (max-width: 1100px) {
  .toc.four li, .toc.four li + li { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--border); }
}

/* Einsatzzwecke als Zeile unter einer Leistung */
.usecases { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.usecases li {
  border: 1px solid var(--border); padding: 8px 12px; background: #fff;
  font-size: 13px; line-height: 1.2; color: var(--fg);
}

/* Nutzungsarten im Einstieg */
.uses { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--dd-black); margin-top: 40px; }
.uses > div { padding: 18px 20px 0 0; }
.uses b { display: block; font-size: 14px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-strong); }
.uses span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--fg); }
@media (max-width: 760px) { .uses { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .uses { grid-template-columns: 1fr; } .uses > div { padding: 14px 0; border-bottom: 1px solid var(--border); } }

/* Abschluss-CTA */
.cta-line { margin-top: clamp(28px, 4vw, 44px); display: flex; flex-wrap: wrap; gap: 16px; }

/* -------------------------------------------------------------
   Hero: Das Bild bleibt beim Scrollen stehen, der Inhalt
   schiebt sich darüber (Parallax-Effekt)
   ------------------------------------------------------------- */
.hero { background: transparent; }
.hero::after { content: none; }
.hero-bg {
  position: fixed; top: 0; left: 0; width: 100%; height: 100svh;
  z-index: 0; overflow: hidden; background: #111;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.hero .wrap { z-index: 2; }

/* Alle folgenden Abschnitte liegen deckend über dem stehenden Bild */
body > section:not(.hero), body > footer { position: relative; z-index: 1; }
body > section.section:not(.alt):not(.dark):not(.warm) { background: var(--bg); }

@media (prefers-reduced-motion: reduce) {
  .hero-bg { position: absolute; height: 100%; }
}

/* Themenliste im Content-Plan */
.topics { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topics li {
  border: 1px solid var(--border); padding: 8px 12px; background: #fff;
  font-size: 13px; line-height: 1.2; color: var(--fg);
}

/* Vergleichsmodule im eigenen Bildformat statt fest 16:9 — kein Beschnitt.
   Format pro Modul im HTML über style="--ar: 3 / 2" setzen (gilt auch mobil).
   Höhe über die Breite begrenzen statt über max-height, sonst schneidet cover wieder. */
.feature .slider[style*="--ar"], .feature .toggle[style*="--ar"] {
  aspect-ratio: var(--ar); max-height: none; width: 100%;
  max-width: calc(88vh * (var(--ar))); margin-inline: auto;
}

/* Navigation: Logo führt zur Startseite dreidesign.com, "Gewerbe & Büro" zum Seitenanfang,
   rechts ein Rückweg zur Website — bleibt auch mobil sichtbar (steht außerhalb der Abschnittsliste). */
.nav .brand .logo { display: flex; align-items: center; }
.nav .brand .proj { text-decoration: none; }
.nav .brand .proj:hover { color: #fff; }
.nav .home {
  flex: none; font-size: 11px; font-weight: 700; letter-spacing: var(--tracking-widest); text-transform: uppercase;
  color: rgba(255,255,255,.6); text-decoration: none; white-space: nowrap;
  padding-left: 24px; border-left: 1px solid rgba(255,255,255,.25); line-height: 22px;
}
.nav .home:hover { color: #fff; }
@media (max-width: 1020px) { .nav .home { border-left: 0; padding-left: 0; } }

/* Fußzeile: Rechtliches */
.footer .legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer .legal a { font-size: 12px; letter-spacing: .06em; color: rgba(255,255,255,.75); text-decoration: none; }
.footer .legal a:hover { color: #fff; }
