:root {
  /* Light Theme Colors */
  --sidebar-bg: #F5F5F5;
  --primary-color: #4F46E5;
  --secondary-color: #3B82F6;
  --background-color: #FFFFFF;
  --border-color: #E5E7EB;
  --text-color: #111827;
  --text-secondary: #6B7280;
}

body.dark-theme {
  /* Dark theme colors */
  --sidebar-bg: #374151;
  --primary-color: #8B5CF6;
  --secondary-color: #60A5FA;
  --background-color: #0d111b;
  --border-color: #374151;
  --text-color: #F9FAFB;
  --text-secondary: #9CA3AF;
}

.main-view {
  display: block; /* Standard, Kinder untereinander */
}

  .header {
    text-align: center;
    background: #e8dfc9;
    border-bottom: 3px solid #bfa76f;
    padding: 1.5rem 1rem;
  }

  .header h1 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2rem;
    margin: 0;
    color: #3e3422;
  }

  .inhalt {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    line-height: 1.7;
    color: var(--text-color);
  }

  .inhalt h2 {
    color: #5a4524;
    border-left: 5px solid #bfa76f;
    padding-left: 0.6rem;
    margin-top: 2rem;
    font-size: 1.3rem;
  }

  .inhalt p {
    text-align: justify;
    margin-bottom: 1rem;
  }

  .image-block {
    text-align: center;
    margin: 1.2rem 0;
  }

  .image-placeholder {
    width: 100%;
    max-width: 600px;
    height: 320px;
    background: #ddd;
    border: 1px solid #bbb;
    display: inline-block;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background-image: linear-gradient(135deg, #dcdcdc 25%, transparent 25%), 
                      linear-gradient(225deg, #dcdcdc 25%, transparent 25%), 
                      linear-gradient(45deg, #dcdcdc 25%, transparent 25%), 
                      linear-gradient(315deg, #dcdcdc 25%, transparent 25%);
    background-position: 10px 0, 10px 0, 0 0, 0 0;
    background-size: 20px 20px;
    background-repeat: repeat;
  }

  .caption {
    font-size: 0.9rem;
    color: #555;
    margin-top: 0.3rem;
    font-style: italic;
  }

  .historie-footer {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 3rem;
    padding: 1rem 0;
    border-top: 1px solid #c5b48a;
  }

  @media print {
    body {
      background: white;
      color: black;
    }
    .image-placeholder {
      border: 1px solid #000;
      background: none;
    }
  }


    .site-header {
      position: relative;
    }

    .logo-wrapper {
      position: relative;
      display: inline-block;
      bottom: -15px;
    }

    .logo-wrapper .logo {
      display: block;
      max-width: 80px; 
      height: auto;
      image-rendering: crisp-edges;
    }

    .logo-wrapper .moewe {
      position: absolute;
      bottom: 82%;      
      width: 35px;             
      height: auto;
      pointer-events: auto;
      cursor: pointer;
      animation: moewe-walk 8s linear infinite;
      transform-origin: center bottom;
    }

    .logo-wrapper .moewe.paused {
      animation-play-state: paused;
    }

  
    @keyframes moewe-walk {
  0% {
    transform: translateX(0px) translateY(0) scaleX(-1);
  }
  10% {
    transform: translateX(10px) translateY(-8px) scaleX(-1);
  }
  20% {
    transform: translateX(20px) translateY(0) scaleX(-1);
  }
  30% {
    transform: translateX(30px) translateY(-6px) scaleX(-1);
  }
  40% {
    transform: translateX(40px) translateY(0) scaleX(-1);
  }
  48% {
    transform: translateX(50px) translateY(-8px) scaleX(-1);
   }
  50% {
    transform: translateX(50px) translateY(0) scaleX(-1);
  }
  52% {
    transform: translateX(50px) translateY(-4px) scaleX(1);
  }
  55% {
    transform: translateX(45px) translateY(0) scaleX(1);
  }
  60% {
    transform: translateX(40px) translateY(-6px) scaleX(1);
  }
  70% {
    transform: translateX(30px) translateY(-8px) scaleX(1);
  }
  80% {
    transform: translateX(20px) translateY(0) scaleX(1);
  }
  90% {
    transform: translateX(5px) translateY(-6px) scaleX(1);
  }
  100% {
    transform: translateX(0px) translateY(0) scaleX(-1);
  }
}