/* =====================================================================
   Rechtstexte (Impressum, Datenschutzerklärung, AGB) – gemeinsames Baustein-Set.
   Gleiche Regeln in impressum.css, datenschutzerklaerung.css und agb.css.
     .hl-legal-head          schlanker Kopf: Brotkrumen, H1, ggf. Einleitung/Stand/PDF
     .hl-legal               Inhalt: Lesespalte (max. 70ch) + Inhaltsverzeichnis rechts
     .hl-legal--solo         nur Lesespalte (ohne Inhaltsverzeichnis)
     .hl-legal-toc           Inhaltsverzeichnis: Desktop haftend rechts, mobil aufklappbar oben
     .hl-legal-text          Rechtstext: H2 (--fs-card), H3/H4 (--fs-body), Absätze, Listen
     .hl-legal-no            Ziffer/Buchstabe vor dem Absatz (1.1., a) …)
     .hl-legal-list          Aufzählung mit wörtlichen Markern a), b) … (hängender Einzug)
     .hl-legal-cards         zwei Glas-Kacheln nebeneinander (Impressum: Kontakt / Geschäftsführer)
     .hl-legal-dl            Download-Link (PDF)
   Schriftgrößen nur aus der Skala: --fs-h1, --fs-card, --fs-body, --fs-small, --fs-label.
   ===================================================================== */

/* ---------- Kopf ---------- */
.hl .fusion-fullwidth.hl-legal-head{--awb-padding-bottom:0px}
.hl .hl-legal-head .hl-sp-crumbs{margin-bottom:clamp(22px,2.4vw,32px)!important}
.hl .hl-legal-head .hl-legal-lead{margin-top:clamp(18px,2vw,26px)!important}
.hl .hl-legal-head .hl-legal-lead p{max-width:60ch;hyphens:manual;-webkit-hyphens:manual}
.hl .hl-legal-meta{margin-top:10px!important}
.hl .hl-legal-meta p{font-size:var(--fs-small);line-height:1.5;color:var(--ink-4)}
.hl .hl-legal-dl-wrap{margin-top:clamp(18px,2vw,24px)!important}
.hl .hl-legal-dl a{display:inline-flex;align-items:flex-start;gap:8px;font-size:var(--fs-body);font-weight:700;line-height:1.3;color:var(--ink);transition:color .2s}
.hl .hl-legal-dl a::before{content:"download";flex:0 0 auto;font-family:"Material Symbols Rounded";font-weight:normal;font-style:normal;font-size:22px;line-height:1;letter-spacing:normal;
  font-feature-settings:"liga";font-variation-settings:"FILL" 0,"wght" 500,"opsz" 24;-webkit-font-smoothing:antialiased;color:var(--red)}
.hl .hl-legal-dl a:hover{color:var(--red)}

/* ---------- Raster: Lesespalte links, Inhaltsverzeichnis rechts ---------- */
.hl .fusion-fullwidth.hl-legal{--awb-padding-top:clamp(36px,4.5vw,56px)}
.hl .hl-legal > .fusion-builder-row{display:grid!important;grid-template-columns:minmax(0,70ch) minmax(240px,300px);column-gap:clamp(36px,5vw,72px);justify-content:space-between;align-items:start}
.hl .hl-legal > .fusion-builder-row > .fusion-layout-column{width:auto!important;margin:0!important;min-width:0;float:none}
.hl .hl-legal > .fusion-builder-row > .hl-legal-body{grid-column:1;grid-row:1}
.hl .hl-legal > .fusion-builder-row > .hl-legal-toc{grid-column:2;grid-row:1}
.hl .hl-legal--solo > .fusion-builder-row{grid-template-columns:minmax(0,70ch);justify-content:start}

/* ---------- Rechtstext ---------- */
.hl .hl-legal-text + .hl-legal-text{margin-top:clamp(40px,4.5vw,56px)!important}
.hl .hl-legal-text{font-size:var(--fs-body);line-height:1.65;color:var(--ink-2);overflow-wrap:break-word}
.hl .hl-legal-text :is(h2,h3,h4){color:var(--ink);font-weight:700;letter-spacing:var(--ls);text-wrap:balance}
.hl .hl-legal-text h2{font-size:var(--fs-card);line-height:1.25;margin:0 0 .7em!important}
.hl .hl-legal-text * + h2{margin-top:1.8em!important}
.hl .hl-legal-text :is(h3,h4){font-size:var(--fs-body);line-height:1.4;margin:1.9em 0 .55em!important}
.hl .hl-legal-text h2 + :is(h3,h4){margin-top:1.2em!important}
.hl .hl-legal-text :is(p,ul,ol){font-size:var(--fs-body);line-height:1.65;color:var(--ink-2)}
.hl .hl-legal-text * + p,.hl .hl-legal-text * + :is(ul,ol){margin-top:.85em!important}
.hl .hl-legal-text strong,.hl .hl-legal-no{font-weight:700;color:var(--ink)}
.hl .hl-legal-text ul{list-style:none;padding:0}
.hl .hl-legal-text ul > li{position:relative;padding-left:1.4em}
.hl .hl-legal-text ul > li + li{margin-top:.4em}
.hl .hl-legal-text ul:not(.hl-legal-list) > li::before{content:"";position:absolute;left:.3em;top:.72em;width:6px;height:6px;border-radius:50%;background:var(--red)}
/* Aufzählung mit wörtlichen Markern a), b) …: hängender Einzug */
.hl .hl-legal-text ul.hl-legal-list > li{padding-left:2em;text-indent:-2em}
.hl .hl-legal-text ul.hl-legal-list > li .hl-legal-no{display:inline-block;min-width:1.74em;text-indent:0}/* + Wortabstand ≈ 2em */
.hl .hl-legal-text ul.hl-legal-list > li p{text-indent:0}
/* Teile der AGB / englische Fassung: deutliche Trennung */
.hl .hl-legal-text + .hl-legal-text h2:first-child{padding-top:clamp(32px,3.5vw,44px);border-top:1px solid #0a141814}
.hl .hl-legal-text h2.hl-legal-doc{font-size:var(--fs-card);color:var(--red);margin-bottom:1.2em!important}
/* Links im Text */
.hl .hl-legal-text a{color:var(--red);font-weight:700;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;overflow-wrap:anywhere;transition:color .2s}
.hl .hl-legal-text a:hover{color:var(--red-deep)}
.hl .hl-legal-text a[target="_blank"]::after{content:"open_in_new";display:inline-block;margin-left:3px;vertical-align:-2px;font-family:"Material Symbols Rounded";font-weight:normal;font-style:normal;font-size:16px;line-height:1;letter-spacing:normal;
  font-feature-settings:"liga";font-variation-settings:"FILL" 0,"wght" 300,"opsz" 24;-webkit-font-smoothing:antialiased;color:var(--tl);opacity:.7;text-decoration:none;transition:opacity .2s}
.hl .hl-legal-text a[target="_blank"]:hover::after{opacity:1}
.hl .hl-legal-text a[href^="tel:"],.hl .hl-legal-text a[href^="mailto:"]{white-space:nowrap}
/* Bildnachweise (Impressum) */
.hl .hl-legal-credits{margin-top:1.6em!important;padding-top:1.2em;border-top:1px solid #0a141814}
.hl .hl-legal-text .hl-legal-credits p{font-size:var(--fs-small);line-height:1.55;color:var(--ink-4)}
.hl .hl-legal-text .hl-legal-credits p + p{margin-top:.4em!important}
.hl .hl-legal-text .hl-legal-credits a{font-weight:500}

/* ---------- Zwei Kacheln (Impressum) ---------- */
.hl .hl-legal-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.hl .hl-legal-card{padding:clamp(22px,2.4vw,30px);border-radius:24px;background:var(--glass);
  -webkit-backdrop-filter:blur(14px) saturate(1.4);backdrop-filter:blur(14px) saturate(1.4);border:1px solid var(--glass-line);box-shadow:var(--glass-shadow)}
.hl .hl-legal-text .hl-legal-card h2{margin-bottom:.6em!important}

/* ---------- Inhaltsverzeichnis ---------- */
.hl .hl-legal-toc .fusion-text{margin:0}
.hl .hl-legal-toc-details{border-radius:24px;background:var(--glass);
  -webkit-backdrop-filter:blur(14px) saturate(1.4);backdrop-filter:blur(14px) saturate(1.4);border:1px solid var(--glass-line);box-shadow:var(--glass-shadow)}
.hl .hl-legal-toc-details summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px clamp(20px,2.2vw,26px);cursor:pointer;list-style:none;
  font:700 var(--fs-label)/1.2 var(--ff);letter-spacing:.08em;text-transform:uppercase;color:var(--ink-4)}
.hl .hl-legal-toc-details summary::-webkit-details-marker{display:none}
.hl .hl-legal-toc-details summary .ic{font-size:24px;color:var(--ink-4);transition:transform .3s var(--ease)}
.hl .hl-legal-toc-details[open] summary .ic{transform:rotate(180deg)}
.hl .hl-legal-toc-details nav{padding:0 clamp(20px,2.2vw,26px) 14px}
.hl .hl-legal-toc-list,.hl .hl-legal-toc-list ol{list-style:none;margin:0!important;padding:0}
.hl .hl-legal-toc-list > li + li{border-top:1px solid #0a141812}
.hl .hl-legal-toc-list a{display:block;padding:10px 0;font-size:var(--fs-small);font-weight:700;line-height:1.35;color:var(--ink);transition:color .2s}
.hl .hl-legal-toc-list ol{margin:-4px 0 8px!important;padding-left:14px;border-left:2px solid #0a141812}
.hl .hl-legal-toc-list ol a{padding:5px 0;font-weight:400;color:var(--ink-3)}
.hl .hl-legal-toc-list a:hover,.hl .hl-legal-toc-list a.is-active{color:var(--red)}
.hl .hl-legal-toc-dl{padding:14px clamp(20px,2.2vw,26px) 18px;border-top:1px solid #0a141812}
.hl .hl-legal-toc-dl .hl-legal-dl a{font-size:var(--fs-small)}

/* Desktop: haftend rechts, immer aufgeklappt */
@media (min-width:981px){
  .hl .hl-legal-toc{position:sticky;top:140px}
  .hl .hl-legal-toc-details{max-height:calc(100vh - 170px);overflow:auto;overscroll-behavior:contain}
  @supports selector(::details-content){
    .hl .hl-legal-toc-details::details-content{content-visibility:visible;display:block}
    .hl .hl-legal-toc-details summary{pointer-events:none;cursor:default}
    .hl .hl-legal-toc-details summary .ic{display:none}
  }
}

/* ---------- Responsive ---------- */
@media (max-width:980px){
  .hl .hl-legal > .fusion-builder-row{grid-template-columns:minmax(0,1fr)}
  .hl .hl-legal > .fusion-builder-row > .hl-legal-toc{grid-column:1;grid-row:1;margin-bottom:var(--si)!important}
  .hl .hl-legal > .fusion-builder-row > .hl-legal-body{grid-column:1;grid-row:2;max-width:70ch}
}
@media (max-width:620px){
  .hl .hl-legal-cards{grid-template-columns:minmax(0,1fr)}
  .hl .hl-legal-text{hyphens:auto;-webkit-hyphens:auto}
  .hl .hl-legal-text :is(h2,h3,h4){text-wrap:pretty}
}
