:root {
  --blue-dark:  #1a3388;
  --blue-mid:   #2a4db8;
  --blue-light: #4265c4;
  --blue-pale:  #e8edf8;
  --text:       #1c2340;
  --text-muted: #5a6282;
  --bg:         #f7f8fc;
  --white:      #ffffff;
  --radius:     10px;
  --shadow:     0 4px 24px rgba(26,51,136,.10);
  --shadow-lg:  0 8px 40px rgba(26,51,136,.18);
  --transition: .3s ease;
  --b9: #0d1d5e;
  --b8: #1a3388;
  --b7: #2a4db8;
  --b6: #3a5ec8;
  --b5: #4265c4;
  --b4: #6484d7;
  --b3: #8aa4e4;
  --b2: #c4cef2;
  --b1: #e8edf8;
  --orange:    #d9560f;
  --orange-dk: #b8480c;
  --gray-bg:   #f7f8fc;
  --border:    #e0e5f0;
  --text-md:   #5a6282;
  --r8:  8px;
  --r12: 12px;
  --r16: 16px;
  --sh-sm: 0 2px 12px rgba(26,51,136,.08);
  --sh-md: 0 4px 24px rgba(26,51,136,.12);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden; }

/* Zentrierter Inhaltsrahmen wie auf der Startseite */
.wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}

#site-header { position: sticky; top: 0; z-index: 1000; background: var(--white); box-shadow: 0 2px 16px rgba(26,51,136,.10); }
.nav-inner { max-width: 1220px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo-img { height: 48px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a, .nav-item > a { text-decoration: none; color: var(--text); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 7px; transition: var(--transition); white-space: nowrap; display: block; }
.nav-links > a:hover, .nav-item > a:hover { background: var(--blue-pale); color: var(--blue-dark); }
.nav-cta { background: var(--orange) !important; color: var(--white) !important; padding: 9px 16px !important; border-radius: 8px !important; font-weight: 600 !important; }
.nav-cta:hover { background: var(--orange-dk) !important; color: var(--white) !important; }

/* ── Phone always visible ── */
.nav-phone-always { display:flex; align-items:center; gap:7px; font-size:13px; font-weight:700; color:#2a4baa; text-decoration:none; white-space:nowrap; padding:7px 12px; border-radius:8px; border:1.5px solid #c9d4f1; background:#f0f3fd; transition:all .2s; flex-shrink:0; margin-left:6px; }
.nav-phone-always:hover { background:#6484d7; color:#fff !important; border-color:#6484d7; }
.nav-phone-always:hover i { color:#fff !important; }
.nav-phone-always i { color:#6484d7; font-size:12px; transition:color .2s; }
@media(max-width:768px) { .nav-phone-txt { display:none; } .nav-phone-always { padding:8px 10px; margin-left:4px; } }
@media(max-width:360px) { .nav-phone-always { display:none; } }

/* ── Fördercheck hero CTA ── */
.btn-foerdercheck { display:inline-flex; align-items:center; gap:8px; background:#fff; color:#2a4baa; font-weight:700; font-size:15px; padding:12px 24px; border-radius:8px; text-decoration:none; border:2px solid #6484d7; cursor:pointer; transition:all .2s; }
.btn-foerdercheck:hover { background:#6484d7; color:#fff; transform:translateY(-2px); box-shadow:0 6px 20px rgba(100,132,215,.3); }
.btn-foerdercheck i { color:#6484d7; transition:color .2s; }
.btn-foerdercheck:hover i { color:#fff; }

.nav-item { position: relative; }
.nav-item::after { content: ''; position: absolute; bottom: -12px; left: 0; right: 0; height: 12px; }
.nav-mega { display: none; position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--white); border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid #e0e5f2; padding: 20px; min-width: 220px; z-index: 999; }
.nav-mega.wide { min-width: 860px; }
.nav-item:hover .nav-mega { display: grid; }
.mega-col h5 { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-mid); margin-bottom: 8px; padding-bottom: 5px; border-bottom: 1px solid #e8eaf3; }
.mega-col a { display: block; font-size: 12.5px; color: var(--text); text-decoration: none; padding: 4px 7px; border-radius: 5px; margin-bottom: 1px; transition: var(--transition); }
.mega-col a:hover { background: var(--blue-pale); color: var(--blue-dark); }
.mega-col a i { width: 14px; color: var(--blue-mid); margin-right: 4px; }
.nav-mega-lst { grid-template-columns: 1fr; gap: 2px; }
.nav-mega-lst a { padding: 6px 10px; }
.nav-mega-branchen { grid-template-columns: repeat(3,1fr); gap: 8px 24px; }
.nav-mega-leistungen { grid-template-columns: repeat(3,1fr); gap: 8px 24px; min-width: 720px; }

.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; margin: 5px 0; transition: var(--transition); }
.nav-mobile { display: none; background: var(--white); border-top: 1px solid #e8eaf3; padding: 16px 28px 24px; max-height: 70vh; overflow-y: auto; }
.nav-mobile a { display: block; padding: 9px 0; color: var(--text); text-decoration: none; font-weight: 500; border-bottom: 1px solid #f0f2f9; font-size: 14px; }
.nav-mobile a i { margin-right: 8px; color: var(--blue-mid); width: 1.1em; text-align: center; }
.nav-mobile .mob-section { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-mid); margin: 14px 0 4px; }
.nav-mobile a:last-child { border: none; }
@media(max-width:960px){
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-mobile.open { display: block; }
  body.has-mobile-contact-bar { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
  #site-footer { margin-bottom: 0; }
}

/* Mobiler Kontakt-Banner (fix unten) */
.mobile-contact-bar {
  display: none;
}
@media (max-width: 960px) {
  .mobile-contact-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
    background: var(--orange);
    color: var(--white);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
    transition: background var(--transition);
  }
  .mobile-contact-bar:hover,
  .mobile-contact-bar:focus-visible {
    background: var(--orange-dk);
    color: var(--white);
  }
  .mobile-contact-bar i:first-child {
    font-size: 1.05rem;
  }
  .mobile-contact-bar .fa-chevron-right {
    font-size: 0.75rem;
    opacity: 0.9;
  }
}

.breadcrumb { background: var(--white); border-bottom: 1px solid #e8eaf3; }
.bc-inner { max-width: 1220px; margin: 0 auto; padding: 10px 28px; display: flex; align-items: center; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.bc-inner a { color: var(--blue-mid); text-decoration: none; font-weight: 500; }
.bc-inner a:hover { text-decoration: underline; }
.bc-inner .fa-chevron-right { font-size: 10px; color: var(--text-muted); }
.bc-current { color: var(--text-muted); font-weight: 500; }

.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--orange); color: var(--white); font-weight: 700; font-size: 15px; padding: 14px 28px; border-radius: var(--radius); text-decoration: none; border: none; cursor: pointer; transition: var(--transition);     box-shadow: 0 4px 16px rgba(217,86,15,.38); }
.btn-primary:hover { background: var(--orange-dk); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(217,86,15,.48); color: var(--white); }
.btn-outline-blue { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--blue-mid); font-size: .88rem; font-weight: 600; padding: 12px 24px; border-radius: var(--radius); border: 2px solid var(--blue-mid); text-decoration: none; transition: all .2s; }
.btn-outline-blue:hover { background: var(--blue-mid); color: var(--white); }
.btn-secondary { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.15); color: var(--white); font-weight: 600; font-size: 15px; padding: 13px 26px; border-radius: var(--radius); text-decoration: none; border: 2px solid rgba(255,255,255,.50); cursor: pointer; transition: var(--transition); backdrop-filter: blur(4px); }
.btn-secondary:hover { background: rgba(255,255,255,.25); border-color: rgba(255,255,255,.80); transform: translateY(-2px); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.revealed { opacity: 1; transform: none; }

#site-footer { background: #0f1e55; color: rgba(255,255,255,.80); margin-top: 80px; }
.footer-inner { max-width: 1220px; margin: 0 auto; padding: 60px 28px 30px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 28px; }
.footer-brand .footer-logo-img { height: 44px; width: auto; display: block; margin-bottom: 14px; }
.footer-brand p { margin-top: 14px; font-size: 13.5px; line-height: 1.7; color: rgba(255,255,255,.65); }
.footer-col h4 { color: var(--white); font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,.65); text-decoration: none; font-size: 13.5px; margin-bottom: 8px; transition: var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); margin: 0 28px; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: rgba(255,255,255,.45); flex-wrap: wrap; gap: 10px; }
@media(max-width:768px){ .footer-inner { grid-template-columns: 1fr 1fr; } }
@media(max-width:480px){ .footer-inner { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; text-align: center; } }

.contact-form .form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
