/* ====================
   Lokale Schriftarten
==================== */
@font-face {
  font-family: 'OpenDyslexicLocal';
  src: url('../fonts/OpenDyslexic-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;http://test.kitazauberwald.info/administrator/index.php?option=com_templates&view=template&id=249&file=L2Nzcy91c2VyLmNzcw%3D%3D&isMedia=1
}

@font-face {
  font-family: 'CinzelDecorativeBold';
  src: url('/templates/cassiopeia_child/fonts/CinzelDecorative-Bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
}

/* ====================
   Barrierefreiheit
==================== */
.accessibility-mono {
  filter: grayscale(100%);
}

.accessibility-contrast {
  background-color: black !important;
  color: yellow !important;
}

.accessibility-contrast a {
  color: cyan !important;
  text-decoration: underline;
}

.accessibility-links a {
  text-decoration: underline !important;
  font-weight: bold !important;
}

.accessibility-large {
  font-size: 1.3em !important;
}

.accessibility-lineheight p,
.accessibility-lineheight li {
  line-height: 1.8 !important;
}

.accessibility-dyslexia {
  font-family: 'OpenDyslexicLocal', 'Comic Sans MS', Arial, sans-serif !important;
}

.accessibility-reader aside,
.accessibility-reader footer,
.accessibility-reader .debug,
.accessibility-reader .newsletter,
.accessibility-reader .mod-login {
  display: none !important;
}

/* ==============================
   Animationen deaktivieren (z. B. Barrierefreiheit)
============================== */
.cursortrail-disable .container-header,
.cursortrail-disable .container-header::before,
.cursortrail-disable .container-header::after,
.cursortrail-disable .brand-logo,
.cursortrail-disable .site-description {
  animation: none !important;
  transition: none !important;
  background-position: initial !important;
}

/* ====================
   Header und Footer -Hintergrund
==================== */
.container-header, .footer {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #2d4025 0%, #86b827 40%, #4e6e36 80%, #324d29 100%);
  background-size: 300% 300%;
  animation: magicGreenShift 30s ease-in-out infinite;
  overflow: visible !important;
}
.footer::before {
  content: '';
  background-image: url('/images/headers/headerlogo.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom;
  opacity: 0.35;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.container-header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/images/headers/headerlogo.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom;
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
  animation: forestFloat 30s ease-in-out infinite;
  filter: brightness(0.9);
}

.container-header img {
  position: relative;
  z-index: 2;
  max-height: 100px;
}

.container-header::after, footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 60%) center / 12% 12% repeat;
  animation: magicGlow 60s ease-in-out infinite, brightenGlow 14s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.035;
}

/* ====================
   Header-Animationen
==================== */
@keyframes forestFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes magicGlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-10%, -10%); }
}

@keyframes brightenGlow {
  0%, 100% { opacity: 0.03; }
  50% { opacity: 0.08; }
}

@keyframes magicGreenShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ====================
   Brand-Text & Beschreibung
==================== */
.brand-logo,
.site-description {
  font-weight: bold;
  letter-spacing: 0.02em;
  background: linear-gradient(
    90deg,
    #000000 0%,
    #1a1a1a 20%,
    #2b2b2b 40%,
    #86b827 50%,
    #2b2b2b 60%,
    #1a1a1a 80%,
    #000000 100%
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  animation: gradientShift 60s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.brand-logo {
  font-size: 1.2em;
  text-transform: uppercase;
  font-family: 'CinzelDecorativeBold', 'Georgia', serif !important;
}

.site-description {
  font-size: 1.2em;
  font-style: italic;
  opacity: 0.85;
}

/* ====================
   Farbverlauf animieren
==================== */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* ====================
   Responsive Anpassung für Smartphones
==================== */
@media (max-width: 600px) {
  .brand-logo {
    font-size: 0.65em;
  }

  .site-description {
    font-size: 0.9em;
  }
}
/* ====================
   Menüfarbe
==================== */
.metismenu.mod-menu .parent>ul {
    background-color: #d9f4ae;
}
.metismenu.mod-menu .parent>ul a {
    color: #0f2701;
}

/* ====================
   LogIn Menu Form
==================== */

#login-form.login-inline {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 100%;
}

#login-form input[type="text"],
#login-form input[type="password"] {
  padding: 0.5em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}

#login-form .login-button {
  padding: 0.5em 1em;
  font-size: 1em;
  background: #86b827;
  border: none;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

#login-form .login-button:hover {
  background: #729e1f;
}


.login-greeting-inline {
  display: flex;
  justify-content: flex-end; /* rechtsbündig */
  align-items: center;
  gap: 1em;
  font-size: 1.1em;
  margin: 1em 0;
  flex-wrap: wrap;
}

.login-greeting-inline .btn-logout {
  background-color: #2a2a2a;
  color: #fff;
  padding: 0.4em 1em 0.4em 0.8em;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.login-greeting-inline .btn-logout:hover {
  background-color: #444;
}

/* Mobil: Login-Button sichtbar, Formular verstecken */
@media (max-width: 768px) {
  .login-wrapper {
    display: none;
  }

  .login-wrapper.show {
    display: block;
  }

  #mobile-login-button {
    display: inline-block;
    background: #86b827;
    color: white;
    padding: 0.5em 1em;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    margin: 1em auto;
    cursor: pointer;
  }
}

/* Desktop: Login-Formular immer sichtbar, Button ausblenden */
@media (min-width: 769px) {
  #mobile-login-button {
    display: none;
  }

  .login-wrapper {
    display: block;
  }
}


/* Footer Anpassung */

.footer {
    justify-content: flex-end; /* Inhalt nach rechts ausrichten */
    align-items: center; /* Vertikal zentrieren */
}



body {
  position: relative;
  z-index: 0;
  background-color: #f6fdf3;
}


/* Alter Baum links im Body*/
body::before {
  content: "";
  position: fixed;
  top: -5%;
  left: 0;
  width: 50vw;
  height: 110vh;
  background-image: url('../images/bodybaum.png'); /* Pfad ggf. anpassen */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: left center;
  opacity: 0.4;
  filter: blur(10px) brightness(1.05) saturate(1.1);
  z-index: 0;
  transform-origin: left center;
  animation:
    branchSway 16s ease-in-out infinite alternate,
    shimmer 12s ease-in-out infinite alternate;
  pointer-events: none;
}

/* Bewegung des Baumes */
@keyframes branchSway {
  0%   { transform: scale(1) rotate(-1.2deg); }
  100% { transform: scale(1.01) rotate(1.4deg); }
}

/* Leichtes „Atmen“ */
@keyframes shimmer {
  0%   { opacity: 0.38; }
  50%  { opacity: 0.45; }
  100% { opacity: 0.40; }
}

/* Magischer Schimmer von links oben */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 10% 20%,
      rgba(134, 184, 39, 0.2) 0%,
      rgba(255, 255, 255, 0.4) 40%,
      transparent 40%
    );
  filter: blur(60px);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

/* Smartphone-Anpassung */
@media (max-width: 768px) {
  body::before {
    top: 0;
    left: -15%;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: left center;
    opacity: 0.3;
    animation: none;
    filter: blur(8px) brightness(1.05) saturate(1.1);
  }

  body::after {
    background:
      radial-gradient(
        ellipse at 20% 30%,
        rgba(134, 184, 39, 0.15) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        transparent 80%
      );
    filter: blur(40px);
  }
}

/* H3 Überschrift */
h3::before {
  content: "🦉";
  display: inline-block;
  margin-right: 0.4em;
  transform: scale(1.4);
  animation: owlAppear 1s ease-out both;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* süße Flugbewegung beim Erscheinen */
@keyframes owlAppear {
  0% {
    transform: translateX(-1.5em) scale(0.5) rotate(-10deg);
    opacity: 0;
  }
  100% {
    transform: translateX(0) scale(1.4) rotate(0deg);
    opacity: 1;
  }
}

/* Optional: h3 etwas mehr Styling */
h3 {
  font-family: 'Georgia', serif;
  font-size: 1.6em;
  color: #2e472e;
  position: relative;
  margin: 2em 0 1em;
}

/* H1 Magic Schrift bei Bedarf */


.magic-h1 {
  font-family: 'CinzelDecorativeBold', serif;
  font-size: 1.5em;
  font-weight: bold;
  color: #86b827;
  position: relative;
  display: flex;
  align-items: center;
  opacity: 0;
  animation: fadeInText 1.5s ease-out forwards, pulseGlow 10s ease-in-out infinite;
  text-shadow:
    -2px -2px 3px #3d4f3d,
     2px -2px 3px #3d4f3d,
    -2px  2px 3px #3d4f3d,
     2px  2px 3px #3d4f3d,
     0 0 6px #86b827,
     0 0 12px #b4d867,
     0 0 20px rgba(134,184,39,0.5);
  padding: 0.5em 2em 0.5em 3em;
  background: linear-gradient(90deg, rgba(190,170,120,0.6) 0%, rgba(240,230,200,0.4) 100%);
  border-left: 8px solid #86b827;
  border-radius: 0 12px 12px 0;
  margin: 1em 0;
  max-width: 380px;
  transform: translateX(-80px);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.35),
    -8px 0 15px rgba(134,184,39,0.4);
  backdrop-filter: blur(1px);
  overflow: visible;
}

/* Wappen Icon */
.magic-h1 img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  position: absolute;
  left: 40px;
  top: -25px;
  background: linear-gradient(90deg, rgba(190,170,120,0.6) 0%, rgba(240,230,200,0.4) 100%);
  border: 2px solid #86b827;
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 0 12px rgba(0,0,0,0.2);
  z-index: 10;
}

/* Blatt Animation */
.magic-h1::after {
  content: '🌿';
  position: absolute;
  top: -12px;
  right: -12px;
  font-size: 1.1em;
  color: #86b827;
  animation: twinkle 5s infinite ease-in-out;
}

/* Twinkle Animation fürs Blatt */
@keyframes twinkle {
  0%, 100% {
    opacity: 0.8;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.3) rotate(10deg);
  }
}

/* Fade-In für das Band und Text */
@keyframes fadeInText {
  0% {
    opacity: 0;
    letter-spacing: 0.25em;
    transform: translateX(-200px) scale(0.95);
  }
  100% {
    opacity: 1;
    letter-spacing: normal;
    transform: translateX(-80px) scale(1);
  }
}

/* Pulsierendes Leuchten der Schrift */
@keyframes pulseGlow {
  0%, 100% {
    text-shadow:
      -2px -2px 3px #3d4f3d,
       2px -2px 3px #3d4f3d,
      -2px  2px 3px #3d4f3d,
       2px  2px 3px #3d4f3d,
       0 0 6px #86b827,
       0 0 12px #b4d867,
       0 0 20px rgba(134,184,39,0.5);
  }
  50% {
    text-shadow:
      -2px -2px 3px #3d4f3d,
       2px -2px 3px #3d4f3d,
      -2px  2px 3px #3d4f3d,
       2px  2px 3px #3d4f3d,
       0 0 8px #a5cc54,
       0 0 16px #b9e165,
       0 0 28px rgba(134,184,39,0.7);
  }
}


.cursortrail-disable *,
.cursortrail-disable *::before,
.cursortrail-disable *::after {
  animation: none !important;
  transition: none !important;
}




/* ============================================
   Gemeinsame TOC-Styles (kompakte Schrift)
   ============================================ */
#toc {
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 0.75em;
  box-sizing: border-box;
  font-size: 0.9em;
  line-height: 1.4;
}
#toc h2 {
  margin-top: 0;
  color: #4b8b28;
  font-size: 1.5em;
}
#toc ul {
  list-style: none;
  padding: 0;
  margin: 0.5em 0 0;
}
#toc li {
  margin-bottom: 0.25em;
}
#toc a {
  color: #4b8b28;
  text-decoration: none;
  font-weight: bold;
}
#toc a:hover {
  text-decoration: underline;
}

/* ============================================
   Desktop (≥768px): Sticky Sidebar
   ============================================ */
@media (min-width: 768px) {
  /* 1) Mach die Zeile zum Grid mit fixem Sidebar-Track und flexiblem Content-Track */
  .row.align-items-start {
    display: grid !important;
    grid-template-columns: 260px 1fr;
    column-gap: 20px;       /* Abstand zwischen TOC und Artikel */
  }

  /* 2) Erzwinge für die Sidebar ihren Track-Width */
  #toc {
    position: sticky;
    top: 100px;                        /* Abstand zum Joomla-Header */
    max-height: calc(100vh - 120px);   /* voller Viewport minus Header */
    overflow-y: auto;                  /* Scroll, falls TOC länger ist */
    min-width: 260px !important;
    max-width: 260px !important;
  }

  /* 3) Override Bootstrap-Klassen, damit sie nicht wieder 25 % o.ä. setzen */
  .col-md-3 {
    width: auto !important;
    flex: none   !important;
  }

  /* 4) Kein zusätzliches Margin beim Content */
  .article-content {
    margin: 0 !important;
  }

  /* 5) “Nach oben” auf Desktop verstecken */
  .backtotop {
    display: none !important;
  }
}



/* ============================================
   Mobile (<768px): Static TOC & Back-to-top anzeigen
   ============================================ */
@media (max-width: 767.98px) {
  #toc {
    position: static;   /* ganz normal im Fluss */
    width: auto;
    margin: 0 0 1em;    /* Abstand nach unten */
    max-height: none;
    overflow: visible;
  }
  /* “Nach oben”-Links nur auf Mobil anzeigen */
  .backtotop {
    display: block !important;
  }
}




/* Standard: PDF Button verstecken */
.pdf-print-icon {
  display: none !important;
}

/* Nur auf Seite mit Menü-Item 188 -> PDF Button anzeigen */
body.itemid-188 .pdf-print-icon,
body.itemid-194 .pdf-print-icon,
body.itemid-195 .pdf-print-icon {
  display: inline-block !important;
}

/* Bilder in Tabellen abrunden usw */
.table-image {
    border: 2px solid #ccc; /* Dezenter Rahmen */
    border-radius: 50%; /* Rundes Bild */
    padding: 5px; /* Abstand zum Rahmen */
    max-width: 100%; /* Bildgröße anpassen */
    height: auto; /* Verhältnis beibehalten */
    display: block; /* Korrekte Anzeige in Tabellen */
    margin: 0 auto; /* Zentriert das Bild */
}



/* Tabellen Styling */
/* Allgemeines Styling für die Tabelle */
.mystic-table {
    border-collapse: separate;
    border-spacing: 15px 10px; /* Abstand zwischen den Zellen */
    width: 100%;
}

/* Styling für die linke Spalte */
.mystic-table td:first-child {
    background-color: rgba(144, 238, 144, 0.3); /* Sanftes Grün */
    font-weight: bold;
    padding: 12px;
    text-align: center;
}

/* Mystische, grünliche Umrandung für die rechte Spalte */
.mystic-table td:last-child {
    border: 3px solid rgba(34, 139, 34, 0.7); /* Mystisches Grün */
    border-radius: 10px; /* Leicht abgerundete Kanten */
    box-shadow: 0px 0px 10px rgba(34, 139, 34, 0.5); /* Sanfter Schimmer */
    padding: 10px;
}

/* Sichtbare Trennung der Zeilen */
.mystic-table tr {
    border-bottom: 2px dashed rgba(0, 100, 0, 0.5); /* Dezente grüne Trennlinie */
}

/* Styling für Bilder in der Tabelle */
.mystic-table img {
    border: 2px solid #ccc; /* Dezenter Rahmen */
    border-radius: 50%; /* Rundes Bild */
    padding: 5px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}


/* Styling für Kategorieblog Ausflüge und Aktionen */
.blog-item {
    border-radius: 20px; /* Sanft abgerundete Ecken */
    border: 3px solid rgba(34, 139, 34, 0.7); /* Mystisches Grün */
    padding: 20px;
    background: rgba(0, 50, 0, 0.2); /* Leicht dunkler Hintergrund */
    box-shadow: 0px 0px 15px rgba(34, 139, 34, 0.5);
}
.blog-post-frame {
    border: 3px solid rgba(34, 139, 34, 0.7); /* Mystisches Grün */
    border-radius: 12px; /* Sanfte Abrundung */
    padding: 15px;
    margin-bottom: 20px; /* Abstand zwischen den Beiträgen */
    box-shadow: 0px 0px 10px rgba(34, 139, 34, 0.5); /* Sanfter Schimmer */
    background: rgba(0, 50, 0, 0.2); /* Leicht dunkler Hintergrund */
}


.footer-modul {
    background-color: rgba(144, 238, 144, 0.3); /* Sanftes Grün */
    padding: 10px;
    text-align: center;
    width: 30%;
}

.footer-modul h3 {
    font-size: 12px;
    color: #333;
}

.footer-modul p {
    font-size: 12px;
    color: #666;
}