/* elisabit: Rechtsseiten (Impressum, Datenschutz, AGB, Cookies) im Joyce-Meyer-Stil */
body.jm-legal{--jm-blau:#025081;--jm-hell:#7ca4bf;--jm-grau:#f3f6f9;--jm-text:#26343f;--jm-linie:#e2e9ef}
body.jm-legal .site-main{padding-bottom:72px!important}
body.jm-legal .jm-legal-chain{max-width:none!important;width:100%!important;--content-width:100%!important;padding-left:0!important;padding-right:0!important;margin-left:0!important;margin-right:0!important}
body.jm-legal .site-main article,body.jm-legal .site-main .entry-content,body.jm-legal .jm-legal-chain{background-color:#fff!important}
body.jm-legal .jm-legal-hidden{display:none!important}

/* Kopf wie die übrigen Inhaltsseiten */
.jm-legal-hero{background:#025081;color:#fff;padding:20px 20px 40px;text-align:center}
.jm-legal-hero .jm-legal-kicker{font:400 18px/1.4 Montserrat,sans-serif;letter-spacing:.02em;text-transform:uppercase;color:#fff;margin:0 0 6px}
.jm-legal-hero h1{font-family:"Crimson Text",Georgia,serif!important;font-weight:400!important;font-size:clamp(36px,4.2vw,56px)!important;line-height:1.15!important;color:#fff!important;margin:0!important;letter-spacing:0!important}

/* Textspalte (ohne Rahmen) */
body.jm-legal .jm-legal-card{box-sizing:border-box;max-width:760px!important;width:100%!important;margin:0 auto!important;padding:40px 20px 24px!important;background:transparent!important;color:var(--jm-text);font-family:Montserrat,sans-serif;font-size:16px;line-height:1.75;overflow-wrap:anywhere;column-count:1!important}
body.jm-legal .jm-legal-card *{max-width:100%}
body.jm-legal .jm-legal-card [class*="col-"]{width:100%!important;margin-left:0!important;flex:1 1 100%!important}
body.jm-legal .jm-legal-card h1{display:none!important}
body.jm-legal .jm-legal-card h2{font-family:"Crimson Text",Georgia,serif!important;font-size:clamp(26px,3vw,32px)!important;font-weight:700!important;line-height:1.2!important;color:var(--jm-blau)!important;margin:56px 0 18px!important;padding:0 0 14px!important;border-bottom:2px solid var(--jm-linie);scroll-margin-top:110px;letter-spacing:0!important}
body.jm-legal .jm-legal-card h2:first-of-type{margin-top:8px!important}
body.jm-legal .jm-legal-card h3{font-family:Montserrat,sans-serif!important;font-size:18px!important;font-weight:700!important;line-height:1.35!important;color:var(--jm-blau)!important;margin:34px 0 10px!important;scroll-margin-top:110px;letter-spacing:0!important}
body.jm-legal .jm-legal-card h4{font-family:Montserrat,sans-serif!important;font-size:16px!important;font-weight:700!important;color:var(--jm-text)!important;margin:24px 0 6px!important}
body.jm-legal .jm-legal-card p{margin:0 0 14px!important;font-size:16px!important;line-height:1.75!important;color:var(--jm-text)!important}
body.jm-legal .jm-legal-card p:empty,body.jm-legal .jm-legal-card p:has(> br:only-child){display:none}
body.jm-legal .jm-legal-card ul,body.jm-legal .jm-legal-card ol{margin:0 0 16px!important;padding-left:22px!important}
body.jm-legal .jm-legal-card li{margin:0 0 6px!important;line-height:1.65!important}
body.jm-legal .jm-legal-card li::marker{color:var(--jm-hell)}
body.jm-legal .jm-legal-card a{color:var(--jm-blau)!important;text-decoration:underline;text-decoration-color:rgba(2,80,129,.35);text-underline-offset:3px;word-break:break-word}
body.jm-legal .jm-legal-card a:hover{text-decoration-color:var(--jm-blau)}
body.jm-legal .jm-legal-card strong,body.jm-legal .jm-legal-card b{color:#16232c}
body.jm-legal .jm-legal-card hr{border:0;border-top:1px solid var(--jm-linie);margin:32px 0}

/* Inhaltsverzeichnis */
.jm-legal-toc{background:var(--jm-grau);border:1px solid var(--jm-linie);border-radius:12px;padding:20px 24px;margin:0 0 40px}
.jm-legal-toc summary{cursor:pointer;list-style:none;font:700 13px/1 Montserrat,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--jm-blau);display:flex;align-items:center;justify-content:space-between}
.jm-legal-toc summary::-webkit-details-marker{display:none}
.jm-legal-toc summary::after{content:"";width:9px;height:9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .2s;margin-right:4px}
.jm-legal-toc[open] summary::after{transform:rotate(-135deg)}
body.jm-legal .jm-legal-toc ol{list-style:none!important;padding:0!important;margin:16px 0 0!important;columns:2;column-gap:32px}
body.jm-legal .jm-legal-toc li{break-inside:avoid;margin:0 0 8px!important;line-height:1.4!important}
body.jm-legal .jm-legal-toc a{font-size:14px;font-weight:600;text-decoration:none!important;color:var(--jm-blau)!important}
body.jm-legal .jm-legal-toc a:hover{text-decoration:underline!important}

/* Nach oben */
.jm-legal-top{position:fixed;right:20px;bottom:24px;z-index:50;width:48px;height:48px;border-radius:50%;border:0;background:var(--jm-blau,#025081);color:#fff;box-shadow:0 8px 20px rgba(2,40,66,.25);cursor:pointer;opacity:0;transform:translateY(10px);transition:opacity .2s,transform .2s;pointer-events:none;display:flex;align-items:center;justify-content:center}
.jm-legal-top.is-on{opacity:1;transform:none;pointer-events:auto}
.jm-legal-top::before{content:"";width:12px;height:12px;border-left:3px solid #fff;border-top:3px solid #fff;transform:translateY(3px) rotate(45deg)}

/* Cookiebot-Erklärung */
body.jm-legal .CookieDeclaration{font-size:15px}
body.jm-legal .CookieDeclarationType{border:1px solid var(--jm-linie)!important;border-radius:12px;padding:18px 20px 6px!important;margin:18px 0!important;background:#fff}
body.jm-legal .CookieDeclarationTypeHeader{font-family:"Crimson Text",Georgia,serif;font-size:22px;color:var(--jm-blau)}
body.jm-legal .CookieDeclarationTable{font-size:13px!important;border-collapse:collapse!important}
body.jm-legal .CookieDeclarationTableHeader{background:var(--jm-grau);color:var(--jm-blau);border-bottom:0!important;padding:8px!important}
body.jm-legal .CookieDeclarationTableCell{border-bottom:1px solid var(--jm-linie)!important;padding:8px!important}
body.jm-legal #CookieDeclarationChangeConsentChange,body.jm-legal a[href*="renew"]{display:inline-block;background:#4b9138;color:#fff!important;text-decoration:none!important;border-radius:8px;padding:10px 18px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;font-size:13px;margin:6px 0}

@media (max-width:767px){
  body.jm-legal .jm-legal-card{padding:28px 20px 16px!important;font-size:15px}
  body.jm-legal .jm-legal-toc ol{columns:1}
  body.jm-legal .CookieDeclarationTable{display:block;overflow-x:auto}
}
body.jm-legal .site-main{background-color:#fff!important}
body.jm-legal .site-main > article,body.jm-legal .jm-legal-hero + *{margin-top:0!important}
