/* =========================
   1) GLOBAL STYLES
========================= */
body {
    font-family: 'Lora', serif;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    color: #333;
    background-color: #fff;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Neuigkeiten-Button im Header --- */
.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.news-button {
  background-color: #fff;
  border: 2px solid #ff7f50;
  color: #ff7f50;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 20px;
  text-decoration: none;
  position: relative;
  transition: all 0.3s;
}

.news-button:hover {
  background-color: #ff7f50;
  color: #fff;
}

.news-badge {
  background-color: #ff7f50;
  color: #fff;
  font-size: 0.75em;
  font-weight: 700;
  border-radius: 50%;
  padding: 3px 6px;
  margin-left: 6px;
  vertical-align: middle;
}

/* =========================
 2.0) BADGE STYLES
========================= */

/* Badge Allgemein */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ff5722; /* Hintergrundfarbe des Kreises */
    color: #fff; /* Textfarbe */
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.8em;
    position: absolute; /* Absolute Positionierung */
    right: 20px; /* Abstand vom rechten Rand des Menüs */
    top: 50%; /* Vertikale Zentrierung */
    transform: translateY(-50%); /* Vertikale Zentrierung */
    }
    
    /* Menülinks als Flex-Container */
    .side-menu nav ul li a.menu-item {
    position: relative; /* Für absolute Positionierung der Badge */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 40px; /* Platz für die Badge */
    color: #333; /* Textfarbe */
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
    }
    
    /* Hover-Effekt für Menülinks mit Badges */
    .side-menu nav ul li a.menu-item:hover {
    background-color: #ff7f50;
    color: #fff;
    }
    
    /* Badge Anpassungen für kleinere Bildschirme */
    @media screen and (max-width: 480px) {
    .badge {
        width: 16px;
        height: 16px;
        font-size: 0.7em;
        right: 15px;
    }
    
    .side-menu nav ul li a.menu-item {
        padding-right: 35px;
    }
    }
    
    
    /* --------------------------------
     3) HEADER (FIXED)
    ----------------------------------- */
    header {
      position: fixed;
      top: 0;
      right: 0; 
      left: 0;
      background-color: rgba(255,255,255,0.95);
      border-bottom: 1px solid #eee;
      padding: 15px 30px;
      z-index: 1000;
      display: flex;
      justify-content: space-between;
      align-items: center;
      box-sizing: border-box;
    }
    
    header .logo {
      color: #ff7f50;
      font-weight: 600;
      font-size: 1.5em;
    }
    
    .menu-toggle {
      font-size: 1.2em;
      color: #ff7f50;
      cursor: pointer;
      font-weight: 600;
      padding: 10px 20px;
      border: 2px solid #ff7f50;
      border-radius: 25px;
      transition: background-color 0.3s, color 0.3s;
      display: inline-block;
    }
    
    .menu-toggle:hover {
      background-color: #ff7f50;
      color: #fff;
    }
    
    /* --------------------------------
     4) SEITENMENÜ (RIGHT SLIDE)
    ----------------------------------- */
    .side-menu {
      position: fixed;
      top: 0;
      right: -350px;
      width: 350px;
      height: 100vh;
      background-color: #fff;
      box-shadow: -2px 0 8px rgba(0,0,0,0.1);
      transition: right 0.4s ease;
      z-index: 9999;
      display: flex;
      flex-direction: column;
    }
    
    .side-menu.open {
      right: 0;
    }
    
    .menu-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px 20px;
      border-bottom: 1px solid #eee;
      background-color: rgba(255,127,80,0.1);
    }
    
    .menu-logo {
      color: #ff7f50;
      font-size: 1.3em;
      font-weight: 600;
    }
    
    .close-menu {
      font-size: 1.5em;
      cursor: pointer;
      color: #333;
      transition: color 0.3s;
    }
    
    .close-menu:hover {
      color: #ff7f50;
    }
    
    /* Menü-Liste */
    .side-menu nav ul {
      display: flex;
      flex-direction: column;
      margin: 0;
      padding: 0;
      height: 100%;
    }
    
    .side-menu nav ul li {
      border-bottom: 1px solid #f2f2f2;
      position: relative;
      list-style: none; /* keine Bullet-Points */
    }
    
    .side-menu nav ul li a {
      display: block;
      padding: 15px 20px;
      font-weight: 600;
      color: #333;
      text-decoration: none;
      transition: background-color 0.3s, color 0.3s;
    }
    
    .side-menu nav ul li a:hover {
      background-color: #ff7f50;
      color: #fff;
    }
    
    /* Submenu (Accordion) */
    .side-menu nav ul li ul.dropdown {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
    }
    
    .side-menu nav ul li ul.dropdown li a {
      padding-left: 40px;
      font-size: 0.95em;
    }
    
    .side-menu nav ul li ul.dropdown.open-submenu {
      max-height: 1000px;
    }
    
    .has-submenu .arrow {
      float: right;
      font-size: 0.9em;
      opacity: 0.7;
      margin-top: 2px;
    }
    
    /* Letzter Menüpunkt => Impressum & Datenschutz */
    .impressum-datenschutz {
      margin-top: auto; 
    }
    
    /* SPECIAL-BUTTON (Termine) */
    .special-button {
      background-color: #ff5722 !important;
      color: #fff !important;
      border-radius: 25px;
      margin: 10px 20px;
      padding: 10px 20px;
      text-align: center;
      display: inline-block;
      font-weight: bold;
      transition: background-color 0.3s ease;
      text-decoration: none; /* Unterstreichung entfernt */
    }
    
    .special-button:hover {
      background-color: #ff3d00 !important;
      text-decoration: none; /* Unterstreichung beim Hover entfernt */
    }

/* =========================
   HERO SECTION
========================= */
.hero {
    background-color: #fff; 
    padding-top: 80px; 
    padding-bottom: 40px; 
    margin-top: 70px; 
    text-align: center;
}

.hero .container {
    background-color: rgba(248, 242, 242, 0.8); 
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

.hero p {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 20px;
}

/* Button im Hero-Bereich */
.slideshow-button {
    display: inline-block;
    background: #ff7f50;
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
    font-size: 1em;
}

.slideshow-button:hover {
    background: #ff5722;
}

/* =========================
   INTRODUCTION
========================= */
.introduction {
    padding: 60px 0;
    background-color: #fff;
    text-align: center;
}

.introduction h2 {
    font-size: 2em;
    color: #ff7f50;
    margin-bottom: 20px;
}

.introduction p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 30px;
}

.event-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.event-links li a {
    display: inline-block;
    background: #ff7f50;
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
    font-size: 1em;
}

.event-links li a:hover {
    background: #ff5722;
    transform: scale(1.05);
}

/* =========================
   EVENT SECTION
========================= */
main {
    padding: 100px 0 60px 0; 
    background-color: #f8f2f2;
}

.event-section {
    margin-bottom: 80px; 
    padding-top: 40px; 
    border-top: 1px solid #eee; 
}

.event-header {
    text-align: center;
    margin-bottom: 30px;
}

.event-header h2 {
    font-size: 2.5em;
    color: #ff7f50;
    margin-bottom: 10px;
}

.event-header p {
    font-size: 1.2em;
    color: #555;
}

.event-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px; 
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px; 
    width: 100%;
}

/* 1) Lebensfreudevideo => Klickbar, kein controls => object-fit: cover; */
#messe-lebensfreude .grid-item {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden; 
}

#messe-lebensfreude .grid-item img,
#messe-lebensfreude .grid-item video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: top; 
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

#messe-lebensfreude .grid-item img:hover,
#messe-lebensfreude .grid-item video:hover {
    transform: scale(1.05);
}

/* 2) „magie1“ „magie2“ „magie3“ „magie4“: Bild soll mittig sein => object-position: center; */
#magie-aus-afrika .grid-item {
    position: relative;
    padding-top: 56.25%; 
    overflow: hidden;
}

#magie-aus-afrika .grid-item img,
#magie-aus-afrika .grid-item video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Wichtig: Bildvorschau mittig */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

#magie-aus-afrika .grid-item img:hover,
#magie-aus-afrika .grid-item video:hover {
    transform: scale(1.05);
}

/* Event Beschreibung */
.event-description {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.event-description p {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 20px;
}

.details-button {
    display: inline-block;
    background: #ff7f50;
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.details-button:hover {
    background: #ff5722;
}

/* =========================
   7) MODAL STYLES
========================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 40px;
    border-radius: 10px;
    max-width: 800px;
    position: relative;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover {
    color: #000;
}

.modal-content h3 {
    color: #ff7f50;
    margin-bottom: 20px;
}

.modal-content p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 15px;
}

.modal-content ul {
    list-style: disc inside;
    margin-bottom: 20px;
    color: #555;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2500;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.image-modal .close-image-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.image-modal .close-image-modal:hover {
    color: #bbb;
}

.image-modal .modal-image {
    display: block;
    margin: 5% auto;
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
}

.image-modal #caption {
    margin: 15px auto;
    text-align: center;
    color: #ccc;
    font-size: 1.2em;
    max-width: 80%;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 2600;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.video-modal .close-video-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.video-modal .close-video-modal:hover {
    color: #bbb;
}

.video-modal .modal-video {
    display: block;
    margin: 5% auto;
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
}

/* =========================
   8) VIDEO SLIDESHOW
========================= */
.video-slideshow {
    padding: 60px 0;
    background-color: #fff;
    text-align: center;
}

.video-slideshow h2 {
    font-size: 2em;
    color: #ff7f50;
    margin-bottom: 20px;
}

.slideshow-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 56.25%; 
}

.video-slide {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-slide.active {
    display: block;
}

.video-slideshow iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.slideshow-controls {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.slideshow-controls button {
    background-color: #ff7f50;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 1em;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slideshow-controls button:hover {
    background-color: #ff5722;
}

/* =========================
 FOOTER
========================= */
footer {
    text-align: center;
    padding: 40px 20px;
    background-color: #333;
    color: #fff;
  }

/* =========================
   10) RESPONSIVE DESIGN
========================= */
@media screen and (max-width: 1200px) {
    .event-header h2 {
        font-size: 2em;
    }

    .event-header p {
        font-size: 1.1em;
    }

    .introduction h2 {
        font-size: 1.8em;
    }

    .introduction p {
        font-size: 1em;
    }

    .event-links li a {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

@media screen and (max-width: 992px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .event-description p {
        font-size: 1em;
    }

    .magie-aktivitaeten {
        font-size: 1em;
    }

    .messe-angebote {
        font-size: 1em;
    }
}

@media screen and (max-width: 768px) {
    .hero {
        height: 50vh;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }

    .introduction {
        padding: 40px 0;
    }

    .video-slideshow h2 {
        font-size: 1.8em;
    }

    .slideshow-controls button {
        padding: 8px 16px;
        font-size: 0.9em;
    }

    .grid-container {
        grid-template-columns: 1fr; 
    }

    #messe-lebensfreude .grid-item,
    #magie-aus-afrika .grid-item {
        padding-top: 56.25%; 
    }

    .event-description {
        padding: 0 10px;
    }
}

@media screen and (max-width: 480px) {
    .menu-toggle {
        padding: 8px 15px;
        font-size: 1em;
    }

    .hero {
        height: 40vh;
    }

    .hero h1 {
        font-size: 1.6em;
    }

    .hero p {
        font-size: 0.95em;
    }

    .event-header h2 {
        font-size: 1.6em;
    }

    .event-header p {
        font-size: 0.95em;
    }

    .details-button {
        padding: 10px 20px;
    }

    .modal-content,
    .image-modal .modal-image,
    .video-modal .modal-video {
        padding: 20px;
    }

    .video-slideshow h2 {
        font-size: 1.6em;
    }

    .slideshow-controls button {
        padding: 6px 12px;
        font-size: 0.8em;
    }
}

/* =========================
   11) BADGE STYLES
========================= */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ff5722;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.8em;
    position: absolute; 
    right: 20px; 
    top: 50%; 
    transform: translateY(-50%); 
}

/* =========================
   6) MEDIA QUERIES / RESPONSIVE
========================= */

/* <= 992px (Tablet / kleiner Desktop) */
@media screen and (max-width: 992px) {
    /* Header passt sich hier nicht groß an;
       du kannst es so lassen wie bisher, 
       oder minimal tweak: 
       height: 70px; font-size: 1.1em etc. */
  
    /* Hero: Reduziere die Hauptüberschrift etwas */
    #hero h1 {
      font-size: 2.3em;
    }
    /* #hero: scroll-margin-top => 90px 
       kann bleiben, falls du Anker willst. */
    #hero {
      padding-top: 90px;
      scroll-margin-top: 90px;
    }
  
    .about-container {
      padding: 40px 15px;
    }
    .about-image, .about-text {
      max-width: 100%; 
    }
  }
  
  /* <= 768px (Hochformat Tablet / großes Smartphone) */
  @media screen and (max-width: 768px) {
    #hero {
      padding-top: 80px; 
      scroll-margin-top: 80px;
    }
  
    #hero h1 {
      font-size: 2em;
    }
    #hero p {
      font-size: 1.1em;
      margin-bottom: 28px; 
    }
    #hero button {
      padding: 12px 24px;
      font-size: 1.05em; 
    }
  
    .about-text {
      font-size: 1.05em; 
    }
  }
  
  /* Optimized Media Queries for 480px and below */
  @media screen and (max-width: 480px) {
    /* General Adjustments */
    body {
      font-size: 0.9em;
      margin: 0;
      padding: 0;
    }
  
    /* 1) HEADER => zwei Zeilen, sticky, kleiner */
    header {
      position: sticky !important; 
      top: 0;
      z-index: 9999;
      background-color: #fff;
      border-bottom: 1px solid #eee;
      padding: 8px 10px; 
      display: flex;
      flex-direction: column;
      gap: 3px;
      align-items: flex-start;
  }
  
    /* Header-Zeilen: "Susanne Mariann Kretschmer" + Menübutton,
                      "- Ihre Geistheilerin" darunter */
    header .header-row {
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    header .logo-line1 {
      font-size: 0.7em !important;
      font-weight: 600;
      white-space: nowrap;
  }
    header .logo-line2 {
      font-size: 0.6em !important;
      font-weight: 500;
      color: #666;
      white-space: nowrap;
  }
  
    /* Menü-Button => schmaler */
    .menu-toggle {
      font-size: 0.75em !important; 
      padding: 3px 8px !important; 
      border-radius: 20px !important;
      background-color: #ff7f50;
      color: #fff;
      border: 2px solid #ff7f50;
    }
    .menu-toggle:hover {
      background-color: #ff5722;
      color: #fff;
    }
  
    /* Side-Menü schmaler (optional) */
    .side-menu {
      width: 280px !important; 
      right: -280px;          
    }
    .side-menu.open {
      right: 0;
    }
  
    /* Adjust HERO Section to start directly below header */
    #hero {
      min-height: 70vh;
      background: url("images/start.jpg") center center no-repeat;
      background-size: cover;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-end;
      text-align: center;
      position: relative;
      margin-top: 0;
    }
  
    .hero-text-box {
      width: 90%;
      max-width: 400px;
      background: rgba(255, 255, 255, 0.9);
      padding: 15px;
      border-radius: 10px;
      margin-bottom: 20px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
      text-align: center;
    }
  
    .hero-text-box h1 {
      font-size: 1.2em;
      color: #ff7f50;
      margin-bottom: 10px;
    }
  
    .hero-text-box p {
      font-size: 0.9em;
      color: #555;
      margin-bottom: 15px;
    }
  
    .hero-text-box button {
      padding: 8px 16px;
      background: #ff7f50;
      color: white;
      font-size: 0.8em;
      border: none;
      border-radius: 20px;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }
  
    .hero-text-box button:hover {
      background: #ff5722;
    }
  
    .hero-text-box button:focus {
      outline: none;
    }
  
    /* Ensures smooth scrolling without overlap */
    :root {
      scroll-padding-top: 80px;
    }
  
    /* ABOUT Section */
    .about-container {
      padding: 20px 10px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 15px;
      text-align: center;
    }
  
    .about-image {
      width: 90%;
      max-width: 300px;
      border-radius: 10px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
      margin-bottom: 15px;
    }
  
    .about-text {
      width: 90%;
      font-size: 1em;
      line-height: 1.5;
      text-align: justify;
    }
  
    .about-container img {
      margin-top: 10px;
    }
  
    /* CONTACT Section */
    #contact {
      padding: 30px 15px;
      background: #f9f9f9;
    }
  
    .contact-title {
      font-size: 1.5em;
      color: #ff7f50;
      margin-bottom: 15px;
    }
  
    .contact-description {
      font-size: 1em;
      color: #555;
      margin-bottom: 20px;
    }
  
    .contact-info {
      text-align: center;
      margin-bottom: 20px;
    }
  
    .contact-info a {
      color: #ff7f50;
      font-weight: bold;
      text-decoration: none;
    }
  
    .contact-info a:hover {
      text-decoration: underline;
    }
  
    .map-container-wide {
      width: 100%;
      height: 250px;
      border-radius: 10px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
  
    /* SOCIAL MEDIA Section */
    .social-media {
      margin-top: 20px;
    }
  
    .social-icons {
      display: flex;
      justify-content: center;
      gap: 10px;
    }
  
    .social-icons img {
      width: 40px;
      height: auto;
      transition: transform 0.3s ease;
    }
  
    .social-icons img:hover {
      transform: scale(1.1);
    }
  
   /* FOOTER Anpassungen */
   footer {
    padding: 20px 10px;
    font-size: 0.9em;
  }
  }
  
  
