/* ============================================================
   wb-food-tec GmbH – Hauptstylesheet
   Farben aus dem Browser ausgelesen (wb-busser.com):
     Grün:   #0ab04c  (Primärfarbe – Links, aktiv, Akzente)
     Rot:    #b52025  (Buttons, WB-Logo)
     NavBG:  #f0f0f0  (Navigation)
     Text:   #585858  (Fließtext)
     Dark:   #0e0e0e  (Überschriften, Footer)
   ============================================================ */

/* ── CSS-Variablen ──────────────────────────────────────────────────────── */
:root {
  --wb-green:       #0ab04c;
  --wb-green-dark:  #088a3c;
  --wb-red:         #b52025;
  --wb-red-dark:    #8e1a1e;
  --wb-nav-bg:      #f0f0f0;
  --wb-text:        #585858;
  --wb-heading:     #0e0e0e;
  --wb-section:     #f0f0f0;
  --wb-section2:    #fafafa;
  --wb-dark:        #0e0e0e;
  --wb-footer:      #0e0e0e;
  --wb-border:      #d8d8d8;
  --wb-muted:       #888888;
  --transition:     0.2s ease;
}

/* ── Reset & Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--wb-text);
  background: #fff;
}

h1, h2, h3, h4, h5 {
  color: var(--wb-heading);
  font-weight: 700;
  line-height: 1.3;
}

a {
  color: var(--wb-green);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--wb-green-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ── Topbar ─────────────────────────────────────────────────────────────── */
.topbar {
  background: var(--wb-heading);
  color: #aaa;
  font-size: 13px;
  padding: 6px 0;
}
.topbar a { color: #ccc; }
.topbar a:hover { color: var(--wb-green); text-decoration: none; }
.topbar .fa { color: var(--wb-green); margin-right: 4px; }

/* ── Navigation ─────────────────────────────────────────────────────────── */
.wb-navbar {
  background: var(--wb-nav-bg);
  padding: 10px 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.wb-navbar .navbar-nav .nav-link {
  color: var(--wb-text);
  font-weight: 500;
  font-size: 15px;
  padding: 6px 14px;
  transition: color var(--transition);
  position: relative;
}
.wb-navbar .navbar-nav .nav-link:hover,
.wb-navbar .navbar-nav .nav-link.active {
  color: var(--wb-green);
}
/* Unterstrich beim aktiven Link (wie auf der echten Seite) */
.wb-navbar .navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--wb-green);
  border-radius: 1px;
}

.wb-navbar .dropdown-menu {
  border: 1px solid var(--wb-border);
  border-top: 3px solid var(--wb-green);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.wb-navbar .dropdown-menu {
  --bs-dropdown-link-active-bg: #0ab04c;
  --bs-dropdown-link-active-color: #fff;
  --bs-dropdown-link-hover-bg: #0ab04c;
  --bs-dropdown-link-hover-color: #fff;
}
.wb-navbar .dropdown-menu .dropdown-item:hover,
.wb-navbar .dropdown-menu .dropdown-item:focus,
.wb-navbar .dropdown-menu .dropdown-item.active,
.wb-navbar .dropdown-menu .dropdown-item:active {
  background-color: #0ab04c !important;
  color: #fff !important;
}

.wb-logo { height: 50px; width: auto; }
.navbar-brand-wrap { text-decoration: none; }
.navbar-domain {
  font-size: 15px;
  font-weight: 600;
  color: var(--wb-green);
  letter-spacing: 0.3px;
  border-left: 2px solid var(--wb-green);
  padding-left: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

/* Grüne Trennlinie */
.nav-greenline {
  height: 3px;
  background: var(--wb-green);
  width: 100%;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-wb-red {
  background: var(--wb-red);
  color: #fff;
  border: 2px solid var(--wb-red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition);
}
.btn-wb-red:hover {
  background: var(--wb-red-dark);
  border-color: var(--wb-red-dark);
  color: #fff;
}

.btn-wb-green {
  background: var(--wb-green);
  color: #fff;
  border: 2px solid var(--wb-green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition);
}
.btn-wb-green:hover {
  background: var(--wb-green-dark);
  border-color: var(--wb-green-dark);
  color: #fff;
}

.btn-wb-outline {
  background: transparent;
  color: var(--wb-green);
  border: 2px solid var(--wb-green);
  font-weight: 600;
  transition: all var(--transition);
}
.btn-wb-outline:hover {
  background: var(--wb-green);
  color: #fff;
}

/* ── Section-Utilities ───────────────────────────────────────────────────── */
.section-padding { padding: 60px 0; }
.section-padding-sm { padding: 40px 0; }
.section-bg-grey { background: var(--wb-section); }
.section-bg-white { background: #fff; }
.section-bg-dark { background: var(--wb-dark); color: #fff; }
.section-bg-dark h2, .section-bg-dark h3 { color: #fff; }

.section-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  color: var(--wb-muted);
  margin-bottom: 1.5rem;
}

/* ── Statische Seiteninhalte (Impressum, Datenschutz, AGB) ──────────────── */
.seiten-inhalt h2 { font-size: 1.15rem; font-weight: 700; margin-top: 1.6em; margin-bottom: 0.4em; }
.seiten-inhalt h3 { font-size: 1.05rem; font-weight: 700; margin-top: 1.3em; margin-bottom: 0.3em; }
.seiten-inhalt h4 { font-size: 0.95rem; font-weight: 700; margin-top: 1.1em; margin-bottom: 0.3em; }
.seiten-inhalt p  { margin-bottom: 0.7em; }
.seiten-inhalt ul, .seiten-inhalt ol { margin-bottom: 0.7em; padding-left: 1.5em; }
.seiten-inhalt li { margin-bottom: 0.25em; }

/* Grüner Unterstrich für Überschriften */
.section-title::after,
.wb-underline::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--wb-green);
  margin-top: 10px;
  border-radius: 2px;
}
.text-center .section-title::after,
.text-center .wb-underline::after,
.section-title.text-center::after,
.wb-underline.text-center::after {
  margin: 10px auto 0;
}

/* ── Hero-Bereich ────────────────────────────────────────────────────────── */
.wb-hero {
  position: relative;
  background: var(--wb-section);
  overflow: hidden;
}
.wb-hero img.hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}
.wb-hero .hero-logo-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background: rgba(255,255,255,0.88);
  padding: 20px 32px;
  border-radius: 6px;
  max-width: 380px;
}

/* ── Service-Icons-Leiste ───────────────────────────────────────────────── */
.service-icons-bar {
  background: var(--wb-section);
  border-bottom: 1px solid var(--wb-border);
}
.service-icon-item {
  text-align: center;
  padding: 20px 10px;
  border-right: 1px solid var(--wb-border);
}
.service-icon-item:last-child { border-right: none; }
.service-icon-item .icon-circle {
  width: 52px; height: 52px;
  border: 2px solid var(--wb-heading);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px;
  font-size: 20px;
  color: var(--wb-green);
}
.service-icon-item h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--wb-heading);
  margin: 0;
}

/* ── Produkt-Karten ──────────────────────────────────────────────────────── */
.produkt-card {
  background: #fff;
  border: 1px solid var(--wb-border);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  height: 100%;
}
.produkt-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}
.produkt-card.featured {
  border-top: 3px solid var(--wb-green);
}
.produkt-card .card-img-top {
  height: 200px;
  object-fit: contain;
  background: var(--wb-section);
  padding: 8px;
}
.produkt-card .card-img-placeholder {
  height: 200px;
  background: #e8e8e8;
  display: flex; align-items: center; justify-content: center;
  color: var(--wb-muted);
  font-size: 14px;
}
.produkt-card .card-body { padding: 18px; }
.produkt-card .card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--wb-heading);
  margin-bottom: 6px;
}
.produkt-card .card-text {
  font-size: 14px;
  color: var(--wb-text);
}
.badge-wb-green {
  background: var(--wb-green);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 600;
}
.badge-wb-red {
  background: var(--wb-red);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 600;
}

/* ── List-Group (Kategorie-Sidebar) ─────────────────────────────────────── */
.list-group-item.active {
  background-color: var(--wb-green) !important;
  border-color: var(--wb-green) !important;
  color: #fff !important;
}
.list-group-item-action:hover,
.list-group-item-action:focus {
  background-color: #e8f8ee;
  color: var(--wb-green);
}

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.wb-breadcrumb {
  background: var(--wb-section);
  padding: 10px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--wb-border);
}
.wb-breadcrumb .breadcrumb { margin: 0; }
.wb-breadcrumb .breadcrumb-item a { color: var(--wb-green); }
.wb-breadcrumb .breadcrumb-item.active { color: var(--wb-muted); }
.wb-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--wb-muted); }

/* ── Kategorie-Header-Streifen ──────────────────────────────────────────── */
.kat-header {
  background-color: #1a2332; /* Fallback wenn kein Bild gesetzt */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.kat-header-overlay {
  padding: 18px 0;
  background: rgba(14, 14, 14, 0.62);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.kat-header-overlay .kat-header-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 3px 0;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.kat-header-overlay p {
  font-size: 13px;
  margin: 0;
  color: rgba(255,255,255,0.82);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
@media (max-width: 576px) {
  .kat-header-overlay .kat-header-title { font-size: 1.15rem; }
}

/* ── SEO-Einleitungstext (zwischen Banner und Produktliste) ─────────────── */
/* SEO-2/5-Optimierung 2026-04-19 */
.wb-seo-intro {
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  padding: 20px 1rem;
}
.wb-seo-intro-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--wb-text);
}
/* Versteckter Teil: im DOM für Crawler, per default eingeklappt */
.wb-seo-intro-hidden {
  font-size: 14px;
  line-height: 1.75;
  color: var(--wb-text);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}
.wb-seo-intro-hidden--open {
  max-height: 600px;
  opacity: 1;
  margin-top: 1em;
}
.wb-seo-toggle {
  font-size: 13px;
  color: var(--wb-green);
  text-decoration: none;
}
.wb-seo-toggle:hover {
  color: var(--wb-green);
  text-decoration: underline;
}

/* ── Produktdetail ───────────────────────────────────────────────────────── */
.produkt-galerie .hauptbild {
  width: 100%; border-radius: 6px;
  border: 2px solid var(--wb-green);
  object-fit: cover; max-height: 380px;
}
.produkt-galerie .thumb-strip {
  display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap;
}
.produkt-galerie .thumb {
  width: 80px; height: 60px;
  object-fit: cover; border-radius: 4px;
  border: 2px solid var(--wb-border);
  cursor: pointer; transition: border-color var(--transition);
}
.produkt-galerie .thumb.active,
.produkt-galerie .thumb:hover {
  border-color: var(--wb-green);
}
.produkt-galerie .thumb-yt {
  width: 80px; height: 60px;
  border-radius: 4px;
  border: 2px solid var(--wb-border);
  cursor: pointer; transition: border-color var(--transition);
  flex-shrink: 0;
}
.produkt-galerie .thumb-yt.active,
.produkt-galerie .thumb-yt:hover {
  border-color: #ff0000;
}
.ki-thumb-badge {
  position: absolute; bottom: 2px; right: 2px;
  background: rgba(0,0,0,0.6); color: #fff;
  font-size: 8px; font-weight: 700; line-height: 1;
  padding: 2px 4px; border-radius: 3px;
  pointer-events: none;
}

.spez-tabelle td:first-child {
  font-weight: 600;
  color: var(--wb-heading);
  width: 38%;
  background: var(--wb-section);
}
.spez-tabelle tr:nth-child(odd) td:last-child {
  background: #fff;
}
.spez-tabelle tr:nth-child(even) td:last-child {
  background: var(--wb-section2);
}

.anwendungs-liste li {
  padding: 4px 0;
  color: var(--wb-text);
  text-align: left;
  overflow-wrap: break-word;
  word-break: break-word;
}
.anwendungs-liste li::before {
  content: '●';
  color: var(--wb-green);
  margin-right: 8px;
  font-size: 10px;
}
/* Kompatibilitäts-Tab: Grid statt CSS columns (verhindert Justify-Lücken) */
.anwendungs-liste-item {
  padding: 4px 0;
  color: var(--wb-text);
  text-align: left;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.5;
}
.anwendungs-liste-item .bullet {
  color: var(--wb-green);
  font-size: 10px;
  margin-right: 8px;
}

/* Download-Leiste */
.download-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--wb-section2);
  border: 1px solid var(--wb-border);
  border-radius: 4px;
  margin-bottom: 6px;
  transition: background var(--transition);
}
.download-item:hover { background: #edf8f2; border-color: var(--wb-green); }
.download-item .icon { color: var(--wb-red); font-size: 18px; min-width: 24px; }
.download-item .name { flex: 1; font-size: 14px; color: var(--wb-heading); }
.download-item .size { font-size: 12px; color: var(--wb-muted); }

/* ── Galerie: Lightbox-Wrapper & Fade ───────────────────────────────────── */
.hauptbild-wrapper {
  position: relative;
  cursor: zoom-in;
  border-radius: 6px;
  border: 2px solid var(--wb-green);
  overflow: hidden;
  display: block;
}
.hauptbild-wrapper .hauptbild {
  border: none;
  border-radius: 0;
  display: block;
}
.hauptbild-zoom-hint {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  padding: 5px 12px;
  border-top-left-radius: 6px;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.hauptbild-wrapper:hover .hauptbild-zoom-hint {
  opacity: 1;
}
#hauptbild-img {
  transition: opacity 0.15s ease;
}
#hauptbild-img.bild-fade {
  opacity: 0;
}

/* ── CTA-Bereich (schwarz, wie auf echter Seite) ────────────────────────── */
.wb-cta-dark {
  background: var(--wb-dark);
  color: #fff;
  padding: 50px 0;
}
.wb-cta-dark h2 { color: #fff; }
.wb-cta-dark .lead { color: #aaa; }

/* ── Kontakt ──────────────────────────────────────────────────────────────── */
.kontakt-info-box {
  background: var(--wb-dark);
  color: #fff;
  border-radius: 8px;
  padding: 30px;
}
.kontakt-info-box h3 { color: var(--wb-green); font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.kontakt-info-box .phone { font-size: 1.6rem; font-weight: 700; color: #fff; }
.kontakt-info-box a { color: var(--wb-green); }
.kontakt-info-box a:hover { color: #fff; }

.kontakt-form .form-control:focus {
  border-color: var(--wb-green);
  box-shadow: 0 0 0 0.2rem rgba(10,176,76,0.15);
}
.kontakt-form label { font-weight: 600; color: var(--wb-heading); font-size: 14px; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.wb-footer { background: var(--wb-footer); color: #aaa; }

.footer-top {
  padding: 50px 0 30px;
  border-top: 3px solid var(--wb-green);
}

.footer-logo { filter: none; opacity: 1; max-height: 60px; width: auto; }

.footer-heading {
  color: var(--wb-green);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #aaa; font-size: 14px; transition: color var(--transition); }
.footer-links a:hover { color: var(--wb-green); text-decoration: none; }

address.footer-adresse { font-style: normal; font-size: 14px; line-height: 1.8; }

.footer-link { color: #aaa; font-size: 14px; }
.footer-link:hover { color: var(--wb-green); }

.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 36px; height: 36px;
  background: #222;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #aaa;
  font-size: 14px;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--wb-green); color: #fff; }

.footer-bottom {
  background: #050505;
  padding: 14px 0;
  font-size: 13px;
  color: #666;
  border-top: 1px solid #222;
}
.footer-bottom a { color: #888; margin: 0 4px; }
.footer-bottom a:hover { color: var(--wb-green); }

/* ── Admin-Hinweis-Bar ───────────────────────────────────────────────────── */
.admin-bar {
  background: var(--wb-red);
  color: #fff;
  font-size: 13px;
  padding: 5px 0;
  text-align: center;
}
.admin-bar a { color: #ffe; text-decoration: underline; }

/* ── Formulare allgemein ────────────────────────────────────────────────── */
.wb-required::after {
  content: ' *';
  color: var(--wb-red);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .wb-navbar .navbar-nav .nav-link.active::after { display: none; }
  .service-icon-item { border-right: none; border-bottom: 1px solid var(--wb-border); }
  .section-padding { padding: 40px 0; }
}

@media (max-width: 767px) {
  /* Hero: Overlay nicht mehr zentriert übers Bild (sonst clip oben/unten),
     sondern als Karte darunter mit leichter Überlappung */
  .wb-hero { overflow: visible; }
  .wb-hero img.hero-img { max-height: 220px; }
  .wb-hero .hero-logo-overlay {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    max-width: 92%;
    margin: -30px auto 16px;
    padding: 14px 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  .wb-hero .hero-logo-overlay > img:first-child {
    max-width: 130px !important;
    margin-bottom: 6px !important;
  }
  .wb-hero .hero-logo-overlay h1 {
    font-size: 0.95rem !important;
    line-height: 1.3;
    margin-bottom: 8px !important;
  }
  .wb-hero .hero-logo-overlay .btn {
    font-size: 12px;
    padding: 5px 10px;
  }

  .section-title { font-size: 1.5rem; }
}

/* ── Pagination ─────────────────────────────────────────────────────────── */
.page-link { color: var(--wb-green); }
.page-link:hover { color: var(--wb-green-dark); }
.page-item.active .page-link {
  background-color: var(--wb-green);
  border-color: var(--wb-green);
  color: #fff;
}

/* ── Accessibility ───────────────────────────────────────────────────────── */
.visually-hidden-focusable:not(:focus):not(:focus-within) {
  clip: rect(0,0,0,0); overflow: hidden; position: absolute;
  width: 1px; height: 1px; white-space: nowrap;
}
:focus-visible {
  outline: 3px solid var(--wb-green);
  outline-offset: 2px;
}
