/*
 * Alte, handgebaute Landingpages und Beiträge (früher mit eigenem <style> im Inhalt).
 * Ihr CSS wird entfernt, ihre Bausteine erscheinen hier im Design des Themes.
 * Gilt nur innerhalb von .legacy-html.
 */

/* Elementor-Container neutralisieren */
.legacy-html .e-con,.legacy-html .e-con-inner,.legacy-html .elementor-widget,.legacy-html .elementor-widget-container,.legacy-html .elementor{max-width:none!important;width:100%!important;padding:0!important;margin:0!important;display:block!important;--padding-top:0;--padding-bottom:0;--gap:0;--content-width:100%}
.legacy-html [class^="mr-"],.legacy-html [class*=" mr-"]{all:unset;display:block}
.legacy-html{color:var(--ink);font:16px/1.6 var(--body)}
.legacy-html img{max-width:100%;height:auto;display:block;border-radius:var(--r)}
.legacy-html a{color:inherit}
.legacy-html p{margin:0}
.legacy-html p+p{margin-top:12px}
.legacy-html h1,.legacy-html h2,.legacy-html h3,.legacy-html h4{font-family:var(--disp);font-weight:700;line-height:1.02;text-transform:uppercase;margin:0;text-wrap:balance}
.legacy-html h3{font-size:24px;margin:4px 0 8px}
.legacy-html ul,.legacy-html ol{color:var(--ink-2);padding-left:20px;margin:10px 0;display:grid;gap:6px}
.legacy-html strong{color:inherit}
.legacy-html .muted{color:var(--ink-2)}
.legacy-html .divider,.legacy-html .hero__glow,.legacy-html .sticky-cta{display:none}

/* Abschnitte */
.legacy-html .wrap{max-width:var(--wrap);margin-inline:auto;padding-inline:clamp(16px,4vw,40px)}
.legacy-html section.wrap,.legacy-html section>.wrap{padding-block:clamp(32px,5vw,56px) 0}
.legacy-html section.wrap:last-child{padding-bottom:clamp(40px,6vw,72px)}
.legacy-html .headline,.legacy-html h2,.legacy-html .h2{font-size:clamp(30px,3.8vw,46px);margin-bottom:18px}

/* Kopfbereich (wie der dunkle Seitenkopf) */
.legacy-html .hero{background:var(--asphalt);color:var(--on-asphalt);padding-block:40px 40px;position:relative;overflow:hidden}
.legacy-html .hero>.wrap,.legacy-html .hero .hero__grid{display:grid;grid-template-columns:1.1fr .9fr;gap:32px;align-items:center}
.legacy-html .hero>.wrap:not(.hero__grid):has(>:only-child){grid-template-columns:1fr}
.legacy-html .hero h1,.legacy-html h1.h1,.legacy-html h1{font-size:clamp(38px,5.6vw,68px);font-weight:800}
.legacy-html .hero h1 .muted,.legacy-html h1 .muted{display:block;color:var(--muted-on-asphalt);font-size:.55em;font-weight:700;margin-top:6px}
.legacy-html .hero .muted,.legacy-html .hero .lead,.legacy-html .hero .lede,.legacy-html .hero p{color:var(--muted-on-asphalt)}
.legacy-html .hero .lead,.legacy-html .hero .lede{font-size:18px;margin-top:14px;max-width:40em}
.legacy-html .hero strong{color:var(--on-asphalt)}
.legacy-html .hero__media img,.legacy-html .hero img{width:100%;aspect-ratio:4/3;object-fit:cover}
.legacy-html .breadcrumbs,.legacy-html .crumbs{font-size:13.5px;color:var(--muted-on-asphalt);margin-bottom:14px}
.legacy-html .breadcrumbs a{text-decoration:none}
.legacy-html .breadcrumbs a:hover{text-decoration:underline}
@media (max-width:880px){.legacy-html .hero>.wrap,.legacy-html .hero .hero__grid{grid-template-columns:1fr}}

.legacy-html .lead,.legacy-html .lede{font-size:18px;color:var(--ink-2);max-width:48em}
.legacy-html .meta{font-size:14px;color:var(--ink-2);margin:8px 0}

/* Chips, Badges, Tags */
.legacy-html .badge-row,.legacy-html .row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:18px}
.legacy-html .pill,.legacy-html .badge{display:inline-flex;align-items:center;gap:6px;font:700 12px/1 var(--body);letter-spacing:.06em;text-transform:uppercase;padding:8px 11px;border-radius:99px;background:var(--chip);color:var(--ink)}
.legacy-html .hero .pill,.legacy-html .hero .badge{background:var(--asphalt-tint);border:1px solid var(--asphalt-line);color:var(--on-asphalt)}
.legacy-html .tag{font:700 12px/1 var(--body);letter-spacing:.12em;text-transform:uppercase;color:var(--red);margin-bottom:6px}

/* Knöpfe */
.legacy-html .btn,.legacy-html a.button,.legacy-html .wpcf7-submit{display:inline-flex;align-items:center;gap:.5em;font:700 15px/1 var(--body);padding:14px 20px;border-radius:var(--r);text-decoration:none;border:2px solid currentColor;background:transparent;color:inherit;cursor:pointer}
.legacy-html .btn--primary,.legacy-html .btn-primary,.legacy-html .btn.primary,.legacy-html .wpcf7-submit{background:var(--red);border-color:var(--red);color:#fff}
.legacy-html .btn--ghost,.legacy-html .btn-outline,.legacy-html .btn.ghost{background:transparent}
.legacy-html .btn:hover{transform:translateY(-1px)}

/* Raster & Karten */
.legacy-html .grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}
.legacy-html .grid-2,.legacy-html .cols-2,.legacy-html .cta-slab{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}
.legacy-html .grid-3,.legacy-html .cols-3{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.legacy-html .grid>*{min-width:0}
.legacy-html .card,.legacy-html .box{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:22px!important;display:block;color:var(--ink);box-shadow:none}
.legacy-html .card .muted,.legacy-html .card p{color:var(--ink-2)}
.legacy-html .feature h3,.legacy-html .card h3{font-size:24px}
.legacy-html .hero .card{background:var(--asphalt-2);border-color:var(--asphalt-line);color:var(--on-asphalt)}

/* Kennzahlen */
.legacy-html .kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1px;background:var(--asphalt-line);border:1px solid var(--asphalt-line);border-radius:var(--r);overflow:hidden;margin-top:22px}
.legacy-html .kpi{background:var(--asphalt-2);color:var(--on-asphalt);padding:16px 18px;border-radius:0}
.legacy-html .kpi b,.legacy-html .kpi strong{display:block;font:700 28px/1 var(--disp);color:var(--on-asphalt)}
.legacy-html :not(.kpis)>.kpi{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:var(--r)}
.legacy-html :not(.kpis)>.kpi b,.legacy-html :not(.kpis)>.kpi strong{color:var(--ink)}

/* Tabellen */
.legacy-html table{width:100%;border-collapse:collapse;font-size:15px;background:var(--surface)}
.legacy-html td,.legacy-html th{text-align:left;padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:top}
.legacy-html tr:last-child td{border-bottom:0}
.legacy-html td:first-child{color:var(--ink-2);font-weight:600;width:42%}
.legacy-html td:last-child{font-weight:600;font-variant-numeric:tabular-nums}

/* Galerie */
.legacy-html .gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.legacy-html .gallery img{width:100%;aspect-ratio:4/3;object-fit:cover}

/* Farben */
.legacy-html .color-swatches{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.legacy-html .swatch{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:var(--ink-2)}
.legacy-html .dot{width:22px;height:22px;border-radius:50%;border:2px solid var(--line);display:inline-block}

/* Listen mit Haken, Hinweise, Schritte */
.legacy-html ul.check,.legacy-html .checks{list-style:none;padding-left:0}
.legacy-html ul.check li,.legacy-html .checks li,.legacy-html li.check{list-style:none;padding-left:26px;position:relative}
.legacy-html ul.check li::before,.legacy-html .checks li::before,.legacy-html li.check::before{content:"✓";position:absolute;left:0;color:var(--ok);font-weight:800}
.legacy-html .note{background:var(--surface);border:1px dashed var(--line);border-radius:var(--r);padding:14px 16px;color:var(--ink-2);font-size:14.5px;margin-top:16px}
.legacy-html .steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;counter-reset:s}
.legacy-html .step{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:20px;counter-increment:s}
.legacy-html .step::before{content:counter(s);display:block;font:800 40px/1 var(--disp);color:var(--red);margin-bottom:6px}
.legacy-html .price{font:800 36px/1 var(--disp)}
.legacy-html .cta{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.legacy-html .help{font-size:13px;color:var(--ink-2)}

/* FAQ */
.legacy-html .faq{display:grid;gap:10px;max-width:880px}
.legacy-html .faq details,.legacy-html details.item{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:16px 20px}
.legacy-html summary{cursor:pointer;font-weight:700;font-size:17px;list-style:none;display:flex;justify-content:space-between;gap:12px}
.legacy-html summary::-webkit-details-marker{display:none}
.legacy-html summary::after{content:"+";font:700 22px/1 var(--disp);color:var(--red)}
.legacy-html details[open] summary::after{content:"–"}
.legacy-html details .content,.legacy-html details p{color:var(--ink-2);margin-top:10px}

/* Contact-Form-7-Formulare */
.legacy-html .wpcf7 form{display:grid;gap:14px}
.legacy-html .wpcf7 label{font-weight:600;font-size:14px;display:grid;gap:6px}
.legacy-html .wpcf7 input[type=text],.legacy-html .wpcf7 input[type=email],.legacy-html .wpcf7 input[type=tel],.legacy-html .wpcf7 input[type=date],.legacy-html .wpcf7 input[type=number],.legacy-html .wpcf7 select,.legacy-html .wpcf7 textarea{font:16px var(--body);color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:var(--r);padding:11px 12px;width:100%}
.legacy-html .wpcf7 textarea{min-height:100px}
.legacy-html .wpcf7-list-item{margin:0}
.legacy-html .wpcf7-response-output{border-radius:var(--r);font-size:14px}

/* Sonderfälle */
.legacy-html .wrap.grid{grid-template-columns:1fr}
.legacy-html .wrap .hero{border-radius:var(--r);padding:clamp(20px,3vw,32px)}
.legacy-html .hero figure{margin:0}
.legacy-html .hero .gallery{grid-template-columns:1fr}
.legacy-html .hero .kpi{background:var(--asphalt-2);color:var(--on-asphalt);border-color:var(--asphalt-line)}
.legacy-html .hero .kpi b,.legacy-html .hero .kpi strong{color:var(--on-asphalt)}
.legacy-html .hero .btn:not(.primary):not(.btn-primary):not(.btn--primary){color:var(--on-asphalt)}
.legacy-html .hero h1 span[style]{color:var(--red)!important}
.legacy-html section.card{margin-top:0}
.legacy-html .wrap>section.card+section.card{margin-top:0}
@media (max-width:880px){.legacy-html .hero.grid,.legacy-html .grid[style*="grid-template-columns"]{grid-template-columns:1fr!important}}
.legacy-html .step>div:first-child:empty{display:none}
.legacy-html input,.legacy-html select,.legacy-html textarea{max-width:100%}
.legacy-html fieldset{min-width:0;border:0;padding:0;margin:0}
.legacy-html .card{min-width:0;overflow-x:auto}
.legacy-html table{min-width:0}
@media (max-width:600px){.legacy-html td{display:block;width:auto!important;padding:6px 12px}.legacy-html td:first-child{padding-top:12px;border-bottom:0}}
