/* ==========================================================================
   Kopfnavigation Desktop (Test, Branch menue-test)
   Leiste über die volle Breite mit großen Klappmenüs, die sich in der
   Leiste nach unten öffnen.
   Nach der Vorlage „navbar2“ (React/Tailwind) als reines HTML/CSS/JS
   nachgebaut. Gilt nur ab 1141 px – darunter bleiben die bisherige
   Kopfzeile, der Burger und die mobile Tafel aus style.css unverändert.
   ========================================================================== */

@media (max-width: 1140px) {
  .kn__card { display: none; }
}

@media (min-width: 1141px) {

  /* Bisherige Kopfzeile am Desktop ausblenden – die Karte ersetzt sie. */
  .header.kn .header__inner { display: none; }

  /* Die dunkle Kopfleiste (Telefon, E-Mail, Zeiten, Social) ebenso: Ihr
     Inhalt steht am Desktop unten in jedem Klappmenü (.kn__folgen). Am
     Tablet bleibt sie, am Handy war sie schon immer aus (style.css). */
  .topbar { display: none; }

  .header.kn,
  .header.kn.is-stuck {
    padding: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: 0;
    box-shadow: none;
    /* Der Rand um die Karte ist durchsichtig und soll nichts abfangen. */
    pointer-events: none;
    /* Feste Höhe = zugeklappte Leiste. Klappt ein Menü auf, wächst die
       Leiste über den Inhalt, statt die Seite nach unten zu schieben. */
    height: 79px;
  }

  .kn__card {
    position: relative;
    pointer-events: auto;
    overflow: hidden;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s var(--ease);
  }
  .kn.is-stuck .kn__card { box-shadow: 0 4px 20px rgba(15, 37, 68, .07); }
  .kn.is-menu-offen .kn__card { box-shadow: 0 2px 6px rgba(15, 37, 68, .06), 0 24px 48px rgba(15, 37, 68, .14); }
}

/* ------------------------------------------------------------- Zeile    */
.kn__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  /* feste Höhe, damit die Kopfzeile (.header.kn) genau passt */
  height: 78px;
  /* Inhalt auf derselben Breite wie die Kopfleiste darüber (.wrap--wide) */
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.kn__brand { display: flex; align-items: center; flex: none; }
.kn__brand img { height: 50px; width: auto; }

.kn__nav { display: flex; align-items: center; gap: 2px; }

.kn__tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 9px 16px;
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  font-family: var(--font-display);
  font-size: calc(15.5rem / 16);
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.kn__tab:hover { background: var(--gray-50); color: var(--navy); }
.kn__tab[aria-expanded="true"] { background: var(--gray-100); color: var(--navy); }
.kn__tab[aria-current="page"] { color: var(--navy); }
.kn__tab:focus-visible,
.kn__btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.kn__chev {
  width: 16px; height: 16px;
  flex: none;
  transition: transform .3s var(--ease);
}
[aria-expanded="true"] > .kn__chev { transform: rotate(180deg); }

/* ---------------------------------------------------------- Aktionen    */
.kn__aktionen { display: flex; align-items: center; gap: 10px; flex: none; }

.kn__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: calc(14.5rem / 16);
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.kn__btn svg { width: 16px; height: 16px; flex: none; }
/* Anrufen: Hörer mit laufenden Schallbögen wie am Handy (tools/telefon_icon.py,
   Animation .tel-icon in style.css) – etwas größer, das Icon hat Rand im Raster */
.kn__anrufen .tel-icon { width: 21px; height: 21px; margin: -3px -1px -3px -3px; }
.kn__btn:hover .tel-icon { transform: none; }
.kn__btn--hell {
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  color: var(--navy);
}
.kn__btn--hell:hover { background: var(--gray-100); color: var(--navy); }
.kn__btn--dunkel {
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--white);
}
.kn__btn--dunkel:hover { background: var(--navy-600); border-color: var(--navy-600); color: var(--white); }

/* ------------------------------------------------------ Großes Klappmenü */
/* Die Höhe setzt kopfnavi.js: Beim Wechsel zwischen zwei Menüs gleitet die
   Karte von der alten auf die neue Höhe, statt zu springen. */
.kn__drop {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: height .35s cubic-bezier(.22, 1, .36, 1), opacity .35s cubic-bezier(.22, 1, .36, 1);
}
.kn__drop.is-open { opacity: 1; }

.kn__mega { animation: kn-ein .35s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes kn-ein {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.kn__grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 40px;
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: 8px var(--gutter) 32px;
}
.kn__col { display: flex; flex-direction: column; gap: 24px; }

.kn__eyebrow {
  width: fit-content;
  padding: 6px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-pill);
  font-size: calc(12.5rem / 16);
  font-weight: 500;
  color: var(--text-mute);
}

.kn__links { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.kn__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: calc(21rem / 16);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.25;
  color: var(--navy);
  transition: color .2s var(--ease);
}
.kn__links a:hover { color: var(--blue); }
.kn__links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.kn__fuss { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 48px; }
.kn__fuss a {
  width: fit-content;
  font-size: calc(14.5rem / 16);
  color: var(--text-mute);
  transition: color .2s var(--ease);
}
.kn__fuss a:hover { color: var(--navy); }

.kn__bild {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 288px;
  height: 256px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--gray-100);
}
.kn__bild img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.kn__bild:hover img { transform: scale(1.03); }
.kn__bildtext {
  position: relative;
  z-index: 1;
  padding: 40px 16px 16px;
  background: linear-gradient(to top, rgba(8, 23, 41, .72), rgba(8, 23, 41, 0));
  font-size: calc(14.5rem / 16);
  font-weight: 500;
  line-height: 1.35;
  color: var(--white);
}

/* Fußleiste jedes Klappmenüs, über die volle Breite: links Telefon, E-Mail
   und Zeiten (früher in der Kopfleiste oben), rechts „Folgen Sie uns“ */
.kn__folgen {
  border-top: 1px solid var(--line);
  background: var(--gray-50);
}
.kn__folgen-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: 12px var(--gutter);
}
.kn__kontakt {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: calc(14.5rem / 16);
  color: var(--text-dim);
}
.kn__kontakt li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.kn__kontakt svg { width: 16px; height: 16px; flex: none; color: var(--blue); }
.kn__kontakt a { color: var(--text-dim); transition: color .2s var(--ease); }
.kn__kontakt a:hover { color: var(--blue); }
.kn__kontakt a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.kn__social { display: flex; align-items: center; gap: 6px; flex: none; }
.kn__folgen-text {
  margin-right: 8px;
  font-family: var(--font-display);
  font-size: calc(14.5rem / 16);
  font-weight: 600;
  color: var(--navy);
}
.kn__social a {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: var(--r-pill);
  color: var(--navy-600);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.kn__social a:hover { background: var(--white); color: var(--blue); }
.kn__social a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.kn__social svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------ Breiten   */
@media (max-width: 1320px) { .kn__tab { padding: 9px 12px; } }
@media (max-width: 1240px) { .kn__anrufen { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .kn__drop, .kn__chev, .kn__bild img { transition-duration: .01ms; }
  .kn__mega { animation: none; }
}
