/* =========================================
   11847.auskunft24.net – styles.css
   Performance-optimiert – August 2026
   ========================================= */

/* Basis */
html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: 'Merriweather', 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
}

/* Typografie */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

a {
  color: #d94a2a;
  transition: color 0.2s;
}
a:hover {
  color: #c03e22;
}

hr {
  max-width: 50px;
  border-width: 3px;
  border-color: #d94a2a;
}
hr.light {
  border-color: #fff;
}

/* Farben */
.bg-primary {
  background-color: #d94a2a !important;
}
.bg-dark {
  background-color: #212529 !important;
}
.text-faded {
  color: rgba(255, 255, 255, 0.85);
}
.text-primary {
  color: #d94a2a !important;
}

/* Navigation */
#mainNav {
  background: rgba(33, 37, 41, 0.97) !important;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

#mainNav .navbar-brand {
  font-weight: 700;
  color: #ffffff !important;
}

#mainNav .navbar-brand span.text-warning {
  color: #ffc107 !important;
}

/* Menü rechts erzwingen */
#mainNav .navbar-nav {
  margin-left: auto !important;
}

#mainNav .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  padding: 0.6rem 1rem !important;
  transition: color 0.2s ease;
}

#mainNav .nav-link:hover,
#mainNav .nav-link:focus {
  color: #ffc107 !important;
}

/* Hamburger */
#mainNav .navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.3);
}

#mainNav .navbar-toggler-icon {
  filter: invert(1);
}

/* Mobile Menü */
@media (max-width: 991.98px) {
  #mainNav .navbar-collapse {
    background: rgba(33, 37, 41, 0.98);
    margin-top: 0.8rem;
    padding: 1rem;
    border-radius: 0.5rem;
  }
  
  #mainNav .navbar-nav {
    margin-left: 0 !important;
  }
}


/* =========================================
   Header / Masthead – HARD FIX für Mobile Portrait
   ========================================= */

header.masthead {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("/img/header.webp");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #1a1a2e;
  color: #fff;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;                 /* verhindert horizontales Überlaufen */
}

/* ========== MOBILE HOCHKANT (Portrait) ========== */
@media (max-width: 767px) and (orientation: portrait) {
  header.masthead {
    padding-top: 5.5rem;
    padding-bottom: 2.5rem;
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: auto !important;
  }
  
  header.masthead h1 {
    font-size: 1.6rem !important;
    line-height: 1.25;
    margin-bottom: 1rem;
  }
  
  header.masthead p {
    font-size: 0.95rem !important;
    margin-bottom: 0.8rem;
  }
  
  header.masthead .btn-xl {
    padding: 0.8rem 1.4rem !important;
    font-size: 1.05rem !important;
  }
}

/* ========== MOBILE QUER + TABLET ========== */
@media (max-width: 991px) and (orientation: landscape),
       (min-width: 768px) and (max-width: 991px) {
  header.masthead {
    padding-top: 6rem;
    padding-bottom: 3rem;
    min-height: 55vh;
    height: auto;
  }
  
  header.masthead h1 {
    font-size: 2.2rem;
  }
}

/* ========== DESKTOP (unverändert) ========== */
@media (min-width: 992px) {
  header.masthead {
    padding-top: 0;
    padding-bottom: 0;
    min-height: 650px;
    height: 100vh;
  }
  
  header.masthead h1 {
    font-size: 3rem;
  }
}

@media (min-width: 1200px) {
  header.masthead h1 {
    font-size: 4rem;
  }
}

/* Allgemeine Text- und Button-Farben */
header.masthead .container {
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 2;
  padding-left: 15px;
  padding-right: 15px;
}

header.masthead h1 {
  color: #fff !important;
}

header.masthead p {
  font-weight: 300;
  color: #fff;
}

header.masthead .text-faded {
  color: rgba(255, 255, 255, 0.85) !important;
}

header.masthead .btn-primary {
  background-color: #d94a2a !important;
  border-color: #d94a2a !important;
  color: #fff !important;
}

header.masthead .btn-primary:hover {
  background-color: #c03e22 !important;
  color: #fff !important;
}

/* Buttons */
.btn {
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  border-radius: 300px;
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}
.btn-xl {
  padding: 1rem 1.5rem;
  font-size: 1.25rem;
  border-radius: 50px;
}
.btn-primary {
  background-color: #d94a2a;
  border-color: #d94a2a;
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #c03e22 !important;
  color: #fff;
}

/* Komponenten */
.number-box {
  background: #fff;
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  height: 100%;
}
.alert-shutdown {
  background: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}

/* Cookie Banner – funktioniert jetzt zuverlässig */
#cookieBanner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #222;
  color: #fff;
  padding: 15px;
  text-align: center;
  font-family: Arial, sans-serif;
  z-index: 9999;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.4);
  transform: translateY(100%);
  transition: transform 0.35s ease;
  display: none;               /* standardmäßig versteckt */
}

#cookieBanner.show {
  transform: translateY(0);
}

#cookieBanner a {
  color: #66b3ff !important;
  text-decoration: underline;
}

#cookieBanner button {
  padding: 8px 16px;
  margin: 8px 6px 0;
  cursor: pointer;
  background: #0056b3;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
}

#cookieBanner button:hover {
  background: #003d80;
}

/* Sections */
section {
  padding: 4rem 0;
}

/* Selection */
::selection {
  color: #fff;
  background: #212529;
  text-shadow: none;
}

/* FAQ */
.faq-item {
  background: #fff;
  transition: box-shadow 0.2s;
}
.faq-item:hover {
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1) !important;
}
.faq-item h3 {
  color: #d94a2a;
}

/* ========== STICKY BUTTONS – starke Version ========== */
.sticky-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 13px 18px !important;
  border-radius: 50px !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  text-decoration: none !important;
  border: none !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35) !important;
  transition: all 0.25s ease !important;
  animation: softPulse 2.5s infinite !important;
}

/* Adult – Rot */
.sticky-left {
  background: linear-gradient(135deg, #dc3545, #c82333) !important;
  background-color: #dc3545 !important;
}

/* Esoterik – Blau */
.sticky-right {
  background: linear-gradient(135deg, #0d6efd, #0b5ed7) !important;
  background-color: #0d6efd !important;
}

.sticky-btn:hover {
  transform: translateY(-50%) scale(1.08) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45) !important;
  color: #ffffff !important;
}

.sticky-btn i {
  font-size: 1.15rem !important;
  color: #ffffff !important;
}

/* Pulsieren */
@keyframes softPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Mobile: nur Icons */
@media (max-width: 575.98px) {
  .sticky-btn span {
    display: none !important;
  }
  .sticky-btn {
    padding: 14px !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
  }
}

@keyframes softPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.5); }
  70%  { box-shadow: 0 0 0 12px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

a[href^="tel:0049900"] {
  animation: softPulse 2.6s infinite;
}

.sticky-bottom-cta:hover {
  transform: translateX(-50%) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.55);
}

@media (max-width: 575.98px) {
  .sticky-bottom-cta {
    bottom: 15px;
    padding: 11px 18px;
    font-size: 0.9rem;
  }
}