/* ============================================================
   Florian Haacks — Header und Footer
   Basiert auf den tatsächlichen Astra-Klassen der Live-Struktur
   (geprüft auf http://florianhaacks-v2.local).
   ============================================================ */

/* ---------- HEADER: schwebende Pill-Leiste, sticky ---------- */
#masthead{
  position: fixed !important;
  top: 20px;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 40px);
  max-width: 1200px;
  z-index: 999;
  background: transparent;
}
#masthead .ast-primary-header-bar{
  background: rgba(20,28,36,0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  padding: 10px 12px 10px 28px;
}
#masthead .site-primary-header-wrap,
#masthead .ast-builder-grid-row{
  padding: 0 !important;
  max-width: none !important;
}
/* Keine Navigation, das leere Menü-Element ausblenden */
#masthead .ast-builder-menu-1{ display:none; }

/* Astra setzt fürs Logo eine feste width:190px, das verzerrt zusammen
   mit unserer height. Beides erzwingen, damit das Seitenverhältnis stimmt. */
#masthead .site-branding .custom-logo{
  height: 34px !important;
  width: auto !important;
  max-width: none !important;
}

/* CTA-Button im Header */
#masthead .ast-header-button-1 .ast-custom-button{
  background: var(--accent) !important;
  color:#0E141A !important;
  font-family: var(--font-body);
  font-weight:700;
  font-size:0.86rem;
  padding:11px 22px;
  border-radius: var(--r-pill);
  border:none;
  transition:background .2s ease, transform .2s ease;
}
#masthead .ast-header-button-1 .ast-custom-button-link:hover .ast-custom-button{
  background: var(--accent-soft) !important;
  transform:translateY(-1px);
}

/* Mobiler Header: dort steckt noch der alte HTML-Button (goldenes Rechteck
   mit Inline-Stil). Auf das Pillen-Design bringen. */
#masthead .ast-header-html-1 p{ margin:0; }
#masthead .ast-header-html-1 a{
  display:inline-block !important; background:var(--accent) !important; color:#0E141A !important;
  font-family:var(--font-body) !important; font-size:0.8rem !important; font-weight:700 !important;
  padding:10px 18px !important; border-radius:var(--r-pill) !important; line-height:1.2;
  text-decoration:none !important; white-space:nowrap;
}
#masthead .ast-header-html-1 a br{ display:none; }

@media (max-width:600px){
  #masthead{ top:12px; width:calc(100% - 24px); }
  #masthead .ast-primary-header-bar{ padding:8px 8px 8px 20px; }
}

/* Hinweis: Kein body-padding-top. Der Header schwebt über dem Seiteninhalt,
   die Hero-Sektion bringt in fh-redesign.css (.fh-hero) bereits eigenen
   oberen Abstand mit. Künftige Templates (Leistungsseiten, Blog, Rechtstexte)
   brauchen im ersten Abschnitt ca. 110px oberen Abstand, damit nichts
   unter der Pille verschwindet. */


/* ---------- FOOTER: 4 Spalten ----------
   Astra-Spaltenanzahl für "Footer Widget 1" steht auf 1, ein einzelnes
   Custom-HTML-Widget mit .fh-footer-grid übernimmt das Layout selbst. */
.site-footer{
  border-top: 1px solid var(--line);
}
.fh-footer-grid{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: var(--s-6);
  padding: var(--s-9) 0;
}
.fh-fcol h4{
  font-family:var(--font-head);
  font-size:0.82rem;
  text-transform:uppercase;
  letter-spacing:0.08em;
  color:var(--muted);
  margin-bottom: var(--s-4);
}
.fh-fcol p{
  font-size:0.88rem;
  line-height:1.65;
  color:var(--muted);
  margin-bottom: var(--s-4);
}
.fh-fcol ul{
  list-style:none;
  margin:0; padding:0;
}
.fh-fcol li{ margin-bottom: var(--s-2); }
.fh-fcol a{
  color:var(--muted);
  text-decoration:none;
  font-size:0.9rem;
}
.fh-fcol a:hover{ color:var(--text); }

.fh-fsocial{ display:flex; gap:10px; margin-top:var(--s-4); }
.fh-fsocial a{
  width:34px; height:34px; border-radius:50%;
  border:1px solid var(--line-2);
  display:flex; align-items:center; justify-content:center;
  color:var(--text);
}
.fh-fsocial a:hover{ background:var(--accent); border-color:var(--accent); color:#0E141A; }

@media (max-width:820px){
  .fh-footer-grid{
    grid-template-columns: 1fr 1fr;
    gap: var(--s-6) var(--s-5);
  }
}
@media (max-width:600px){
  .fh-footer-grid{
    grid-template-columns: 1fr;
  }
}

/* ---------- FOOTER: Trennlinie und Copyright-Zeile ---------- */
.site-below-footer-wrap{
  border-top: 1px solid var(--line);
  padding: var(--s-5) 0;
}
.site-below-footer-wrap .ast-builder-footer-grid-columns{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap: var(--s-3);
}
.ast-footer-copyright p{
  font-size:0.8rem;
  color:var(--muted);
  margin:0;
}
.ast-footer-html-2 a{
  color:var(--muted);
  text-decoration:none;
  font-size:0.8rem;
}
.ast-footer-html-2 a:hover{ color:var(--text); }
