/* Kopfzeile */
.tm-topbar{background:#1f262b;color:#fff;font-size:.9rem}
.tm-topbar a{color:#fff;text-decoration:none;font-weight:600}
.tm-topbar a:hover{text-decoration:underline}
.tm-header{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid #e3e7e9}
.admin-bar .tm-header{top:32px}
.tm-logo{display:flex;align-items:center;gap:.7rem;text-decoration:none;color:inherit}
.tm-logo svg{height:76px;width:auto;display:block}
.tm-logo .t1{font-family:"Bree Serif",Georgia,serif;font-size:2rem;line-height:1;color:#a8281c;letter-spacing:.01em}
.tm-logo .t2{font-size:.98rem;color:#1f262b;margin-top:.35rem;font-weight:600}
.tm-logo .txt{display:flex;flex-direction:column}
@media (max-width:600px){.tm-logo .t1{font-size:1.3rem}.tm-logo .t2{display:none}.tm-logo svg{height:50px}}

/* Hero und Karten */
.tm-hero h1,.tm-hero p{text-shadow:0 2px 14px rgba(0,0,0,.45)}
.tm-card{background:#fff;border:1px solid #e3e7e9;border-radius:8px;overflow:hidden;height:100%;display:flex;flex-direction:column;transition:box-shadow .2s,transform .2s}
.tm-card:hover{box-shadow:0 8px 24px rgba(31,38,43,.12);transform:translateY(-2px)}
.tm-card .wp-block-image{margin:0}
.tm-card .wp-block-image img{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:0;display:block}
.tm-card .tm-card-body{padding:1.2rem 1.4rem 1.5rem;display:flex;flex-direction:column;gap:.6rem;flex:1}
.tm-card h3{margin:0}
.tm-card h3 a{color:#1f262b;text-decoration:none}
.tm-card h3 a:hover{color:#a8281c}
.tm-card p{margin:0;color:#5b666e}
.tm-card .tm-more{margin-top:auto;font-weight:700}
.tm-vorteile p{margin:0}
.tm-seitenkopf{background:#1f262b;color:#fff}
.tm-seitenkopf h1{color:#fff;margin:0}

/* Fußzeile */
.tm-footer{background:#1f262b;color:#cfd6da;font-size:.98rem;border-top:5px solid #a8281c;margin-block-start:0}
.tm-footer a{color:#fff;text-decoration:none}
.tm-footer a:hover{text-decoration:underline;text-underline-offset:3px}
.tm-footer p,.tm-footer ul{margin:0}
.tm-footer-cols{margin-bottom:2.4rem}
.tm-footer .tm-logo{display:flex;align-items:center;gap:.8rem}
.tm-footer .tm-logo svg{height:64px;width:auto}
.tm-footer .tm-logo--hell .t1{color:#fff;font-size:1.55rem}
.tm-footer .tm-logo--hell .t2{color:#cfd6da;font-size:.85rem}
.tm-footer-claim{margin-top:1.1rem!important;max-width:30ch;line-height:1.55}
.tm-footer-h{color:#fff;font-size:1.2rem;margin:0 0 1rem;padding-bottom:.55rem;position:relative}
.tm-footer-h::after{content:"";position:absolute;left:0;bottom:0;width:2.4rem;height:3px;background:#a8281c;border-radius:2px}
.tm-footer-links{list-style:none;padding:0;display:grid;gap:.15rem}
.tm-footer-links a{display:inline-block;padding:.32rem 0}
.tm-footer-links a::before{content:"›";color:#e0453a;font-weight:700;margin-right:.55rem}
.tm-footer .wp-block-buttons{margin-top:1.1rem}
.tm-footer .wp-block-button__link{font-size:.98rem}
.tm-footer-bottom{border-top:1px solid #38424a;padding-top:1.2rem;gap:.6rem 1.5rem}
.tm-footer-bottom p{color:#9aa6ad}
.tm-footer-bottom a{color:#cfd6da}
@media (max-width:781px){.tm-footer-claim{max-width:none}}

/* Formular (Fluent Forms): Regeln mit 3 Klassen, damit sie die Standardskins schlagen */
.fluentform .frm-fluent-form .ff-el-form-control{font-size:16px;font-family:inherit;border:1px solid #c3cbd0;border-radius:4px;padding:.7rem .85rem;min-height:2.9rem;color:#1f262b;background:#fff}
.fluentform .frm-fluent-form .ff-el-form-control:focus{border-color:#a8281c;box-shadow:0 0 0 3px rgba(168,40,28,.18);outline:0}
.fluentform .frm-fluent-form .ff-el-input--label label{font-weight:700;font-size:1rem;color:#1f262b}
.fluentform .frm-fluent-form .ff-el-form-check{margin-bottom:.35rem}
.fluentform .frm-fluent-form .ff-el-form-check label.ff-el-form-check-label{font-size:1rem;font-weight:400;cursor:pointer}
.fluentform .frm-fluent-form input[type=radio],.fluentform .frm-fluent-form input[type=checkbox]{accent-color:#a8281c;width:1.15rem;height:1.15rem;margin-right:.55rem;vertical-align:-.15rem}
.fluentform .frm-fluent-form .ff-el-progress{height:12px;background:#e6eaec;border-radius:6px;overflow:hidden}
.fluentform .frm-fluent-form .ff-el-progress-bar{background:#a8281c;height:12px}
.fluentform .frm-fluent-form .ff-el-progress-bar span{display:none}
.fluentform .frm-fluent-form .ff-el-progress-status{font-size:.95rem;color:#5b666e;margin-bottom:.4rem}
.fluentform .frm-fluent-form .ff-btn.ff-btn-next,
.fluentform .frm-fluent-form .ff-btn.ff-btn-submit{background:#a8281c;color:#fff;border:0;border-radius:4px;font:700 1rem/1.2 inherit;font-family:inherit;padding:.9rem 1.7rem;cursor:pointer}
.fluentform .frm-fluent-form .ff-btn.ff-btn-next:hover,
.fluentform .frm-fluent-form .ff-btn.ff-btn-submit:hover{background:#861f15;color:#fff}
.fluentform .frm-fluent-form .ff-btn.ff-btn-prev{background:#fff;color:#1f262b;border:1px solid #c3cbd0;border-radius:4px;font:700 1rem/1.2 inherit;font-family:inherit;padding:.9rem 1.5rem;cursor:pointer}
.fluentform .frm-fluent-form .ff-btn.ff-btn-prev:hover{background:#f1f3f4}
.fluentform .frm-fluent-form .ff-message-success{background:#f1f3f4;border:1px solid #c3cbd0;border-radius:4px;padding:1rem 1.2rem;color:#1f262b}
.fluentform .frm-fluent-form .text-danger,.fluentform .frm-fluent-form .error{color:#a8281c;font-size:.9rem}

/* Navigation: am Desktop nie umbrechen, darunter Menü-Knopf (Overlay bleibt Standard) */
@media (min-width:1061px){
  .tm-header .wp-block-navigation{flex-wrap:nowrap;white-space:nowrap}
  .tm-header .wp-block-navigation__container{flex-wrap:nowrap}
}
@media (max-width:1060px){
  .tm-header .wp-block-navigation__responsive-container-open{display:flex!important}
  .tm-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open){display:none!important}
  .tm-header .wp-block-navigation__responsive-container.is-menu-open{padding:1.5rem 1.25rem;--navigation-layout-justify:flex-start;--navigation-layout-align:flex-start;--navigation-layout-justification-setting:flex-start}
  .tm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
  .tm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog{align-items:flex-start;justify-content:flex-start}
  .tm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container{align-items:flex-start;gap:1.1rem;font-size:1.3rem}
  .tm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item{font-family:"Bree Serif",Georgia,serif}
}

/* Anfrage als Knopf in der Navigation (letzter Punkt) */
.tm-header .wp-block-navigation .tm-nav-cta > a{background:#a8281c;color:#fff;padding:.6rem 1.15rem;border-radius:4px;font-weight:700}
.tm-header .wp-block-navigation .tm-nav-cta > a:hover{background:#861f15;color:#fff}
.tm-header .wp-block-navigation__responsive-container.is-menu-open .tm-nav-cta > a{display:inline-block;margin-top:.4rem}
.tm-header .wp-block-navigation__responsive-container.is-menu-open .tm-nav-cta > a{padding:.75rem 1.4rem;font-size:1.05rem;font-family:inherit}
.tm-berater{margin-top:1.5rem}
.tm-berater img{border-radius:8px;display:block;max-width:100%;height:auto}
@media (max-width:600px){
  .tm-footer .tm-logo svg{height:50px}
  .tm-footer .tm-logo--hell .t1{font-size:1.2rem;white-space:nowrap}
  .tm-footer .tm-logo--hell .t2{display:block;font-size:.75rem}
}

/* Footer: Ablauf in drei Schritten und Nach-oben-Link */
.tm-ablauf{list-style:none;margin:0 0 2.6rem;padding:0 0 2.2rem;display:grid;grid-template-columns:repeat(4,1fr);gap:1.4rem;border-bottom:1px solid #38424a}
.tm-ablauf li{display:flex;gap:.9rem;align-items:flex-start}
.tm-ablauf-nr{flex:none;width:2.4rem;height:2.4rem;border-radius:50%;background:#a8281c;color:#fff;font-family:"Bree Serif",Georgia,serif;font-size:1.2rem;display:flex;align-items:center;justify-content:center}
.tm-ablauf-text{display:flex;flex-direction:column;gap:.15rem;color:#cfd6da;font-size:.95rem;line-height:1.45}
.tm-ablauf-text strong{color:#fff;font-family:"Bree Serif",Georgia,serif;font-weight:400;font-size:1.1rem}
@media (max-width:1000px){.tm-ablauf{grid-template-columns:repeat(2,1fr)}}
@media (max-width:600px){.tm-ablauf{grid-template-columns:1fr;gap:1.1rem}}
.tm-footer .tm-nach-oben{white-space:nowrap;font-weight:600}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Formular: Karte, Kacheln, Antipp-Felder */
.fluentform .frm-fluent-form{background:#f6f7f8;border:1px solid #e1e6e9;border-radius:10px;padding:1.5rem 1.6rem 1.7rem}
@media (max-width:600px){.fluentform .frm-fluent-form{padding:1.1rem 1rem 1.3rem;border-radius:8px}}
.fluentform .frm-fluent-form .ff-el-group{margin-bottom:1.15rem}
.fluentform .frm-fluent-form .ff-el-is-required.asterisk-right label:after,.fluentform .frm-fluent-form .asterisk-right .ff-el-input--label.ff-el-is-required label:after{color:#a8281c}
.fluentform .frm-fluent-form .ff-step-titles{margin-bottom:1rem}
.fluentform .frm-fluent-form .ff-el-progress-status{font-weight:700;color:#1f262b}
/* Auswahlzeilen als große Treffer-Felder */
.fluentform .frm-fluent-form .ff-el-group:not(.ff_gdpr_field) .ff-el-form-check label.ff-el-form-check-label{display:flex;align-items:center;gap:.65rem;background:#fff;border:1px solid #c3cbd0;border-radius:6px;padding:.7rem .9rem;min-height:2.9rem;cursor:pointer;transition:border-color .15s,background .15s}
.fluentform .frm-fluent-form .ff-el-group:not(.ff_gdpr_field) .ff-el-form-check label.ff-el-form-check-label:hover{border-color:#a8281c}
.fluentform .frm-fluent-form .ff-el-group:not(.ff_gdpr_field) .ff-el-form-check label.ff-el-form-check-label:has(input:checked){border-color:#a8281c;background:#fbeeec;box-shadow:inset 0 0 0 1px #a8281c}
.fluentform .frm-fluent-form .ff-el-group:not(.ff_gdpr_field) .ff-el-form-check input{margin:0}
/* Produktwahl: Kacheln */
.fluentform .frm-fluent-form .ff-el-input--content:has(input[name=tortyp]){display:grid;grid-template-columns:1fr 1fr;gap:.75rem}
.fluentform .frm-fluent-form .ff-el-input--content:has(input[name=tortyp]) .ff-el-form-check{margin:0}
.fluentform .frm-fluent-form .ff-el-input--content:has(input[name=tortyp]) .ff-el-form-check label.ff-el-form-check-label{font-family:"Bree Serif",Georgia,serif;font-size:1.2rem;min-height:4.2rem;justify-content:flex-start}
@media (max-width:420px){.fluentform .frm-fluent-form .ff-el-input--content:has(input[name=tortyp]){grid-template-columns:1fr}}
/* Knöpfe: Abstand, auf dem Handy volle Breite */
.fluentform .frm-fluent-form .step-nav{margin-top:1.4rem}
@media (max-width:600px){
  .fluentform .frm-fluent-form .ff-btn.ff-btn-next,.fluentform .frm-fluent-form .ff-btn.ff-btn-submit{width:100%;float:none}
  .fluentform .frm-fluent-form .ff-btn.ff-btn-prev{width:100%;margin-top:.6rem}
  .fluentform .frm-fluent-form .step-nav{display:flex;flex-direction:column-reverse}
}

/* Lange Links und Wörter im Seiteninhalt umbrechen (z. B. Behörden-URL in der Datenschutzerklärung) */
.wp-block-post-content{overflow-wrap:anywhere}
