/* ========================================================================
   header-footer.css – MOBILE FIRST (CLS-Fix, final)
   - Mobile = Default: Top-Bar, Desktop-Nav & CTA ausgeblendet; Toggle sichtbar
   - Ab 769px: Top-Bar + Desktop-Nav + CTA einblenden, Toggle aus
   - Enthält Mobile-Menu-Zustand (.site-header.nav-open ...)
   - Footer-Styles integriert
   ======================================================================== */

/* =========================
   Top-Bar (Mobile default: aus)
   ========================= */
.top-bar {
  display: none; /* MOBILE DEFAULT */
  background-color: var(--color-primary);
  color: var(--color-dark);
  font-size: 1rem;
  line-height: 1;
}
.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}
.top-bar__text {
  margin: 0;
  text-transform: uppercase;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 500;
  white-space: nowrap;
  font-family: var(--font-base);
}
.top-bar__phone {
  font-family: var(--font-base);
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.top-bar__phone:hover { color: var(--color-white); text-decoration: underline; }
.top-bar__social { display: flex; align-items: center; gap: 1rem; }
.social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%; color: #0C324F;
}
.social-icon svg { inline-size: 1.25rem; block-size: 1.25rem; }
.social-icon:hover { color: var(--color-white); }
footer .social-icon { color: var(--color-white); transition: color .2s ease, background-color .2s ease; }
footer .social-icon svg { inline-size: 1.35rem; block-size: 1.35rem; }
footer .social-icon:hover { color: var(--color-primary); }

/* =========================
   Site-Header
   ========================= */
.site-header { background-color: #fff; border-bottom: 1px solid #eee; }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0;
}
.site-header__right { display: flex; align-items: center; gap: 2rem; }

/* Header-Logo: EXPLIZITE Breite + Ratio → verhindert Lighthouse „unsized image“ */
.site-header__logo img{
  display:block;
  width: 256px;
  height: auto;
  aspect-ratio: 256 / 73;
  max-width: 100%;
}

/* =========================
   Navigation (Mobile default: aus)
   ========================= */
.main-nav__list {
  display: none; /* MOBILE DEFAULT */
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem; /* wirkt ab Desktop */
}
.main-nav__item { position: relative; }
.main-nav__link {
  text-decoration: none; color: #0C324F; font-size: 1.05rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.25rem; transition: color 0.2s ease;
}
.main-nav__link--active { color: #FFC000; }
.nav__arrow { font-size: 0.65rem; margin-left: 0.25rem; }

/* CTA rechts neben der Nav (Mobile: aus) */
.button--quote {
  display: none; /* MOBILE DEFAULT */
  padding: 0.9rem 2rem;
  font-size: 0.95rem; font-weight: 800; font-family: var(--font-heading);
  background-color: var(--color-button); color: #fff; border-radius: 0;
  text-transform: uppercase; text-decoration: none; letter-spacing: 0.05em;
}
.button--quote:hover { background-color: var(--color-btn-hover); }

/* =========================
   Mobile Toggle (Mobile: sichtbar)
   ========================= */
.nav-toggle {
  display: inline-flex; /* MOBILE DEFAULT */
  background: none; border: none; cursor: pointer;
}
.nav-toggle__bars {
  display: block; width: 24px; height: 2px; background-color: #0C324F; position: relative;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: ""; position: absolute; width: 24px; height: 2px; background-color: #0C324F; left: 0;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top:  6px; }

/* Mobile: aufgeklapptes Menü (per .nav-open am Header) */
.site-header.nav-open .main-nav__list {
  display: flex; flex-direction: column; gap: 0; background: #fff;
  position: absolute; top: 100%; left: 0; right: 0; border-top: 1px solid #eee;
}
.site-header.nav-open .main-nav__link { padding: 1rem; border-top: 1px solid #eee; }

/* =========================
   Desktop/Tablet – ab 769px einblenden
   ========================= */
@media (min-width: 769px) {
  .top-bar       { display: block; }
  .main-nav__list{ display: flex; }
  .button--quote { display: inline-flex; }
  .nav-toggle    { display: none; }
}

/* =========================
   Footer – CTA
   ========================= */
.footer-cta{
  display:block; background: var(--color-primary); color: var(--color-dark);
  text-decoration:none; position:relative; overflow:hidden;
  transition: background-color .25s ease, filter .25s ease;
}
.footer-cta__inner{ display:flex; align-items:center; justify-content:space-between; gap: 1rem; padding: 2.2rem 0; }
.footer-cta__title{
  margin:0; font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: clamp(1.6rem, 2vw + 1.2rem, 2.6rem); line-height:1.1;
}
.footer-cta__arrow{ font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem); transform: translateX(0); transition: transform .25s ease, opacity .25s ease; opacity:.95; }
.footer-cta:hover{ filter: brightness(1.02); box-shadow: inset 0 -4px 0 rgba(0,0,0,.06); }
.footer-cta:hover .footer-cta__arrow{ transform: translateX(6px); }

/* =========================
   Footer – Main (+Pattern)
   ========================= */
.site-footer .footer-main{
  position: relative; background: linear-gradient(180deg, #0F3B4D 0%, #0D3044 100%); color: var(--color-white); padding: 3rem 0;
}


.footer-grid{ z-index:1; display:grid; gap:2rem 3rem; grid-template-columns:1fr; }

/* Spalten & Elemente */
.footer-col{ color: var(--color-white); }
.footer-col--brand{ max-width: 520px; }
/* Footer-Logo ohne Inline-Style */
.footer-logo img{
  aspect-ratio: 200 / 57;
  height: auto;
  display: block;
}
.footer-intro{ margin: .85rem 0 1rem; line-height:1.6; opacity:.95; }
.footer-copy{ margin:.75rem 0 0; font-size:.95rem; opacity:.85; }

/* Überschriften */
.footer-heading{ font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 1.4rem; margin: 0 0 .75rem 0; color: var(--color-primary); }
.footer-lead{ margin:0 0 .5rem 0; font-weight:600; }

/* Linklisten */
.footer-links, .footer-contact{ list-style:none; margin:0; padding:0; display:grid; gap:.55rem; }
.footer-links a{ color: var(--color-white); text-decoration:none; }
.footer-links a:hover{ text-decoration:underline; color: var(--color-primary); }

/* Kontakt */
.footer-contact li{ display:flex; align-items:center; gap:.6rem; }
.footer-contact .icon{ color: var(--color-primary); flex-shrink:0; }

/* Social */
.footer-social{ margin-top:.5rem; display:flex; gap:.5rem; }

/* =========================
   Footer – Responsive
   ========================= */
@media (min-width:769px){  .footer-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width:1201px){ .footer-grid{ grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (max-width: 768px){
  .footer-cta__inner{ padding: 1.6rem 0; }
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-col--brand{ max-width:none; }
  .footer-logo img{ max-width: 200px; }
}

/* ==== Footer: Spaltenbreiten ==== */
.site-footer .footer-grid{ grid-template-columns: 2fr 1fr 1fr 1.2fr; }
.site-footer .footer-col--brand{ max-width: none; }
.site-footer .footer-col:not(.footer-col--brand){ min-width: 220px; }
@media (max-width: 1200px){ .site-footer .footer-grid{ grid-template-columns: 1.4fr 1fr; } }
@media (max-width: 768px){ .site-footer .footer-grid{ grid-template-columns: 1fr; } }

/* 1) Bulletpoints für die Linklisten (Service / Informationen) */
.site-footer .footer-links{ list-style: disc; list-style-position: outside; padding-left: 1.25rem; display: grid; gap: .55rem; }

/* 2) Kontakt-Links immer weiß und ohne Unterstreichung */
.site-footer .footer-contact a{ color: var(--color-white) !important; text-decoration: none !important; }
.site-footer .footer-contact a:hover,
.site-footer .footer-contact a:focus{ color: var(--color-white) !important; text-decoration: none !important; outline: none; }
/* Screenreader-Text: sichtbar für SR, unsichtbar visuell */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
