/* Navigation Stile */
#navmenu a {
  transition: all 0.3s ease;
  position: relative;
  padding: 10px 15px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#navmenu a.active {
  background-color: #0066cc;
  color: white;
}

#navmenu a:hover {
  background-color: #0055aa;
  color: white;
}

/* Icon-Stile für aktive Navigation */
#navmenu a.active .navicon {
  color: white;
}

/* Scroll-Button Stile */
.scroll-button {
  position: fixed;
  width: 50px;
  height: 50px;
  background: #0066cc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 2px solid #fff;
  color: #fff;
  font-size: 24px;
  transition: background-color 0.3s ease;
}

.scroll-button:hover {
  background: #0055aa;
}

/* Button-Stile - Einheitliches Design für beide Sprachversionen */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  background: #0066cc;
  color: #fff !important;
  border-radius: 50px;
  transition: 0.3s;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  letter-spacing: 0.5px;
  min-width: 180px;
  height: 48px;
  line-height: 1.2;
}

.button i {
  margin-right: 8px;
}

.button:hover {
  background: #0055aa;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.button.highlight {
  background: #cc0000;
}

.button.highlight:hover {
  background: #aa0000;
}

.button.secondary {
  background: #009933;
}

.button.secondary:hover {
  background: #007722;
}

/* Verhindert horizontales Scrollen */
html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* Stellt sicher, dass alle Container nicht breiter als der Viewport sind */
.container, .container-fluid {
  max-width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

/* Stellt sicher, dass Bilder nicht über ihren Container hinausragen */
img {
  max-width: 100%;
  height: auto;
}

/* Stellt sicher, dass Tabellen nicht über ihren Container hinausragen */
table {
  max-width: 100%;
  overflow-x: auto;
  display: block;
}

/* Stellt sicher, dass lange Texte umgebrochen werden */
p, h1, h2, h3, h4, h5, h6, a, span, div {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Stellt sicher, dass Buttons nicht über ihren Container hinausragen */
.button {
  white-space: normal;
  text-align: center;
}

/* Stellt sicher, dass die Navigation auf mobilen Geräten korrekt angezeigt wird */
@media (max-width: 768px) {
  .navmenu {
    width: 100%;
    max-width: 100%;
  }
  
  .navmenu ul {
    flex-wrap: wrap;
  }
}

/* Übergangseffekte für das Menü */
#navmenu {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Anpassung für mobile Geräte */
@media (max-width: 1199px) {
  #navmenu {
    opacity: 1;
    visibility: visible;
  }
}

/* Verhindert Zeilenumbrüche innerhalb von Wörtern in Titeln, erlaubt aber Silbentrennung */
h2, h3, h4, .section-title h2, .card-body h3 {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: keep-all;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

/* Für kleinere Bildschirme: Gleiche Einstellungen beibehalten */
@media (max-width: 768px) {
  h2, h3, h4, .section-title h2, .card-body h3 {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: keep-all;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
  }
}

/* Scroll-Indikator */
.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  color: #fff;
  opacity: 0.7;
  cursor: pointer;
  z-index: 100;
  animation: bounce 2s infinite;
}

.scroll-indicator:hover {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-15px);
  }
  60% {
    transform: translateX(-50%) translateY(-7px);
  }
}

/* GSAP Animation Vorbereitungen */
#header .hero-content, #navmenu, section, .card {
  will-change: transform, opacity;
}

/* Verbesserte Übergänge für animierte Elemente */
#header .hero-content, #navmenu, section, .card {
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* Optimierung für mobile Geräte */
@media (max-width: 768px) {
  #header .hero-content, #navmenu, section, .card {
    transform: translateZ(0);
  }
}

/* Editor-Modus Stile */
.editor-ui {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  background: rgba(255, 255, 255, 0.95);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.editor-controls {
  display: flex;
  gap: 10px;
}

.editor-save, .editor-cancel {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.editor-save {
  background: #0066cc;
  color: white;
}

.editor-save:hover {
  background: #0055aa;
}

.editor-cancel {
  background: #cc0000;
  color: white;
}

.editor-cancel:hover {
  background: #aa0000;
}

.editable {
  outline: 2px dashed #0066cc;
  padding: 10px;
  margin: 5px 0;
  min-height: 50px;
}

.editable:focus {
  outline: 2px solid #0066cc;
  background: rgba(0, 102, 204, 0.05);
}

/* Impressum Overlay Stile */
.impressum-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 600px;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 10002;
  transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.impressum-overlay.active {
  right: 0;
}

.impressum-content {
  padding: 40px;
  position: relative;
  z-index: 10003;
}

.impressum-content h2 {
  color: #0066cc;
  margin-bottom: 30px;
  font-size: 28px;
}

.impressum-content h3 {
  color: #333;
  margin: 25px 0 15px;
  font-size: 20px;
}

.impressum-content p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Neuer auffälliger Schließen-Button */
.close-button {
  position: fixed;
  top: 20px;
  right: 620px;
  background: #0066cc;
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 10004;
}

.impressum-overlay.active .close-button {
  display: flex;
}

.close-button:hover {
  background: #0055aa;
  transform: scale(1.1);
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .impressum-overlay {
    max-width: 100%;
  }
  
  .impressum-content {
    padding: 20px;
  }
  
  .impressum-content h2 {
    font-size: 24px;
  }
  
  .impressum-content h3 {
    font-size: 18px;
  }

  .close-button {
    right: 20px;
    top: 20px;
  }
}

/* Mobile Navigation Anpassungen */
@media (max-width: 576px) {
  #navmenu {
    width: auto;
    right: 10px;
  }

  #navmenu ul {
    flex-direction: column;
    gap: 5px;
  }

  #navmenu a {
    padding: 12px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  #navmenu a span {
    display: none;
  }

  #navmenu a .navicon {
    font-size: 20px;
    margin: 0;
  }

  #navmenu a.active {
    background-color: #0066cc;
  }

  #navmenu a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
}

/* Scroll Hint Styles */
.scroll-hint {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--primary-color);
  font-size: 1.2rem;
  z-index: 1000;
  pointer-events: none;
  font-family: 'Moodcake', sans-serif;
}

.scroll-hint i {
  font-size: 1.8rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
} 