/* kopf.css – Kopf und Handy-Menü wie auf der Hauptwebsite (11.11.2026, Nevio: gleiche Navigation auf allen Unterseiten).
   Nachgebaut aus Tailwind-Klassen + site.css der Hauptseiten, weil /webseiten/ ein eigenes Stylesheet hat.
   Dropdowns und Handy-Gruppen: /nav.css. Verhalten: kopf.js + /nav.js. Höhe 4 rem = --header (64 px) der Websites-Seite. */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999; height: 4rem;
  background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0, 0, 0, .06); box-shadow: 0 1px 24px rgba(0, 0, 0, .04);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5;
}
#site-header *, #mobile-menu * { box-sizing: border-box; }
#site-header .kp-in {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  height: 4rem; max-width: 72rem; margin: 0 auto; padding: 0 1rem;
}
@media (min-width: 768px) { #site-header .kp-in { padding: 0 2rem; } }
#site-header .site-logo {
  display: flex; align-items: center; gap: .625rem; flex-shrink: 0; z-index: 10;
  min-height: 2.75rem; min-width: 2.75rem; text-decoration: none; color: inherit;
}
#site-header .site-logo img { display: block; width: 2.25rem; height: 2.25rem; border-radius: 9999px; object-fit: contain; }
#site-header .site-logo span { display: none; font-size: 17px; font-weight: 700; letter-spacing: -.025em; color: #111827; }
@media (min-width: 640px) { #site-header .site-logo span { display: block; } }
#site-header .site-nav {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; white-space: nowrap; margin: 0; padding: 0;
}
@media (max-width: 1099.98px) { #site-header .site-nav { display: none !important; } }
#site-header .kp-rechts { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; z-index: 10; }
#site-header .header-cta {
  display: none; align-items: center; gap: .375rem; min-height: 2.75rem; padding: .5rem 1rem;
  border-radius: .75rem; background: linear-gradient(135deg, #0A6EBD 0%, #3A9FE8 100%); color: #fff;
  font-size: .8125rem; font-weight: 600; line-height: 1.25; text-decoration: none; white-space: nowrap;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
}
@media (min-width: 640px) { #site-header .header-cta { display: flex; } }
@media (min-width: 768px) { #site-header .header-cta { padding: .625rem 1.25rem; font-size: .875rem; } }
#menu-btn {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: .75rem; background: transparent; cursor: pointer;
  transition: background-color .2s ease;
}
#menu-btn:hover { background: rgba(0, 0, 0, .04); }
@media (max-width: 1099.98px) { #menu-btn { display: flex !important; } }
#menu-btn .bar { display: block; width: 1.25rem; height: 2px; border-radius: 9999px; background: #1f2937; transition: transform .3s ease, opacity .3s ease; transform-origin: center; }
#menu-btn[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#menu-btn[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
#menu-btn[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#mobile-menu {
  position: fixed; left: 0; right: 0; bottom: 0; top: 4rem; z-index: 9998;
  overflow: hidden; opacity: 0; pointer-events: none; transition: opacity .3s ease;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5;
}
#mobile-menu.is-open { opacity: 1; pointer-events: auto; }
#mobile-menu .menu-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
#menu-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(18rem, 86vw);
  display: flex; flex-direction: column; background: #fff; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: env(safe-area-inset-bottom);
  transform: translateX(100%); transition: transform .3s ease-out;
}
#mobile-menu.is-open #menu-panel { transform: none; }
#menu-panel nav { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1rem 0; flex: 1 0 auto; }
#menu-panel nav a {
  display: flex; align-items: center; gap: .75rem; min-height: 3.25rem; padding: .875rem 1rem;
  border-radius: .75rem; font-weight: 600; color: #1f2937; text-decoration: none; transition: background-color .2s ease;
}
#menu-panel nav a:hover { background: #f9fafb; }
#menu-panel nav a[aria-current="page"] { background: #EBF4FC; color: #0A6EBD; }
#menu-panel .menu-actions { display: flex; flex-direction: column; gap: .75rem; padding: 1rem 1rem 2rem; border-top: 1px solid #f3f4f6; }
#menu-panel .menu-actions a {
  display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .75rem 1.25rem;
  border-radius: .75rem; font-size: .875rem; font-weight: 700; text-decoration: none;
}
#menu-panel .menu-actions svg { width: 1rem; height: 1rem; }
#menu-panel .menu-cta { background: linear-gradient(135deg, #0A6EBD 0%, #3A9FE8 100%); color: #fff; box-shadow: 0 10px 15px -3px rgba(10, 110, 189, .2); }
.menu-open-lock { position: fixed; left: 0; right: 0; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { #mobile-menu, #menu-panel, #menu-btn .bar { transition: none !important; } }
