/* =================================================================
   Aero-Laser | product-technical-details.css
   Vertiefungsseite /products/<slug>/technical-details/ (Template al-product-technical-details.php)
   Vorlage: Mockups/product-readmore-mockup-v2.html (Matz-Abnahme 07.10.2026), BEM al-td-*
   Lädt nur auf dieser Seite (functions.php, Abhängigkeit: product.css).
   Wiederverwendet (NICHT hier definiert): .al-container, .al-btn, .al-btn--red/--outline-dark/
   --outline-light, .al-section--dark, .al-ctas, .al-download-btn, .al-download-meta (product.css) ·
   .al-page-hero(--tpl), .al-page-breadcrumb, .al-breadcrumb, .al-about-hero-tag/-h1/-sub (style.css)
   Kante = .al-container (= Enfold-.container, x=70 bei 1440, 85 % mobil).
   Konvention: #top-Präfix für alle .al-*-Selektoren, Body-Klassen ohne #top davor.
   ================================================================= */

/* ── Seitenrahmen: Kopf beginnt wie bei den Archiv-Templates direkt unter dem Header ──
   style.css gibt allen Produkt-Einzelseiten (#top.single-al_product) 56/144 px Innenabstand + Verlauf,
   weil dort die helle Jump-Nav zuerst kommt. Hier kommt der .al-page-hero (eigener Verlauf). */
html #top.single-al_product.al-td-page #wrap_all #main { padding-top: 0 !important; }
html #top.single-al_product.al-td-page #wrap_all #main::before { content: none; display: none; }
@media (min-width: 990px) {
  html.html_header_sticky #top.single-al_product.al-td-page #wrap_all #main { padding-top: 88px !important; }
}

/* ── Redakteurs-Vorschau (Entwurf) ── */
#top .al-td-preview-bar { background: #FFF8E6; border-bottom: 1px solid #F1DFAE; color: #6B5310; font-size: 13px; line-height: 1.5; padding: 10px 0; }
#top .al-td-preview-bar strong { color: #4A3B0B; }

/* ── Kopf ── */
#top .al-td-hero .al-about-h1 { max-width: 900px; }
#top .al-td-hero .al-about-sub { max-width: 640px; }
#top .al-td-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
#top .al-btn.al-td-btn-sm { padding: 9px 16px; font-size: 13px; }
#top .al-td-hero .al-btn--outline-dark { background: rgba(255,255,255,.6); }
#top .al-td-hero .al-btn--outline-dark:hover { background: var(--al-slate); color: #fff !important; }

/* ── Layout: Inhaltsverzeichnis + Inhalt ── */
#top .al-td-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 72px; padding: 56px 0 88px; align-items: start; }
#top .al-td-toc { position: sticky; top: 24px; }
@media (min-width: 990px) {
  html.html_header_sticky #top .al-td-toc { top: 146px; } /* 122 px Logo-Überhang + 24 px Luft */
}
#top .al-td-toc__back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--al-red); margin-bottom: 26px; text-decoration: none; }
#top .al-td-toc__back:hover { text-decoration: underline; }
#top .al-td-toc__title { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--al-grey); margin-bottom: 12px; }
#top .al-td-toc__list { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--al-border); }
#top .al-td-toc__list li { list-style: none; margin: 0; padding: 0; }
#top .al-td-toc__list a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; font-size: 13.5px; font-weight: 500; color: var(--al-grey) !important; line-height: 1.4; text-decoration: none; transition: color .15s, border-color .15s; }
#top .al-td-toc__list a:hover { color: var(--al-slate) !important; }
#top .al-td-toc__list a.is-active { color: var(--al-slate) !important; border-left-color: var(--al-red); font-weight: 600; }
#top .al-td-toc__cta { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--al-border); display: grid; gap: 8px; }
#top .al-td-toc__cta .al-btn { width: 100%; justify-content: center; box-sizing: border-box; }
@media (max-width: 989px) {
  #top .al-td-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 0 0 64px; }
  #top .al-td-toc { top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--al-border); margin: 0 -50px; padding: 0 50px; }
  #top .al-td-toc__back, #top .al-td-toc__title, #top .al-td-toc__cta { display: none; }
  #top .al-td-toc__list { display: flex; gap: 6px; border-left: 0; overflow-x: auto; white-space: nowrap; padding: 12px 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  #top .al-td-toc__list::-webkit-scrollbar { display: none; }
  #top .al-td-toc__list li { flex-shrink: 0; }
  #top .al-td-toc__list a { margin: 0; border: 1px solid var(--al-border); border-radius: 999px; padding: 6px 13px; font-size: 12.5px; }
  #top .al-td-toc__list a.is-active { border-color: var(--al-slate); background: var(--al-slate); color: #fff !important; }
}
@media (max-width: 767px) {
  /* .al-container ist hier 85 % breit ohne Padding → Leiste randlos: 7,5 vw je Seite */
  #top .al-td-toc { margin: 0 -7.5vw; padding: 0 7.5vw; }
}

/* ── Bausteine allgemein ── */
#top .al-td-content { min-width: 0; }
#top .al-td-block { position: relative; margin: 0 0 40px; }
#top .al-td-block--chapter { margin-top: 72px; }
#top .al-td-content > .al-td-block:first-child { margin-top: 0; }
#top .al-td-block[id] { scroll-margin-top: 24px; }
@media (min-width: 990px) {
  html.html_header_sticky #top .al-td-block[id] { scroll-margin-top: 146px; }
}
@media (max-width: 989px) {
  #top .al-td-block[id] { scroll-margin-top: 70px; }
  #top .al-td-block--chapter { margin-top: 56px; }
  #top .al-td-content { padding-top: 8px; }
}

/* Typo */
#top .al-td-h2 { font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -.5px; color: var(--al-slate); margin: 0 0 18px; text-transform: none; }
#top .al-td-h2::before { content: ''; display: block; width: 32px; height: 3px; background: var(--al-red); margin-bottom: 18px; }
#top .al-td-h3 { font-size: 19px; font-weight: 600; line-height: 1.35; color: var(--al-slate); margin: 0 0 12px; text-transform: none; letter-spacing: 0; }
#top .al-td-h4 { font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--al-slate); margin: 0 0 10px; text-transform: none; letter-spacing: 0; }
#top .al-td-rich p { font-size: 15px; line-height: 1.75; color: #3A4555; max-width: 780px; margin: 0; }
#top .al-td-rich p + p, #top .al-td-rich ul + p, #top .al-td-rich ol + p, #top .al-td-rich p + ul, #top .al-td-rich p + ol { margin-top: 14px; }
#top .al-td-rich ul { list-style: none; display: grid; gap: 8px; max-width: 780px; margin: 0; padding: 0; }
#top .al-td-rich ul li { position: relative; list-style: none; padding-left: 22px; margin: 0; font-size: 15px; line-height: 1.6; color: #3A4555; }
#top .al-td-rich ul li::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; background: var(--al-red); }
#top .al-td-rich ol { max-width: 780px; margin: 0 0 0 20px; padding: 0; }
#top .al-td-rich ol li { font-size: 15px; line-height: 1.6; color: #3A4555; margin-bottom: 6px; }
#top .al-td-rich a { color: var(--al-red); font-weight: 500; }
#top .al-td-rich a:hover { text-decoration: underline; }
#top .al-td-rich strong { color: var(--al-slate); font-weight: 600; }
#top .al-td-rich sub, #top .al-td-rich sup, #top .al-td-figure sub, #top .al-td-table sub, #top .al-td-table sup { font-size: 70%; line-height: 0; }
#top .al-td-rich--lead > p:first-of-type { font-size: 17px; color: #2A3441; }
/* Prüfmarke für Widersprüche/fehlende Angaben (nur in Entwürfen gedacht – vor Veröffentlichung entfernen) */
#top .al-td-flag { display: inline; background: #FFF1C9; color: #7A5200; border: 1px dashed #E0B44A; border-radius: 3px; padding: 1px 6px; font-style: italic; font-weight: 500; font-size: .92em; }

/* ── Baustein: Bild + Bildunterschrift ── */
#top .al-td-figure { margin: 0; }
#top .al-td-figure__frame { background: #fff; border: 1px solid var(--al-border); border-radius: 8px; padding: 18px; display: flex; justify-content: center; }
#top .al-td-figure__frame img { display: block; max-width: 100%; height: auto; }
#top .al-td-figure__frame--photo { padding: 0; overflow: hidden; }
#top .al-td-figure__frame--photo img { width: 100%; object-fit: cover; }
#top .al-td-figure figcaption { margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--al-red); font-size: 13px; line-height: 1.6; color: var(--al-grey); max-width: 780px; }
#top .al-td-media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
#top .al-td-media--img-right .al-td-figure { order: 2; }
@media (max-width: 989px) {
  #top .al-td-media { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  #top .al-td-media--img-right .al-td-figure { order: 0; }
}
@media (max-width: 767px) {
  #top .al-td-figure__frame { padding: 10px; }
  #top .al-td-figure__frame--photo { padding: 0; }
}

/* ── Baustein: Tabelle (geschlossener Rahmen wie Spec-Kästen) ── */
#top .al-td-table__title { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--al-grey); margin-bottom: 12px; }
#top .al-td-table__frame { border: 1px solid var(--al-border); border-radius: 8px; background: #fff; overflow: hidden; }
#top .al-td-table__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
#top .al-td-table { width: 100%; border-collapse: collapse; border: 0; margin: 0; font-size: 14px; background: #fff; }
#top .al-td-table--mid { min-width: 600px; }
#top .al-td-table--wide { min-width: 760px; }
#top .al-td-table th { background: var(--al-slate); color: #fff; text-align: left; vertical-align: bottom; padding: 13px 16px; border: 0; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; line-height: 1.45; }
#top .al-td-table th.is-red { background: var(--al-red); }
#top .al-td-table td { padding: 13px 16px; border: 0; border-top: 1px solid var(--al-border); vertical-align: top; line-height: 1.55; color: #3A4555; background: #fff; }
#top .al-td-table td + td { border-left: 1px solid var(--al-border); }
#top .al-td-table th + th { border-left: 1px solid rgba(255,255,255,.12); }
#top .al-td-table tbody tr:first-child td { border-top: 0; }
#top .al-td-table td:first-child { font-weight: 500; color: var(--al-slate); }
#top .al-td-table td.is-hl { color: var(--al-red); font-weight: 600; }
#top .al-td-table tbody tr:nth-child(even) td { background: #FAFBFD; }
#top .al-td-table__note { font-size: 12.5px; line-height: 1.6; color: var(--al-grey); padding: 12px 16px; border-top: 1px solid var(--al-border); background: var(--al-ice); }
#top .al-td-table__hint { display: none; font-size: 11.5px; color: var(--al-grey); margin-top: 8px; }
@media (max-width: 767px) { #top .al-td-table__hint { display: block; } }

/* ── Baustein: Freitext ── */
#top .al-td-free--box { background: var(--al-ice); border-left: 3px solid var(--al-red); border-radius: 0 8px 8px 0; padding: 28px 32px; }
#top .al-td-free .al-td-formula { display: inline-block; margin: 14px 0 6px; background: #fff; border: 1px solid var(--al-border); border-radius: 6px; padding: 12px 18px; font-size: 17px; font-weight: 500; color: var(--al-slate); letter-spacing: .3px; }
@media (max-width: 767px) {
  #top .al-td-free--box { padding: 22px 18px; }
  #top .al-td-free .al-td-formula { font-size: 15px; padding: 10px 12px; }
}

/* ── Downloads (Liste vom Produkt) ── */
#top .al-td-downloads__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; max-width: 780px; }
#top .al-td-downloads__grid .al-download-btn { min-width: 0; }
@media (max-width: 767px) { #top .al-td-downloads__grid { grid-template-columns: minmax(0, 1fr); } }

/* ── Quellenverzeichnis ── */
#top .al-td-refs { list-style: none; counter-reset: al-td-ref; display: grid; gap: 12px; max-width: 820px; margin: 0; padding: 0; }
#top .al-td-refs li { position: relative; list-style: none; padding-left: 38px; margin: 0; font-size: 13.5px; line-height: 1.65; color: #3A4555; scroll-margin-top: 150px; }
#top .al-td-refs li::before { content: '[' counter(al-td-ref) ']'; counter-increment: al-td-ref; position: absolute; left: 0; top: 0; font-weight: 600; color: var(--al-red); }
#top .al-td-refs__authors { color: var(--al-slate); font-weight: 500; }
#top .al-td-refs__journal { font-style: italic; }
#top .al-td-refs__note { color: var(--al-grey); }
#top a.al-td-refs__link { display: inline-block; margin-left: 4px; font-weight: 600; color: var(--al-red); text-decoration: none; overflow-wrap: anywhere; }
#top a.al-td-refs__link:hover { text-decoration: underline; }
#top .al-td-refs li:target { background: #FFF8E6; box-shadow: -8px 0 0 #FFF8E6, 8px 0 0 #FFF8E6; }

/* ── Contact the Author ── */
#top .al-td-author { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-top: 56px; padding: 28px 32px; background: var(--al-ice); border: 1px solid var(--al-border); border-radius: 8px; }
#top .al-td-author__avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--al-slate); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; letter-spacing: .5px; }
#top .al-td-author__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--al-red); margin-bottom: 6px; }
#top .al-td-author__h { font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -.2px; color: var(--al-slate); margin: 0 0 6px; text-transform: none; }
#top .al-td-author__text { font-size: 14px; font-weight: 300; line-height: 1.65; color: var(--al-grey); margin: 0 0 10px; max-width: 560px; }
#top .al-td-author__person { font-size: 13px; line-height: 1.5; color: var(--al-slate); }
#top .al-td-author__person strong { font-weight: 600; margin-right: 8px; }
#top .al-td-author__person span { color: var(--al-grey); }
#top .al-td-author__action .al-btn { white-space: nowrap; }
@media (max-width: 989px) {
  #top .al-td-author { grid-template-columns: 56px minmax(0, 1fr); }
  #top .al-td-author__avatar { width: 56px; height: 56px; font-size: 18px; }
  #top .al-td-author__action { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  #top .al-td-author { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 24px 20px; margin-top: 44px; }
  #top .al-td-author__avatar { display: none; }
  #top .al-td-author__action .al-btn { width: 100%; justify-content: center; box-sizing: border-box; white-space: normal; }
}

/* ── Rücksprung ── */
#top .al-td-back { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--al-border); }
#top a.al-td-back__link { font-weight: 600; color: var(--al-red); font-size: 14px; text-decoration: none; }
#top a.al-td-back__link:hover { text-decoration: underline; }
#top a.al-td-back__top { font-size: 13px; color: var(--al-grey) !important; text-decoration: none; }

/* ── Mobil ── */
@media (max-width: 767px) {
  #top .al-td-h2 { font-size: 24px; }
  #top .al-td-h3 { font-size: 17px; }
  #top .al-td-rich p, #top .al-td-rich ul li { font-size: 15px; }
  #top .al-td-hero__actions .al-btn { width: auto; }
}
