/* Kopf der Reform-Seite wie auf der restlichen Website (Finn 21.10.2026, freigegeben).
   Oben auf der Seite: gleiche Hoehe wie die restliche Website (s. unten), grosses Logo, lila Menue 14 px, durchsichtig.
   Beim Scrollen bleibt die kompakte weisse Leiste mit "Anrufen lassen" (Kampagnen-CTA) wie bisher.
   NEUE Datei (projekt.md §B14). Inline-Styles der Seite -> !important noetig. */

/* Menue immer wie navbar_v2 */
[data-kk="nav"] { gap: 24px !important; font-size: 14px !important; font-weight: 400 !important; }
[data-kk="nav"] a { color: #6A3DC4 !important; }
[data-kk="nav"] a:hover { color: #4A2B87 !important; }

/* Nur ganz oben (js/reform_kopf.js setzt html.kk-kopf-oben): Hoehe + Logo wie restliche Website.
   Sobald gescrollt wird: deckende kompakte Leiste wie bisher live. */
html.kk-kopf-oben header {
  background: transparent !important;
  border-bottom-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
header > div:first-child { transition: min-height .35s ease; box-sizing: border-box; }
header > div:first-child > a img { transition: height .35s ease; }
header > div:first-child { max-width: 1168px !important; }
/* Hoehen + Logo wie die Navi im Reform-Stil der restlichen Website (css/navbar_reform.css, seit 22.10.2026):
   ueber 700 px 140 px / Logo 48, bis 700 px 84 px / Logo 40, bis 400 px Logo 34.
   ~~160/120 px, Logo 48/36 (alte navbar_v2)~~ widerrufen 22.10.2026 (Finn: Reform sass tiefer). */
html.kk-kopf-oben header > div:first-child { min-height: 140px; }
html.kk-kopf-oben header > div:first-child > a img { height: 48px !important; }

@media (max-width: 700px) {
  html.kk-kopf-oben header > div:first-child { min-height: 84px; }
  html.kk-kopf-oben header > div:first-child > a img { height: 40px !important; }
}
@media (max-width: 400px) {
  html.kk-kopf-oben header > div:first-child > a img { height: 34px !important; }
}
/* Verlassen von "ganz oben": Hintergrund sofort deckend wie live (ohne Ueberblenden),
   Einklappen kurz (0,2 s) */
html.kk-kopf-sofort header { transition: none !important; }
header > div:first-child { transition: min-height .2s ease !important; }
header > div:first-child > a img { transition: height .2s ease !important; }

/* Handy: drei Striche oben rechts + aufklappendes Menue wie auf der restlichen Website (Hintergrund weiss wie navbar_mobmenu in navbar_reform.css; bis 22.10.2026 beige #F1EDEA)
   (navbar_v2: gleiche Links, Striche werden zum X). Desktop unveraendert (Finn 22.10.2026). */
[data-kk="nav-burger"], [data-kk="nav-mob"] { display: none; }
/* Umschalten auf die Striche bei <= 1000 px wie die restliche Website (index_new.css .navbar_hamwrapper);
   ~~959 px~~ bis 22.10.2026. Die Woerter-Navi der Seite blendet ein Inline-Stil ab 960 px ein -> hier mit
   hoeherer Spezifitaet wieder aus. */
@media (max-width: 1000px) {
  html body header [data-kk="nav"] { display: none !important; }
  [data-kk="head-right"] { margin-left: auto !important; }
  header > div:first-child { gap: 12px !important; }
  [data-kk="nav-burger"] {
    display: flex; flex-direction: column; justify-content: space-between;
    flex: none; width: 35px; height: 25px; padding: 0; margin: 0 0 0 4px;
    border: 0; background: transparent; cursor: pointer; box-sizing: content-box;
  }
  [data-kk="nav-burger"] span {
    display: block; height: 5px; width: 100%; border-radius: 5px;
    background: #6A3DC4; transition: transform .4s ease, opacity .4s ease;
  }
  [data-kk="nav-burger"][aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
  [data-kk="nav-burger"][aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  [data-kk="nav-burger"][aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

  [data-kk="nav-mob"] {
    display: flex; flex-direction: column; align-items: center; gap: 16px;
    position: absolute; left: 0; right: 0; top: 100%;
    max-height: 0; overflow: hidden; box-sizing: border-box; padding: 0 16px;
    background: var(--white, #ffffff); transition: max-height .4s ease, padding .4s ease, box-shadow .4s ease;
  }
  [data-kk="nav-mob"][data-open="1"] {
    max-height: 420px; padding: 24px 16px 28px;
    box-shadow: rgba(0, 0, 0, 0.1) 0 8px 23px 0;
  }
  [data-kk="nav-mob"] a { color: #6A3DC4; font-size: 17px; text-decoration: none; padding: 4px 8px; }
  [data-kk="nav-mob"] a:hover { color: #4A2B87; }
}
/* Sehr schmale Handys: "Anrufen lassen" ohne Pfeil, damit Logo + Knopf + Striche nebeneinander passen */
@media (max-width: 379px) {
  [data-kk="head-cta"] { padding: 0 12px !important; font-size: 14px !important; }
  [data-kk="head-cta"] svg { display: none; }
  header > div:first-child > a img { height: 30px !important; }
}
@media (max-width: 1000px) and (prefers-reduced-motion: reduce) {
  [data-kk="nav-burger"] span, [data-kk="nav-mob"] { transition: none; }
}
