/*
Theme Name: Grundschule Horb V8.1 Quicklinks Backtop
Author: ChatGPT
Version: 8.1
Description: Grundschul-Theme mit Hero-Slider, News und Terminverwaltung.
*/

: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;
  }
}


/* Aktuelles Menu + Blue Header Hover v6.5 */
.main-nav a:hover,
.main-nav a:focus,
.main-nav a.current,
.main-nav a[aria-current="page"] {
  border-color: var(--accent-blue, #f7e6ca) !important;
}

body.scrolled .main-nav a:hover,
body.scrolled .main-nav a:focus {
  border-color: var(--accent-blue, #f7e6ca) !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;
  }
}
