/* V19.51 (17.11.2026): die Unterseiten sprechen die Sprache der Welt (css/editorial.css, css/ci-buttons.css).
   Kopfzeile mit den drei Türen, Oberzeile in Versalien, große fette Überschrift, kurzer Vorspann, Knöpfe als Sockel.
   Nur für body.detail-page (Unterseiten, 404); die Startseite lädt diese Datei nicht. Lesetext der Rechtsseiten bleibt ruhig (.seite-recht). */
body.detail-page {
  --sub-weiss: #f6f5f2;
  --sub-knopf-flaeche: linear-gradient(165deg, #34373c 0%, #292b2f 35%, #1b1c1f 72%, #24262a 100%);
  --sub-knopf-kante: linear-gradient(155deg, #b0b2b6 0%, #76797e 24%, #42454a 58%, #777a7f 100%);
  --sub-karte: rgb(255 255 255 / 3%);
}

/* ---------- Kopfzeile: Logo links, die drei Türen in der Mitte, rechts Arbeiten · Preise · Kontakt · 3D-Welt, dann die Sprache ---------- */
.detail-page .sub-kopf {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  column-gap: clamp(20px, 2.4vw, 40px); padding-block: 20px;
}
.detail-page .sub-kopf .detail-logo { width: 156px; }
.detail-page .sub-nav { display: flex; align-items: center; justify-content: space-between; gap: clamp(20px, 2.4vw, 40px); min-width: 0; }
.detail-page .sub-nav .sub-tueren { display: flex; gap: clamp(22px, 2.6vw, 40px); margin-inline: auto; }
.detail-page .sub-nav .sub-weitere { display: flex; align-items: center; gap: clamp(16px, 1.8vw, 26px); }
.detail-page .sub-kopf .aktion { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--leser-text-3); }
.detail-page .sub-kopf .sub-tuer { font-size: 14px; font-weight: 600; color: var(--sub-weiss); }
.detail-page .sub-kopf .aktion:is(:hover, :focus-visible, [aria-current="page"], [aria-current="true"]) { color: var(--sub-weiss); background-size: 100% 1px; }
/* Der Weg zurück in die Welt: kurz „3D-Welt“, mit dem roten Punkt der Welt davor; der volle Wortlaut bleibt der zugängliche Name */
.detail-page .sub-kopf .detail-3d { gap: 10px; color: var(--sub-weiss); font-weight: 600; }
.detail-page .sub-kopf .detail-3d::before { content: ''; display: block; position: static; width: 6px; height: 6px; border-radius: 50%; background: var(--ci-interaction-red); flex-shrink: 0; box-shadow: none; animation: none; opacity: 1; z-index: auto; }
.detail-page .sub-kopf .detail-3d-zusatz { display: none; }
.detail-page .sub-kopf .detail-utility { gap: 4px; }
.detail-page .sub-kopf .detail-lang { color: var(--leser-text-3); font-size: 13px; font-weight: 600; letter-spacing: .06em; }

/* Telefon und schmale Fenster: „Menü +“ wie in der Welt; die Liste klappt als Tafel unter der Kopfzeile auf (natives <details>) */
.detail-page .sub-menue { display: none; }
.detail-page .sub-menue > summary {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding-inline: 4px; cursor: pointer; list-style: none;
  color: var(--sub-weiss); font-size: 14px; font-weight: 600; -webkit-tap-highlight-color: transparent;
}
.detail-page .sub-menue > summary::-webkit-details-marker { display: none; }

.detail-page .sub-menue > summary span { display: inline-block; font-size: 26px; font-weight: 400; line-height: 1; transition: transform 180ms ease-out; }
.detail-page .sub-menue[open] > summary span { transform: rotate(45deg); }
.detail-page .sub-menue > nav {
  display: block; position: absolute; z-index: 20; left: calc(-1 * clamp(18px, 4.5vw, 64px)); right: calc(-1 * clamp(18px, 4.5vw, 64px)); top: 100%;
  padding: 12px clamp(18px, 4.5vw, 64px) 28px; background: #0c0d0f; border-bottom: 1px solid var(--leser-linie);
  box-shadow: 0 24px 40px rgb(0 0 0 / 55%);
}
.detail-page .sub-menue .sub-tueren, .detail-page .sub-menue .sub-weitere { display: grid; }
.detail-page .sub-menue .sub-tueren { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--leser-linie); }
.detail-page .sub-menue > nav .aktion { justify-self: start; justify-content: flex-start; min-height: 48px; font-size: 17px; font-weight: 500; color: var(--leser-text-2); background-position: 0 calc(100% - 9px); }
.detail-page .sub-menue > nav .sub-tuer { min-height: 56px; font-size: clamp(24px, 7vw, 30px); font-weight: 600; letter-spacing: -.035em; color: var(--sub-weiss); background-position: 0 calc(100% - 10px); }
.detail-page .sub-menue > nav .sub-3d { color: var(--sub-weiss); font-weight: 600; }

@media (max-width: 1100px) {
  .detail-page .sub-kopf { grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 12px; padding-block: 16px; }
  .detail-page .sub-kopf .sub-nav { display: none; }
  .detail-page .sub-menue { display: block; }
  .detail-page .sub-kopf .detail-logo { grid-area: auto; width: 136px; }
  .detail-page .sub-kopf .detail-utility { grid-area: auto; margin-right: 0; }
}
@media (max-width: 760px) {
  .detail-page .sub-kopf { grid-template-areas: none; padding-block: 14px; }
  .detail-page .sub-kopf .detail-logo { width: 116px; }
  .detail-page .sub-menue > nav { left: calc(-1 * clamp(18px, 4.5vw, 64px)); right: calc(-1 * clamp(18px, 4.5vw, 64px)); }
}

/* ---------- Seitenkopf: Oberzeile, Überschrift, Vorspann ---------- */
.detail-page .detail-hero, .detail-page .detail-hero.service-hero { padding-top: clamp(48px, 6vw, 84px); }
.detail-page .detail-hero > .detail-kicker, .detail-page .service-hero-copy > .detail-kicker {
  margin-bottom: 22px; color: var(--leser-text-3); font-size: 12px; font-weight: 600; letter-spacing: .16em; line-height: 1.5; text-transform: uppercase;
}
.detail-page :is(.detail-hero, .service-hero) h1 {
  max-width: none; color: var(--sub-weiss); font-size: clamp(42px, 4.6vw, 66px); font-weight: 630; line-height: 1.02; letter-spacing: -.048em;
  text-wrap: balance; overflow-wrap: break-word; hyphens: manual;
}
.detail-page .service-hero h1 { font-size: clamp(38px, 3.9vw, 56px); line-height: 1.04; }
.detail-page :is(.detail-hero, .service-hero) .detail-lead {
  max-width: 31em; margin-top: 30px; color: var(--leser-text-2); font-size: clamp(18px, 1.4vw, 20px); font-weight: 450; line-height: 1.55; letter-spacing: -.01em;
}
.detail-page .detail-hero .detail-context { max-width: 40em; font-size: 15px; }

/* ---------- Knöpfe: der Sockel der Welt (css/ci-buttons.css), Textlinks bleiben Textlinks ---------- */
.detail-page main .aktion.detail-primary {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: fit-content; max-width: 100%; height: auto; min-height: 46px; padding: 8px 18px;
  border: 1px solid transparent; border-radius: var(--button-radius, 7px);
  background: var(--sub-knopf-flaeche) padding-box, var(--sub-knopf-kante) border-box; background-color: #1b1c1f;
  color: #fff; font-size: 15px; font-weight: 600; line-height: 1.45; letter-spacing: 0; text-align: center; text-decoration: none;
  text-shadow: 0 1px 1px rgb(0 0 0 / 35%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 7%), inset 0 -1px 0 rgb(0 0 0 / 55%), 0 2px 0 #09090a, 0 4px 8px rgb(0 0 0 / 24%);
  transition: transform 180ms ease-out, box-shadow 180ms ease-out;
}
.detail-page main .aktion.detail-primary::before {
  content: ''; display: block; position: absolute; inset: 0; z-index: -1; border: 0; border-radius: inherit; pointer-events: none;
  background: none; box-shadow: 0 7px 12px -7px rgb(234 3 19 / 95%); opacity: .62; animation: none; transition: opacity 180ms ease-out;
}
.detail-page main .aktion.detail-primary::after {
  content: ''; display: block; position: absolute; inset: 0; border: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgb(255 255 255 / 9%) 46%, transparent 61%) 100% 0 / 250% 100%;
  opacity: 0; transition: background-position 520ms ease-out, opacity 180ms ease-out;
}
.detail-page main .aktion.detail-primary:focus-visible { outline: 2px solid #fff; outline-offset: 4px; box-shadow: none; }
.detail-page main .aktion.detail-primary:is(:focus-visible, :active)::before { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .detail-page main .aktion.detail-primary:hover { background: var(--sub-knopf-flaeche) padding-box, var(--sub-knopf-kante) border-box; color: #fff;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 16%), inset 0 -1px 0 rgb(0 0 0 / 55%), 0 2px 0 #09090a, 0 5px 10px rgb(0 0 0 / 30%); }
  .detail-page main .aktion.detail-primary:hover::before { opacity: 1; }
  .detail-page main .aktion.detail-primary:hover::after { background-position: 0 0; opacity: 1; }
}
.detail-page main .aktion.detail-primary:active {
  transform: translateY(1px); transition-duration: 80ms;
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 28%), 0 1px 0 #09090a, 0 2px 5px rgb(0 0 0 / 24%);
}
.detail-page main .aktion:not(.detail-primary) { font-size: 16px; font-weight: 600; }
.detail-page main .aktion:not(.detail-primary):hover { text-decoration-color: var(--ci-interaction-red); }
.detail-page .detail-actions, .detail-page .service-hero .detail-actions { gap: 14px 30px; margin-top: 34px; }

/* ---------- „Auf dieser Seite“: eine Zeile mit Versal-Etikett ---------- */
.detail-page .detail-toc { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--leser-linie); gap: 2px 22px; font-size: 14px; }
.detail-page .detail-toc > span { width: 100%; color: var(--leser-grau); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.detail-page .detail-toc a { color: var(--leser-text-3); font-weight: 500; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.detail-page .detail-toc a:is(:hover, :focus-visible) { color: var(--sub-weiss); text-decoration-color: var(--ci-interaction-red); }

/* ---------- Abschnitte: klare Zwischenüberschriften (nicht auf Rechtsseiten) ---------- */
.detail-page:not(.seite-recht) .detail-section > h2 {
  margin: 0 0 28px; color: var(--sub-weiss); font-size: clamp(26px, 2.5vw, 34px); font-weight: 620; line-height: 1.15; letter-spacing: -.035em; text-wrap: balance;
  overflow-wrap: break-word; hyphens: auto;   /* lange Wörter (Gestaltungs- und Umsetzungsentscheidungen) sprengen bei 320 px nicht die Spalte */
}
.detail-page:not(.seite-recht) :is(.section-body, .detail-example) h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; color: var(--sub-weiss); }
.detail-page .detail-example > .detail-kicker { margin-bottom: 14px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.detail-page:not(.seite-recht) .detail-example > h3 { font-size: clamp(22px, 2vw, 26px); letter-spacing: -.025em; line-height: 1.25; }
.detail-page .detail-steps li::before { color: var(--leser-grau); font-weight: 600; letter-spacing: .06em; }
.detail-page .detail-faq summary { font-weight: 600; }

/* Karten: Leistungen der Übersicht, Projekte, Demos, Kontaktwege, Pakete */
.detail-page .related-projects { gap: 20px; }
.detail-page .related-projects article, .detail-page .related-projects article + article, .detail-page .price-card, .detail-page .price-card + .price-card {
  min-width: 0; padding: clamp(22px, 2.8vw, 32px); border: 1px solid var(--leser-linie); border-radius: 14px; background: var(--sub-karte);
}
.detail-page :is(.related-projects, .price-card) h3 { overflow-wrap: break-word; hyphens: auto; }
.detail-page .related-projects article > :last-child, .detail-page .price-card > :last-child { margin-bottom: 0; }
.detail-page .related-projects h3 { font-size: 21px; letter-spacing: -.02em; }
.detail-page .related-projects h3 a { text-decoration-color: var(--leser-leise); }
.detail-page .related-projects h3 a:hover { text-decoration-color: var(--ci-interaction-red); }
.detail-page .price-list { gap: 20px; }
.detail-page .price-card h3 { font-size: 22px; letter-spacing: -.025em; }
.detail-page .price-amount { font-size: clamp(34px, 3.4vw, 44px); font-weight: 630; letter-spacing: -.045em; line-height: 1.1; color: var(--sub-weiss); }
.detail-page .price-amount span { letter-spacing: 0; }
.detail-page .price-card h4 { color: var(--leser-grau); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

/* Arbeiten und Kontaktblock: groß und fett wie die Welt */
.detail-page .work-item h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 620; letter-spacing: -.04em; line-height: 1.1; }
.detail-page .detail-contact h2 { max-width: 18ch; color: var(--sub-weiss); font-size: clamp(32px, 3.6vw, 52px); font-weight: 630; line-height: 1.06; letter-spacing: -.05em; text-wrap: balance; }

/* V19.51 (Preise sichtbar): knappe Preiszeile im Einstieg der Leistungsseiten und auf den Karten der Übersicht; jeder Eintrag springt zu seinem Paket. */
.detail-page .preis-hinweis { display: flex; flex-wrap: wrap; align-items: center; margin: 24px 0 0; color: var(--leser-grau); }
.detail-page .related-projects .preis-hinweis { margin: 4px 0 8px; }
.detail-page .detail-section .preis-hinweis a, .detail-page .preis-hinweis a {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; min-height: 44px; align-content: center;
  color: var(--leser-text-3); text-decoration: none;
}
.detail-page .preis-hinweis-name { color: var(--sub-weiss); font-size: 15px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--leser-leise); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.detail-page .preis-hinweis-betrag { color: var(--sub-weiss); font-size: 18px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.detail-page .preis-hinweis-einheit { color: var(--leser-grau); font-size: 13px; font-weight: 500; white-space: nowrap; }
.detail-page .preis-hinweis a:is(:hover, :focus-visible) .preis-hinweis-name { text-decoration-color: var(--ci-interaction-red); }
.detail-page .preis-hinweis-trenner { padding-inline: 12px; color: var(--leser-leise); }

@media (max-width: 760px) {
  .detail-page .detail-hero, .detail-page .detail-hero.service-hero { padding-top: 36px; }
  .detail-page .detail-hero > .detail-kicker, .detail-page .service-hero-copy > .detail-kicker { margin-bottom: 16px; font-size: 11px; letter-spacing: .12em; }
  .detail-page :is(.detail-hero, .service-hero) h1 { font-size: clamp(34px, 10vw, 44px); letter-spacing: -.045em; }
  .detail-page .service-hero h1 { font-size: clamp(30px, 8.6vw, 40px); }
  .detail-page :is(.detail-hero, .service-hero) .detail-lead { margin-top: 22px; font-size: 17px; line-height: 1.55; }
  .detail-page main .aktion.detail-primary { width: fit-content; }
  .detail-page .detail-toc { margin-top: 44px; }
  .detail-page .related-projects article, .detail-page .related-projects article + article, .detail-page .price-card, .detail-page .price-card + .price-card { padding: 20px 18px; }
  .detail-page:not(.seite-recht) .detail-section > h2 { margin-bottom: 22px; font-size: clamp(24px, 6.6vw, 28px); }
}
@media (prefers-reduced-motion: reduce) {
  .detail-page .sub-menue > summary span, .detail-page main .aktion.detail-primary, .detail-page main .aktion.detail-primary::before, .detail-page main .aktion.detail-primary::after { transition: none !important; }
}
@media (forced-colors: active) {
  .detail-page main .aktion.detail-primary { background: ButtonFace; color: ButtonText; border-color: ButtonText; box-shadow: none; text-shadow: none; }
  .detail-page main .aktion.detail-primary::before, .detail-page main .aktion.detail-primary::after, .detail-page .sub-kopf .detail-3d::before { display: none; }
  .detail-page .sub-menue > nav { background: Canvas; border: 1px solid CanvasText; }
}

/* V19.52: der Kopf lädt eine verkleinerte Fassung des Logos (156/312 px, nur skaliert); das Seitenverhältnis des Originals (944 × 445) hält die Höhe exakt wie vorher. */
.detail-page .detail-logo img { aspect-ratio: 944 / 445; height: auto; }
