/* START: Globaler Seitenhintergrund – umgedreht und aufgehellt */
body, .body-wrapper, .body-innerwrapper {
  background: linear-gradient(to bottom,
    #3a6fd8 0%,      /* oben: dunkles Blaugrau */
    #003399 30%,     /* mittleres Vereinsblau */
    #3399ff 60%,     /* helles Logo-Blau */
    #66ccff 100%     /* sehr helles Blau – unten */
  ) !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  color: #ffffff !important;
}
/* END: Globaler Seitenhintergrund */

/* Einheitliche Icon-Größe für alle Menübilder */
.sp-megamenu-parent img[src*="/images/icons/"] {
  width: 40px !important;
  height: 40px !important;
  object-fit: contain;
  flex-shrink: 0;
  margin-right: 8px;
}




/* ===== START: Header & Top-Bar ===== */
#sp-top-bar,
#sp-header,
#sp-header .container {
  background: transparent !important;
  color: #ffffff !important;
  padding-left: 0 !important;
}

/* Logo */
.sp-logo img,
.logo img {
  height: 100px !important;
  width: auto !important;
  max-height: 100px !important;
  max-width: none !important;
}
#sp-header .container,
#sp-header .row,
.sp-logo {
  padding-left: 0 !important;
  margin-left: 0 !important;
  text-align: left !important;
}

/* ===== END: Header & Top-Bar ===== */


/* ===== START: Hauptbereich ===== */
#sp-main,
#sp-section-1,
#sp-main-body,
#sp-component {
  background: transparent !important;
  color: #ffffff !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
/* ===== END: Hauptbereich ===== */


/* ===== START: Footer & untere Bereiche ===== */
#sp-footer,
#sp-bottom,
.sp-footer,
.sp-bottom {
  background: transparent !important;
  color: #ffffff !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  border: none !important;
}
/* ===== END: Footer & untere Bereiche ===== */


/* ===== START: Container-Absicherung ===== */
.sp-header,
.sp-footer,
.sp-pagebuilder,
.sp-module,
.container,
.container-fluid,
.row,
section,
footer {
  background: transparent !important;
}
.sp-module:empty,
.container:empty,
.row:empty {
  display: none !important;
}
/* ===== END: Container-Absicherung ===== */



/* ============================================================
   MENÜ – BEREINIGT & OPTIMIERT FÜR 32px SVG-ICONS
   ============================================================ */

/* Grundlayout aller Menüpunkte */
.sp-megamenu-parent > li > a,
#sp-header .sp-megamenu-parent > li > a {
  display: flex !important;
  align-items: center !important;   /* Icon + Text + Pfeil mittig */
  gap: 10px !important;             /* Abstand Icon ↔ Text */
  color: #000039 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  padding: 8px 0 !important;
  line-height: 1.4 !important;
  background: transparent !important;
}


/* Hover */
.sp-megamenu-parent > li > a:hover {
  color: #ffffff !important;
}

/* ============================================================
   ICONS – Einheitlich 32px
   ============================================================ */

/* SVG-Icons als <img> */
.sp-megamenu-parent li.sp-menu-item img[src*=".svg"] {
  width: 32px !important;
  height: 32px !important;
  object-fit: contain !important;
  display: inline-block !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
  margin-right: 6px !important;
  margin-top: -1px !important;   /* optischer Ausgleich */
}

/* ============================================================
   TEXT – sauber neben dem Icon
   ============================================================ */

.sp-megamenu-parent li.sp-menu-item .image-title {
  display: inline-block !important;
  vertical-align: middle !important;
  line-height: 1.3 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}

/* ============================================================
   DROPDOWN-PFEILE – optisch mittig
   ============================================================ */

/* Helix-Pfeil als <span class="caret"> */
.sp-megamenu-parent li.sp-menu-item .caret {
  position: relative !important;
  top: 3px !important;        /* leicht nach unten */
  margin-left: 6px !important;
  font-size: 0.9em !important;
  color: #003366 !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

/* Falls Helix ::after verwendet */
.sp-megamenu-parent .sp-has-child > a::after {
  position: relative !important;
  top: 3px !important;
  margin-left: 6px !important;
  font-size: 0.9em !important;
  color: #003366 !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

/* ============================================================
   MENÜZEILE – ruhige Höhe
   ============================================================ */

.sp-megamenu-parent li.sp-menu-item {
  height: auto !important;
  line-height: 1.4 !important;
  vertical-align: middle !important;
}

.sp-megamenu-parent li.sp-menu-item > a,
.sp-megamenu-parent li.sp-menu-item > .sp-menu-heading {
  height: auto !important;
  padding: 8px 0 !important;
  display: flex !important;
  align-items: center !important;
}

/* ===== START: Abstand zwischen Menüpunkten – fein abgestimmt ===== */

/* Horizontaler Abstand im Hauptmenü */
.sp-megamenu-parent > li {
  margin-right: 12px !important;   /* vorher meist 8px oder 0px */
}

/* Optional: letzter Menüpunkt ohne Extra-Abstand */
.sp-megamenu-parent > li:last-child {
  margin-right: 0 !important;
}

/* ===== END: Abstand ===== */


/* Aktiven Menüpunkt neutralisieren – keine Schattierung, kein Hintergrund */
.sp-megamenu-parent li.active > a,
.sp-megamenu-parent li.current > a,
.sp-megamenu-parent li.current-item > a {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: inherit !important; /* verhindert erzwungenes Weiß */
}


/* -----------------------------------------------------------
   FOOTER 1 – ICON-LINKS (Impressum, Datenschutz, Satzung, Antrag)
----------------------------------------------------------- */

.footer1-container {
  background: rgba(255, 255, 255, 0.06);
  padding: 16px 20px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 900px;
  margin: 20px auto;
  display: flex;
  justify-content: flex-start;
  gap: 28px;
  flex-wrap: wrap;
}

.footer1-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: #ffffff;
  font-size: 12px;
  gap: 4px;
  transition: transform 0.25s ease;
}

.footer1-link:hover {
  transform: translateY(-1px);
}

.footer1-icon {
  width: 44px;
  height: 44px;
}

/* Standardfarbe für alle Icons */
.footer1-icon path,
.footer1-icon rect,
.footer1-icon circle {
  stroke: #ffffff;
}

.footer1-icon text {
  fill: #ffffff !important;
}


/* Pfeil-Standard */
.footer1-icon .arrow {
  stroke: #ffffff;
  transition: stroke 0.25s ease,
              transform 0.35s cubic-bezier(0.25, 1.5, 0.5, 1),
              filter 0.35s ease;
  transform-origin: center;
}

/* HOVER: MAXIMALER EFFEKT */ .footer1-link:hover .footer1-icon .arrow {
 stroke: url(#footerArrowGradient) !important;

 /* Pop-Out + Micro Tilt */
 transform: scale(1.55) translateY(1px) rotate(3deg);

 /* Mehrschichtiger Plasma-Aurora-Glow */
 filter:
 drop-shadow(0 0 10px #3aaaff)
 drop-shadow(0 0 18px #00eaff)
 drop-shadow(0 0 26px #00ffbf);

 /* Pulsierender Glow */ animation: auroraPulse 0.8s ease-out;
 }

 /* Glow-Pulse Animation */
 @keyframes auroraPulse {
 0% { filter: drop-shadow(0 0 0px #3aaaff); } 
 50% { filter: drop-shadow(0 0 22px #00eaff); }
 100% { filter: drop-shadow(0 0 12px #3aaaff); }
 }

 /* ICON-BOX-GLOW */ 
.footer1-link:hover .footer1-icon {
 filter:
 drop-shadow(0 0 6px #3aaaff)
 drop-shadow(0 0 12px #00eaff); 
} 

/* LINK-HOVER-BEWEGUNG */
 .footer1-link:hover { transform: translateY(-2px);
 }

.footer1-container,
.footer2-container {
  height: 100px; /* oder 104px, je nach Geschmack */
  display: flex;
  align-items: center;
}


.footer-separator { /* Trennlinie zwischen Footer1 und Footer2 */
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 12px 0;
}

/* Grundstil des Info-Icons */
.footer1-info {
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  border: 1.5px solid rgba(255,255,255,0.9);
  color: rgba(255,255,255,0.95);
  padding: 0 5px;
  border-radius: 50%;
  margin-left: 6px;
  cursor: help;
  position: relative;
  top: -1px;
  font-weight: 600;

  /* sanftes Einblenden */
  opacity: 0;
  transform: scale(0.85);
  animation: infoFadeIn 0.35s ease-out forwards;
}

/* Hover: leicht größer + Glow */
.footer1-info:hover {
  transform: scale(1.12);
  box-shadow: 0 0 6px rgba(255,255,255,0.8);
}

/* Tooltip */
.footer1-info:hover::after {
  content: "ℹ️  Bitte ausdrucken, unterschreiben und per Mail, Post oder persönlich zurückgeben.";
  position: absolute;
  left: 50%;
  bottom: 130%;
  transform: translateX(-50%) translateY(6px);
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.80) 100%
  );
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 11px;
  width: 240px;
  text-align: center;
  color: #fff;
  pointer-events: none;
  z-index: 999;
  white-space: normal;
  opacity: 0;
  box-shadow: 0 0 10px rgba(255,255,255,0.25);

  /* animiertes Einblenden */
  animation: tooltipFade 0.25s ease-out forwards;
}

/* Tooltip-Pfeil */
.footer1-info:hover::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 120%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(0,0,0,0.85) transparent transparent transparent;
}

/* Keyframes für Info-Icon */
@keyframes infoFadeIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Keyframes für Tooltip */
@keyframes tooltipFade {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* -----------------------------------------------------------
   END FOOTER 1 – ICON-LINKS (Impressum, Datenschutz, Satzung, Antrag)
----------------------------------------------------------- */

/* ===========================================================
   FOOTER 2 – ALT (VOLLSTÄNDIG DEAKTIVIERT)
   -----------------------------------------------------------
   Dieser Block ist auskommentiert, damit Footer2 nicht länger
   durch alte Layout-Regeln beeinflusst wird.
   Kann jederzeit wieder aktiviert werden.
=========================================================== */

/*
.footer2-container {
  background: rgba(255, 255, 255, 0.06);
  padding: 16px 20px;
  padding-left: 80px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 57, 0.15);
  max-width: 600px;
  margin: 20px 0;
  text-align: center;
  color: #000039;
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.95;
}

.footer2-container p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.footer-icon,
.footer-logo {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}

.footer-logo {
  width: 38px;
  height: 38px;
  margin-bottom: 0.4em;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.footer-logo:hover {
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.6));
  transform: translateY(-2px);
}

.footer-text {
  font-size: 12px;
  color: #000039;
  white-space: nowrap;
  line-height: 1.4;
}

.footer1-container,
.footer2-container {
  margin-left: 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 6px rgba(255,255,255,0.08);
}

.footer2-container {
  padding: 16px 20px;
}

.footer1-container,
.footer2-container {
  height: 100px;
  display: flex;
  align-items: center;
}

.footer2-copyright {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #000039;
}

.footer2-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  margin-right: 8px;
  position: relative;
  top: -10px;
}

.footer2-textblock {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.footer2-title {
  font-size: 13px;
  font-weight: 600;
  color: #000039;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer2-motto-box {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(90deg, #b3d9ff 0%, #6fa8dc 100%);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,57,0.15);
  box-shadow: 0 0 6px rgba(0,0,57,0.1);
  font-size: 11px;
  color: #000039;
  font-weight: 500;
  max-width: 320px;
}

.footer2-info {
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  border: 1.5px solid rgba(0,0,57,0.9);
  color: rgba(0,0,57,0.95);
  padding: 0 5px;
  border-radius: 50%;
  cursor: help;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer2-info:hover {
  transform: scale(1.2) rotate(4deg);
  box-shadow: 0 0 8px rgba(0,0,57,0.4);
}

.footer2-info:hover::after {
  content: "Inhalte, Layout und Daten sind urheberrechtlich geschützt.";
  position: absolute;
  left: 50%;
  bottom: 130%;
  transform: translateX(-50%) translateY(6px);
  background: linear-gradient(180deg, rgba(0,0,0,0.92), rgba(0,0,0,0.80));
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 11px;
  width: 240px;
  text-align: center;
  color: #fff;
  pointer-events: none;
  z-index: 999;
  white-space: normal;
  opacity: 0;
  box-shadow: 0 0 10px rgba(255,255,255,0.25);
  animation: footer2TooltipFade 0.25s ease-out forwards;
}

.footer2-info:hover::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 120%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(0,0,0,0.85) transparent transparent transparent;
}

@keyframes footer2TooltipFade {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.footer2-peace {
  font-size: 24px;
  cursor: help;
  margin-left: 8px;
  position: relative;
  top: -1px;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.footer2-peace:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.6));
}

.footer2-peace:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: 130%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.9);
  color: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  width: 260px;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 0 10px rgba(255,255,255,0.25);
  z-index: 999;
  white-space: normal;
  opacity: 0;
  animation: footer2TooltipFade 0.25s ease-out forwards;
}

.footer2-peace:hover::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 120%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(0,0,0,0.9) transparent transparent transparent;
}

*/



/* ============================================================
   END MENÜ – BEREINIGT & OPTIMIERT FÜR 32px SVG-ICONS
   ============================================================ */


/* Dropdowns optisch mittig unter dem Menüpunkt positionieren */
.sp-megamenu-parent li.sp-has-child > .sp-dropdown.sp-dropdown-main {
  left: 50% !important;
  transform: translateX(-50%) !important;
  min-width: 280px;
  max-width: 90vw;
  z-index: 9999;
}


/* Pfeil nur bei Statistische Daten */
.sp-menu-item.sp-has-child img[alt="Statistische Daten"] + .image-title::after {
    content: "▾"; /* Pfeil unten */
    font-size: 0.9em;
    color: #ffffff;
    margin-left: 10px;
    position: relative;
    top: 2px;
}



/* Globale Links */
a,
a:link,
a:visited,
a:active {
  color: #000039 !important;
  text-decoration: none;
}
a:hover,
a:focus {
  color: #3fa7a7 !important;   /* Hover-Petrol */
  text-decoration: none;
}
/* ===== END: Menü-Schrift & Links ===== */


/* ===== START: Seitenlayout mittig ===== */
body {
  margin: 0 auto !important;
  max-width: 1200px;
}
.container,
.container-fluid {
  margin: 0 auto !important;
}
/* ===== END: Seitenlayout mittig ===== */


/* ===== START: Weißer Bereich unten entfernen ===== */
.sp-pagebuilder:last-child,
body > .container:last-child,
body > .row:last-child {
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  border: none !important;
}
#sp-footer,
.sp-footer {
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}
/* ===== END: Weißer Bereich unten entfernen ===== */


/* ===== START: Hintergrund-Override aus preset1.css neutralisieren ===== */
body {
  background: linear-gradient(to bottom, #003399, #1a1a1a) !important;
  background-color: transparent !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  color: #ffffff !important;
}
.sp-preloader {
  background-color: transparent !important;
  color: #ffffff !important;
}
/* ===== END: Hintergrund-Override neutralisieren ===== */


/* ===== Modernes Wetterdesign ===== */

/* ──────────────────────────────────────────────── */
/* Wetterbox Mallersdorf – ruhiges, modernes Design */
/* ──────────────────────────────────────────────── */
#weather-de .psv-weather-table {
  border-radius: 8px !important;
  border: 3px solid rgba(255, 255, 255, 0.2) !important;
  background-color: rgba(180, 200, 230, 0.08) !important; /* sehr helles Blau */
  box-shadow: 0 0 10px rgba(180, 200, 230, 0.2);
  overflow: hidden;
}

#weather-de #wetter-overlay {
  background-color: rgba(0, 0, 0, 0.35) !important;
  backdrop-filter: blur(3px);
}

#weather-de thead tr {
  background-color: rgba(180, 200, 230, 0.25) !important;
  color: #ffffff !important;
  text-shadow: none !important;
}

#weather-de tbody tr {
  background-color: rgba(180, 200, 230, 0.12) !important;
  color: #ffffff !important;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.6);
  transition: background 0.2s ease;
}

#weather-de tbody tr:hover {
  background-color: rgba(0, 180, 220, 0.35) !important;
}

#weather-de #wetter-summary {
  background-color: rgba(91, 153, 255, 0.35) !important;
  color: #ffffff !important;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
  position: relative;
  padding-top: 14px !important;
  padding: 10px !important;
  font-size: 10px !important;
  font-weight: bold;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}
/* ─────────────── Ende Mallersdorf ─────────────── */


/* ───────────────────────────────────────────── */
/* Wetterbox Pieve – mediterran, warmes Design   */
/* ───────────────────────────────────────────── */
#weather-it .psv-weather-table {
  border-radius: 8px !important;
  border: 3px solid rgba(255, 255, 255, 0.2) !important;
  background-color: rgba(255, 230, 180, 0.08) !important; /* warmes Gelb */
  box-shadow: 0 0 10px rgba(255, 230, 180, 0.2);
  overflow: hidden;
}

#weather-it #wetter-it-overlay {
  background-color: rgba(0, 0, 0, 0.35) !important;
  backdrop-filter: blur(3px);
}

#weather-it thead tr {
  background-color: rgba(255, 230, 180, 0.25) !important;
  color: #ffffff !important;
  text-shadow: none !important;
}

#weather-it tbody tr {
  background-color: rgba(255, 230, 180, 0.12) !important;
  color: #ffffff !important;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.6);
  transition: background 0.2s ease;
}

#weather-it tbody tr:hover {
  background-color: rgba(255, 180, 100, 0.35) !important;
}

#weather-it #wetter-it-summary {
  background-color: rgba(255, 200, 120, 0.35) !important;
  color: #ffffff !important;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
  position: relative;
  padding-top: 14px !important;
  padding: 10px !important;
  font-size: 10px !important;
  font-weight: bold;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}
/* ─────────────── Ende Pieve ─────────────── */


/* ───────────────────────────────────────────── */
/* Wetterbox Jedlicze – kühles, klares Design    */
/* ───────────────────────────────────────────── */
#weather-pl .psv-weather-table {
  border-radius: 8px !important;
  border: 3px solid rgba(255, 255, 255, 0.2) !important;
  background-color: rgba(200, 220, 255, 0.08) !important; /* kühles Blau */
  box-shadow: 0 0 10px rgba(200, 220, 255, 0.2);
  overflow: hidden;
}

#weather-pl #wetter-pl-overlay {
  background-color: rgba(0, 0, 0, 0.35) !important;
  backdrop-filter: blur(3px);
}

#weather-pl thead tr {
  background-color: rgba(200, 220, 255, 0.25) !important;
  color: #ffffff !important;
  text-shadow: none !important;
}

#weather-pl tbody tr {
  background-color: rgba(200, 220, 255, 0.12) !important;
  color: #ffffff !important;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.6);
  transition: background 0.2s ease;
}

#weather-pl tbody tr:hover {
  background-color: rgba(100, 180, 255, 0.35) !important;
}

#weather-pl #wetter-pl-summary {
  background-color: rgba(120, 180, 255, 0.35) !important;
  color: #ffffff !important;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
  position: relative;
  padding-top: 14px !important;
  padding: 10px !important;
  font-size: 10px !important;
  font-weight: bold;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}
/* ─────────────── Ende Jedlicze ─────────────── */

/* ───────────────────────────────────────────── */
/* Tooltip-Logik für alle Gemeinden              */
/* ───────────────────────────────────────────── */

/* Tabellen-Tooltips (unten) */
.tooltip-animated {
  position: relative;
  cursor: help;
}

.tooltip-animated::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 10px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  pointer-events: none;
  z-index: 9999;
}

.tooltip-animated:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(10px);
}

/* Summary-Tooltips (oben) */
.tooltip-summary {
  position: relative;
  cursor: help;
}

.tooltip-summary::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%) translateY(-6px);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 10px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  pointer-events: none;
  z-index: 9999;
}

.tooltip-summary:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}
/* ─────────────── Ende Tooltip-Logik ─────────────── */


/* ===== START: Kontaktansicht ===== */
.contact, 
.contact-category, 
.contact-details, 
.contact .row, 
.contact .item-page,
table.category,
table.category td,
table.category th {
  color: #ffffff !important;
}
.contact label,
.contact dt,
.contact dd {
  color: #ffffff !important;
}
table.category { border-color: #cccccc; }
/* ===== END: Kontaktansicht ===== */

/* ===== START: Menü-Icons ===== */

/* Standard-Icon für Menüeinträge (SVG oder Bild) */
.menu-icon,
.menu-icon-svg {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

/* SVG innerhalb von .menu-icon-svg vollflächig anzeigen */
.menu-icon-svg svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Große Icons (z. B. für spezielle Module oder Hervorhebungen) */
.menu-icon.large,
.menu-icon-svg.large {
  width: 40px !important;
  height: 40px !important;
}

/* Bildbasierte Icons aus /images/icons/ zentral steuern */
.mod-menu img[src*="/images/icons/"] {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain !important;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

/* ===== END: Menü-Icons ===== */


/* ===== START: Menü-Grundstruktur ===== */
.mod-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}
/* ===== END: Menü-Grundstruktur ===== */


/* ===== START: Menü-Links – Standard & Hover ===== */
.mod-menu li a {
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  color: #000039 !important;         /* Dunkelblau */
  padding: 8px 12px;
  transition: all 0.3s ease;
  text-shadow: none !important;
  background: transparent !important;
}

.mod-menu li a:hover {
  color: #5fc0c0 !important;         /* Hover: kräftiges Petrol */
  background-color: transparent !important;
  border-radius: 4px;
  text-decoration: none;
}
/* ===== END: Menü-Links – Standard & Hover ===== */


/* ===== START: Aktiver Menüpunkt ===== */
.mod-menu li.active a {
  color: #ffffff !important;
  background-color: #004080;
  border-radius: 4px;
}
/* ===== END: Aktiver Menüpunkt ===== */


/* ===== START: Dropdown-Menü ===== */
.mod-menu li ul {
  list-style: none;
  margin: 0;
  padding: 5px;
  background: #f5f5f5;
  position: absolute;
  display: none;
}
.mod-menu li:hover ul {
  display: block;
}
.mod-menu li ul li a {
  font-weight: normal;
  text-transform: none;
  color: #333;
  padding: 6px 10px;
  display: block;
}
.mod-menu li ul li a:hover {
background: #ddd;
color: #004080;
}
/* ===== END: Dropdown-Menü ===== */


/* ===== START: Helix & Bootstrap Menüfarben ===== */
.sp-megamenu-parent > li > a,
#sp-header .sp-megamenu-parent > li > a {
  color: #000039 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  text-shadow: none !important;
  background: transparent !important;
  padding: 8px 12px !important;
  text-transform: uppercase;
  font-family: Arial, sans-serif;
}

.sp-megamenu-parent > li > a:hover,
#sp-header .sp-megamenu-parent > li > a:hover {
  color: #7e25c2 !important;
  background-color: transparent !important;
  text-decoration: none;
}

.sp-megamenu-parent > li.active > a {
  color: #ffffff !important;
  background-color: #004080 !important;
  border-radius: 4px;
}

.navbar-nav > li > a {
  color: #ffffff !important;
}

ul.mod-menu > li > a,
ul.mod-menu > li > span {
  color: #ffffff !important;
}

.mod-menu li a *,
.sp-megamenu-parent > li > a * {
  color: #ffffff !important;
}
/* ===== END: Helix & Bootstrap Menüfarben ===== */


/* ===== START: Bearbeiten-Icon ausblenden ===== */
a[aria-describedby^="editarticle"] {
  display: none !important;
}
/* ===== END: Bearbeiten-Icon ausblenden ===== */


/* ===== START: Führungsteam-Icon fixieren – 28.11.2025 ===== */
img[src*="contact.png"] {
  width: 16px !important;
  height: auto !important;
  object-fit: contain !important;
  vertical-align: middle;
  margin-right: 6px;
}
/* ===== END: Führungsteam-Icon fixieren ===== */



/* ===== START: Menü-Schriftgröße & Textformat – finalisiert am 28.11.2025 ===== */
.sp-megamenu-parent > li > a,
#sp-header .sp-megamenu-parent > li > a,
.mod-menu li a {
  font-size: 16px !important;         /* Einheitliche Größe */
  text-transform: none !important;    /* Keine Großbuchstaben */
  font-weight: 600 !important;
  font-family: Arial, sans-serif;
  padding: 8px 12px;
  color: #000039 !important;
  background: transparent !important;
  text-shadow: none !important;
}

.sp-megamenu-parent > li > a:hover,
#sp-header .sp-megamenu-parent > li > a:hover,
.mod-menu li a:hover {
  color: #5fc0c0 !important;          /* Hover: kräftiges Petrol */
  text-decoration: none;
}
/* ===== END: Menü-Schriftgröße & Textformat ===== */

/* ===== START: Menü-Icons Vorstandschaft & Beiräte fixieren – 28.11.2025 ===== */
img[src*="Vorstandschaft.png"],
img[src*="Beiraete.png"],
img[alt="Vorstandschaft"],
img[alt="Beiraete"] {
  width: 100px !important;
  height: auto !important;
  max-width: 35px !important;
  object-fit: contain !important;
  vertical-align: middle;
  margin-right: 6px;
}
/* ===== END: Menü-Icons fixieren ===== */



/* ===== START: Beiräte-Überschrift „Name“ weiß setzen – 28.11.2025 ===== */
th.list-title,
th.list-title a {
  color: #ffffff !important;
  font-weight: bold !important;
  background-color: transparent !important;
  text-shadow: none !important;
}
/* ===== END: Beiräte-Überschrift „Name“ weiß ====
*/

/* ===== START: Linke Spaltenüberschriften weiß – 28.11.2025 ===== */
th,
th a {
  color: #ffffff !important;
  background-color: transparent !important;
  font-weight: bold !important;
  text-shadow: none !important;
}
/* ===== END: Linke Spaltenüberschriften ===== */

/* ===== START: Hover-Effekt für Zurück-Button – 28.11.2025 ===== */
a[href*="view=category"]:hover {
  background-color: #003d80 !important;
  text-decoration: none !important;
}
/* ===== END: Hover-Effekt ===== */

/* ===== START: Aktiver Menüpunkt sanft hervorheben – 28.11.2025 ===== */
.sp-megamenu-parent li.active > a,
.sp-megamenu-parent li.current > a {
  background-color: rgba(255, 255, 255, 0.08); /* leicht transparentes Weiß */
  border-radius: 6px;
  box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.2);
}
/* ===== END: Aktiver Menüpunkt ===== */


/* ===== START: Menü-Optik abrunden und ausrichten – 28.11.2025 ===== */

/* Dropdown-Menü rund und weich */
.sp-dropdown {
  border-radius: 10px !important;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  background-color: #f8f9fa !important;
  padding: 6px 0;
}

/* Einträge im Dropdown sauber ausrichten */
.sp-dropdown li > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 14px;
  color: #003366 !important;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.3s;
}

/* Hover-Effekt dezent */
.sp-dropdown li > a:hover {
  background-color: #e0e0e0 !important;
}

/* Flaggen-Icons oder Pfeile einheitlich */
.sp-dropdown li > a img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  vertical-align: middle;
  margin-top: -1px; /* optischer Ausgleich */
}

/* ===== START: Pfeil-Ausrichtung und Farbe – 28.11.2025 ===== */

/* Pfeile im Hauptmenü sauber mittig neben Text */
.sp-megamenu-parent .sp-has-child > a::after {
  position: relative;
  top: 9px;               /* vertikale Justierung */
  margin-left: 6px;
  font-size: 0.9em;
  color: #003366 !important; /* dunkles blau */
  display: inline-block;
  vertical-align: middle;}

/* Optional: Nur für dunkle Menühintergründe */
.sp-megamenu-parent .sp-has-child > a {
  color: #003366 !important;
}

/* Dropdown optisch rund und ruhig */
.sp-dropdown {
  border-radius: 10px !important;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  background-color: #f8f9fa !important;
  padding: 6px 0;
}

/* Einträge im Dropdown ausrichten */
.sp-dropdown li > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 14px;
  color: #003366 !important;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.3s;
}

/* Icons (Flaggen) ruhig und gleichmäßig */
.sp-dropdown li > a img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: -1px;
}
/* ===== END: Pfeil-Ausrichtung und Farbe ===== */


/* START: Counterbereich mit umgedrehtem Farbverlauf */
#sp-footer .container-inner {
  background: linear-gradient(to bottom,
    #004a87 0%,     /* 3399ff helles Logo-Blau – oben */
    #3399ff 60%,    /* 66ccff sehr helles Blau – Mitte */
    #3399ff 100%    /* 99ddff fast weiß-blau – unten */
  ) !important;
  padding: 16px 20px;
  color: #000039 !important;                /* Vereins-Blau für Text */
  font-size: 1rem;
  line-height: 1.6;
  border-top: 4px solid #3399ff;            /* Blauer Trenner wie beim Logo */
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.2); /* leichte Tiefe */
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.5px;
}
/* END: Counterbereich mit umgedrehtem Verlauf */

/* Footer-Menü Icons über Bild zum Link */
.mod-menu img {
  width: 24px;              /* etwas größer als 16px */
  height: auto;
  margin-right: 8px;        /* Abstand zum Text */
  vertical-align: middle;   /* mittig zum Text ausrichten */
  display: inline-block;    /* zwingt Bild und Text nebeneinander */
}

/* ACHTUNG hier stand ein alter Code für die Fußzeile */
/* === Footer-Links mit Icon nebeneinander | 2026-01-03 === */
#sp-footer1 .sp-module-content a {
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
}
#sp-footer1 .sp-module-content a img {
  transform: translateY(1px);
}

.qr-code {
  text-align: center;
  padding: 6px;
}
.qr-code img {
  border: 1px solid #ccc;
  background: #fff;
}


/* Eventliste: Grundlayout */
ul.eventlist {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: sans-serif;
  color: #000039;
}

/* Einzelne Events: Layout und Farben */
ul.eventlist > li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 1rem;
  border-bottom: 1px solid #ccc;
  background-color: #eaf0fa; /* Standard: ruhiges Hellblau */
  color: #000039;
}

/* Alternierende Zeilen */
ul.eventlist > li:nth-child(even) {
  background-color: #f5f5f5 !important; /* Hellgrau wie Wettermodul */
}

/* Hover-Effekt */
ul.eventlist > li:hover {
  background-color: #e0e0e0;
}

/* Hervorgehobene/laufende Events */
ul.eventlist > li.highlight,
ul.eventlist > li.current {
  background-color: #e0e0e0 !important;
  color: #000039 !important;
}

/* Thumbnails: größer und ruhig */
ul.eventlist img {
  max-height: 60px;
  width: auto;
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 4px;
}

/* Eventtitel und Text */
ul.eventlist .event-title,
ul.eventlist .event-text {
  color: #000039;
  font-size: 1rem;
}

/* Links: dunkelblau + dezenter Hover */
ul.eventlist a {
  color: #000039;
  text-decoration: none;
}

ul.eventlist a:hover {
  text-decoration: none;
}

/* Filterbereich: Grundlayout */
#jem_filter {
  background-color: #f5f5f5;
  padding: 12px;
  border-radius: 6px;
  font-family: sans-serif;
  color: #000039;
}

/* JEM Copyright ausblenden */

div.copyright {
  display: none !important;
}

/* Eingabefelder und Dropdowns */
#jem_filter select,
#jem_filter input[type="text"],
#jem_filter input[type="date"] {
  color: #000039;
  border: 1px solid #000039;
  background-color: #ffffff;
  padding: 6px 8px;
  border-radius: 4px;
  margin-right: 8px;
}

/* Buttons: Suchen & Zurücksetzen */
#jem_filter input[type="submit"],
#jem_filter input[type="reset"] {
  background-color: #000039;
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 8px;
}

#jem_filter input[type="submit"]:hover,
#jem_filter input[type="reset"]:hover {
  background-color: #1a1a5e;
}

/* Labels deutsch und klar */
#jem_filter label {
  font-weight: bold;
  margin-right: 6px;
  color: #000039;
}

/* Optional: Abstand zwischen Filtergruppen */
#jem_filter .jem-row {
  margin-bottom: 10px;
}
#jem_filter select[name="limit"] {
  min-width: 150px;   /* etwas breiter */
}
#jem_filter select,
#jem_filter input {
  margin-right: 8px;  /* gleichmäßiger Abstand */
}
/* Sortiertextblock leicht nach rechts versetzen */
.jem-sort .jem-sort-parts {
  padding-left: 12px; /* oder 16px für mehr Abstand */
}
/* Sortier-Icon leicht nach rechts versetzen */
.jem-sort-icon {
  margin-left: 12px;   /* Abstand vom linken Rand */
  margin-right: 6px;   /* Abstand zum Text */
  color: #000039;      /* Optional: Vereinsblau */
}

.jemPoweredBy {
  display: none;
}
.jem-event-date {
  font-weight: bold;
  color: #444;
  background-color: #f0f0f0;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 6px;
}

.jem-map-link {
  color: #0069c2;       /* dezentes Blau */
  font-weight: 500;     /* etwas hervorgehoben */
  margin-left: 4px;     /* kleiner Abstand zum Icon */
  text-decoration: none;
}
.jem-map-link:hover {
  text-decoration: none; /* klarer Hover-Effekt */
}
.jem-map-button {
  display: inline-block;
  background-color: #0069c2;   /* dezentes Blau */
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 10px;
}
.jem-map-button:hover {
  background-color: #004a87;   /* dunkleres Blau beim Hover */
}

/* Allgemeines Icon vor dem Titelwert */
dd.jem-title::before {
  content: "📖 ";
}

/* Kalender-Icon vor dem Datum */
dd.jem-when::before {
  content: "🗓️ ";
}

/* Auge-Icon vor den Aufrufen */
dd.jem-hits::before {
  content: "👓 ";
}

/* Hover-Effekt Footer2 */
.footer-updated {
  font-size: 11px;
  margin-left: 20px;
  color: #000039;
  padding: 2px 6px;
  border-radius: 4px; /* leicht abgerundet */
  transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-updated:hover {
  background-color: rgba(0, 0, 57, 0.1); /* dezente Box in deinem Farbton */
  color: #000039; /* Textfarbe bleibt gleich */
}
/* ENDE Hover-Effekt Footer2 */


/* B100 - Dropdown-Container bei Partnergemeinden neutralisieren */
.sp-dropdown.sp-dropdown-main.sp-menu-right {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
/* B101 - Dropdown-Breite bei Partnergemeinden anpassen */
.sp-dropdown.sp-dropdown-main.sp-menu-right {
  width: 320px !important;       /* oder 520px, je nach Wunsch */
  max-width: 90vw !important;    /* auf kleinen Geräten begrenzen */
}

/* B103A - Partnergemeinden: Blau + dezenter Hover */
.sp-dropdown.sp-dropdown-main.sp-menu-right {
  background-color: #003366 !important; /* tiefes Blau */
  border-radius: 6px;
  padding: 8px;
}

.sp-dropdown-items li a {
  color: #ffffff !important;
  display: block;
  padding: 6px 12px;
  text-decoration: none;
}

/* B105 - Hintergrundfarbe erzwingen für Dropdown-Container */
.sp-dropdown.sp-dropdown-main.sp-menu-right {
  background-color: #004080 !important;   /* mittleres Blau */
}
.sp-dropdown.sp-dropdown-main.sp-menu-right .sp-dropdown-inner {
  background-color: #004080 !important;   /* gleiche Farbe für innere Ebene */
}
.sp-dropdown.sp-dropdown-main.sp-menu-right .sp-dropdown-items {
  background-color: #004080 !important;   /* gleiche Farbe für die Liste */
}
/* B106 - Hover-Effekt über volle Breite */
.sp-dropdown-items li a {
  color: #ffffff !important;
  display: block;                /* sorgt dafür, dass der Link die ganze Breite füllt */
  width: 100% !important;        /* volle Breite des Containers */
  padding: 6px 12px;
  text-decoration: none;
}

.sp-dropdown-items li a:hover,
.sp-dropdown-items li a:focus {
  background-color: #3399ff !important;   /* helleres Blau beim Hover */
  color: #ffffff !important;
}
/* B107 - Weiße Schrift für Dropdown "Externe Seiten" */
.sp-dropdown.sp-dropdown-main.sp-menu-right {
  background-color: #004080 !important; /* mittleres Blau */
  color: #ffffff !important;
}

.sp-dropdown-items li,
.sp-dropdown-items li a,
.sp-dropdown-items li span {
  color: #ffffff !important;
  fill: #ffffff !important; /* für SVG-Icons */
}

.sp-dropdown-items li a:hover,
.sp-dropdown-items li a:focus {
  background-color: #3399ff !important; /* helleres Blau beim Hover */
  color: #ffffff !important;
}

/* B107 - Weiße Schrift für Dropdown "Externe Seiten" */
.sp-dropdown.sp-dropdown-main.sp-menu-right {
  background-color: #004080 !important; /* mittleres Blau */
  color: #ffffff !important;
}

.sp-dropdown-items li,
.sp-dropdown-items li a,
.sp-dropdown-items li span {
  color: #ffffff !important;
  fill: #ffffff !important; /* für SVG-Icons */
}

.sp-dropdown-items li a:hover,
.sp-dropdown-items li a:focus {
  background-color: #3399ff !important; /* helleres Blau beim Hover */
  color: #ffffff !important;
}

/* Sub-Dropdown: Breite, Hintergrund, Position, Abrundung */
.sp-dropdown.sp-dropdown-sub.sp-menu-right {
  width: 80% !important;                          /* 30% schmäler */
  max-width: 90vw !important;
  right: 0 !important;
  left: auto !important;
  transform: translateX(200px) translateY(12px);  /* rechts versetzt + Abstand */
  background-color: #004080 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  border: none !important;
  padding: 8px;
  z-index: 999 !important;
}

/* Innenebenen Sub-Dropdown: transparent */
.sp-dropdown.sp-dropdown-sub.sp-menu-right .sp-dropdown-inner,
.sp-dropdown.sp-dropdown-sub.sp-menu-right .sp-dropdown-items {
  background-color: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Main-Dropdown: Abrundung + Hintergrund */
.sp-dropdown.sp-dropdown-main.sp-menu-right {
  background-color: #004080 !important;
  border-radius: 12px !important;
  overflow: visible !important; /* Sub bleibt sichtbar */
}

/* Innenebenen Main-Dropdown: transparent */
.sp-dropdown.sp-dropdown-main.sp-menu-right .sp-dropdown-inner,
.sp-dropdown.sp-dropdown-main.sp-menu-right .sp-dropdown-items {
  background-color: transparent !important;
  border-radius: inherit !important;
}

/* Linkpfeile weiß */
.sp-dropdown.sp-dropdown-main.sp-menu-right .sp-menu-item > a:after,
.sp-dropdown.sp-dropdown-sub.sp-menu-right .sp-menu-item > a:after {
  color: #ffffff !important;
  border-color: #ffffff !important;
  fill: #ffffff !important;
}

/* Hover-Effekt in den Menüs*/
.sp-dropdown-items li a {
  display: block;
  width: 100% !important;
  color: #ffffff !important;
  padding: 6px 12px;
  text-decoration: none;
  border-radius: inherit;
}

.sp-dropdown-items li a:hover,
.sp-dropdown-items li a:focus {
  background-color: #3399ff !important;
  color: #ffffff !important;
}
.sp-dropdown-items li a {
  padding: 8px 14px !important; /* etwas mehr Luft */
}
.sp-dropdown.sp-dropdown-main.sp-menu-right,
.sp-dropdown.sp-dropdown-sub.sp-menu-right {
  box-shadow: 0 2px 6px rgba(0,0,0,0.25) !important;
}
.sp-dropdown-items li a,
.sp-dropdown.sp-dropdown-sub.sp-menu-right {
  transition: all 0.2s ease-in-out !important;
}
.sp-dropdown-items li a:hover,
.sp-dropdown-items li a:focus {
  background-color: #3399ff !important;
  color: #ffffff !important;
  border-radius: 6px; /* Abrundung hinzufügen */
}
/* ENDE Hover-Effekt in den Menüs*/

/* Hover-Effekt Footer1*/
#sp-footer1 .mod-menu li a {
  background-color: transparent !important;
  color: #000039 !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  transition: background-color 0.3s ease, color 0.3s ease !important;
}

#sp-footer1 .mod-menu li a:hover {
  background-color: rgba(0, 0, 57, 0.1) !important;
  color: #000039 !important;
  text-decoration: none !important;
 }
/* ENDE Hover-Effekt Footer1*/


/* Einheitliche Tabellenbasis */
.stat-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  font-family: "Arial Narrow", "Roboto Condensed", sans-serif;
  font-size: 0.85em;
}

.stat-table th,
.stat-table td {
  border: 1px solid #ccc;
  padding: 0.3em 0.6em;
  text-align: center;
}

/* Kopfzeilen */
.stat-header {
  font-weight: bold;
}

/* Unterüberschriften (z. B. Männer/Frauen, Arbeiter/Angestellte) */
.subhead {
  background-color: #f4f4f4;
  font-weight: bold;
  text-align: left;
  padding-left: 0.5em;
}

/* Prozentabweichungen */
.delta {
  color: #d35400; /* Rotorange */
  font-weight: bold;
  font-size: 0.85em;
}

.delta-head {
  font-size: 0.8em;
  color: #2c3e50; /* dunkles Blaugrau für bessere Lesbarkeit */
}

/* Zusatzhinweise unter Spaltenköpfen */
.vs {
  font-size: 0.75em;
  color: #2c3e50; /* ebenfalls dunkles Blaugrau */
  display: block;
}

/* Kleine Zusatzinfos (falls benötigt) */
.diff {
  font-size: 0.75em;
  color: #2c3e50;
  display: block;
}

/* Icons */
.icon-up::before { content: "▲"; }
.icon-down::before { content: "▼"; }
.icon-users::before { content: "👥"; }
.icon-town::before { content: "🏘"; }
.icon-briefcase::before { content: "💼"; }
.icon-pension::before { content: "👴"; }
.icon-home::before { content: "🏠"; }
.icon-transport::before { content: "🚗"; }
.icon-food::before { content: "🍞"; }

/* Icon und Text der Überschrift "Statistische Daten" */
img[alt="Statistische Daten"] {
  margin-top: 8px;
  border-top: 1px solid #3399ff;
  padding-top: 8px;
  margin-left: 12px;   /* Abstand vom linken Rand */
  margin-right: 0px; /* Abstand zum Text */
  vertical-align: middle; /* Icon mittig zum Text */
}

/* Text daneben fett und eingerückt */
img[alt="Statistische Daten"] + .image-title {
  font-weight: bold;
  color: #ffffff;
  display: inline-block;
  margin-left: 12px; /* leicht nach rechts rücken */
  padding-left: 12px;   /* zusätzlicher Abstand nach rechts */
  vertical-align: middle;
}
/* Überschrift "Statistische Daten" optisch hervorheben */
img[alt="Statistische Daten"] + .image-title {
  font-weight: bold;
  color: #FFD700 !important;             /* goldene Schrift */
  display: block;
  margin-left: 40px;        /* bündig mit den anderen Menütexten */
  margin-top: 6px;
  padding-top: 6px;
  border-top: 2px solid #3399ff; /* blauer Trennstrich */
}

/* ============================
   WICHTIG: Container neutralisieren
   ============================ */
[itemprop="articleBody"] {
  display: block !important;        /* Flex deaktivieren */
}

/* ============================
   Reading-Time Box
   ============================ */
.reading-time {
  display: block !important;        /* Block erzwingt margin auto */
  width: fit-content !important;    /* nur so breit wie nötig */
  margin-left: auto !important;     /* rechtsbündig */
  margin-right: 8px !important;     /* kleiner Abstand rechts */
  margin-top: 16px !important;      /* Abstand zum Bild */
  margin-bottom: 12px !important;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #1b4f9c !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}


/* ============================
   Hover-Effekt
   ============================ */
.reading-time:hover {
  box-shadow: 0 0 6px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}

/* ============================
   Farbvarianten + Icons
   ============================ */
.reading-short {
  background: linear-gradient(to right, #6CA6CD, #b7d6e8) !important;
  border-left: 3px solid #1b4f9c !important;
}

.reading-short::before {
  content: "🟢 ";
}

.reading-medium {
  background: linear-gradient(to right, #6CA6CD, #4e1e6a33) !important;
  border-left: 3px solid #4e1e6a !important;
}

.reading-medium::before {
  content: "🟠 ";
}

.reading-long {
  background: linear-gradient(to right, #f8d7da, #4e1e6a22) !important;
  border-left: 3px solid #c62828 !important;
}

.reading-long::before {
  content: "🔴 ";
}

/* ============================
   Abstand unter Bildern
   ============================ */
[itemprop="articleBody"] img {
  display: block !important;
  margin-bottom: 12px !important;
}

.reading-time::after {
  content: "";
  display: block;
  height: 3px;
  margin-top: 4px;
  border-radius: 2px;
  background-color: currentColor;
  opacity: 0.4;
  width: var(--progress-width, 30%);
  transition: width 0.4s ease;
}

/* WICHTIG: Eltern-Container darf nichts abschneiden */
.reading-time {
  position: relative !important;
  overflow: visible !important; /* erlaubt Elemente außerhalb */
  --progress-width: 0%;
}

/* Progressbar UNTERHALB der Box */
.reading-time::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px; /* unterhalb der Box */
  height: 4px;
  width: var(--progress-width);
  border-radius: 2px;
  background: linear-gradient(to right, #003399, #3399ff) !important;
  opacity: 1 !important;
  display: block;
  transition: width 1.2s ease;
box-shadow: 0 0 6px rgba(51,153,255,0.8) !important;
}

.reading-short::after {
  background: linear-gradient(to right, #1b4f9c, #6CA6CD);
}

.reading-medium::after {
  background: linear-gradient(to right, #6CA6CD, #4e1e6a);
}

.reading-long::after {
  background: linear-gradient(to right, #4e1e6a, #c62828);
}


/* ============================
   Startseite und Wir über uns ausblenden
   ============================ */
body.itemid-101 .reading-time {
  display: none !important;
}
body.itemid-272 .reading-time {
  display: none !important;
}


/* Einheitliche Überschriften – modern & CI-konform */
.item-page h1,
.item-page h2,
.item-page h3,
.item-page h4 {
  color: #ffffff !important; /* Weiß für maximale Lesbarkeit */
  font-family: Arial, sans-serif;
  font-weight: 700;
  margin-top: 1.4em;
  margin-bottom: 0.6em;
  text-shadow: 0 0 6px rgba(0,0,0,0.4); /* leichte Kontur für bessere Lesbarkeit */
}

/* Dezente Unterlinie für H2/H3 */
.item-page h2 {
  border-bottom: 2px solid #3399ff;
  padding-bottom: 4px;
}

.item-page h3 {
  border-bottom: 1px solid #66ccff;
  padding-bottom: 3px;
}

.item-page {
  background: #002b66; /* kräftiges Vereinsblau */
  padding: 20px;
  border-radius: 8px;
}


.sp-menu-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Gilt nur beim Menü für Statistik */
.sp-menu-heading .menu-icon-svg {
  width: 24px;
  height: 24px;
  margin-left: 15px;   /* weiter nach links */
  margin-top: 14px;     /* etwas tiefer */
  flex-shrink: 0;
}

.sp-menu-heading .image-title {
  font-size: 14px;
  line-height: 1.4;
}

/* Ende für Menü Statistik */

/* Rechte Dropdowns sauber nach links verschieben */
.sp-menu-item.sp-has-child > .sp-dropdown-main.sp-menu-right,
.sp-menu-item.sp-has-child > .sp-dropdown-sub.sp-menu-right {
    left: auto !important;
    right: 12px !important;
}
.sp-menu-item.sp-has-child > .sp-dropdown-main:not(.sp-menu-right),
.sp-menu-item.sp-has-child > .sp-dropdown-sub:not(.sp-menu-right) {
    left: 0 !important;
    right: auto !important;
}



/* Basis-Button für PSV */
/* ============================================
   Einheitlicher PSV-Button (Glow + Pfeil-Animation)
   ============================================ */

.psv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;

  /* ⭐ Dunklerer Blauton-Verlauf */
  background: linear-gradient(180deg, #d0e4ff 0%, #a8c8f0 100%);

  /* ⭐ Kräftiger Rand */
  border: 3px solid #3399ff;

  /* ⭐ Weißer Glow */
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.9));

  color: #002a5c;
}


.psv-btn:hover {
  background: linear-gradient(180deg, #e0f0ff 0%, #b0d0ff 100%);
  border-color: #007BFF;

  filter: drop-shadow(0 0 26px rgba(255, 255, 255, 1));
  transform: translateY(-1px);
}

/* Pfeil links */
.psv-btn .psv-icon {
  font-size: 1.2rem;
  margin-right: 6px;
  transition: transform 0.35s ease;
}

.psv-btn:hover .psv-icon {
  animation: psvArrowMove 0.6s ease-in-out forwards;
}

@keyframes psvArrowMove {
  0%   { transform: translateX(0); }
  40%  { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}

/* ============================================
   Mini-Button mit Logo-Glow
   ============================================ */

.psv-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;

  /* ⭐ Dunklerer Blauton-Verlauf */
  background: linear-gradient(180deg, #d0e4ff 0%, #a8c8f0 100%);

  /* ⭐ Kräftiger Rand */
  border: 3px solid #3399ff;

  /* ⭐ Weißer Glow wie beim Headerlogo */
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.9));

  color: #002a5c;
}


.psv-mini-btn:hover {
  background: linear-gradient(180deg, #e0f0ff 0%, #b0d0ff 100%);
  border-color: #007BFF;

  filter: drop-shadow(0 0 26px rgba(255, 255, 255, 1));
  transform: translateY(-1px);
}

/* Mini-Pfeil */
.psv-mini-icon {
  display: inline-block;
  font-size: 1rem;
  transition: transform 0.35s ease;
}

/* Mikro-Bewegung */
.psv-mini-btn:hover .psv-mini-icon {
  animation: psvArrowMove 0.6s ease-in-out forwards;
}


/* Footer Events-List für die kommenden Events aus eigenen Modul mod_footer_events */
.footer-events-wrapper {
 padding-top: 4px;
}

.footer-events-list {
    background: rgba(255, 255, 255, 0.12);
    padding: 16px 20px;
    border-radius: 6px;

    /* Sichtbarere Rahmenlinie */
    border: 1px solid rgba(255, 255, 255, 0.25);

    /* Etwas schmaler als vorher */
    max-width: 800px;
    mind-width: 0;

    margin: 8px auto;
    
    display: flex;
    justify-content: flex-start;
    gap: 5px;
    flex-wrap: wrap;

    /* Sichtbarer, kühler Schatten */
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.footer-event-line {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 2px 0;
    font-size: 1.0em;
    color: #d0d0d0; /* statt #eee */
    text-shadow: 0 0 2px rgba(0,0,0,0.3);
}


.footer-events-heading {
  background-image: url("/images/icons/PSV_H_Icon_Events.svg");
  background-repeat: no-repeat;
  background-position: 8px center;
  background-size: 20px 20px;

  padding-left: 36px; /* Platz für das Icon */
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
  border-radius: 6px;

  text-align: left !important;
  color: #000039;
  font-size: 1.1em;
  font-weight: 600;
  margin: 0 auto 6px auto;
  max-width: 800px;
}


.footer-event-icon {
    font-size: 1.0em;
    opacity: 0.95;
    display: flex;
    align-items: center;
    line-height: 1; /* verhindert Hoch-/Tiefstand */
}
    
.footer-event-date {
    font-weight: 600;
    color: #763626;
    font-size: 0.625em;
}

.footer-event-title {
    font-weight: 500;
    color: #000039; /* statt #4c6a91 */
    font-size: 0.625em;
}

.footer-event-location {
    color: #2a3132; /* statt #6a8fbf */
    font-size: 0.625em;
}

.footer-event-link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 9px;

    text-decoration: none;
    color: inherit;

    width: 100%; /* WICHTIG: verhindert Verschieben */
}

.footer-event-link:hover span {
  color: white;
  text-decoration: none;
}


/* END Footer Events-List für die kommenden Events aus eigenen Modul mod_footer_events */


/* ============================
   Eigener Bilder-Slider (NEUE STRUKTUR)
   ============================ */

/* Grundlayout */
.psv-slider-wrapper {
  position: relative;
  width: 280px;
  height: 250px;
  margin: 0 auto;
}

.psv-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Track */
.psv-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Slides */
.psv-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  z-index: 1;
}

.psv-slide.active {
  opacity: 1;
  z-index: 2;
}

/* Bild bekommt etwas weniger Höhe, damit die Caption Platz hat */
.psv-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top; /* Bildinhalt nach oben schieben */
  display: block;
}

/* Caption ist ein Balken innerhalb der festen Sliderhöhe */
.psv-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 3;

  /* Hintergrund mit Verlauf + optionalem Blur */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.25));
  backdrop-filter: blur(2px); /* optional, falls du Blur willst */

  color: white;
  font-size: 16px;
  font-weight: 600;
  text-align: center;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-bottom: 25px;
  min-height: 48px;
  line-height: 1.5;
  flex-wrap: wrap;
  border-radius: 0 0 6px 6px;

  /* Glow wie beim Headerlogo */
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.9));
}

.psv-caption img.psv-flag {
  height: 16px !important;
  max-height: 16px;
  width: auto !important;
  vertical-align: middle;
  box-shadow: none;
  margin-top: 1px;
  flex-shrink: 0;
  border-radius: 3px;
  box-shadow: 0 0 4px rgba(255,255,255,0.4);
}

/* ============================
   Premium-Pfeile (Kombi B + C)
   ============================ */

/* Pfeil-Container – wie dein Icon: rechteckig, flach, modern */
/* ============================
   Pfeile – flach, modern, mit Icon-Blau
   ============================ */

/* Blau definieren */
:root {
  --psv-blue: #007BFF; /* dein exaktes Icon-Blau */
}

/* Pfeil-Container */
.psv-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 9999;
  /* background: var(--psv-blue); */
  padding: 4px 8px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.psv-slider:hover .psv-arrow {
  opacity: 1;
}


/* Sichtbarkeit bei Hover */
.psv-slider:hover .psv-arrow {
  opacity: 1;
}

/* SVG-Größe */
.psv-arrow svg {
  width: 28px;
  height: 28px;
}

/* Pfeil-Text */
.psv-arrow svg text {
  fill: white;
  transition: fill 0.3s ease, transform 0.2s ease;
}

/* Hover: Pfeil leicht einfärben */
.psv-arrow:hover svg text {
  fill: #e0f0ff;
  transform: scale(1.1);
}

/* Positionierung */
.psv-prev { left: 6px; }
.psv-next { right: 6px; }

/* Popup-Fix, falls im Modal verwendet */
.psv-popup-content {
  overflow: visible;
}

/* ============================
   ENDE Eigener Bilder-Slider
   ============================ */

.wetter-toggle-head {
  font-weight: bold;
  cursor: pointer;
  padding: 6px 0;
  color: #ffffff;
}

.wetter-hidden {
  display: none;
}

.sp-column:empty {
  display: none !important;
}

/* Rahmen für das Wetter-Toggle-Modul entfernen */
.sp-module.no-frame,
.sp-module.no-frame .sp-module-content {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Grundzustand: unsichtbar, kein Rahmen */
#wetter-mallersdorf-wrapper {
  display: none;
  border: none;
  padding: 0;
  background: transparent;
}

/* Wenn sichtbar → Rahmen anzeigen */
#wetter-mallersdorf-wrapper[style*="display: block"] {
  border: 1px solid #ddd !important;
  padding: 10px !important;
  border-radius: 6px;
  background: transparent !important;
}

/* Abstand unterhalb des Toggle-Schalters */
#wetter-toggle {
  margin-bottom: 12px;
}

#wetter-pieve-wrapper {
  display: none;
  border: none;
  padding: 0;
  background: transparent;
}

#wetter-pieve-wrapper[style*="display: block"] {
  border: 1px solid #ddd !important;
  padding: 10px !important;
  border-radius: 6px;
  background: transparent !important;
}

/* Grundzustand: unsichtbar, kein Rahmen */
#wetter-jedlicze-wrapper {
  display: none;
  border: none;
  padding: 0;
  background: transparent;
}

/* Wenn sichtbar → Rahmen anzeigen */
#wetter-jedlicze-wrapper[style*="display: block"] {
  border: 1px solid #ddd !important;
  padding: 10px !important;
  border-radius: 6px;
  background: transparent !important;
}

/* Modultitelüberschriften Sidebar RIGHT gestalten */
.sp-module-title {
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  margin-bottom: 12px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
/* END Modultitelüberschriften Sidebar RIGHT gestalten */



/* Akkordeon-Container */
/* HEADER – Pfeil näher ran, Icon nicht abgeschnitten */
/* HEADER – Icon darf nicht abgeschnitten werden */
.footer-accordion-header {
  font-weight: 700;
  padding: 16px 0;              /* mehr Höhe → Icon hat Luft */
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;

  line-height: 1.4;             /* WICHTIG: verhindert Abschneiden */
  justify-content: flex-start;
}

/* Titel + Icon */
.footer-accordion-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}

.footer-accordion-title-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: inline-block;   /* WICHTIG: besser als block */
  vertical-align: middle;  /* verhindert Baseline-Probleme */
  line-height: 1;
}


/* Pfeil – näher an den Text */
.footer-accordion-arrow {
  font-size: 1.3rem;
  line-height: 1;
  margin-left: 10px;            /* Abstand zum Text */
  transition: transform 0.3s ease, color 0.3s ease;
  color: #ddd;
  color: #000039;                 /* Dunkelblau */
  filter: drop-shadow(0 0 2px white);
  transition: filter 0.25s ease, transform 0.25s ease;
  display: inline-block;          /* wichtig für scale() */
}


/* Pfeil Hover */
.footer-accordion-arrow:hover {
  filter: drop-shadow(0 0 10px white);
  transform: scale(1.15);
}

/* Pfeil dreht sich */
.footer-accordion-box.open .footer-accordion-arrow {
  transform: rotate(180deg);
  color: #00eaff;
}

/* Inhalt */
.footer-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

/* Links nebeneinander */
.footer-accordion-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 8px 12px;
}

.footer-accordion-row .footer1-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ddd;
  text-decoration: none;
  font-size: 1.0rem;
}

.footer-accordion-row .footer1-icon {
  width: 36px;
  height: 36px;
}

/* ===========================================================
   FOOTER 2 – NEUES, SAUBERES, KONFLIKTFREIES LAYOUT
   MIT GLOBALEN TOOLTIP-KOORDINATEN (per Script)
=========================================================== */


/* --- LAYOUT: ICON LINKS, TEXT RECHTS --- */
.footer2-row {
  display: flex !important;
  align-items: flex-start !important;
  gap: 16px !important;
  width: 100% !important;
}


/* --- ICON LINKS --- */
.footer2-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0 !important;
  display: block !important;
  margin: 0 !important;
}


/* --- TEXTBLOCK --- */
.footer2-textblock {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  text-align: left !important;
}


/* --- TITELZEILE --- */
.footer2-title {
  font-size: 0.9rem !important;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left !important;
}


/* --- MOTTOZEILE --- */
.footer2-motto-box {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;

  /* Schattierter Hintergrund */
  background: linear-gradient(90deg, #b3d9ff 0%, #6fa8dc 100%);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,57,0.15);
  box-shadow: 0 0 6px rgba(0,0,57,0.1);

  text-align: left !important;
}


/* --- MOTTO-TEXT --- */
.footer2-motto-text {
  font-size: 0.85rem !important;
  line-height: 1.35;
  text-align: left !important;
}


/* ===========================================================
   TOOLTIP-BASIS FÜR INFO + PEACE
   (Tooltip wird global per Script positioniert)
=========================================================== */

.footer2-info,
.footer2-peace {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: help;
}


/* --- INFO ICON --- */
.footer2-info {
  width: 18px;
  height: 18px;
  font-size: 0.75rem;
  border: 1.5px solid rgba(0,0,57,0.9);
  border-radius: 50%;
  margin-right: 6px;
}


/* --- PEACE ICON --- */
.footer2-peace {
  width: 32px;
  height: 32px;
  font-size: 1.4rem;
  margin-right: 8px;
}


/* ===========================================================
   GLOBALER TOOLTIP (wird per Script positioniert)
=========================================================== */

.footer2-info:hover::after,
.footer2-peace:hover::after {
  content: attr(data-tooltip);
  position: fixed !important; /* WICHTIG: schwebt über allem */
  left: calc(var(--mouse-x) * 1px);
  top: calc(var(--mouse-y) * 1px);
  transform: translate(12px, 12px);

  background: #222;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: normal;
  width: max-content;
  max-width: 260px;
  text-align: left;
  z-index: 999999;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);

  font-size: 12px;
  line-height: 1.25;
}


/* --- VOLLE BREITE FÜR DEN ACCORDION-BLOCK --- */
.footer-accordion-box,
.footer-accordion-content,
.footer2-row,
.footer2-textblock {
  width: 100% !important;
  max-width: none !important;
}

.footer-accordion-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #000039;
  transition: color 0.3s ease;
}

.footer-accordion-title-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: currentColor;
}

.footer-accordion-content {
  transition: max-height 0.4s ease, opacity 0.4s ease;
  overflow: hidden;
  opacity: 0;
  max-height: 0;
}
.footer-accordion-box.open .footer-accordion-content {
  opacity: 1;
  max-height: 500px; /* je nach Inhalt */
}


/* Einheitliches Moduldesign im dunklen Slide */

#demo-sidebar {
  position: fixed !important;
  top: 0 !important;
  right: -440px !important;
  width: 440px !important;
  height: 100% !important;
  min-height: 100vh;
  background: #1a1a5e !important;
  color: white !important;
  padding: 28px 24px !important;
  box-shadow: -4px 0 12px rgba(0,0,0,0.3) !important;
  border-top-left-radius: 12px !important;
  border-bottom-left-radius: 12px !important;
  transition: right 0.4s ease !important;
  z-index: 9999 !important;
  overflow-y: auto !important;
}

#demo-sidebar.active {
  right: 0 !important;
}

#demo-sidebar-toggle {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 999999 !important;
  opacity: 1 !important;
  display: block !important;
}


#demo-sidebar .moduletable,
#demo-sidebar .sp-module,
#demo-sidebar .mod-custom,
#demo-sidebar .custom {
  margin: 24px 0;
  padding: 18px 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.35);
}

/* Modulüberschriften */
#demo-sidebar .moduletable > h3,
#demo-sidebar .moduletable > h2,
#demo-sidebar .moduletable > h4,
#demo-sidebar .sp-module-title {
  font-size: 1.25em;
  font-weight: 600;
  color: #ffd700; /* Gold auf Dunkelblau */
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Trennlinie zwischen Modulen */
#demo-sidebar .moduletable:not(:last-child)::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 24px;
  background: linear-gradient(to right, rgba(255,255,255,0.2), transparent);
}

/* Bilder (z.B. Wetterkarten) */
#demo-sidebar img {
  max-width: 100%;
  border-radius: 6px;
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
  margin-bottom: 12px;
}

/* Buttons */
#demo-sidebar a.button {
  display: inline-block;
  background: #000039;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 8px;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
}

/* Toggle-Button sichtbar und sauber */
#demo-sidebar-toggle {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  background: #1a1a5e !important;
  color: white !important;
  padding: 10px 14px !important;
  border-radius: 6px !important;
  font-weight: bold !important;
  z-index: 100000 !important;
  display: block !important;
  opacity: 1 !important;
}

/* Slide sichtbar und korrekt positioniert */
#demo-sidebar {
  position: fixed !important;
  top: 0 !important;
  right: -440px !important;
  width: 440px !important;
  height: 100vh !important;
  background: #1a1a5e !important;
  color: white !important;
  z-index: 99999 !important;
  overflow-y: auto !important;
  transition: right 0.4s ease !important;
}

/* Wenn aktiv → sichtbar */
#demo-sidebar.active {
  right: 0 !important;
}

.sidebar-toggler {
  margin-top: 5px;
  margin-right: 5px;
}


#demo-sidebar .search-spacer {
  margin-bottom: 32px !important;
}

#demo-sidebar .mod-custom:empty {
  display: none !important;
}

/* Logo sanft von links nach rechts bewegen */
.logo-floating {
    animation: floatLR 8s ease-in-out infinite; /* Geschwindigkeit höher=langsamer */
}

@keyframes floatLR {
    0%   { transform: translateX(0); }
    50%  { transform: translateX(20px); }
    100% { transform: translateX(0); }
}

/* Sehr dezente horizontale Bewegung für das Header-Logo */
/* Normalzustand: ruhig */
.logo-image {
  display: inline-block;
  transition: transform 0.6s ease, filter 0.6s ease;
}

.logo-image:hover {
  transform: translateX(6px);
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.9));
}

#sp-header-logo .logo {
  position: relative;
}

#sp-header-logo .logo::after {
  content: "Gemeinschaft und Freundschaft – Europa im Herzen, verbunden im Frieden";
  display: block;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: #cce9d6;
  margin-top: 8px;
  line-height: 1.4;
  letter-spacing: 0.4px;
  cursor: pointer;
  pointer-events: auto;
}

/* --- FLAGGEN --- */
.flag {
  display: inline-block;
  width: 20px;
  height: 14px;
  background-size: cover;
  margin-left: 6px;
  vertical-align: middle;
}

/* Deutschland */
.flag-de {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="3" height="2"><rect width="3" height="2" fill="black"/><rect width="3" height="1.33" y="0.66" fill="red"/><rect width="3" height="0.66" y="1.33" fill="gold"/></svg>');
}

/* Italien */
.flag-it {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="3" height="2"><rect width="1" height="2" fill="green"/><rect width="1" height="2" x="1" fill="white"/><rect width="1" height="2" x="2" fill="red"/></svg>');
}

/* Polen */
.flag-pl {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="3" height="2"><rect width="3" height="1" fill="white"/><rect width="3" height="1" y="1" fill="red"/></svg>');
}

/* EU */
.flag-eu {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='3' height='2'><rect width='3' height='2' fill='%23005bbb'/></svg>");
}

/* --- TIMELINE 25 Jahre PSV LAYOUT --- */
.pv-timeline {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin: 40px 0;
  font-family: inherit;
}

/* Überschriften mit Deutschland-Farbbändern */
.pv-track-main h3 {
  border-bottom: 4px solid #000000; /* Schwarz */
}

.pv-track-mayors h3 {
  border-bottom: 4px solid #dd0000; /* Rot */
}

.pv-track-people h3 {
  border-bottom: 4px solid #ffcc00; /* Gold */
}

/* Items */
.pv-item {
  margin-bottom: 20px;
  padding-left: 10px;
  border-left: 3px solid #999;
}

.pv-year {
  font-weight: 700;
  color: #333;
  display: block;
  margin-bottom: 4px;
}

/* Linienfarben */
.pv-track-main .pv-item {
  border-color: #000000;
}

.pv-track-mayors .pv-item {
  border-color: #dd0000;
}

.pv-track-people .pv-item {
  border-color: #ffcc00;
}

/* Neutralisiert Helix sp-module für pv-zeitreise */
.sp-module .pv-zeitreise {
  display: block !important;
  width: 100% !important;
}

.sp-module .pv-zeitreise-events {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 25px !important;
}

.sp-module .pvz-card {
  display: block !important;
}

/* ============================================================
   GRID – Grundlayout der Timeline (1 Spalte mobil, 2 Spalten Desktop)
   ============================================================ */
.pv-zeitreise-events {
  display: grid;
  grid-template-columns: 1fr; /* Mobil: 1 Spalte */
  gap: 25px;
  position: relative; /* Für die Timeline-Achse */
}

@media (min-width: 900px) {
  .pv-zeitreise-events {
    grid-template-columns: repeat(2, 1fr); /* Desktop: 2 Spalten */
  }
}

/* ============================================================
   MINI-NAVIGATION – Zurückgesetzt, stabil, ohne Sticky
   ============================================================ */
#mod-custom212 {
  position: relative; /* Wichtig für spätere Erweiterungen */
}

.pvz-nav {
  display: flex;
  gap: 18px;
  padding: 10px 20px;
  justify-content: center;
  font-family: system-ui, sans-serif;

  /* Glassmorphism-Look */
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.pvz-nav a {
  color: #003f6b;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.25s ease, color 0.25s ease;
}

.pvz-nav a:hover {
  background: #d4e6ff;
  color: #005a9c;
}

/* Sanftes Scrollen für die Mini-Navigation */
html {
  scroll-behavior: smooth;
}

/* ============================================================
   CARD – Grundlayout, Animation, Hover-Effekte
   ============================================================ */
.pvz-card {
  /* Hintergrund mit sanfter Bewegung */
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
  background-size: 200% 200%;
  animation: pvz-gradient-shift 20s ease-in-out infinite;

  padding: 22px 30px;
  border-radius: 12px;
  border: 1px solid #cddff7;
  color: #003f6b;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;

  min-height: 190px;

  /* Einblendeanimation */
  opacity: 0;
  transform: translateY(12px);
  animation: pvz-fadein 0.6s ease-out forwards;

  /* Hover-Übergänge */
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    filter 0.25s ease;
}

/* Hintergrund-Animation */
@keyframes pvz-gradient-shift {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

/* Fade-In Animation */
@keyframes pvz-fadein {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Einblendverzögerung für jede Karte */
.pvz-card:nth-child(1) { animation-delay: 0.05s; }
.pvz-card:nth-child(2) { animation-delay: 0.10s; }
.pvz-card:nth-child(3) { animation-delay: 0.15s; }
.pvz-card:nth-child(4) { animation-delay: 0.20s; }
.pvz-card:nth-child(5) { animation-delay: 0.25s; }
.pvz-card:nth-child(6) { animation-delay: 0.30s; }
.pvz-card:nth-child(7) { animation-delay: 0.35s; }
.pvz-card:nth-child(8) { animation-delay: 0.40s; }

/* Hover-Effekt der Karte */
.pvz-card:hover {
  transform: translateY(-6px);
  border-width: 5px;
  border-color: #3399ff;

  background: linear-gradient(135deg, #e8f2ff 0%, #ffffff 100%);
  background-size: 200% 200%;

  box-shadow:
    0 12px 22px rgba(0,0,0,0.18),
    0 0 16px rgba(0, 50, 200, 0.45);

  filter: drop-shadow(0 0 6px rgba(80,140,255,0.35));
}

/* ============================================================
   ICON – Kreis links neben jeder Karte
   ============================================================ */
.pvz-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #6fb3ff, #4a90e2);
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pvz-card:hover .pvz-icon {
  transform: scale(1.18);
  box-shadow: 0 0 10px rgba(74,144,226,0.6);
}

/* ============================================================
   CONTENT – Jahr + Text
   ============================================================ */
.pvz-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Jahreszahl */
.pvz-year {
  font-weight: 700;
  font-size: 1.25rem;
  background: linear-gradient(90deg, #003f6b, #4a90e2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background 0.25s ease;
}

/* Jahreszahl Hover – Tropfenblau */
.pvz-card:hover .pvz-year {
  background: linear-gradient(90deg, #005a9c, #0074c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 6px rgba(255,255,255,0.35);
  transform: translateY(-1px);
}

/* Text */
.pvz-text {
  font-size: 0.95rem;
  color: #1f3b55;
  line-height: 1.45;
}

/* Erste Zeile fett */
.pvz-text::first-line {
  font-weight: 700;
  color: #003f6b;
}

/* ============================================================
   TIMELINE-ACHSE – Vertikale Linie links
   ============================================================ */
.pv-zeitreise-events::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 9px;
  width: 2px;
  background: #cddff7;
}

/* ============================================================
   SVG HEADER – Oberer animierter Zeitstrahl
   ============================================================ */
.pv-zeitreise-svg {
  width: 100%;
  margin-bottom: 50px;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.08));
}

.pv-zeitreise-svg svg {
  width: 100%;
  height: auto;
}

/* Linie */
.pv-zeitreise-svg .path {
  fill: none;
  stroke: rgba(255,255,255,0.85);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  animation: drawline 20s linear infinite;
}

@keyframes drawline {
  0%   { stroke-dashoffset: 1800; }
  100% { stroke-dashoffset: 0; }
}

/* Normale Tropfen */
.pv-zeitreise-svg .drop {
  fill: none;
  stroke: rgba(255,255,255,0.9);
  stroke-width: 3.5;
  animation: dropPulse 6s ease-in-out infinite;
}

@keyframes dropPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50%      { transform: scale(1.05); opacity: 1; }
}

/* Normale Jahreszahlen */
.pv-zeitreise-svg .year {
  text-anchor: middle;
  dominant-baseline: middle;
  transform: translateX(-2px);
  font-family: system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  fill: #ffffff;
  animation: yearPulse 6s ease-in-out infinite;
}

@keyframes yearPulse {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}

/* ============================================================
   ZUKUNFT – Goldener Tropfen + Animationen + Tooltip
   ============================================================ */
.pv-zeitreise-svg .future {
  fill: none;
  stroke: #ffd54f;
  stroke-width: 3.5;
  animation:
    futurePulse 6s ease-in-out infinite,
    futureGlow 6s ease-in-out infinite;
}

@keyframes futurePulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50%      { transform: scale(1.08); opacity: 1; }
}

@keyframes futureGlow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(255,215,100,0.25)); }
  50%      { filter: drop-shadow(0 0 10px rgba(255,215,100,0.55)); }
}

/* Zukunfts-Jahreszahl */
.pv-zeitreise-svg .future-year {
  font-family: system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-anchor: middle;
  fill: #ffd54f;
  animation: futureYearPulse 6s ease-in-out infinite;
}

@keyframes futureYearPulse {
  0%, 100% {
    opacity: 0.85;
    transform: scale(1);
    filter: drop-shadow(0 0 3px rgba(255,215,100,0.3));
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(255,215,100,0.6));
  }
}

/* Tooltip + Icon (Easter Egg) */
.pv-zeitreise-svg .future-icon,
.pv-zeitreise-svg .future-tooltip {
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.pv-zeitreise-svg .future-icon {
  font-size: 26px;
  fill: #ffd54f;
  text-anchor: start;
}

.pv-zeitreise-svg .future-tooltip {
  font-size: 13px;
  font-weight: 600;
  text-anchor: start;
  fill: #ffffff;
  stroke: none !important;
  paint-order: normal !important;
}

/* Hover aktiviert Tooltip + Icon */
.pv-zeitreise-svg .future-group:hover .future-icon,
.pv-zeitreise-svg .future-group:hover .future-tooltip {
  opacity: 1;
  transform: translateY(-3px);
}

.pv-zeitreise-svg .arrow {
  font-family: system-ui, sans-serif;
  font-size: 32px;
  fill: #ffd54f;
  opacity: 0;
  transform: translateX(40px);
  animation: arrowFadeIn 20s linear infinite;
}
@keyframes arrowFadeIn {
  0%   { opacity: 0; transform: translateX(40px); }
  59%  { opacity: 0; transform: translateX(40px); }
  60%  { opacity: 1; transform: translateX(0); }
  100% { opacity: 1; transform: translateX(0); }
}

