/* =========================================================
   BobbyCheck UI – Optimiert v3.3
   Bereinigt & modernisiert 2025-08-30
========================================================= */

/* ========== Farb- & Variablen-Setup ========== */
:root {
  --bc-bg: #f8f9fa;
  --bc-surface: #fff;
  --bc-text: #212529;
  --bc-muted: #6c757d;
  --bc-border: rgba(0,0,0,.08);
  --bc-shadow: 0 .5rem 1rem rgba(0,0,0,.08);

  --bc-primary: #0055ff;
  --bc-primary-hover: #003dcc;
  --bc-success: #28a745;
  --bc-danger: #dc3545;
  --bc-warning: #ffc107;
  --bc-info: #0dcaf0;

  --bc-link: #0055ff;
  --bc-link-active: #003dcc;
  --bc-hover-bg: rgba(0,85,255,0.05);
  --bc-focus: #80bdff;

  --bc-radius: .5rem;
  --bc-radius-lg: .75rem;
}

/* ========== Basistypografie & Reset ========== */
html { scroll-behavior: smooth; }
body {
  background: var(--bc-bg);
  color: var(--bc-text);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}
h1,h2,h3,h4,h5,h6 { font-weight: 600; }
img { width: 100%; height: inherit; display: block; }
a {
  color: var(--bc-link);
  text-decoration: none;
  transition: color .2s;
}
a:hover { color: var(--bc-link-active); text-decoration: underline; }
:focus-visible {
  outline: 3px solid var(--bc-focus);
  outline-offset: 2px;
  border-radius: .25rem;
}

/* ========== Buttons ========== */
.btn-primary {
  background-color: var(--bc-primary);
  border-color: var(--bc-primary);
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--bc-primary-hover);
  border-color: var(--bc-primary-hover);
}
.btn:hover, .btn:focus {
  box-shadow: 0 0 0 2px rgba(13,110,253,.25);
}
.btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(13,110,253,.35);
}
.btn { margin-bottom: 1rem; }

/* ========== Navbar & Dropdown (mit Hover-Funktion) ========== */
.navbar {
  background: var(--bc-surface);
  border-bottom: 1px solid var(--bc-border);
  font-size: 15px;
  line-height: 1.4;
}
.navbar-brand img {
  height: 78px; width: auto;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
@media (hover:hover) {
  .navbar-brand img:hover { transform: scale(1.05); }
}
.nav-link {
  position: relative;
  font-weight: 500;
  padding: .55rem .75rem;
  color: var(--bc-link);
  transition: color .2s;
}
.nav-link:hover, .nav-link:focus {
  color: var(--bc-link-active);
}
.nav-link.active { color: var(--bc-link-active); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: .5rem; right: .5rem; bottom: .2rem;
  height: 2px; border-radius: 2px;
  background: var(--bc-link-active);
}

/* =========================================================
   NAVIGATION: DROPDOWN & MEGA-MENÜ (final, stabil, einheitlich)
   ========================================================= */

.dropdown {
  position: relative;
}

/* Basis Dropdown-Menü (alle Bildschirmgrößen) */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: block;               /* überschreibt Bootstrap display:none */
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .25s; /* Verzögerung beim Schließen */
  background: var(--bc-surface);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  box-shadow: var(--bc-shadow);
  padding: 0.5rem;
  margin-top: 0;                /* keine Hover-Lücke */
  z-index: 1080;
}

/* Mega-Menü (volle Breite, zentriert) */
.dropdown-menu.mega {
  left: 50%;
  width: 100vw;                 /* volle Viewport-Breite */
  max-width: 1320px;            /* optional Begrenzung */
  transform: translate(-50%, 6px);
  border-radius: var(--bc-radius-lg);
  padding: 1rem 1.25rem;
}

/* Hover / Fokus Logik für Desktop (stabil) */
@media (min-width: 992px) {
  .dropdown:hover > .dropdown-menu,
  .dropdown:focus-within > .dropdown-menu,
  .dropdown-menu:hover,
  .dropdown-menu:focus-within {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .2s ease, transform .2s ease, visibility 0s; /* sofort sichtbar beim Hover */
  }

  .dropdown:hover > .dropdown-menu.mega,
  .dropdown:focus-within > .dropdown-menu.mega,
  .dropdown-menu.mega:hover,
  .dropdown-menu.mega:focus-within {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition: opacity .2s ease, transform .2s ease, visibility 0s;
  }
}

/* Dropdown-Items */
.dropdown-item {
  color: var(--bc-text);
  border-radius: .375rem;
  padding: .5rem .75rem;
  transition: all .2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--bc-hover-bg);
  color: var(--bc-link-active);
}

/* Mega-Menü Inhalte (Grid & Karten) */
.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 2rem;
}

.dropdown-header,
.menu-section-title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--bc-muted);
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: .25rem 0 .5rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}

@media (min-width: 576px) {
  .menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Karten innerhalb Mega-Menü */
.menu-card {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  background: var(--bc-surface);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  box-shadow: var(--bc-shadow);
  transition: all .2s ease;
}

.menu-card i.bi {
  font-size: 1.1rem;
}

.menu-card:hover {
  background: var(--bc-hover-bg);
  border-color: rgba(0, 85, 255, .15);
}



/* ==== Fixed-on-scroll Navbar ==== */
.navbar.sticky-top { z-index: 1040; transition: transform .2s, box-shadow .2s; }
.navbar.sticky-top.is-fixed {
  position: fixed!important; top: 0; left: 0; right: 0;
  transform: translate3d(0,0,0);
  box-shadow: var(--bc-shadow);
}
.navbar.sticky-top.is-fixed.is-hidden {
  transform: translate3d(0,-100%,0)!important;
}
.bc-nav-spacer { height: var(--bc-nav-h,64px); }

/* ========== Hero Section ========== */
.hero {
  background: var(--bc-surface);
  padding: 3rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--bc-border);
}
.hero .lead { color: var(--bc-muted); margin-top: 1rem; }

/* ========== Sections & Grids ========== */
.ix-section { margin-bottom: 4rem; }
.ix-divider { margin: 4rem 0;}
#angebote, #reisen-hotels, #kreditangebote { padding: 3rem 0; }

.card, .card-title, .card-text { margin-bottom: 1.5rem; }
.bg-light { background: var(--bc-surface)!important; color: var(--bc-text); }
.text-muted { color: var(--bc-muted)!important; }
.bg-white-soft {
  background: var(--bc-surface);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
}

/* ========== Angebotsbilder für Kredit-/Versicherungs-/Direktangebote ========== */
.angebot-bild {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
  background: var(--bc-surface); /* falls das Bild transparent ist */
}

/* ========== Direkt-Angebote-Handytarife ========== */
.offer-card {
  background: var(--bc-surface);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  box-shadow: var(--bc-shadow);
  padding: 1rem;
  display: flex; flex-direction: column;
}
.offer-logo { margin-bottom: .5rem; }
.offer-logo-text { font-weight: 700; color: var(--bc-text); font-size: .95rem; }
.offer-features { list-style: none; margin: 0 0 .75rem; padding: 0; }
.offer-features li {
  display: flex; align-items: center; gap: .5rem; padding: .25rem 0;
}
.offer-features i { color: var(--bc-success); }


/* ========== Footer ========== */
.footer {
  background: var(--bc-surface);
  border-top: 1px solid var(--bc-border);
  font-size: .95rem;
  padding: 2rem 0;
}
.footer .footer-link { color: var(--bc-text); text-decoration: none; }
.footer .footer-link:hover { color: var(--bc-primary); text-decoration: underline; }
.footer .social-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff;
  border: 1px solid var(--bc-border);
  box-shadow: var(--bc-shadow);
  color: var(--bc-text);
  transition: transform .15s;
}
.footer .social-btn:hover { transform: translateY(-2px); color: var(--bc-primary); }
.footer-bottom { background: rgba(255,255,255,.6); }
@media (max-width: 575.98px) {
  .footer .footer-logo { max-width: 160px; }
  .card-title { font-size: 1rem; }
  .card-text { font-size: .875rem; }
}

/* ========== Scroll-to-Top Button ========== */
#scrollToTopBtn {
  position: fixed; bottom: 20px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bc-primary); color: #fff; border: none;
  display: flex; justify-content: center; align-items: center;
  box-shadow: var(--bc-shadow);
  z-index: 9999;
  transition: background .3s, opacity .3s;
  opacity: 0; pointer-events: none;
}
#scrollToTopBtn.show { opacity: 1; pointer-events: auto; }
#scrollToTopBtn:hover { background: var(--bc-primary-hover); }

/* ========== About-Chips & Flags ========== */
#about-bobbycheck p {
  max-width: 720px;
  margin-left: auto; margin-right: auto;
}
.about-chip {
  display: inline-block; padding: .5rem .85rem;
  background: var(--bc-surface);
  border: 1px solid var(--bc-border);
  border-radius: 2rem;
  box-shadow: var(--bc-shadow);
  font-weight: 600;
}
.language-flags {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
}
.language-flags img {
  width: 28px; height: auto; border-radius: 4px; cursor: pointer;
  filter: grayscale(40%);
  transition: transform .2s, filter .2s, box-shadow .2s;
}
.language-flags img:hover { transform: scale(1.12); filter: none; }
.language-flags img.active {
  filter: none;
  outline: 2px solid #0d6efd;
  box-shadow: 0 0 0 3px rgba(13,110,253,.15);
}

/* ========== Hover Utility ========== */
.bc-hovering {
  background: var(--bc-hover-bg)!important;
  color: var(--bc-link-active)!important;
  border-radius: 2rem!important;
  text-decoration: none!important;
}

/* ========== Misc / Utility ========== */
.offcanvas hr {
  border: 0; border-top: 1px solid var(--bc-border);
  margin: .5rem 0; border-color: #333;
}
.dropdown-menu .dropdown-item.active {
  background: var(--bc-hover-bg);
  color: var(--bc-link-active);
}

/* ========== Bootstrap-Icons Font ========== */
@font-face {
  font-family: "bootstrap-icons";
  src: url("fonts/bootstrap-icons.woff2") format("woff2"),
       url("fonts/bootstrap-icons.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}


.adblock-card {
  display: none; /* unsichtbar starten */
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  max-width: 450px;
  margin: 1rem;
}

/* Optional: Dark Mode & Motion-Reduktion (auskommentiert)
@media (prefers-color-scheme: dark) { ... }
@media (prefers-reduced-motion: reduce) { ... }
*/


