
/* ahabFlow V4: E-Rechnung focus, trust proof and savings calculator. */
.af-v4-section{padding:4.5rem 1.25rem}
.af-v4-container{max-width:1180px;margin:0 auto}
.af-v4-kicker{font-family:var(--font-mono);font-size:.72rem;letter-spacing:.11em;text-transform:uppercase;color:var(--primary);font-weight:700}
.af-v4-title{margin:.65rem 0 0;font-size:clamp(1.8rem,4vw,2.6rem);line-height:1.12;text-wrap:balance}
.af-v4-lead{margin:1rem 0 0;max-width:58rem;font-size:1.04rem;line-height:1.72;color:var(--muted-foreground)}
.af-v4-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.4rem}
.af-v4-btn{display:inline-flex;align-items:center;justify-content:center;padding:.72rem 1rem;border-radius:3px;font-size:.9rem;font-weight:700;text-decoration:none;background:var(--primary);color:var(--primary-foreground)}
.af-v4-btn.secondary{background:transparent;color:var(--foreground);border:1px solid var(--border)}
.af-einvoice-section{background:linear-gradient(180deg,var(--card),var(--background));border-bottom:1px solid var(--border)}
.af-einvoice-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:2rem;align-items:start}
.af-einvoice-promise{margin:1.2rem 0 0;padding:1rem 1.1rem;border-left:4px solid var(--signal);background:var(--accent);font-size:1rem;line-height:1.65}
.af-einvoice-steps{display:grid;gap:.65rem;margin-top:1.35rem}
.af-einvoice-step{display:grid;grid-template-columns:2.2rem 1fr;gap:.7rem;align-items:start;padding:.85rem;border:1px solid var(--border);background:var(--card);border-radius:3px}
.af-einvoice-step b{display:flex;width:2rem;height:2rem;align-items:center;justify-content:center;border-radius:50%;background:var(--primary);color:var(--primary-foreground);font-size:.8rem}
.af-einvoice-step strong{display:block;margin-bottom:.15rem}
.af-einvoice-step span{font-size:.9rem;line-height:1.55;color:var(--muted-foreground)}
.af-deadline-card{padding:1.35rem;border:1px solid var(--border);background:var(--card);border-radius:3px;box-shadow:var(--shadow-sm,0 8px 24px rgba(0,0,0,.06))}
.af-deadline-card h3{font-size:1.05rem;margin:0 0 .75rem}
.af-deadline-row{display:grid;grid-template-columns:7.5rem 1fr;gap:.8rem;padding:.72rem 0;border-top:1px solid var(--border);font-size:.88rem;line-height:1.55}
.af-deadline-row:first-of-type{border-top:0}
.af-deadline-row strong{color:var(--primary)}
.af-deadline-note{font-size:.74rem;line-height:1.55;color:var(--muted-foreground);margin-top:.85rem}
.af-deadline-note a{color:var(--primary);text-decoration:underline;text-underline-offset:2px}
.af-savings-section{background:var(--background);border-bottom:1px solid var(--border)}
.af-savings-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:2rem;align-items:start}
.af-savings-panel{border:1px solid var(--border);background:var(--card);padding:1.25rem;border-radius:3px}
.af-savings-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.af-savings-field label{display:block;font-size:.78rem;font-weight:700;margin-bottom:.35rem;color:var(--muted-foreground)}
.af-savings-field input,.af-savings-field select{display:block;width:100%;min-height:46px;padding:.65rem .7rem;border:1px solid var(--border);border-radius:3px;background:var(--background);color:var(--foreground);font:inherit}
.af-savings-field input[type=range]{padding:0;min-height:30px}
.af-range-line{display:flex;align-items:center;gap:.75rem}
.af-range-line input{flex:1}.af-range-line output{min-width:3rem;text-align:right;font-weight:700}
.af-savings-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-top:1rem}
.af-savings-result{padding:1rem;border:1px solid var(--border);background:var(--accent);border-radius:3px}
.af-savings-result span{display:block;font-size:.75rem;color:var(--muted-foreground);line-height:1.4}.af-savings-result strong{display:block;margin-top:.2rem;font-size:1.45rem;line-height:1.15}
.af-savings-result.highlight{border-color:var(--primary);background:color-mix(in srgb,var(--primary) 9%,var(--card))}
.af-savings-note{font-size:.75rem;line-height:1.65;color:var(--muted-foreground);margin-top:1rem}
.af-trust-v4{padding:4.5rem 1.25rem;background:var(--card);border-block:1px solid var(--border)}
.af-trust-v4-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:2rem;align-items:center}
.af-trust-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}
.af-trust-stat{padding:1.2rem;border:1px solid var(--border);background:var(--background);border-radius:3px}
.af-trust-stat strong{display:block;font-size:1.65rem;line-height:1.15;color:var(--primary)}
.af-trust-stat span{display:block;margin-top:.35rem;font-size:.83rem;line-height:1.5;color:var(--muted-foreground)}
.af-trust-stat.wide{grid-column:1/-1}
.af-v4-nav-highlight{color:var(--primary)!important;font-weight:700}
.af-einvoice-hero-note{display:inline-flex;align-items:center;gap:.45rem;margin-top:.8rem;padding:.45rem .65rem;border:1px solid rgba(255,255,255,.22);border-radius:3px;color:#fff;font-size:.8rem;text-decoration:none;background:rgba(255,255,255,.07)}
.af-extra-page .af-einvoice-landing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:1.5rem 0}
.af-extra-page .af-einvoice-landing-grid article{padding:1.25rem;border:1px solid var(--border);background:var(--card);border-radius:3px}
.af-extra-page .af-einvoice-landing-grid h3{font-size:1rem;margin:.2rem 0 .45rem}.af-extra-page .af-einvoice-landing-grid p{font-size:.88rem;line-height:1.6;color:var(--muted-foreground)}
.af-extra-page .af-deadline-table{display:grid;gap:.7rem;margin:1.5rem 0}.af-extra-page .af-deadline-table>div{display:grid;grid-template-columns:10rem 1fr;gap:1rem;padding:1rem;border:1px solid var(--border);background:var(--card)}
.af-extra-page .af-deadline-table strong{color:var(--primary)}
@media(max-width:820px){.af-einvoice-grid,.af-savings-grid,.af-trust-v4-grid{grid-template-columns:1fr}.af-savings-fields,.af-savings-results,.af-trust-stats{grid-template-columns:1fr}.af-trust-stat.wide{grid-column:auto}.af-extra-page .af-einvoice-landing-grid{grid-template-columns:1fr}.af-extra-page .af-deadline-table>div{grid-template-columns:1fr;gap:.35rem}.af-v4-section,.af-trust-v4{padding:3.2rem 1rem}}
@media(max-width:479px){.af-deadline-row{grid-template-columns:1fr;gap:.2rem}.af-v4-actions{display:grid}.af-v4-btn{width:100%}}

.af-extra-page .af-managed-grid-v4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1050px){.af-extra-page .af-managed-grid-v4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.af-extra-page .af-managed-grid-v4{grid-template-columns:1fr}}

.af-extra-page .dark-section .af-einvoice-landing-grid article{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.18)}
.af-extra-page .dark-section .af-einvoice-landing-grid h3{color:var(--ink-foreground)}
.af-extra-page .dark-section .af-einvoice-landing-grid p{color:var(--ink-muted)}

.af-einvoice-pagehint{margin:.6rem 0 0;font-size:.82rem;color:var(--muted-foreground)}

@media (min-width:1024px){#ss-image-layer{max-height:216px}}

.af-deadline-bar{display:inline-flex;flex-wrap:wrap;align-items:center;gap:.4rem .6rem;margin-top:.85rem;padding:.55rem .8rem;border:1px solid rgba(232,84,29,.5);border-left:4px solid var(--signal);border-radius:3px;background:rgba(232,84,29,.15);color:#fff;font-size:.84rem;line-height:1.35;text-decoration:none}
.af-deadline-bar:hover{background:rgba(232,84,29,.24)}
.af-deadline-bar svg{flex:0 0 auto;color:#ffb392}
.af-deadline-bar-label{font-weight:800;font-size:.72rem;letter-spacing:.09em;text-transform:uppercase;color:#ffd9c7}
.af-deadline-bar-dates b{font-weight:700;color:#fff}
.af-deadline-bar-cta{font-weight:700;white-space:nowrap;text-decoration:underline;text-underline-offset:3px;margin-left:.35rem}
@media (max-width:640px){.af-deadline-bar{display:flex}}

/* --- E-Rechnungsseite: Fristen, Rechtsgrundlagen, Datenquellen --- */
.af-law-intro{max-width:70ch;margin:.6rem 0 1.4rem;color:var(--muted-foreground);line-height:1.65}
.af-law-timeline{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.af-law-step{position:relative;padding:1.15rem 1.15rem 1.15rem 1.3rem;border:1px solid var(--border);border-left:4px solid var(--border);background:var(--card);border-radius:3px}
.af-law-step.done{border-left-color:var(--success)}
.af-law-step.soon{border-left-color:var(--signal);box-shadow:0 6px 18px rgba(232,84,29,.13)}
.af-law-year{display:block;font-family:var(--font-mono,monospace);font-size:.72rem;letter-spacing:.09em;text-transform:uppercase;color:var(--muted-foreground);margin-bottom:.3rem}
.af-law-step.soon .af-law-year{color:var(--signal);font-weight:700}
.af-law-step strong{display:block;font-size:1.02rem;margin-bottom:.4rem}
.af-law-step span:not(.af-law-year){display:block;font-size:.9rem;line-height:1.6;color:var(--muted-foreground)}
.af-law-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1.1rem}
.af-law-grid article{padding:1.2rem;border:1px solid var(--border);background:var(--card);border-radius:3px}
.af-law-grid h3{font-size:1rem;margin:0 0 .45rem}
.af-law-grid p{margin:0;font-size:.92rem;line-height:1.65;color:var(--muted-foreground)}
@media (max-width:900px){.af-law-timeline,.af-law-grid{grid-template-columns:1fr}}

/* --- Vertikale Abstaende straffen (e-rechnung, managed-monitoring, partner, Rechtsseiten) --- */
.section .container > h2{margin-top:.35rem}
.section .container > .eyebrow + h2{margin-top:.3rem}
.subhero{padding-top:2.25rem;padding-bottom:2.25rem}
.af-law-intro{margin:.5rem 0 1.1rem}
.section .pricing-fine{margin-top:1.1rem;margin-bottom:0}

/* Abstaende der Unterseiten straffen (hoehere Spezifitaet als .af-extra-page .section) */
.af-extra-page .section{padding:2.5rem 0}
.af-extra-page .subhero{padding-top:2.25rem;padding-bottom:2rem}
.af-extra-page .section .container > h2{margin-top:.3rem;margin-bottom:.6rem}
.af-extra-page .section .container > .af-law-intro{margin:.4rem 0 1rem}
.af-extra-page .section .container > .pricing-fine{margin-top:1rem;margin-bottom:0}
@media (min-width:900px){.af-extra-page .section{padding:2.75rem 0}}

/* Bestehende Layoutfehler der Unterseiten korrigiert */
.af-extra-page{padding-top:0}
.af-extra-page .breadcrumb{display:block;width:fit-content;margin-bottom:.9rem}

/* Slider auf der E-Rechnungsseite */
.af-einvoice-slider{margin-top:1.4rem;background:var(--ink);border:1px solid var(--ink-border)}
.af-einvoice-slider #ss-image-layer{max-height:260px}
@media (min-width:1024px){.af-einvoice-slider #ss-image-layer{max-height:300px}}

/* Kopfnavigation im schmalen Desktop-Bereich einzeilig halten */
@media (min-width:1024px) and (max-width:1099px){
  header nav[class]{gap:.5rem;font-size:12px}
}
@media (min-width:1100px) and (max-width:1279px){
  header nav[class]{gap:.8rem;font-size:12.5px}
}
@media (min-width:1280px){
  header nav[class]{gap:1.1rem;font-size:13.5px}
}

/* Navigationspunkte duerfen niemals innerhalb eines Wortes umbrechen */
header nav[class] a{white-space:nowrap;flex-shrink:0}
header nav[class]{flex-wrap:nowrap}
