/* ----------------------------
   Styles für AGB
----------------------------- */
#agb h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #00509e;
}

#agb h3 {
  color: #004080;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

#agb p {
  margin-bottom: 1rem;
}

/* ----------------------------
   Styles für Datenschutz
----------------------------- */
#datenschutz h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #00509e;
}

#datenschutz h3 {
  color: #004080;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

#datenschutz p {
  margin-bottom: 1rem;
}

#datenschutz ul {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}

#datenschutz a {
  color: #00509e;
  text-decoration: none;
}

#datenschutz a:hover,
#datenschutz a:focus {
  text-decoration: underline;
}

/* ----------------------------
   Styles für FAQ
----------------------------- */
#faq {
  max-width: 800px;
  margin: 1.5rem auto;
  padding: 0 1rem;
  font-family: Arial, sans-serif;
  color: #222;
}

#faq h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #004085;
  text-align: center;
}

/* Suchfeld */
#faq-search-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

#faq-search {
  width: 90%;
  max-width: 800px;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  border: 2px solid #004085;
  border-radius: 4px;
  transition: border-color 0.3s ease;
}

#faq-search:focus {
  outline: none;
  border-color: #002752;
  box-shadow: 0 0 5px #004085;
}

#faq-search-message {
  text-align: center;
  font-style: italic;
  color: #666;
  margin-bottom: 1rem;
  min-height: 1.2rem;
}

/* FAQ-Items */
.faq-item {
  border: 1px solid #cce5ff;
  background-color: #e9f2fb;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 1px 1px 5px rgba(0, 64, 133, 0.1);
  transition: background-color 0.3s ease;
}

.faq-item:hover {
  background-color: #d0e4fa;
}

.faq-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #003366;
  cursor: default;
}

.faq-item p {
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
  margin: 0;
}

.faq-item a {
  color: #004085;
  text-decoration: underline;
}

.faq-item a:hover,
.faq-item a:focus {
  color: #002752;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 480px) {
  #faq h2 {
    font-size: 1.5rem;
  }

  .faq-item h3 {
    font-size: 1.1rem;
  }

  #faq-search {
    max-width: 100%;
  }
}

/* ----------------------------
   Styles für Impressum
----------------------------- */
#impressum h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #00509e;
}

#impressum h3 {
  color: #004080;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

#impressum p {
  margin-bottom: 1rem;
}

#impressum a {
  color: #00509e;
  text-decoration: none;
}

#impressum a:hover,
#impressum a:focus {
  text-decoration: underline;
}

/* ----------------------------
   Styles für Kontakt
----------------------------- */
section.main.style2.special header.major h2 {
  font-weight: 700;
  font-size: 2rem;
  color: #222;
  margin-bottom: 2rem;
}

section.main.style2.special header.major p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
}

section.main.style2.special section h3 {
  font-weight: 600;
  color: #222;
  margin-bottom: 1rem;
}

section.main.style2.special ul.alt {
  list-style: none;
  padding-left: 0;
  font-size: 1rem;
}

section.main.style2.special ul.alt li a {
  color: #222;
  text-decoration: none;
}

/* Kontaktformular */
#contact-form {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fafafa;
  color: #222;
  font-size: 1rem;
  margin-bottom: 1rem;
  resize: vertical;
}

#contact-form label {
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #222;
}

label.required::after {
  content: " *";
  color: red;
}

#contact-form input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

#contact-form label[for="privacy"] {
  color: #444;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
}

.submit-btn {
  background: #007acc;
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 1.5rem;
  min-width: 180px;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #005fa3 !important;
  color: #fff !important;
}

/* ----------------------------
   Styles für Links
----------------------------- */
.container {
  max-width: 600px;
  margin: 30px auto;
  padding: 0 20px 40px;
  text-align: center;
}

.container section.box h2 {
  color: #004aad;
  border-bottom: 2px solid #004aad;
  padding-bottom: 5px;
  margin-top: 0;
  margin-bottom: 30px;
  font-weight: 700;
  font-size: 1.8em;
  text-align: center;
}

.container a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  margin: 10px auto;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
  text-align: center;
  gap: 8px;
}

.container a.button:hover {
  background-color: #0056b3;
}

.container a.button.aqua {
  background: url('../images/aqua.webp') no-repeat center center;
  background-position: 100% 45%;
  background-size: 100%;
  color: white;
  font-size: 1.2rem;
  height: 150px;
  padding: 0 20px;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.7);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container a.button.aqua:hover {
  filter: brightness(0.85);
  background-color: transparent;
}

.container a.button.gyg {
  background: url('../images/gyg.webp') no-repeat;
  background-position: 50% 6%;
  background-size: 100%;
  color: white;
  font-size: 1.2rem;
  height: 150px;
  padding: 0 20px;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.7);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, filter 0.3s ease;
}

.container a.button.gyg:hover {
  filter: brightness(0.85);
  background-color: transparent;
}

.container a.button.img-right {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.container a.button.img-right > span {
  flex-grow: 1;
  text-align: center;
}

.container a.button.img-right img {
  margin-left: 10px;
  height: 24px;
  width: auto;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .container {
    padding: 0 10px 30px;
  }

  .container a.button {
    max-width: 100%;
  }

  .container a.button.img-right {
    justify-content: center;
  }

  .container a.button.img-right img {
    display: none;
  }
}

/* ----------------------------
   Sonstige Styles
----------------------------- */
.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #fff;
  padding: 0.5em 1em;
  border-radius: 4px;
  font-weight: 600;
  height: 38px;
  min-width: 140px;
  text-align: center;
  gap: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.whatsapp-button:hover {
  background-color: #1a9e4a !important;
  color: #fff !important;
}

.mobile-only {
  margin-top: 1em;
}

@media screen and (min-width: 768px) {
  .mobile-only {
    display: none !important;
  }
}

img {
      user-select: none;
      -webkit-user-drag: none;
      user-drag: none;
      pointer-events: none;
    }
    
    /* Übersetzen Button */
    #translate-button {
      position: fixed;
      top: 10px;
      right: 10px;
      background: white;
      border: none;
      padding: 6px 6px;
      font-size: 0.9rem;
      font-weight: 600;
      color: black;
      cursor: pointer;
      box-shadow: 0 2px 6px rgba(0,0,0,0.15);
      display: flex;
      align-items: center;
      justify-content: center;
      user-select: none;
      z-index: 9999;
      transition: background-color 0.3s ease;
    }
    #translate-button:hover {
      background-color: #f0f0f0;
    }

    @media (max-width: 600px) {
      #translate-button {
        padding: 1px 1px;
        font-size: 0.5rem;
        top: 4px;
        right: 6px;
      }
    }
    
    #google_translate_element {
      display: none;
      position: fixed;
      top: 50px;
      right: 10px;
      z-index: 9999;
      background: #fff;
      border-radius: 8px;
      box-shadow: 0 4px 14px rgba(0,0,0,0.2);
      padding: 8px 12px;
      font-size: 0.9rem;
    }

    /* Alle bekannten Google Translate Overlays ausblenden */
    .goog-te-banner-frame.skiptranslate,
    .goog-te-balloon-frame,
    .goog-text-highlight,
    .goog-tooltip,
    .goog-tooltip:hover,
    .goog-tooltip .goog-tooltiptext,
    .goog-inline-block.goog-logo-link,
    .goog-logo-link,
    .goog-te-gadget-icon {
      display: none !important;
    }

    /* Iframe-Container der Übersetzungs-Elemente (manchmal kommen die darin) */
    iframe.goog-te-menu-frame,
    iframe.goog-te-banner-frame {
      display: none !important;
    }

    /* Körper nicht verschieben */
    body {
      top: 0 !important;
      margin-top: 0 !important;
    }

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1c1c1c;
  color: #fff;
  padding: 8px 20px;
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.5);
  user-select: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  /* Höhe flexibel */
  height: auto;
  min-height: 40px;
}

#cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

#cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#cookie-banner .content-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 900px;
  flex-wrap: nowrap; /* keine Zeilenumbrüche im Desktop */
}

.cookie-icon {
  height: 24px;
  width: 24px;
  flex-shrink: 0;
}

#cookie-banner p {
  margin: 0;
  white-space: nowrap;
  text-align: center;
  flex-grow: 1; /* Text nimmt so viel Platz wie möglich ein */
}

.button-group {
  display: flex;
  gap: 8px;
}

/* Buttons */
#cookie-banner button {
  border: none;
  padding: 4px 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 0.8rem;
  border-radius: 3px;
  color: #fff !important;
  user-select: none;
  min-width: 70px;
  height: 28px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease;
}

#accept-cookies {
  background-color: #28a745;
}
#accept-cookies:hover {
  background-color: #218838;
}

#decline-cookies {
  background-color: #dc3545;
}
#decline-cookies:hover {
  background-color: #b02a37;
}

@media (max-width: 480px) {
  #cookie-banner .content-wrapper {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    position: relative;
    padding-left: 40px; /* Platz für das Icon links unten */
    min-height: 50px; /* Genug Höhe für Icon unten */
  }
  
.cookie-icon {
  position: absolute;
  left: 10px;
  top: 62%;
  transform: translateY(-50%);
  height: 40px;
  width: 40px;
  flex-shrink: 0;
}
   
  #cookie-banner p {
    flex-basis: 100%;
    white-space: normal;
    margin: 0 auto;
    text-align: center;
  }
  
  .button-group {
    flex-basis: 100%;
    justify-content: center;
    gap: 10px;
  }
  
  #cookie-banner button {
    min-width: 60px;
    padding: 3px 8px;
    font-size: 0.75rem;
    height: 24px;
  }
}

    #header {
      padding: 0.5em 0 !important;
    }

    @media screen and (max-width: 1680px) {
      #header {
        padding: 0.5em 0 !important;
      }
    }
    
    #header .actions:after {
      display: none !important;
    }
    
    #footer {
      padding: 1.5em 0 1.5em 0 !important;
    }

    .main {
      padding: 1.5em 0 1.5em 0 !important;
    }

.mobile-break {
  display: none;
}

@media (max-width: 600px) {
  .mobile-break {
    display: block !important;
  }
}

@media (max-width: 600px) {
  #ueber-mich img {
    max-width: 180px !important;
  }
}

@media (max-width: 600px) {
  #ueber-mich .row {
    flex-direction: column;
    text-align: center;
  }

  #ueber-mich .col-4,
  #ueber-mich .col-8 {
    max-width: 100% !important;
  }

  #ueber-mich img {
    margin-bottom: 1em;
  }
}
