html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .kk-chev { transform: rotate(180deg); }
[hidden] { display: none !important; }
.prototype-form-notice {
  margin: 14px 0 0;
  padding: 13px 14px;
  border: 1px solid #d9a441;
  border-radius: 10px;
  background: #fff8e8;
  color: #503b16;
  font: 600 13.5px/1.5 "Inter", sans-serif;
}

/* Rueckfalltuer im Danke-Zustand, falls sich kein Mailprogramm geoeffnet hat. */
.kk-mail-retry {
  display: inline-block;
  margin: 0 0 18px;
  padding: 12px 20px;
  border: 1px solid #d9a441;
  border-radius: 11px;
  background: #fff8e8;
  color: #503b16 !important;
  font: 600 14px/1.4 "Inter", sans-serif;
  text-decoration: none;
}

header > div {
  flex-wrap: wrap !important;
}

/* Mobiles Menue: erst unterhalb des Nav-Umbruchs sichtbar (siehe Media Query) */
.kk-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 11px;
  background: transparent;
  color: var(--on-navy, #f6f3eb);
  cursor: pointer;
}
.kk-burger:focus-visible {
  outline: 2px solid var(--gold, #d9a441);
  outline-offset: 2px;
}
.kk-mobilenav {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: var(--navy, #0e1b2e);
  padding: 8px 20px 18px;
}
.kk-mobilenav-link,
.kk-mobilenav-cta {
  display: block;
  text-decoration: none;
  font: 600 16px/1.4 "Inter", sans-serif;
}
.kk-mobilenav-link {
  padding: 14px 4px;
  color: var(--on-navy-soft, #9ba7b8);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.kk-mobilenav-cta {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 999px;
  background: var(--gold, #d9a441);
  color: var(--navy, #0e1b2e);
  text-align: center;
}
header > div > a:first-child,
header > div > a:last-child {
  flex: none !important;
}
header nav {
  flex: 1 1 520px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 8px 10px;
}
header nav a {
  white-space: nowrap;
}

/* Pilot-Haushalte laeuft in einer 600px-Spalte. Dort passt keine waagerechte
   Navigation neben Logo und Schaltflaeche, deshalb bleibt das Burgermenue
   auf allen Breiten stehen. */
.kk-narrow-header nav {
  display: none !important;
}
.kk-narrow-header .kk-burger {
  display: inline-flex;
}
.kk-narrow-header .kk-mobilenav.is-open {
  display: block;
}

@media (max-width: 900px) {
  /* Ankuendigungsleiste "kommunaler Pilotbetrieb" auf schmalen Geraeten ausblenden */
  [style*="border-bottom:1px solid rgba(255,255,255,.06)"] { display: none !important; }
  header > div { flex-wrap: wrap !important; padding-inline: 20px !important; }
  header nav { display: none !important; }
  /* Demo-Schaltflaeche im Header ausblenden; sie steht im Burgermenue */
  header > div > a[style*="background:var(--gold)"] { display: none !important; }
  .kk-burger { display: inline-flex; }
  .kk-mobilenav.is-open { display: block; }
  h1 { font-size: clamp(2.35rem, 10vw, 4rem) !important; }
  h2 { font-size: clamp(2rem, 8vw, 3.25rem) !important; }
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  [style*="min-width:280px"] { min-width: 0 !important; }
  [style*="background:var(--navy)"][style*="padding:34px 36px"][style*="flex-wrap:wrap"] {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  [style*="padding:104px 32px"],
  [style*="padding:100px 32px"],
  [style*="padding:96px 32px"],
  [style*="padding:90px 32px"],
  [style*="padding:80px 32px"],
  [style*="padding:72px 32px"],
  [style*="padding:64px 32px"],
  [style*="padding:60px 32px"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  [style*="gap:64px"], [style*="gap:60px"], [style*="gap:56px"] { gap: 34px !important; }
  footer [style*="grid-template-columns"] { gap: 28px !important; }
}

@media (max-width: 560px) {
  section a[href="/pilot-haushalte/"][style*="white-space:nowrap"] {
    width: 100% !important;
    justify-content: center !important;
    white-space: normal !important;
    text-align: center !important;
  }
  [style*="padding:9px 32px"] { padding-inline: 16px !important; }
  [style*="padding:15px 32px"] { padding-inline: 16px !important; }
  [style*="padding:104px 32px"],
  [style*="padding:100px 32px"],
  [style*="padding:96px 32px"],
  [style*="padding:90px 32px"],
  [style*="padding:80px 32px"],
  [style*="padding:72px 32px"],
  [style*="padding:64px 32px"],
  [style*="padding:60px 32px"] {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }
}
