/**
 * Hauptstil-Datei für das FAQ-System
 * 
 * Enthält Styles für:
 * - Grundlegendes Layout und Reset
 * - Header und Navigation
 * - FAQ-Accordion und Tabs
 * - Suchfunktion und Ergebnisse
 * - Responsive Design
 * - Footer und Kontaktbereich
 */

/* ===================== RESET/GRUNDSTIL ===================== */
/* Basis-Reset für konsistentes Rendering */
* {
  box-sizing: border-box;
}

/* Grundlegende Seiteneinstellungen */
body {
  margin: 0;
  font-family: sans-serif;
  background-color: #ffffff;
  color: #333;
  font-size: 18px;
}

/* ===================== HEADER ===================== */
/* Hauptüberschrift und Navigation */
header {
  color: #000000;
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: 38px;
}

header h1 {
  margin: 0 0 1rem 0;
}

header p {
  padding: 1rem;
}

/* Hero-Bereich mit Hintergrundbild */
.header-background {
  background-image: url("Bilder/notebook2222.png");
  background-position: 25% 75%;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  margin: 0;
  padding: 0;
}

/* ===================== FARBSTREIFEN (ANIMATION) ===================== */
/* Animierter Farbverlauf im Header */
.color-strip {
  height: 15px;
  margin: 0;
  background: linear-gradient(to right, #ed7c22, #032f79, #ed7c22);
  background-size: 200% 100%;
  animation: colorChange 12s ease-in-out infinite;
}

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

/* ===================== FAQ-INTRO ===================== */
/* Einleitungstext für den FAQ-Bereich */
.faq-intro {
  max-width: 800px;
  margin: 1rem auto;
}

/* ===================== TABS + INHALT ===================== */
/* Tab-Navigation und Inhaltsbereiche */
.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem auto;
  max-width: 1000px;
  width: 100%;
}

/* Einzelne Tab-Buttons */
.tab {
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  background-color: #f9f9f9;
}

/* Tab-Hover und aktiver Zustand */
.tab:hover, .tab.active:hover {
  background-color: #032f79;
  color: #fff;
}

.tab.active {
  background-color: #ed7c22;
  color: #fff;
  border-color: #ed7c22;
}

/* Tab-Inhalte */
.tab-content .content,
.content {
  display: none !important;
  max-width: 1000px;
  margin: 0 auto 2rem;
}

.tab-content .content.active,
.content.active {
  display: block !important;
}

/* ===================== FAQ-EINTRÄGE ===================== */
/* Gemeinsame Styles für FAQ und Suchergebnisse */
.faq-item, .search-faq-item {
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 1rem;
  overflow: hidden;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* FAQ-Fragen */
.faq-question, .search-faq-question {
  padding: 1rem;
  background: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

/* Hover-Effekt für Fragen */
.faq-question:hover, .search-faq-question:hover {
  background-color: #032f79;
  color: #ffffff;
}

/* FAQ-Antworten */
.faq-answer, .search-faq-answer {
  padding: 1rem;
  display: none;
  background: #f9f9f9;
  height: auto;
  min-height: fit-content;
  transition: all 0.3s ease;
}

/* Aktiver Zustand der Antworten */
.faq-answer.active, .search-faq-answer.active {
  display: block;
}

/* Antworttext-Formatierung */
.faq-answer .answer-text, .search-faq-answer .answer-text {
  margin-bottom: 1rem;
  display: block;
}

/* Video-Container */
.faq-video {
  margin-top: 1rem;
}

/* Video-Formatierung */
.faq-video iframe, .search-faq-answer iframe {
  width: 100%;
  max-width: 800px;
  height: auto;
  aspect-ratio: 16 / 9;
}

/* ===================== SUCHE ===================== */
/* Suchcontainer und Eingabefeld */
.search-container {
  position: relative;
  max-width: 400px;
  margin: 2rem auto;
}

.search-container input[type="search"] {
  width: 100%;
  padding: 0.75rem 2.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Such-Icon */
.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 43%;
  transform: translateY(-105%);
  width: 1rem;
  height: 1rem;
  stroke: #ed7c22;
  stroke-width: 2;
  fill: none;
}

/* ===================== SCROLL-BUTTON ===================== */
/* Button zum Zurück-nach-Oben-Scrollen */
#myBtn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #032f79;
  color: white;
  cursor: pointer;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 20px;
  text-align: center;
  line-height: 30px;
}

#myBtn:hover {
  background-color: #ed7c22;
}

/* ===================== FOOTER ===================== */
/* Footer-Grundlayout */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #eaeaea;
  font-size: 0.9rem;
  color: #666;
}

/* Hauptnavigation im Footer */
.main-links {
  list-style: none;
  margin: 0;
  padding: 1rem 0;
  background-color: #eaeaea;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Footer-Links */
.main-links a {
  color: #86847F;
  text-decoration: none;
  transition: color 0.7s;
  font-size: 25px;
}

.main-links a:hover {
  color: #F0893A;
}

/* Footer-Container */
#footer {
  margin: 0 auto;
  position: relative;
  color: #86847F;
  font-size: 14px;
}

#footer a {
  color: #86847F;
  text-decoration: none;
  transition: color 0.7s;
}

#footer a:hover {
  color: #F0893A;
  text-decoration: none;
}

/* Footer-Spalten-Layout */
.g-footer-lists {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0 auto;
}

.g-footer-lists-item {
  flex: 1 1 200px;
  box-sizing: border-box;
  margin: 0 10px;
  text-align: center;
}

/* Footer-Icons */
.footer-icon {
  display: block;
  margin: 0 auto 0.5rem auto;
  max-width: 100%;
  height: auto;
}

/* ===================== SUCHERGEBNISSE ===================== */
/* Container für Suchergebnisse */
#searchResults {
  display: none;
  max-width: 1000px;
  margin: 0 auto 8rem;
}

/* Suchresultat-Titel */
.search-faq-title {
  display: inline-block;
}

/* Pfeil-Icon */
.faq-arrow {
  margin-left: auto;
}

/* ===================== HIGHLIGHT ===================== */
/* Hervorhebung von Suchbegriffen */
.highlight {
  background-color: #ed7c22; 
  display: inline;
}

/* ===================== KONTAKT ===================== */
/* Kontaktbereich-Layout */
.contact, .contact2 {
  text-align: center;
  padding: 2rem;
}

.contact2 {
  padding-left: 14rem;
  padding-right: 14rem;
}

/* Kontakt-Optionen */
.contact-options, .contact2-options {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-options > div, .contact2-options > div {
  flex: 0 1 300px;
}

.contact a:hover {
  color: #ed7c22;
  text-decoration: underline;
}

/* ===================== TOGGLE SWITCH ===================== */
/* Toggle-Schalter für Suchbereich */
.search-scope-toggle .toggle-switch {
  display: none;
}

.search-scope-toggle .toggle-switch + label {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-family: sans-serif;
  font-size: 14px;
  color: #333;
  user-select: none;
  margin-top: 8px;
}

/* Toggle-Track */
.search-scope-toggle .toggle-switch + label::before {
  content: "";
  display: block;
  width: 28px;
  height: 14px;
  background: #ccc;
  border-radius: 7px;
  margin-right: 8px;
  transition: background 0.25s;
}

/* Toggle-Knopf */
.search-scope-toggle .toggle-switch + label::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transform: translate(0, -50%);
  transition: left 0.25s;
}

/* Toggle-Text */
.search-scope-toggle .toggle-label-text {
  margin-left: 0;
}

/* Toggle-Zustände */
.search-scope-toggle .toggle-switch:checked + label::before {
  background: #ed7c22;
}

.search-scope-toggle .toggle-switch:checked + label::after {
  left: 10px;
}

/* ===================== BUTTONS ===================== */
/* Button-Styles */
button a {
  color: inherit;
  text-decoration: none;
}

button a:hover {
  color: #032f79;
}

button.btn {
  background-color: #ed7c22;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

button.btn:hover {
  background-color: #032f79;
  color: #fff;
}

button.btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px #ed7c22;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}