/* madebykev · Gemeinsamer Website-Header (Startseite + reguläre Seiten).
   Werte aus dem bisherigen Startseiten-Header (Design-System SiteHeader + Startseiten-Anpassungen):
   volle Breite, Seitenrand = linke Inhaltskante des Heros, Navigation mittig (1fr auto 1fr), keine Unterkante. */

:root { --mbk-header-gx: 5.8vw; }
@media (max-width: 1099px) { :root { --mbk-header-gx: calc(max(0px, (100% - 950px) / 2) + 6.5%); } }
@media (max-width: 539px) { :root { --mbk-header-gx: 24px; } }
@media (max-width: 390px) { :root { --mbk-header-gx: 18px; } }

/* Kontaktleiste */
.mbk-infobar { background: #050505; color: #fff; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 1.3; font-weight: 700; }
.mbk-infobar__inner { width: 100%; box-sizing: border-box; margin: 0; padding: 9px var(--mbk-header-gx); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 28px; }
.mbk-infobar__links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; }
.mbk-infobar a { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; text-underline-offset: 5px; }
.mbk-infobar a:hover, .mbk-infobar a:focus-visible { text-decoration: underline; }
.mbk-infobar svg { flex: none; display: block; }

/* Header */
.mbk-site-header { position: sticky; top: 0; z-index: 60; height: 82px; background: #fff; color: #000; font-family: Arial, Helvetica, sans-serif; }
.mbk-site-header--static { position: relative; }
.mbk-site-header__inner { height: 100%; width: 100%; box-sizing: border-box; margin: 0; padding-inline: var(--mbk-header-gx); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.mbk-site-header__brand { justify-self: start; display: inline-flex; align-items: center; width: fit-content; height: 34px; }
.mbk-site-header__brand img { display: block; width: auto; height: 34px; max-width: 220px; }
.mbk-site-header__nav { display: flex; gap: 38px; font-size: 13px; font-weight: 700; }
.mbk-site-header__nav a { padding: 10px 0; color: #000; text-decoration: none; white-space: nowrap; }
.mbk-site-header__nav a:hover, .mbk-site-header__nav a:focus-visible { text-decoration: underline; text-underline-offset: 5px; }
.mbk-site-header__cta { justify-self: end; box-sizing: border-box; min-width: 190px; padding: 12px 18px; border: 2px solid #000; display: flex; justify-content: space-between; gap: 12px; color: #000; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.mbk-site-header__arrow { font-family: Arial, sans-serif; font-weight: 400; }
.mbk-site-header__toggle { display: none; justify-self: end; min-height: 44px; padding: 1px 6px; border: 0; background: none; color: #000; font: 800 12px Arial, Helvetica, sans-serif; cursor: pointer; }
.mbk-site-header a:focus-visible, .mbk-site-header__toggle:focus-visible, .mbk-infobar a:focus-visible { outline: 3px solid #FFD400; outline-offset: 3px; }
.mbk-site-header__mobile { display: none; }

@media (max-width: 1250px) { .mbk-site-header__nav { gap: 22px; } }

/* Unter 1100 px: mobiles Menü (fünf Menüpunkte + CTA passen sonst nicht kollisionsfrei neben das Logo). */
@media (max-width: 1099px) {
  .mbk-site-header__inner { grid-template-columns: 1fr auto; }
  .mbk-site-header__nav, .mbk-site-header__cta { display: none; }
  .mbk-site-header__toggle { display: block; }
  .mbk-site-header__mobile { position: fixed; left: 0; right: 0; top: var(--mbk-menu-top, 70px); bottom: 0; z-index: 59; box-sizing: border-box; padding: 35px var(--mbk-header-gx) 40px; background: #FFD400; flex-direction: column; gap: 10px; overflow-y: auto; overscroll-behavior: contain; }
  .mbk-site-header__mobile.is-open { display: flex; }
  .mbk-site-header__mobile[hidden] { display: none; }
  .mbk-site-header__mobile a { padding: 14px 0; border-bottom: 1px solid rgba(5,5,5,.3); color: #000; font-size: 30px; font-weight: 900; letter-spacing: -.05em; line-height: 1.1; text-decoration: none; }
  .mbk-site-header__mobile a:focus-visible { outline: 3px solid #000; outline-offset: 2px; }
}
@media (max-width: 820px) {
  .mbk-site-header { height: 70px; }
  .mbk-site-header__brand { height: 29px; }
  .mbk-site-header__brand img { height: 29px; max-width: 190px; }
}
@media (max-width: 390px) { .mbk-site-header__mobile a { font-size: 26px; } }
body.mbk-menu-open { overflow: hidden; }
/* Startseite: Die Laufzeitumgebung setzt html,body{height:100%}. Damit der Header über die ganze Seite mitläuft,
   darf body nicht auf Fensterhöhe begrenzt sein (Inhalte lagen ohnehin außerhalb; Layout sonst unverändert). */
body.madebykev-homepage { height: auto; min-height: 100%; }
