/* ESplan forms (Anfrage + Kontakt) - scoped to .esplan-page, loaded only by the two page templates */
/* Braggadocio is already declared in the theme style.css - do not declare it again here */
 
.esplan-page{
  --blue:#171b78;--blue2:#29359a;--red:#cf3326;--ink:#202536;--muted:#697188;
  --line:#dfe4ec;--soft:#f4f6fa;--card:#fff;--shadow:0 18px 50px rgba(28,40,82,.12);
  color:var(--ink);
  background:radial-gradient(circle at 82% 10%,rgba(39,51,145,.08),transparent 29%),linear-gradient(180deg,#fff 0,#f7f9fc 100%);
}
.esplan-page *,.esplan-page *:before,.esplan-page *:after{box-sizing:border-box}
 
/* Hero */
.esplan-page .ea-hero{max-width:1480px;margin:auto;padding:52px clamp(20px,4vw,64px) 30px;display:grid;grid-template-columns:1.25fr .75fr;gap:34px;align-items:center}
.esplan-page .kicker{letter-spacing:.22em;text-transform:uppercase;font-size:12px;font-weight:800;color:#727b99}
.esplan-page .ea-hero h1{font-size:clamp(39px,5vw,68px);line-height:1.04;margin:13px 0 17px;color:var(--blue)}
.esplan-page .ea-hero p{font-size:18px;line-height:1.55;color:#414970;max-width:820px}
 
/* ES logo as live text */
.esplan-page .es-logo{display:inline-block;white-space:nowrap;margin:0 .08em}
.esplan-page .es-logo__es{font-family:"Braggadocio","Braggadio",Impact,fantasy;color:var(--red);font-weight:normal;letter-spacing:.01em}
.esplan-page .es-logo__plan{font-style:italic;font-weight:800;color:var(--blue)}
.esplan-page .es-logo sup{font-size:.28em;font-weight:400;color:var(--blue);vertical-align:super}
 
/* Hero illustration */
.esplan-page .hero-art{min-height:255px;border-radius:24px;overflow:hidden;position:relative;background:linear-gradient(130deg,rgba(255,255,255,.82),rgba(255,255,255,.10)),linear-gradient(135deg,#e8edf5 0,#c8d2e0 45%,#8f9aae 100%);box-shadow:var(--shadow)}
.esplan-page .hero-art:before,.esplan-page .hero-art:after{content:"";position:absolute;right:14%;top:-8%;width:34px;height:130%;background:var(--red);transform:rotate(22deg);opacity:.95}
.esplan-page .hero-art:after{right:29%;width:10px;opacity:.78}
.esplan-page .cabinet{position:absolute;right:5%;bottom:0;width:57%;height:88%;background:linear-gradient(90deg,#fafbfc 0 9%,#d9e0ea 9% 13%,#f7f9fc 13% 100%);border-left:4px solid #818ca3}
.esplan-page .rail{position:absolute;left:18%;right:10%;height:10px;background:#69758b}
.esplan-page .rail.r1{top:22%}.esplan-page .rail.r2{top:48%}.esplan-page .rail.r3{top:74%}
.esplan-page .module{position:absolute;width:12%;height:18%;background:#f4f4f4;border:1px solid #8f98aa;box-shadow:inset 0 -8px 0 #b8c0cf}
.esplan-page .module:after{content:"";position:absolute;left:16%;right:16%;top:28%;height:4px;background:#dd3c2b}
.esplan-page .m1{left:22%;top:12%}.esplan-page .m2{left:38%;top:12%}.esplan-page .m3{left:55%;top:12%}
.esplan-page .m4{left:30%;top:39%}.esplan-page .m5{left:47%;top:39%}.esplan-page .m6{left:64%;top:39%}
 
/* Layout */
.esplan-page .ea-main{max-width:1480px;margin:0 auto;padding:0 clamp(20px,4vw,64px) 70px;display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:28px;align-items:start}
.esplan-page .form-card,.esplan-page .side-card{background:var(--card);border:1px solid #e8edf4;border-radius:22px;box-shadow:var(--shadow)}
.esplan-page .form-card{padding:24px 28px 28px}
.esplan-page .form-title{display:flex;gap:16px;align-items:center;padding-bottom:18px;border-bottom:1px solid var(--line)}
.esplan-page .form-icon{width:46px;height:46px;border-radius:14px;background:#fff2f0;color:var(--red);display:grid;place-items:center;flex:0 0 auto}
.esplan-page .form-icon svg{width:24px;height:24px}
.esplan-page .form-title h2{margin:0;color:var(--blue);font-size:22px}
.esplan-page .form-title p{margin:5px 0 0;color:var(--muted);font-size:14px}
 
/* Form sections */
.esplan-page .section{padding:20px 0;border-bottom:1px solid var(--line)}
.esplan-page .section:last-of-type{border-bottom:0}
.esplan-page .sec-head{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.esplan-page .num{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#aab3c6;color:#fff;font-weight:800;font-size:13px;flex:0 0 auto}
.esplan-page .sec-head h3{margin:0;color:var(--blue);font-size:16px}
.esplan-page .grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}
.esplan-page label.field{display:block;font-size:13px;font-weight:700;color:#333a66}
.esplan-page .req{color:var(--red)}
 
/* Inputs (CF7 wraps them in .wpcf7-form-control-wrap) */
.esplan-page .wpcf7-form-control-wrap{display:block}
.esplan-page input[type=text],.esplan-page input[type=email],.esplan-page input[type=tel],
.esplan-page textarea,.esplan-page select{
  width:100%;margin-top:7px;border:1px solid #cfd7e4;background:#fbfcfe;border-radius:8px;
  padding:13px 14px;font:inherit;font-size:15px;font-weight:400;color:var(--ink);outline:none;box-shadow:none;height:auto;
  transition:.18s border,.18s box-shadow,.18s background}
.esplan-page input:focus,.esplan-page textarea:focus,.esplan-page select:focus{border-color:#7f8bdd;background:#fff;box-shadow:0 0 0 4px rgba(50,62,160,.09)}
.esplan-page textarea{min-height:125px;resize:vertical}
 
/* Pill checkboxes */
.esplan-page .choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.esplan-page .choices .wpcf7-form-control-wrap,
.esplan-page .choices .wpcf7-checkbox{display:contents}
.esplan-page .choices .wpcf7-list-item{display:block;margin:0}
.esplan-page .choices .wpcf7-list-item label{
  display:flex;align-items:center;gap:10px;margin:0;padding:11px 12px;border-radius:8px;background:var(--soft);
  border:1px solid transparent;color:#30375d;font-size:13px;font-weight:400;cursor:pointer;transition:.15s ease;height:100%}
.esplan-page .choices .wpcf7-list-item label:hover{border-color:#b9c2d6;background:#fff}
.esplan-page .choices .wpcf7-list-item label:has(input:checked){border-color:#7d89d7;background:#eef0ff}
.esplan-page input[type=checkbox]{accent-color:var(--blue2);width:17px;height:17px;margin:0;flex:0 0 auto}
 
/* Spam quiz + consent */
.esplan-page .spam{display:grid;grid-template-columns:1.1fr .9fr;gap:16px;align-items:end}
.esplan-page .wpcf7-quiz-label{display:block;font-size:13px;font-weight:700;color:#333a66}
.esplan-page .consent{margin-top:10px;font-size:12px;line-height:1.45;color:#5d657c}
.esplan-page .consent .wpcf7-form-control-wrap{display:block}
.esplan-page .consent .wpcf7-list-item{display:block;margin:0}
.esplan-page .consent .wpcf7-list-item label{display:flex;gap:10px;align-items:flex-start;font-size:12px;font-weight:400;cursor:pointer}
.esplan-page .consent input[type=checkbox]{margin-top:2px}
.esplan-page .consent a{color:var(--blue);font-weight:700}
 
/* Submit */
.esplan-page .actions{padding-top:20px;display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.esplan-page .btn,.esplan-page input.wpcf7-submit{
  border:0;border-radius:10px;padding:14px 26px;font-weight:800;font-size:15px;cursor:pointer;display:inline-block;
  transition:.18s transform,.18s box-shadow}
.esplan-page .btn-primary,.esplan-page input.wpcf7-submit{
  background:linear-gradient(135deg,#e43c2c,#c61f18);color:#fff;box-shadow:0 10px 24px rgba(211,50,37,.24)}
.esplan-page .btn-primary:hover,.esplan-page input.wpcf7-submit:hover{transform:translateY(-1px);box-shadow:0 14px 30px rgba(211,50,37,.30)}
.esplan-page .wpcf7-spinner{margin:0 0 0 8px}
 
/* CF7 validation + response */
.esplan-page .wpcf7-not-valid{border-color:var(--red)!important}
.esplan-page .wpcf7-not-valid-tip{color:var(--red);font-size:12px;font-weight:600;margin-top:5px}
.esplan-page .wpcf7 form .wpcf7-response-output{margin:20px 0 0;padding:14px 16px;border-radius:10px;border:1px solid var(--line);font-size:14px}
.esplan-page .wpcf7 form.sent .wpcf7-response-output{border-color:#2e9b5f;background:#eefaf3;color:#1d6b40}
.esplan-page .wpcf7 form.invalid .wpcf7-response-output,
.esplan-page .wpcf7 form.failed .wpcf7-response-output,
.esplan-page .wpcf7 form.spam .wpcf7-response-output{border-color:var(--red);background:#fff4f2;color:#9c261c}
 
/* Clean up stray auto-formatting */
.esplan-page .esplan-form br{display:none}
.esplan-page .esplan-form p:empty{display:none}
 
/* Sidebar */
.esplan-page aside{display:grid;gap:20px}
.esplan-page .side-card{padding:20px}
.esplan-page .side-card h3{margin:0 0 12px;color:var(--blue);font-size:21px}
.esplan-page .contact-line{display:flex;gap:12px;align-items:flex-start;margin:12px 0;color:#56617b;font-size:14px}
.esplan-page .contact-line svg{width:18px;height:18px;color:var(--red);flex:0 0 auto;margin-top:2px}
.esplan-page .benefit{display:grid;grid-template-columns:48px 1fr;gap:13px;align-items:center;padding:13px 0}
.esplan-page .benefit+.benefit{border-top:1px solid var(--line)}
.esplan-page .benefit-icon{width:44px;height:44px;border-radius:50%;background:#f4f6fa;display:grid;place-items:center;color:var(--red)}
.esplan-page .benefit-icon svg{width:22px;height:22px}
.esplan-page .benefit strong{display:block;color:var(--blue);margin-bottom:4px}
.esplan-page .benefit span{font-size:13px;color:#6d7588;line-height:1.4}
 
/* Tablet */
@media(max-width:1050px){
  .esplan-page .ea-main{grid-template-columns:1fr}
  .esplan-page aside{grid-template-columns:repeat(2,1fr)}
  .esplan-page .ea-hero{grid-template-columns:1fr}
  .esplan-page .hero-art{min-height:210px}
}
/* Mobile */
@media(max-width:760px){
  .esplan-page .ea-hero{padding-top:32px}
  .esplan-page .form-card{padding:18px}
  .esplan-page .grid2,.esplan-page .choices,.esplan-page .spam,.esplan-page aside{grid-template-columns:1fr}
  .esplan-page .ea-main{padding-left:14px;padding-right:14px}
  .esplan-page .ea-hero h1{font-size:40px}
  .esplan-page input.wpcf7-submit{width:100%}
}
 
/* Kontakt sidebar: Ansprechpartner */
.esplan-page .people{display:grid;gap:10px}
.esplan-page .person{padding:13px;border:1px solid #e7ebf2;border-radius:12px;background:#fafbfd}
.esplan-page .person strong{display:block;color:var(--blue);font-size:14px;margin-bottom:3px}
.esplan-page .person span{display:block;font-size:12px;color:#6a7286;line-height:1.4}
.esplan-page .person a{color:inherit;text-decoration:none}
 
/* Impreza section wrapper: no extra bottom gap, content uses the full width of the section */
.esplan-section.l-section{padding-bottom:0}
.esplan-section .l-section-h{max-width:none;padding-left:0;padding-right:0}
 
/* OPTIONAL fallback - only if the header still covers the content after using the l-section wrapper.
   Set each value to the real .l-header height at that width, then remove the comment marks.
.esplan-page{padding-top:194px}
@media(max-width:1279px){.esplan-page{padding-top:140px}}
@media(max-width:1023px){.esplan-page{padding-top:100px}}
@media(max-width:599px){.esplan-page{padding-top:80px}}
*/
 
/* ---- Checkbox pills: hardened against Impreza / CF7 default styles ---- */
.esplan-page .choices{grid-auto-rows:1fr;align-items:stretch}
.esplan-page .choices .wpcf7-form-control-wrap,
.esplan-page .choices .wpcf7-form-control.wpcf7-checkbox{display:contents!important}
.esplan-page .choices .wpcf7-list-item{display:block!important;margin:0!important;padding:0!important;width:auto!important;float:none!important}
.esplan-page .choices .wpcf7-list-item label{
  display:flex!important;align-items:center!important;gap:10px!important;
  width:100%!important;height:100%!important;min-height:46px;margin:0!important;padding:11px 12px!important;
  border-radius:8px;background:var(--soft);border:1px solid transparent;
  font-size:13px!important;font-weight:400!important;line-height:1.3!important;color:#30375d;cursor:pointer;text-transform:none!important}
.esplan-page .choices .wpcf7-list-item-label{display:block!important;margin:0!important;padding:0!important;font-size:13px!important;line-height:1.3!important}
/* remove theme-drawn custom checkbox boxes, use the native one */
.esplan-page .wpcf7-list-item-label:before,
.esplan-page .wpcf7-list-item-label:after{display:none!important;content:none!important}
.esplan-page .wpcf7-list-item input[type=checkbox]{
  position:static!important;opacity:1!important;visibility:visible!important;-webkit-appearance:checkbox!important;appearance:auto!important;
  width:17px!important;height:17px!important;min-width:17px;margin:0!important;padding:0!important;flex:0 0 17px}
.esplan-page .consent .wpcf7-list-item label{align-items:flex-start!important;padding:0!important;background:none!important;border:0!important}
 
/* ---- Keep the submit button visible in every form state (invalid, failed, sent, submitting) ---- */
.esplan-page .actions,
.esplan-page form .actions{display:flex!important;visibility:visible!important;opacity:1!important;height:auto!important;max-height:none!important}
.esplan-page .actions input.wpcf7-submit,
.esplan-page form.invalid .actions input.wpcf7-submit,
.esplan-page form.failed .actions input.wpcf7-submit,
.esplan-page form.spam .actions input.wpcf7-submit,
.esplan-page form.unaccepted .actions input.wpcf7-submit,
.esplan-page form.submitting .actions input.wpcf7-submit,
.esplan-page form.sent .actions input.wpcf7-submit{
  display:inline-block!important;visibility:visible!important;opacity:1!important;position:static!important;
  height:auto!important;max-height:none!important;transform:none!important;pointer-events:auto}
 

.hero-art {
    display: none !important;
}

.esplan-page .wpcf7-response-output{transition:none!important;animation:none!important}