/* Only city-page components. Scoping avoids changing theme / lead-form styles. */
#dmp-hh-test .edc-city-widget,
.edc-city-modules .edc-city-widget{scroll-margin-top:30px}
#dmp-hh-test .edc-city-widget *,
.edc-city-modules .edc-city-widget *{box-sizing:border-box}
#dmp-hh-test .edc-tool-card,
.edc-city-modules .edc-tool-card{border:1px solid #cce1df;border-radius:20px;background:linear-gradient(140deg,#f4faf9,#fff);padding:clamp(19px,3vw,32px);margin:20px 0;color:#153447}
#dmp-hh-test .edc-tool-card .edc-tool-note,
.edc-city-modules .edc-tool-card .edc-tool-note{padding:15px 18px;background:#edf6f5;border-left:4px solid #147378;border-radius:9px;margin-bottom:22px;color:#365665;line-height:1.6}
#dmp-hh-test .edc-field-grid,
.edc-city-modules .edc-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px;row-gap:20px}
#dmp-hh-test .edc-tool-form label,
.edc-city-modules .edc-tool-form label{display:block;font-size:.94rem;font-weight:750;color:#214654;line-height:1.45;min-width:0}
#dmp-hh-test .edc-tool-form label.edc-full,
.edc-city-modules .edc-tool-form label.edc-full{grid-column:1/-1}
#dmp-hh-test .edc-tool-form :is(input,select,textarea),
.edc-city-modules .edc-tool-form :is(input,select,textarea){width:100%;max-width:100%;display:block;min-height:47px;background:#fff;color:#183b4a;border:1px solid #b2d1d0;border-radius:10px;padding:11px 14px;font:inherit;font-size:1rem;font-weight:500;margin:7px 0 0}
#dmp-hh-test .edc-tool-form textarea,
.edc-city-modules .edc-tool-form textarea{min-height:76px;resize:vertical}
#dmp-hh-test .edc-tool-form small,
.edc-city-modules .edc-tool-form small{display:block;margin-top:6px;color:#627d86;font-size:.8rem;font-weight:400;line-height:1.5}
#dmp-hh-test .edc-tool-form :is(input,select,textarea):focus-visible,
.edc-city-modules .edc-tool-form :is(input,select,textarea):focus-visible{outline:2px solid #116c72;outline-offset:2px}
#dmp-hh-test .edc-field-grid [hidden],
.edc-city-modules .edc-field-grid [hidden]{display:none!important}
#dmp-hh-test .edc-cost-total,
.edc-city-modules .edc-cost-total{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;background:#11374b;color:#fff;padding:23px 27px;border-radius:18px;margin:26px 0 15px}
#dmp-hh-test .edc-cost-total span,
.edc-city-modules .edc-cost-total span{display:block;font-size:1.2rem;font-weight:800;color:#fff}
#dmp-hh-test .edc-cost-total small,
.edc-city-modules .edc-cost-total small{display:block;color:#daeaec;font-size:.83rem;margin-top:5px}
#dmp-hh-test .edc-cost-total strong,
.edc-city-modules .edc-cost-total strong{color:#efc785;font-size:clamp(1.9rem,4vw,3rem);letter-spacing:-.035em;line-height:1.12}
#dmp-hh-test .edc-cost-breakdown ul,
.edc-city-modules .edc-cost-breakdown ul{list-style:none;padding:0;margin:0 0 18px}
#dmp-hh-test .edc-cost-breakdown li,
.edc-city-modules .edc-cost-breakdown li{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #e4eeee;color:#3a5b6a;font-size:.94rem}
#dmp-hh-test .edc-tool-actions,
.edc-city-modules .edc-tool-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:18px 0 0}
#dmp-hh-test .edc-tool-actions :is(button,a),
.edc-city-modules .edc-tool-actions :is(button,a){background:#0f6e72;border:1px solid #0f6e72;color:#fff;text-decoration:none;border-radius:10px;padding:11px 17px;font:inherit;font-size:.89rem;font-weight:750;line-height:1.45;cursor:pointer;min-height:44px}
#dmp-hh-test .edc-tool-actions :is(button.edc-secondary,a),
.edc-city-modules .edc-tool-actions :is(button.edc-secondary,a){background:#fff;border-color:#c0d9d7;color:#174a53}
#dmp-hh-test .edc-tool-status,
.edc-city-modules .edc-tool-status{margin:12px 0 0;color:#215f61;min-height:1.5em;font-size:.88rem}
#dmp-hh-test .edc-fineprint,
.edc-city-modules .edc-fineprint{color:#607985;font-size:.85rem;margin:14px 0!important;line-height:1.65}
#dmp-hh-test .edc-authority-note,
.edc-city-modules .edc-authority-note{border:1px solid #d6e6dd;border-left:4px solid #b18d55;background:#fafaf5;border-radius:12px;padding:17px 20px;margin-bottom:18px;color:#385763}
#dmp-hh-test .edc-authority-note p,
.edc-city-modules .edc-authority-note p{margin:6px 0}
#dmp-hh-test .edc-letter-preview,
.edc-city-modules .edc-letter-preview{white-space:pre-wrap;overflow-wrap:anywhere;background:#fff;border:1px solid #d7e5e4;padding:18px 21px;border-radius:12px;font-size:.88rem;line-height:1.6;max-height:350px;overflow:auto;color:#314f5e}
#dmp-hh-test .edc-letter h3,
.edc-city-modules .edc-letter h3{margin:22px 0 10px}
/* Connected EU-Führerschein alternative: only visual component, no admin UI. */
#dmp-hh-test .edc-eu-alt-v1,
.edc-city-modules .edc-eu-alt-v1 {box-sizing:border-box;position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(116deg,#103247 0%,#10495a 58%,#0c686e 100%);color:#edf6f5;border-radius:28px;padding:clamp(26px,4vw,60px);box-shadow:0 22px 55px rgba(11,49,63,.12)}
#dmp-hh-test .edc-eu-alt-v1 *,
.edc-city-modules .edc-eu-alt-v1 *{box-sizing:border-box}
#dmp-hh-test .edc-eu-alt-v1::after,
.edc-city-modules .edc-eu-alt-v1::after{content:"";position:absolute;pointer-events:none;z-index:-1;width:440px;height:440px;border-radius:50%;right:-180px;top:-200px;background:radial-gradient(circle,rgba(143,226,212,.15),transparent 72%)}
#dmp-hh-test .edc-eu-alt-eyebrow,
.edc-city-modules .edc-eu-alt-eyebrow{color:#f7cf8a!important;font-size:.78rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase;margin:0 0 17px!important}
#dmp-hh-test .edc-eu-alt-grid,
.edc-city-modules .edc-eu-alt-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(270px,.85fr);gap:clamp(24px,4vw,62px);align-items:center}
#dmp-hh-test .edc-eu-alt-v1 h2,
.edc-city-modules .edc-eu-alt-v1 h2{color:#fff;font-size:clamp(1.85rem,3.2vw,3rem);line-height:1.14;margin:0 0 19px;letter-spacing:-.03em;font-weight:800}
#dmp-hh-test .edc-eu-alt-v1 .edc-eu-alt-copy,
.edc-city-modules .edc-eu-alt-v1 .edc-eu-alt-copy{font-size:clamp(1rem,1.45vw,1.14rem);line-height:1.75;color:#e3eff1;margin:0 0 25px}
#dmp-hh-test .edc-eu-alt-points,
.edc-city-modules .edc-eu-alt-points{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 26px;padding:0;list-style:none}
#dmp-hh-test .edc-eu-alt-points li,
.edc-city-modules .edc-eu-alt-points li{padding:9px 13px;background:rgba(255,255,255,.10);color:#f1f7f6;border:1px solid rgba(213,238,240,.27);border-radius:999px;font-size:.88rem;font-weight:650;list-style:none}
#dmp-hh-test .edc-eu-alt-primary,
.edc-city-modules .edc-eu-alt-primary{display:inline-flex;align-items:center;justify-content:center;gap:13px;max-width:100%;padding:16px 23px;background:#f6d49b;color:#123b4b!important;text-decoration:none!important;border-radius:13px;font-weight:800;line-height:1.3;transition:background .2s,transform .2s}
#dmp-hh-test .edc-eu-alt-primary:hover,#dmp-hh-test .edc-eu-alt-primary:focus-visible,
.edc-city-modules .edc-eu-alt-primary:hover,.edc-city-modules .edc-eu-alt-primary:focus-visible{background:#ffe3b4;transform:translateY(-1px);color:#123b4b!important}
#dmp-hh-test .edc-eu-alt-primary:focus-visible,
.edc-city-modules .edc-eu-alt-primary:focus-visible{outline:3px solid #fff;outline-offset:3px}
#dmp-hh-test .edc-eu-alt-disclaimer,
.edc-city-modules .edc-eu-alt-disclaimer{font-size:.78rem!important;color:#c9dce0!important;line-height:1.6;margin:17px 0 0!important}
#dmp-hh-test .edc-eu-alt-affiliation,
.edc-city-modules .edc-eu-alt-affiliation{font-size:.73rem!important;color:#c9dce0!important;line-height:1.5;margin:8px 0 0!important}
#dmp-hh-test .edc-eu-alt-aside,
.edc-city-modules .edc-eu-alt-aside{border:1px solid rgba(225,245,242,.28);border-radius:22px;padding:16px;background:rgba(255,255,255,.07);min-width:0}
#dmp-hh-test .edc-eu-alt-logo,
.edc-city-modules .edc-eu-alt-logo{display:block;background:#fff;border-radius:15px;padding:18px 14px;max-width:100%;margin:0 0 16px}
#dmp-hh-test .edc-eu-alt-logo img,
.edc-city-modules .edc-eu-alt-logo img{display:block;width:100%;height:auto;max-height:185px;object-fit:contain}
#dmp-hh-test .edc-eu-alt-benefit,
.edc-city-modules .edc-eu-alt-benefit{margin:0 2px 4px!important;font-weight:850;color:#f8d293!important;font-size:1.25rem;line-height:1.4}
#dmp-hh-test .edc-eu-alt-benefit-desc,
.edc-city-modules .edc-eu-alt-benefit-desc{margin:0 2px 4px!important;color:#e5f1f1!important;font-size:.95rem;line-height:1.65}
@media(max-width:780px){#dmp-hh-test .edc-eu-alt-grid,.edc-city-modules .edc-eu-alt-grid{grid-template-columns:1fr;gap:28px}#dmp-hh-test .edc-eu-alt-aside,.edc-city-modules .edc-eu-alt-aside{max-width:520px}#dmp-hh-test .edc-eu-alt-primary,.edc-city-modules .edc-eu-alt-primary{width:100%}}
@media(max-width:650px){#dmp-hh-test .edc-field-grid,.edc-city-modules .edc-field-grid{grid-template-columns:1fr}#dmp-hh-test .edc-cost-total,.edc-city-modules .edc-cost-total{padding:20px}}
@media(max-width:480px){#dmp-hh-test .edc-eu-alt-v1,.edc-city-modules .edc-eu-alt-v1{border-radius:18px;padding:25px 20px}#dmp-hh-test .edc-eu-alt-logo,.edc-city-modules .edc-eu-alt-logo{padding:12px}#dmp-hh-test .edc-eu-alt-points li,.edc-city-modules .edc-eu-alt-points li{font-size:.8rem}}

/* EASY DACH v1.2.4: the full HTML template owns the only visible H1.
   Scope strictly to city views; never suppress the header or other WordPress pages. */
body.edc-managed-city main header.entry-header,
body.edc-managed-city main header.page-header,
body.edc-managed-city main h1.entry-title,
body.edc-managed-city main h1.page-title,
body.edc-managed-city main h1.wp-block-post-title,
body.edc-managed-city main .entry-header > .entry-title,
body.edc-managed-city main .post-title > h1,
body.edc-managed-city main .post-title h1,
body.single-edc_city main .wp-block-post-title { display:none !important; }

/* Theme layouts sometimes print their title outside the <main> element. */
body.edc-managed-city header.entry-header:not(#dmp-hh-test .entry-header),
body.edc-managed-city header.page-header:not(#dmp-hh-test .page-header),
body.edc-managed-city h1.entry-title:not(#dmp-hh-test h1),
body.edc-managed-city h1.page-title:not(#dmp-hh-test h1),
body.edc-managed-city h1.wp-block-post-title:not(#dmp-hh-test h1) { display:none !important; }

/* v1.2.5 fallback: different themes may use unclassified h1 elements in main.
   Only the v5 page root may expose a visible H1 on EASY DACH city views. */
body.edc-managed-city main h1:not(#dmp-hh-test h1) {display:none!important}
body.edc-managed-city main .entry-header:not(#dmp-hh-test .entry-header) {display:none!important}

/* v1.2.6: central modules – same layout in DE/AT/CH/LI. */
#dmp-hh-test .edc-check-result{background:#e8f3f1;border-left:4px solid #13747a;border-radius:12px;padding:18px 20px;margin:20px 0 12px;color:#214552}
#dmp-hh-test .edc-check-result strong{display:block;margin-bottom:7px;color:#163c4b}
#dmp-hh-test .edc-check-result p{margin:0;line-height:1.6}
#dmp-hh-test .edc-check-link{display:inline-flex;align-items:center;min-height:44px;background:#116c72;color:#fff!important;text-decoration:none!important;padding:11px 18px;border-radius:10px;font-weight:750}
#dmp-hh-test .edc-cost[data-edc-model="local"] .edc-field-grid label{font-weight:650}
#dmp-hh-test .edc-city-widget .hh-section-intro{max-width:840px}
#dmp-hh-test .edc-city-widget h2{font-family:inherit;font-size:clamp(1.7rem,2.9vw,2.35rem);line-height:1.2}
#dmp-hh-test .edc-local-faq h2{font-family:inherit}
@media(max-width:540px){#dmp-hh-test .edc-city-widget{font-size:16px}#dmp-hh-test .edc-cost-total{padding:18px}#dmp-hh-test .edc-check-result{padding:15px}}
