/*
Theme Name: Hexenhain Theme
Description: Angepasstes Theme für hexenhain.de
Version: 1.0
Author: Satyria
*/

@font-face {
  font-family: 'Alice';
  src: url('Alice-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Basis */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Alice', serif;
  /*font-style: italic;*/
}

body {
  /*font-family: 'Segoe UI', sans-serif;*/
  line-height: 1.6;
  color: #515b3a;/*black;*/
  background-color: white; /*#515b3a;*/
}

/* Header */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #515b3a;
  color: white;
  padding: 0.5rem 0.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  text-align: center;
}

.logo {
  max-width: 500px;
  margin-bottom: 0rem; /* Abstand zwischen Logo und Menü */
}

.logo img {
  width: 100%;
  height: auto;
  display: block;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap; /* Damit das Menü auf kleinen Bildschirmen umbricht */
  justify-content: center;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.main-nav li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 1rem;
}

.main-nav li a:hover {
  color: #ffcc00;
}

.main-nav li ul {
  display: none;
  position: absolute;
  background-color: #3f472d; /* dunkler Hintergrund für Untermenüs */
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  z-index: 1000;
}

/* Positionierung der Untermenüs relativ zum Eltern-Element */
.main-nav li {
  position: relative;
}

/* Zeige das Untermenü, wenn man über das Eltern-LI hovert */
.main-nav li:hover > ul {
  display: block;
}

/* Styling der Links im Untermenü */
.main-nav li ul li a {
  display: block;
  padding: 0.5rem 1rem;
  white-space: nowrap;
  font-size: 0.9rem;
  color: white;
}

.main-nav li ul li a:hover {
  background-color: #444;
  color: #ffcc00;
}

/* Keyframe-Animationen */
@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutToLeft {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}

@keyframes slideInFromLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Slider Container */
.slider {
  position: relative;
  width: 100%;
  height: 400px; /* statt max-height */
  overflow: hidden;
  margin: 0 auto;
}

/* Slide Effekte */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Aktiver Slide – schiebt herein */
.slide.active {
  animation: slideInFromRight 0.8s forwards;
  z-index: 2;
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
  background-color: rgba(0, 0, 0, 0.4);
  padding: 1rem 2rem;
  border-radius: 8px;
  z-index: 3;
}

/* Vorheriger Slide – schiebt hinaus */
.slide.prev {
  animation: slideOutToLeft 0.8s forwards;
  z-index: 1;
}

/* Pfeile */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
}

.nav.prev {
  left: 10px;
}

.nav.next {
  right: 10px;
}

/* Indikatoren (Punkte unten) */
.indicators {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
  z-index: 10;
}

.indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
}

.indicator.active {
  background-color: #fff;
}

.slogans {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.slogans h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #333;
}

.slogans img {
  width: 80%;
  /*max-width: 300px; /* Begrenze maximale Größe, falls nötig */
  height: auto;
  display: block;
  margin: 0 auto 2rem auto; /* Abstand nach unten zum Text */
}

.slogans p {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #555;
}

/* Inhalt */
.content {
  background-color: #f4f4f4;
  max-width: 1000px;
  margin: 1rem auto;
  padding: 0 1rem;
}

.content article {
  margin-bottom: 2rem;
}

.content h2 {
  margin-bottom: 0.5rem;
  color: #515b3a;/*black;*/
}

.content h3 {
  /*margin-bottom: 0.5rem;*/
  color: #515b3a;/*black;*/
}.

.content p {
  color: #515b3a;/*black;*/
}

/* Footer */
.site-footer {
  background-color: #515b3a; /*#2c2c2c;*/
  color: white;
  text-align: center;
  padding: 2rem;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-nav li a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav li a:hover {
  text-decoration: underline;
}

/* Standardmäßig ausblenden */
.menu-toggle {
  display: none;
}

/* Responsive */
@media (max-width: 985px) {
  .main-nav ul {
    flex-direction: column;
    background-color: #3f472d;
    position: absolute;
    top: 60px;
    right: 2rem;
    padding: 1rem;
    display: none;
  }

  .main-nav.active ul {
    display: flex;
  }

  .main-nav-toggle {
    display: block;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
  }
}

/* === Mobile Optimierungen === */
@media (max-width: 985px) {

  .site-header {
    position: static;
  }
  
  /* Hamburger Menü Icon */
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
  }

@media (max-width: 985px) {
  .main-nav {
    position: fixed; /* statt absolute */
    top: 60px;
    right: 1rem;
    bottom: 1rem; /* Abstand vom unteren Rand */
    left: 1rem; /* optional: für volle Breite auf Mobil */
    background-color: #3f472d;
    padding: 1rem;
    display: none;
    flex-direction: column;
    border-radius: 8px;
    overflow-y: auto; /* wichtig: macht das Menü scrollbar */
    max-height: calc(100vh - 80px); /* lässt Platz oben und unten */
    z-index: 1000;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
    padding: 0;
    margin: 0;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav li a {
    padding: 0.75rem;
    display: block;
    text-align: center;
    color: white;
  }

  .main-nav li ul {
    display: none !important;
  }

  .main-nav li:hover > ul {
    display: none !important;
  }

  /* Slider Höhe anpassen */
  .slider {
    height: 250px;
  }

  /* Text im Slider etwas kleiner */
  .slide-text {
    font-size: 1.2rem;
    padding: 0.75rem 1.5rem;
  }

  /* Inhalt anpassen */
  .content {
    margin: 1rem;
    padding: 1rem;
  }

  .content h2 {
    font-size: 1.5rem;
  }

  .content p {
    font-size: 1rem;
  }

  /* Footer Menü als Spalte */
  .footer-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
}