/*
Theme Name: Grundschule Bildechingen
Author: ChatGPT
Version: 8.6.13.8-r33-mobile-grid-reset
Description: Grundschule Bildechingen – finale Version mit stabilem Rechtliches-System über echte WordPress-Seiten.
*/

:root {
  --blue: #f7e6ca;
  --blue-dark: #f7e6ca;
  --yellow: #f7b500;
  --text: #111827;
  --muted: #64748b;
  --bg: #f4f7fa;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 6vw;
  color: white;
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
}

body.scrolled .site-header {
  background: rgba(255,255,255,.96);
  color: var(--text);
  padding: 14px 6vw;
  box-shadow: 0 12px 30px rgba(15,23,42,.12);
  backdrop-filter: blur(10px);
}

.logo {
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 900;
  letter-spacing: -.5px;
  line-height: 1;
}

.logo small {
  display: block;
  font-size: 13px;
  font-weight: 700;
  opacity: .85;
  letter-spacing: .4px;
  margin-top: 4px;
}

.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.main-nav a {
  font-weight: 800;
  padding: 12px 0;
  border-bottom: 3px solid transparent;
}

.main-nav a:hover { border-color: var(--yellow); }

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  padding: 11px 17px;
  font-weight: 900;
  background: var(--yellow);
  color: #111;
}

.mobile-panel { display: none; }

.hero {
  min-height: 96vh;
  position: relative;
  overflow: hidden;
  color: white;
  display: flex;
  align-items: flex-end;
  padding: 180px 6vw 96px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.74) 0%, rgba(0,0,0,.45) 48%, rgba(0,0,0,.12) 100%);
  z-index: 2;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transform: scale(1.05);
  animation: heroSlider 18s infinite;
}

.hero-slide:nth-child(1) { background-image: url('http://grundschule.local/wp-content/uploads/2026/05/Schule_Grundschule_Bildechingen_Horb_am_Neckar-T6RPnD.36d0f1ad.webp'); animation-delay: 0s; }
.hero-slide:nth-child(2) { background-image: url('http://grundschule.local/wp-content/uploads/2026/05/Schule_Grundschule_Bildechingen_Horb_am_Neckar-ebrUrf.e3021f00.webp'); animation-delay: 6s; }
.hero-slide:nth-child(3) { background-image: url('http://grundschule.local/wp-content/uploads/2026/05/Schule_Grundschule_Bildechingen_Horb_am_Neckar-z732ty.aef42c0b.webp'); animation-delay: 12s; }

@keyframes heroSlider {
  0% { opacity: 0; transform: scale(1.05); }
  8% { opacity: 1; }
  32% { opacity: 1; }
  42% { opacity: 0; transform: scale(1.12); }
  100% { opacity: 0; transform: scale(1.12); }
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 880px;
}

.kicker {
  display: inline-flex;
  background: var(--yellow);
  color: #111827;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 900;
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(46px, 8vw, 96px);
  line-height: .94;
  letter-spacing: -3px;
}

.hero p {
  max-width: 720px;
  margin: 0 0 32px;
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: #111;
  border-radius: 999px;
  padding: 15px 24px;
  font-weight: 900;
}

.btn.alt {
  background: rgba(255,255,255,.16);
  color: white;
  border: 1px solid rgba(255,255,255,.65);
  backdrop-filter: blur(8px);
}

.quicklinks {
  position: relative;
  z-index: 5;
  max-width: 1220px;
  margin: -52px auto 76px;
  padding: 0 22px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.quicklink {
  background: white;
  border-radius: 24px;
  padding: 24px 20px;
  min-height: 150px;
  box-shadow: 0 22px 50px rgba(15,23,42,.14);
  transition: transform .2s ease, box-shadow .2s ease;
}

.quicklink:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(15,23,42,.2);
}

.quicklink .icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--blue);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 900;
  margin-bottom: 18px;
}

.quicklink strong { display: block; font-size: 19px; margin-bottom: 8px; }
.quicklink span { display: block; color: var(--muted); line-height: 1.4; }

.section {
  max-width: 1220px;
  margin: 0 auto 80px;
  padding: 0 22px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-title h2 {
  font-size: clamp(32px, 5vw, 54px);
  margin: 0;
  letter-spacing: -1.4px;
}

.section-title p {
  color: var(--muted);
  max-width: 520px;
  margin: 0;
  line-height: 1.6;
}

.intro-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; }

.card {
  background: white;
  border-radius: 30px;
  padding: 34px;
  box-shadow: 0 16px 42px rgba(15,23,42,.08);
}

.card h3 { margin-top: 0; font-size: 28px; }
.card p { color: #334155; line-height: 1.7; }

.info-list { display: grid; gap: 14px; }

.info-item {
  padding: 16px 18px;
  background: #f8fafc;
  border-left: 6px solid var(--blue);
  border-radius: 16px;
}

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.news-card {
  background: white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(15,23,42,.08);
  border-top: 7px solid var(--yellow);
  display: flex;
  flex-direction: column;
}

.news-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #dbeafe;
  object-fit: cover;
}

.news-card-body { padding: 28px; }
.news-card small { color: var(--blue); font-weight: 900; text-transform: uppercase; letter-spacing: .4px; }
.news-card h3 { font-size: 24px; margin-bottom: 12px; }
.news-card p { color: #475569; line-height: 1.6; }
.news-link { margin-top: auto; display: inline-block; font-weight: 900; color: var(--blue); }

.empty-news {
  background: white;
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 16px 38px rgba(15,23,42,.08);
}

.events-list {
  display: grid;
  gap: 16px;
}

.event-item {
  background: white;
  border-radius: 24px;
  padding: 22px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 22px;
  align-items: center;
  box-shadow: 0 16px 38px rgba(15,23,42,.08);
}

.event-date {
  background: var(--blue);
  color: white;
  border-radius: 20px;
  min-height: 88px;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 900;
}

.event-date span {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.event-date small {
  display: block;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.event-content h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.event-content p {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.site-footer {
  background: #0f172a;
  color: white;
  padding: 58px 6vw 34px;
}

.footer-grid {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
}

.footer-grid h3 { margin-top: 0; }
.footer-grid p, .footer-grid a { color: rgba(255,255,255,.78); line-height: 1.7; }

.footer-bottom {
  max-width: 1220px;
  margin: 34px auto 0;
  border-top: 1px solid rgba(255,255,255,.16);
  padding-top: 22px;
  color: rgba(255,255,255,.65);
  font-size: 14px;
}

.single-main {
  max-width: 860px;
  margin: 150px auto 80px;
  padding: 0 22px;
}

.single-article {
  background: white;
  border-radius: 30px;
  padding: 42px;
  box-shadow: 0 16px 42px rgba(15,23,42,.08);
}

.single-article h1 {
  font-size: clamp(34px, 5vw, 58px);
  margin-top: 0;
}

.single-article img { max-width: 100%; border-radius: 24px; }

@media (max-width: 1060px) {
  .quicklinks { grid-template-columns: repeat(3, 1fr); }
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-panel.open { display: grid; }
  .mobile-panel {
    position: fixed;
    z-index: 70;
    top: 78px;
    right: 18px;
    left: 18px;
    background: white;
    color: var(--text);
    border-radius: 28px;
    padding: 20px;
    box-shadow: 0 30px 80px rgba(15,23,42,.28);
    gap: 4px;
  }
  .mobile-panel a { padding: 16px; font-weight: 900; border-radius: 16px; }
  .mobile-panel a:hover { background: #f1f5f9; }
}

@media (max-width: 760px) {
  .quicklinks, .news-grid, .intro-grid, .two-col, .footer-grid { grid-template-columns: 1fr; }
  .section-title { display: block; }
  .hero { min-height: 88vh; padding: 145px 24px 82px; }
  .site-header { padding: 20px 22px; }
  body.scrolled .site-header { padding: 14px 22px; }
  .single-article { padding: 28px; }
  .event-item { grid-template-columns: 1fr; }
  .event-date { width: 96px; }
}


.download-content {
  margin-top: 18px;
  color: #334155;
  line-height: 1.7;
}

.download-content .wp-block-file {
  margin: 16px 0 0;
  padding: 16px;
  background: #f8fafc;
  border-radius: 16px;
}

.download-content .wp-block-file__button {
  display: inline-block;
  background: var(--blue, #f7e6ca);
  color: #fff !important;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  text-decoration: none;
}

.download-content embed,
.download-content iframe,
.download-content object {
  max-width: 100%;
  border-radius: 12px;
}


.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.download-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 16px 38px rgba(15,23,42,.08);
  border-top: 7px solid var(--blue, #f7e6ca);
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

.download-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--blue, #f7e6ca);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 900;
  margin-bottom: 20px;
}

.download-card small {
  color: var(--blue, #f7e6ca);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.download-card h3 {
  font-size: 24px;
  margin: 12px 0;
}

.download-card p {
  color: #475569;
  line-height: 1.6;
  margin-bottom: 22px;
}

.download-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.download-content {
  margin-top: 18px;
  color: #334155;
  line-height: 1.7;
}

.download-content .wp-block-file {
  margin: 16px 0 0;
  padding: 16px;
  background: #f8fafc;
  border-radius: 16px;
}

.download-content .wp-block-file__button {
  display: inline-block;
  background: var(--blue, #f7e6ca);
  color: #fff !important;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 760px) {
  .download-grid {
    grid-template-columns: 1fr;
  }
}


.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.team-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 16px 38px rgba(15,23,42,.08);
  border-top: 7px solid var(--yellow, #f7b500);
  min-height: 280px;
}

.team-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--blue, #f7e6ca);
  color: white;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 20px;
}

.team-card small {
  color: var(--blue, #f7e6ca);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.team-card h3 {
  font-size: 24px;
  margin: 12px 0;
}

.team-card p {
  color: #475569;
  line-height: 1.6;
}

@media (max-width: 1060px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}


.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.team-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 16px 38px rgba(15,23,42,.08);
  border-top: 7px solid var(--yellow, #f7b500);
  min-height: 280px;
}

.team-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--blue, #f7e6ca);
  color: white;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 20px;
}

.team-photo {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 20px;
}

.team-card small {
  color: var(--blue, #f7e6ca);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.team-card h3 {
  font-size: 24px;
  margin: 12px 0;
}

.team-card p {
  color: #475569;
  line-height: 1.6;
}

.team-contact {
  margin-top: 16px;
  display: grid;
  gap: 6px;
  font-size: 15px;
}

.team-contact a {
  color: var(--blue, #f7e6ca);
  font-weight: 800;
}

@media (max-width: 1060px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}


.team-card-content {
  color: #475569;
  line-height: 1.65;
  margin-top: 14px;
}

.team-card-content p {
  margin: 0 0 10px;
}

.team-card-content strong {
  color: #111827;
}

.team-contact {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.team-contact span,
.team-contact a {
  display: block;
}

.team-contact a {
  color: var(--blue, #f7e6ca);
  font-weight: 800;
  word-break: break-word;
}

.hero-slide:nth-child(4) { animation-delay: 18s; }
.hero-slide:nth-child(5) { animation-delay: 24s; }
.hero:has(.hero-slide:nth-child(4)) .hero-slide { animation-duration: 30s; }
.hero:has(.hero-slide:nth-child(5)) .hero-slide { animation-duration: 36s; }


.hero-school-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.92);
  border-radius: 24px;
  padding: 14px 18px;
  margin-bottom: 24px;
  box-shadow: 0 18px 45px rgba(15,23,42,.18);
}

.hero-school-logo img {
  max-height: 86px;
  width: auto;
  display: block;
}

.header-school-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #fff;
  border-radius: 14px;
  padding: 5px;
  margin-right: 12px;
  vertical-align: middle;
}

.logo {
  display: inline-flex;
  align-items: center;
}

@media (max-width: 760px) {
  .hero-school-logo img {
    max-height: 64px;
  }
}


/* Logo Clean v5.5 - Hero-Logo ohne weiße Box */
.hero-school-logo {
  display: block;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-bottom: 28px !important;
  box-shadow: none !important;
  width: fit-content;
}

.hero-school-logo img {
  max-height: 120px !important;
  width: auto;
  display: block;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.35));
}

@media (max-width: 760px) {
  .hero-school-logo img {
    max-height: 82px !important;
  }
}


/* Mobile Slider Fix v5.6
   Im Handy-Hochformat wird das Sliderbild vollständig sichtbar. */
@media (max-width: 760px) and (orientation: portrait) {
  .hero {
    min-height: 82vh;
    padding: 120px 24px 64px;
    background: #0f172a;
  }

  .hero-slide {
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center top !important;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(15,23,42,.18) 0%, rgba(15,23,42,.38) 42%, rgba(15,23,42,.92) 100%);
  }

  .hero-content {
    max-width: 100%;
    margin-top: auto;
  }

  .hero h1 {
    font-size: clamp(38px, 14vw, 58px);
    letter-spacing: -1.8px;
  }

  .hero p {
    font-size: 17px;
  }

  .hero-school-logo img {
    max-height: 70px !important;
  }
}


/* Handy-Slider v5.7
   Desktop nutzt das Beitragsbild, Handy-Hochformat nutzt das Mobile-Bild. */
.hero-slide-mobile {
  display: none;
}

@media (max-width: 760px) and (orientation: portrait) {
  .hero-slide-desktop.has-mobile {
    display: none;
  }

  .hero-slide-mobile {
    display: block;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
  }

  .hero {
    min-height: 88vh;
    padding: 120px 24px 64px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(15,23,42,.16) 0%, rgba(15,23,42,.42) 45%, rgba(15,23,42,.92) 100%);
  }
}


/* Mobile Headline Fix v5.8 */
.hero-title-mobile {
  display: none;
}

@media (max-width: 760px) and (orientation: portrait) {
  .hero-title-desktop {
    display: none;
  }

  .hero-title-mobile {
    display: block;
  }

  .hero h1 {
    font-size: clamp(38px, 13vw, 56px) !important;
    line-height: 1.03 !important;
    letter-spacing: -1.4px !important;
    max-width: 92vw;
    margin-bottom: 22px;
  }

  .hero-content {
    max-width: 100%;
    margin-top: auto;
    padding-bottom: 8px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 310px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 18px;
  }

  .hero-school-logo {
    margin-bottom: 20px !important;
  }

  .hero-school-logo img {
    max-height: 72px !important;
  }
}


/* Header Logo Only v5.9 */
.hero-school-logo {
  display: none !important;
}


/* Clean Cards v6.0 */
.team-icon,
.news-icon,
.event-icon,
.card-icon,
.info-icon {
  display: none !important;
}

.team-card {
  padding-top: 26px !important;
}

.news-card,
.event-card,
.card {
  padding-top: 24px !important;
}


/* Clean Cards v6.1 - auch obere Schnellzugriff-Kacheln ohne blaue Buchstaben */
.quicklink .icon {
  display: none !important;
}

.quicklink {
  justify-content: center;
}

.quicklink strong {
  margin-top: 0 !important;
}


/* Yellow Quicklinks v6.2
   Obere Schnellzugriff-Kacheln: gelbe Akzentlinie zurück, aber ohne blaue Buchstaben. */
.quicklink {
  position: relative;
  overflow: hidden;
  border-top: 0 !important;
}

.quicklink::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 7px;
  background: var(--yellow, #f7b500);
  border-radius: 24px 24px 0 0;
}

.quicklink .icon {
  display: none !important;
}

.quicklink strong {
  margin-top: 12px !important;
}


/* Horb Blue Edition v6.3 */
:root {
  --accent-blue: #f7e6ca;
}

/* Akzentlinien an weißen Kacheln in Horb-Blau */
.quicklink::before,
.news-card,
.download-card,
.team-card,
.card,
.event-item,
.empty-news {
  border-top-color: var(--accent-blue, #f7e6ca) !important;
}

.quicklink::before {
  background: var(--accent-blue, #f7e6ca) !important;
}

/* Falls Karten keine Linie haben, Linie ergänzen */
.card,
.event-item,
.empty-news {
  border-top: 7px solid var(--accent-blue, #f7e6ca);
}

/* Download darf seine PDF-Kachel behalten, aber Linie ebenfalls blau */
.download-card {
  border-top-color: var(--accent-blue, #f7e6ca) !important;
}

/* Team ebenfalls blau */
.team-card {
  border-top-color: var(--accent-blue, #f7e6ca) !important;
}


.intro-grid-single {
  grid-template-columns: 1fr !important;
}

.intro-grid-single .card {
  max-width: none;
}


/* Footer Wave + Blue Buttons v6.4 */
:root {
  --accent-blue: #f7e6ca;
  --accent-blue-dark: #f7e6ca;
  --footer-light: #EAF4F7;
  --footer-mid: #D7E8EE;
  --footer-text: #1F2A44;
}

/* Hero Buttons in Horb-Blau */
.hero-actions .btn,
.btn {
  background: var(--accent-blue, #f7e6ca) !important;
  color: #102033 !important;
  border: 2px solid var(--accent-blue, #f7e6ca) !important;
}

.hero-actions .btn.alt {
  background: rgba(255,255,255,.14) !important;
  color: #fff !important;
  border: 2px solid rgba(143,191,210,.9) !important;
  backdrop-filter: blur(8px);
}

.hero-actions .btn:hover,
.btn:hover {
  background: var(--accent-blue-dark, #f7e6ca) !important;
  border-color: var(--accent-blue-dark, #f7e6ca) !important;
}

/* Footer im hellblauen Wellen-Stil */
.site-footer {
  position: relative;
  background: var(--footer-light, #EAF4F7) !important;
  color: var(--footer-text, #1F2A44) !important;
  padding: 150px 6vw 34px !important;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  top: 0;
  height: 150px;
  background:
    linear-gradient(174deg, var(--footer-mid, #D7E8EE) 0 48%, transparent 49%),
    linear-gradient(187deg, rgba(143,191,210,.35) 0 46%, transparent 47%);
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  top: 78px;
  height: 90px;
  background: rgba(255,255,255,.35);
  transform: skewY(-4deg);
  pointer-events: none;
}

.site-footer .footer-grid,
.site-footer .footer-bottom {
  position: relative;
  z-index: 2;
}

.site-footer h3 {
  color: var(--footer-text, #1F2A44) !important;
}

.site-footer p,
.site-footer a {
  color: rgba(31,42,68,.82) !important;
}

.footer-bottom {
  border-top: 1px solid rgba(31,42,68,.18) !important;
  color: rgba(31,42,68,.68) !important;
}

.footer-grid {
  align-items: start;
}

.footer-grid a {
  display: inline-block;
  margin: 4px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 760px) {
  .site-footer {
    padding-top: 120px !important;
  }
}


/* Betreuung/Krankmeldung v6.6 */
.info-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.info-card-link:hover .card {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px rgba(15,23,42,.12);
}

.info-card-link .card {
  transition: transform .2s ease, box-shadow .2s ease;
}

.info-card-link .btn,
.info-card-link a.btn,
.two-col .card .btn {
  display: none !important;
}

/* Mobile Menu Blue v6.7 */
:root{
  --accent-blue:#f7e6ca;
}

.menu-toggle,
.mobile-menu-toggle,
.nav-toggle,
.hamburger,
.hamburger-button{
  background: var(--accent-blue) !important;
  border-color: var(--accent-blue) !important;
}

.menu-toggle:hover,
.mobile-menu-toggle:hover,
.nav-toggle:hover{
  background:#f7e6ca !important;
}

.mobile-nav a:hover,
.mobile-nav .current-menu-item > a,
.mobile-menu a:hover{
  color: var(--accent-blue) !important;
  border-color: var(--accent-blue) !important;
}

/* gelbe Reste überschreiben */
[class*="menu"] .active,
[class*="mobile"] .active{
  background: var(--accent-blue) !important;
  color: #102033 !important;
}


/* Nav Force v7.0 */
#aktuelles,
#termine,
#betreuung,
#downloads,
#team,
#kontakt {
  scroll-margin-top: 110px;
}


/* Header Nav Links v7.1 */
.main-nav {
  display: flex;
  gap: 34px;
  align-items: center;
}

.main-nav a,
.main-nav .nav-link {
  position: relative;
  color: #fff !important;
  text-decoration: none !important;
  cursor: pointer;
  pointer-events: auto !important;
}

.main-nav a::after,
.main-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent-blue, #f7e6ca);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}

.main-nav a:hover::after,
.main-nav a:focus::after,
.main-nav .nav-link:hover::after,
.main-nav .nav-link:focus::after {
  transform: scaleX(1);
}

.main-nav a:hover,
.main-nav a:focus {
  color: #fff !important;
  border-color: transparent !important;
}


/* Final Nav Direct v7.2 */
#aktuelles,
#termine,
#betreuung,
#krankmeldung,
#downloads,
#team,
#kontakt {
  scroll-margin-top: 115px;
}

.main-nav a {
  cursor: pointer;
  pointer-events: auto !important;
}

.main-nav a:hover {
  border-color: transparent !important;
}

.main-nav a::after {
  content: "";
  display: block;
  height: 4px;
  border-radius: 999px;
  background: var(--accent-blue, #f7e6ca);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
  margin-top: 8px;
}

.main-nav a:hover::after,
.main-nav a:focus::after {
  transform: scaleX(1);
}


/* Header Navigation Final v7.3 */
.site-header {
  pointer-events: auto !important;
}

.main-nav,
.main-nav a,
.mobile-panel,
.mobile-panel a {
  pointer-events: auto !important;
}

.main-nav a {
  cursor: pointer !important;
  position: relative;
  border-bottom: 0 !important;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent-blue, #f7e6ca);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}

.main-nav a:hover::after,
.main-nav a:focus::after {
  transform: scaleX(1);
}

#aktuelles,
#termine,
#betreuung,
#betreuung-anchor,
#betreuung-krankmeldung,
#downloads,
#team,
#kontakt {
  scroll-margin-top: 125px;
}


/* Nav Simple v7.4 - normale Ankerlinks wie Downloads/Team */
html {
  scroll-behavior: smooth;
}

#aktuelles,
#termine,
#betreuung,
#downloads,
#team,
#kontakt {
  scroll-margin-top: 120px;
}

.main-nav a {
  position: relative !important;
  text-decoration: none !important;
  border-bottom: none !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 4px;
  background: var(--accent-blue, #f7e6ca);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}

.main-nav a:hover::after,
.main-nav a:focus::after {
  transform: scaleX(1);
}

.main-nav a:hover,
.main-nav a:focus {
  color: #fff !important;
  border-color: transparent !important;
}


/* Mobile Menu Restore v7.5 */
.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--accent-blue, #f7e6ca) !important;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 1002;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: #102033;
}

.mobile-panel {
  display: none;
}

@media (max-width: 900px) {
  .main-nav {
    display: none !important;
  }

  .menu-toggle {
    display: inline-flex !important;
    position: relative;
  }

  .mobile-panel {
    position: fixed;
    top: 78px;
    right: 18px;
    left: 18px;
    display: grid;
    gap: 10px;
    background: rgba(255,255,255,.96);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 24px 60px rgba(15,23,42,.22);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 1001;
  }

  .mobile-panel.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-panel a {
    color: #102033 !important;
    text-decoration: none !important;
    font-weight: 900;
    font-size: 20px;
    padding: 13px 14px;
    border-radius: 14px;
  }

  .mobile-panel a:hover,
  .mobile-panel a:focus {
    background: rgba(143,191,210,.25) !important;
    color: #102033 !important;
  }
}


/* Navigation Clean v7.6 */
html {
  scroll-behavior: smooth;
}

#aktuelles,
#termine,
#betreuung,
#betreuung-top,
#betreuung-krankmeldung,
#downloads,
#team,
#kontakt {
  scroll-margin-top: 120px;
}

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.main-nav a {
  position: relative;
  font-weight: 800;
  padding: 12px 0;
  border-bottom: 0 !important;
  text-decoration: none !important;
  cursor: pointer;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent-blue, #f7e6ca);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}

.main-nav a:hover::after,
.main-nav a:focus::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--accent-blue, #f7e6ca) !important;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 1002;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: #102033;
}

.mobile-panel {
  display: none;
}

@media (max-width: 900px) {
  .main-nav {
    display: none !important;
  }

  .menu-toggle {
    display: inline-flex !important;
  }

  .mobile-panel {
    position: fixed;
    top: 78px;
    right: 18px;
    left: 18px;
    display: grid;
    gap: 10px;
    background: rgba(255,255,255,.97);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 24px 60px rgba(15,23,42,.22);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 1001;
  }

  .mobile-panel.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-panel a {
    color: #102033 !important;
    text-decoration: none !important;
    font-weight: 900;
    font-size: 20px;
    padding: 13px 14px;
    border-radius: 14px;
  }

  .mobile-panel a:hover,
  .mobile-panel a:focus {
    background: rgba(143,191,210,.25) !important;
  }
}


/* Nav Like Quicklinks v7.8 */
html {
  scroll-behavior: smooth;
}

#aktuelles,
#termine,
#betreuung,
#downloads,
#team,
#kontakt {
  scroll-margin-top: 120px;
}

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.main-nav a {
  position: relative !important;
  display: inline-block;
  font-weight: 800;
  padding: 12px 0;
  border-bottom: 0 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent-blue, #f7e6ca);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}

.main-nav a:hover::after,
.main-nav a:focus::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--accent-blue, #f7e6ca) !important;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 1002;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: #102033;
}

.mobile-panel {
  display: none;
}

@media (max-width: 900px) {
  .main-nav {
    display: none !important;
  }

  .menu-toggle {
    display: inline-flex !important;
  }

  .mobile-panel {
    position: fixed;
    top: 78px;
    right: 18px;
    left: 18px;
    display: grid;
    gap: 10px;
    background: rgba(255,255,255,.97);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 24px 60px rgba(15,23,42,.22);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 1001;
  }

  .mobile-panel.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-panel a {
    color: #102033 !important;
    text-decoration: none !important;
    font-weight: 900;
    font-size: 20px;
    padding: 13px 14px;
    border-radius: 14px;
  }

  .mobile-panel a:hover,
  .mobile-panel a:focus {
    background: rgba(143,191,210,.25) !important;
  }
}


/* Hamburger Sand v8.0 */
:root {
  --accent-blue: #f7e6ca !important;
  --accent-blue-dark: #ead3ad !important;
  --blue: #f7e6ca !important;
  --blue-dark: #ead3ad !important;
}

/* Desktop: Textmenü weg, Hamburger-Menü oben rechts */
.main-nav {
  display: none !important;
}

.menu-toggle {
  display: inline-flex !important;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: #f7e6ca !important;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 1002;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: #102033 !important;
}

.mobile-panel {
  position: fixed;
  top: 86px;
  right: 24px;
  width: min(360px, calc(100vw - 36px));
  display: grid !important;
  gap: 10px;
  background: rgba(255,255,255,.97);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(15,23,42,.22);
  transform: translateY(-16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 1001;
}

.mobile-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-panel a {
  color: #102033 !important;
  text-decoration: none !important;
  font-weight: 900;
  font-size: 20px;
  padding: 13px 14px;
  border-radius: 14px;
}

.mobile-panel a:hover,
.mobile-panel a:focus {
  background: rgba(247,230,202,.55) !important;
}

.quicklink::before,
.card,
.news-card,
.download-card,
.team-card,
.event-item,
.empty-news {
  border-top-color: #f7e6ca !important;
}

.quicklink::before {
  background: #f7e6ca !important;
}

.hero-actions .btn,
.btn {
  background: #f7e6ca !important;
  border-color: #f7e6ca !important;
  color: #102033 !important;
}

.hero-actions .btn.alt {
  border-color: #f7e6ca !important;
}

#aktuelles,
#termine,
#betreuung,
#downloads,
#team,
#kontakt {
  scroll-margin-top: 120px;
}

@media (max-width: 900px) {
  .mobile-panel {
    left: 18px;
    right: 18px;
    width: auto;
    top: 78px;
  }
}


/* Quicklinks + Back-to-top v8.1 */
#aktuelles,#termine,#betreuung,#krankmeldung,#downloads,#team,#kontakt {
  scroll-margin-top: 120px;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: #f7e6ca;
  color: #102033;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(15,23,42,.22);
  z-index: 1200;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, box-shadow .18s ease;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover,
.back-to-top:focus {
  box-shadow: 0 22px 50px rgba(15,23,42,.28);
}

@media (max-width: 760px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
    font-size: 26px;
  }
}




/* Little Bird Quicklink v8.4 */
.quicklinks {
  row-gap: 18px;
}


/* Little Bird Menu Fix v8.5 */
.menu-toggle {
  display: inline-flex !important;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: #f7e6ca !important;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 10002;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: #102033 !important;
}

.mobile-panel {
  position: fixed !important;
  top: 86px !important;
  right: 24px !important;
  width: min(360px, calc(100vw - 36px)) !important;
  left: auto !important;
  display: grid !important;
  gap: 10px;
  background: rgba(255,255,255,.97) !important;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(15,23,42,.22);
  transform: translateY(-16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 10001;
}

.mobile-panel.open {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.mobile-panel a {
  color: #102033 !important;
  text-decoration: none !important;
  font-weight: 900;
  font-size: 20px;
  padding: 13px 14px;
  border-radius: 14px;
}

.mobile-panel a:hover,
.mobile-panel a:focus {
  background: rgba(247,230,202,.55) !important;
}

@media (max-width: 900px) {
  .mobile-panel {
    left: 18px !important;
    right: 18px !important;
    width: auto !important;
    top: 78px !important;
  }
}






/* Aufbau-Banner Simple Final v8.6.4 */
.construction-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 34px;
  background: #c1121f;
  color: #fff;
  z-index: 10050;
  overflow: hidden;
  display: flex;
  align-items: center;
  font-weight: 900;
  letter-spacing: .02em;
  box-shadow: 0 8px 18px rgba(15,23,42,.16);
}

.construction-banner-track {
  display: flex;
  width: max-content;
  gap: 64px;
  white-space: nowrap;
  animation: gshConstructionMarquee 22s linear infinite;
}

.construction-banner-track span {
  display: inline-flex;
  align-items: center;
  padding-left: 64px;
  text-transform: uppercase;
}

@keyframes gshConstructionMarquee {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

body.has-construction-banner .site-header {
  top: 34px !important;
}

body.has-construction-banner .mobile-panel {
  top: 120px !important;
}

@media (max-width: 900px) {
  .construction-banner {
    height: 32px;
    font-size: 13px;
  }

  body.has-construction-banner .site-header {
    top: 32px !important;
  }

  body.has-construction-banner .mobile-panel {
    top: 110px !important;
  }
}


/* Aufbau-Banner Direct Save v8.6.5 */
.construction-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 34px;
  background: #c1121f;
  color: #fff;
  z-index: 10050;
  overflow: hidden;
  display: flex;
  align-items: center;
  font-weight: 900;
  letter-spacing: .02em;
  box-shadow: 0 8px 18px rgba(15,23,42,.16);
}

.construction-banner-track {
  display: flex;
  width: max-content;
  gap: 64px;
  white-space: nowrap;
  animation: gshConstructionMarquee 22s linear infinite;
}

.construction-banner-track span {
  display: inline-flex;
  align-items: center;
  padding-left: 64px;
  text-transform: uppercase;
}

@keyframes gshConstructionMarquee {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

body.has-construction-banner .site-header {
  top: 34px !important;
}

body.has-construction-banner .mobile-panel {
  top: 120px !important;
}

@media (max-width: 900px) {
  .construction-banner {
    height: 32px;
    font-size: 13px;
  }

  body.has-construction-banner .site-header {
    top: 32px !important;
  }

  body.has-construction-banner .mobile-panel {
    top: 110px !important;
  }
}


/* Kachel-Icons Clean Base v8.6.9 */
.quicklink .kachel-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 42px !important;
  height: 42px !important;
  margin: 0 0 14px 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #102033 !important;
  font-size: 0 !important;
  line-height: 1 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.quicklink .kachel-icon svg {
  width: 31px !important;
  height: 31px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  display: block !important;
}

.quicklink .kachel-icon svg.icon-red {
  color: #c1121f !important;
  stroke-width: 2.2 !important;
}

.quicklink .little-bird-icon {
  width: 82px !important;
  height: 42px !important;
}

.quicklink .little-bird-real-logo {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 82px !important;
  max-height: 42px !important;
  object-fit: contain !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.quicklink .little-bird-fallback {
  display: block;
  font-size: 13px;
  font-weight: 900;
  line-height: .85;
  color: #139bd7;
  letter-spacing: -.04em;
}

.quicklink .little-bird-fallback b {
  color: #62b947;
}


/* Hero-Bereich kompakter */
.hero-content,
.hero-text,
.hero-inner {
    transform: translateY(-60px) !important;
}

.quicklinks {
    margin-top: -60px !important;
}

@media (max-width: 768px) {
    .hero-content,
    .hero-text,
    .hero-inner {
        transform: translateY(-30px) !important;
    }

    .quicklinks {
        margin-top: -30px !important;
    }
}


/* Hero nochmals höher */
.hero-content,
.hero-text,
.hero-inner {
    transform: translateY(-140px) !important;
}

.quicklinks {
    margin-top: -160px !important;
}

@media (max-width: 768px) {
    .hero-content,
    .hero-text,
    .hero-inner {
        transform: translateY(-60px) !important;
    }

    .quicklinks {
        margin-top: -70px !important;
    }
}


/* Aktuelles final: Titel links, Untertext rechts */
.section-title.aktuelles-title {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  align-items: end !important;
  gap: 48px !important;
  text-align: left !important;
}

.section-title.aktuelles-title h2 {
  grid-column: 1 !important;
  text-align: left !important;
  justify-self: start !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.section-title.aktuelles-title p {
  grid-column: 2 !important;
  text-align: left !important;
  justify-self: end !important;
  max-width: 620px !important;
  margin-left: auto !important;
  margin-right: 0 !important;
}

@media (max-width: 900px) {
  .section-title.aktuelles-title {
    display: block !important;
  }

  .section-title.aktuelles-title p {
    max-width: none !important;
    margin-left: 0 !important;
    margin-top: 12px !important;
  }
}


/* Zielbereich-Icons + Cookie-Reiter-Fix v8.6.12.5 */
.heading-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.section-heading-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #102033 !important;
  font-size: 0 !important;
  line-height: 1 !important;
  opacity: 1 !important;
  visibility: visible !important;
  flex: 0 0 auto;
}

.section-heading-icon svg {
  width: 32px !important;
  height: 32px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  display: block !important;
}

.section-heading-icon svg.icon-red {
  color: #c1121f !important;
  stroke-width: 2.2 !important;
}

.heading-with-icon-small {
  gap: 10px;
}

.heading-with-icon-small .section-heading-icon {
  width: 34px !important;
  height: 34px !important;
}

.heading-with-icon-small .section-heading-icon svg {
  width: 28px !important;
  height: 28px !important;
}

.heading-with-icon-footer {
  gap: 10px;
}

.heading-with-icon-footer .section-heading-icon {
  color: inherit !important;
  width: 30px !important;
  height: 30px !important;
}

.heading-with-icon-footer .section-heading-icon svg {
  width: 24px !important;
  height: 24px !important;
}

/* Complianz: schwebenden Cookie-Reiter nach Zustimmung ausblenden, besonders mobil */
.cmplz-cookiebanner.cmplz-dismissed,
.cmplz-cookiebanner.cmplz-dismissed + .cmplz-revoke,
.cmplz-cookiebanner.cmplz-dismissed ~ .cmplz-revoke,
.cmplz-revoke.cmplz-hidden,
.cmplz-show-banner.cmplz-hidden {
  display: none !important;
}

body.cmplz-marketing-accepted .cmplz-revoke,
body.cmplz-statistics-accepted .cmplz-revoke,
body.cmplz-functional-accepted .cmplz-revoke,
body.cmplz-marketing-accepted .cmplz-show-banner,
body.cmplz-statistics-accepted .cmplz-show-banner,
body.cmplz-functional-accepted .cmplz-show-banner {
  display: none !important;
}

@media (max-width: 768px) {
  .cmplz-revoke,
  .cmplz-show-banner {
    display: none !important;
  }

  .heading-with-icon {
    gap: 10px;
  }

  .section-heading-icon {
    width: 36px !important;
    height: 36px !important;
  }

  .section-heading-icon svg {
    width: 28px !important;
    height: 28px !important;
  }
}


/* Hamburger-Menü SVG-Icons v8.6.12.6 */
.mobile-panel a {
  display: flex !important;
  align-items: center !important;
  gap: 13px !important;
}

.mobile-panel .menu-svg-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: #102033 !important;
  font-size: 0 !important;
  line-height: 1 !important;
}

.mobile-panel .menu-svg-icon svg {
  width: 25px !important;
  height: 25px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  display: block !important;
}

.mobile-panel .menu-svg-icon svg.icon-red {
  color: #c1121f !important;
  stroke-width: 2.2 !important;
}

.mobile-panel .menu-svg-icon.little-bird-icon {
  width: 54px !important;
  flex-basis: 54px !important;
  justify-content: flex-start !important;
}

.mobile-panel .little-bird-real-logo {
  display: block !important;
  max-width: 54px !important;
  max-height: 30px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

.mobile-panel .menu-label {
  display: inline-block !important;
}


/* Rechtliches im Footer v8.6.12.7 */
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.18);
  margin-top: 28px;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.footer-legal a {
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  opacity: .9;
}

.footer-legal a:hover,
.footer-legal a:focus {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}


/* v8.6.12.8 */
.hero-content,.hero-text,.hero-inner{
 transform:translateY(-170px)!important;
}
.quicklinks{
 margin-top:-240px!important;
}
@media(max-width:768px){
 .hero-content,.hero-text,.hero-inner{transform:translateY(-80px)!important;}
 .quicklinks{margin-top:-100px!important;}
}




/* v8.6.13.3 Slogan exakt an Quicklink-Kante */
.hero-content {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  align-items: flex-start !important;
  text-align: left !important;
}

.hero-slogan,
.hero-content .hero-slogan,
.hero-content h1 {
  position: static !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  text-align: left !important;
  width: auto !important;
  max-width: none !important;
  margin-left: clamp(52px, 5.7vw, 100px) !important;
  margin-right: 0 !important;
}

.hero-content p {
  margin-left: clamp(52px, 5.7vw, 100px) !important;
  text-align: left !important;
}

@media (max-width: 900px) {
  .hero-slogan,
  .hero-content .hero-slogan,
  .hero-content h1,
  .hero-content p {
    margin-left: 24px !important;
    margin-right: 24px !important;
  }
}


/* Rechtliches Backend v8.6.13.6 */
.legal-page {
  background: #fffaf3;
  min-height: 60vh;
}

.legal-page .section {
  padding-top: 150px;
}

.legal-title h1 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  margin: 0;
}

.legal-content {
  background: #fff;
  border-radius: 28px;
  border-top: 7px solid #f7e6ca;
  box-shadow: 0 18px 50px rgba(15,23,42,.08);
  padding: clamp(24px, 4vw, 52px);
  max-width: 1040px;
  line-height: 1.75;
  color: #102033;
}

.legal-content h2,
.legal-content h3 {
  margin-top: 1.6em;
}

.footer-legal {
  border-top: 1px solid rgba(255,255,255,.18);
  margin-top: 28px;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.footer-legal a {
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  opacity: .9;
}

.footer-legal a:hover,
.footer-legal a:focus {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}


/* Bildechingen Fix: Lesbarkeit Seitentitel auf Unterseiten */
body:not(.home) .site-title,
body:not(.home) .custom-logo-title,
body:not(.home) .hero-title,
body:not(.home) .site-branding h1,
body:not(.home) .site-branding a{
    color:#0b1736 !important;
}


/* Bildechingen Fix r3: Header-Schrift auf allen Unterseiten lesbar machen */
body:not(.home) .site-header,
body:not(.front-page) .site-header,
body:not(.home) .site-header .logo,
body:not(.front-page) .site-header .logo,
body:not(.home) .site-header .logo span,
body:not(.front-page) .site-header .logo span,
body:not(.home) .site-header .logo small,
body:not(.front-page) .site-header .logo small,
body.blog .site-header,
body.archive .site-header,
body.single .site-header,
body.page .site-header {
    color: #0b1736 !important;
}

body:not(.home) .site-header .menu-toggle span,
body:not(.front-page) .site-header .menu-toggle span,
body.blog .site-header .menu-toggle span,
body.archive .site-header .menu-toggle span,
body.single .site-header .menu-toggle span,
body.page .site-header .menu-toggle span {
    background: #0b1736 !important;
}


/* Bildechingen Fix r4 */
.home .site-title,
.home .site-branding,
.home .site-branding a{
    color:#ffffff !important;
}

.page .site-title,
.single .site-title,
.archive .site-title,
.blog .site-title,
.page .site-branding,
.single .site-branding,
.archive .site-branding,
.blog .site-branding,
.page .site-branding a,
.single .site-branding a,
.archive .site-branding a,
.blog .site-branding a{
    color:#0b1736 !important;
}


/* Bildechingen Fix r5: Startseite gewinnt immer gegen Unterseiten-Regeln */
body.home .site-header,
body.home .site-header *,
body.home .site-title,
body.home .site-title *,
body.home .site-branding,
body.home .site-branding *,
body.home .logo,
body.home .logo *,
body.front-page .site-header,
body.front-page .site-header *,
body.front-page .site-title,
body.front-page .site-title *,
body.front-page .site-branding,
body.front-page .site-branding *,
body.front-page .logo,
body.front-page .logo * {
    color: #ffffff !important;
}

/* Hamburger auf Startseite dunkel lassen, damit er auf hellem Button sichtbar bleibt */
body.home .menu-toggle,
body.home .menu-toggle *,
body.front-page .menu-toggle,
body.front-page .menu-toggle * {
    color: #0b1736 !important;
}


/* Bildechingen Fix r6: Headerfarbe direkt über PHP-Klasse steuern */
.site-header.site-header-home,
.site-header.site-header-home .logo,
.site-header.site-header-home .logo span,
.site-header.site-header-home .logo small {
    color: #ffffff !important;
}

.site-header.site-header-subpage,
.site-header.site-header-subpage .logo,
.site-header.site-header-subpage .logo span,
.site-header.site-header-subpage .logo small {
    color: #0b1736 !important;
}

/* Menübutton bleibt immer gut lesbar */
.site-header .menu-toggle,
.site-header .menu-toggle * {
    color: #0b1736 !important;
}


/* Bildechingen Fix r7: Header von Anfang an als weiße Leiste anzeigen */
.site-header {
    background: rgba(255,255,255,0.96) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(11,23,54,0.08);
}

/* Auf der Startseite ist der Titel durch die weiße Leiste dunkelblau */
.site-header.site-header-home,
.site-header.site-header-home .logo,
.site-header.site-header-home .logo span,
.site-header.site-header-home .logo small {
    color: #0b1736 !important;
}

/* Unterseiten bleiben ebenfalls dunkelblau */
.site-header.site-header-subpage,
.site-header.site-header-subpage .logo,
.site-header.site-header-subpage .logo span,
.site-header.site-header-subpage .logo small {
    color: #0b1736 !important;
}

/* Menübutton bleibt sauber sichtbar */
.site-header .menu-toggle,
.site-header .menu-toggle * {
    color: #0b1736 !important;
}


/* Hamburger-Menü: rotes Kreuz für Krankmeldung */
.menu-icon-cross {
    color: #c62828 !important;
    font-weight: 700;
    line-height: 1;
}


/* R12 Final sauber: 3D Icons + Downloads an richtiger Stelle */
.quicklink { overflow: hidden; }

.quicklink .kachel-icon.kachel-icon-3d {
  width: 86px !important;
  height: 78px !important;
  margin: -8px 0 8px 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  background: transparent !important;
  box-shadow: none !important;
}

.quicklink .kachel-icon.kachel-icon-3d img {
  width: 86px !important;
  height: 78px !important;
  object-fit: contain !important;
  object-position: left center !important;
  display: block !important;
  filter: drop-shadow(0 8px 12px rgba(15,23,42,.16));
}

.quicklink .kachel-icon.kachel-icon-3d.littlebird-3d,
.quicklink .kachel-icon.kachel-icon-3d.littlebird-3d img {
  width: 110px !important;
}

.heading-with-icon { align-items: center !important; }

.section-heading-icon.section-heading-icon-3d {
  width: 76px !important;
  height: 76px !important;
  min-width: 76px !important;
  margin-right: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.heading-with-icon-small .section-heading-icon.section-heading-icon-3d {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  margin-right: 10px !important;
}

.section-heading-icon.section-heading-icon-3d img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  filter: drop-shadow(0 7px 10px rgba(15,23,42,.14));
}

.mobile-panel .menu-svg-icon.menu-icon-3d {
  width: 42px !important;
  height: 42px !important;
  flex: 0 0 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 4px !important;
}

.mobile-panel .menu-svg-icon.menu-icon-3d img {
  width: 38px !important;
  height: 38px !important;
  object-fit: contain !important;
  display: block !important;
  filter: drop-shadow(0 4px 7px rgba(15,23,42,.13));
}

.mobile-panel a {
  align-items: center !important;
  gap: 12px !important;
}

.mobile-panel .menu-label {
  display: inline-block !important;
}

/* Downloads: eine breite Karte wie Termine, keine kleine separate Download-Karte */
#downloads .download-grid,
#downloads .download-card {
  display: none !important;
}

#downloads .downloads-termine-card {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  padding: 34px 38px !important;
}

#downloads .downloads-termine-list {
  display: grid !important;
  gap: 22px !important;
  width: 100% !important;
}

#downloads .downloads-termine-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 28px !important;
  width: 100% !important;
}

#downloads .downloads-termine-item + .downloads-termine-item {
  padding-top: 22px !important;
  border-top: 1px solid rgba(15,23,42,.08) !important;
}

#downloads .downloads-termine-text {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

#downloads .downloads-termine-text small {
  display: block !important;
  margin-bottom: 8px !important;
  color: #e7d7b8 !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
}

#downloads .downloads-termine-text h3 {
  margin: 0 0 8px !important;
}

#downloads .downloads-termine-text p {
  margin: 0 !important;
  max-width: 820px !important;
}

#downloads .downloads-termine-item .btn {
  flex: 0 0 auto !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

@media (max-width: 760px) {
  .quicklink .kachel-icon.kachel-icon-3d {
    width: 74px !important;
    height: 68px !important;
    margin-top: -4px !important;
  }

  .quicklink .kachel-icon.kachel-icon-3d img {
    width: 74px !important;
    height: 68px !important;
  }

  .quicklink .kachel-icon.kachel-icon-3d.littlebird-3d,
  .quicklink .kachel-icon.kachel-icon-3d.littlebird-3d img {
    width: 94px !important;
  }

  .section-heading-icon.section-heading-icon-3d {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    margin-right: 10px !important;
  }

  #downloads .downloads-termine-card {
    padding: 26px 24px !important;
  }

  #downloads .downloads-termine-item {
    display: block !important;
  }

  #downloads .downloads-termine-item .btn {
    margin-top: 18px !important;
    display: inline-flex !important;
  }
}


/* r33: Mobile Kachel-Hitboxen fixen
   Ursache: Auf iPhone lagen visuelle Kachel und echte Linkfläche nicht deckungsgleich.
   Desktop bleibt unverändert. */
@media (max-width: 760px) {
    section.quicklinks[aria-label="Schnellzugriffe"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        align-items: stretch !important;
        position: relative !important;
        isolation: isolate !important;
    }

    section.quicklinks[aria-label="Schnellzugriffe"] > a.quicklink {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;

        position: relative !important;
        inset: auto !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;

        grid-column: auto !important;
        grid-row: auto !important;
        float: none !important;
        clear: both !important;

        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 142px !important;
        margin: 0 !important;
        transform: none !important;

        box-sizing: border-box !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        z-index: 1 !important;
        overflow: hidden !important;
    }

    section.quicklinks[aria-label="Schnellzugriffe"] > a.quicklink:hover,
    section.quicklinks[aria-label="Schnellzugriffe"] > a.quicklink:focus,
    section.quicklinks[aria-label="Schnellzugriffe"] > a.quicklink:active {
        transform: none !important;
    }

    section.quicklinks[aria-label="Schnellzugriffe"] > a.quicklink::before,
    section.quicklinks[aria-label="Schnellzugriffe"] > a.quicklink::after,
    section.quicklinks[aria-label="Schnellzugriffe"] > a.quicklink > * {
        pointer-events: none !important;
    }
}

#aktuelles,
#termine,
#betreuung,
#krankmeldung,
#downloads,
#kontakt,
#team {
    scroll-margin-top: 96px;
}


/* r34: Mobile Safari Kachel-Klicks stabilisieren
   Ursache: Das geschlossene Mobile-Menü und der ausgeblendete Nach-oben-Button
   blieben als fixe, transformierte, nur transparente Layer im Viewport.
   In iPhone/Safari kann das Touch-Hit-Testing dadurch nach Scrollen verspringen.
   Optik im sichtbaren Zustand bleibt unverändert. */
.mobile-panel:not(.open) {
  visibility: hidden !important;
  transform: none !important;
}

.mobile-panel.open {
  visibility: visible !important;
}

.back-to-top:not(.visible) {
  visibility: hidden !important;
  transform: none !important;
}

.back-to-top.visible {
  visibility: visible !important;
}

@media (max-width: 760px) {
  section.quicklinks[aria-label="Schnellzugriffe"] {
    z-index: 20 !important;
  }

  section.quicklinks[aria-label="Schnellzugriffe"] > a.quicklink {
    isolation: isolate !important;
  }
}
