/* ============================================================
   WSD – Wir stärken Deutschland | Custom Styles
   Schumacher-inspired Design System
   ============================================================ */

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

/* Schriften */
body { font-family: 'DM Sans', sans-serif; }
.font-mont { font-family: 'Barlow Condensed', sans-serif; }

/* ============================================================
   NAVBAR – Scroll-Effekt
   ============================================================ */
#navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
  background-color: #ffffff !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

#navbar.scrolled .nav-link {
  color: #111111;
}

#navbar.scrolled .nav-link:hover {
  color: #003b7b;
}

#navbar.scrolled #logo-text {
  fill: #003b7b;
}

#navbar.scrolled .nav-cta {
  background-color: #003b7b !important;
  color: #ffffff !important;
}

/* ============================================================
   LOGO – Hover Deutschland-Flagge
   ============================================================ */
.wsd-logo {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.wsd-logo:hover {
  transform: scale(1.05);
}

.wsd-logo #logo-text {
  transition: fill 0.3s ease;
}

/* Hover schlägt immer – auch im scrolled-Zustand */
.wsd-logo:hover #logo-text,
#navbar.scrolled .wsd-logo:hover #logo-text {
  fill: url(#flag-gradient) !important;
}

/* PNG-Logo */
.logo-wrapper .flag-overlay {
  mix-blend-mode: normal !important;
}

/* ============================================================
   KONTAKT-BUTTONS (fixiert rechts)
   ============================================================ */
.contact-btn {
  border-radius: 4px 0 0 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 4px;
}

.contact-btn:hover {
  box-shadow: -4px 0 20px rgba(0,0,0,0.2);
  transform: translateX(-4px);
}

/* ============================================================
   SECTION ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.service-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,59,123,0.1);
}

/* ============================================================
   LEAFLET MAP – Anpassungen
   ============================================================ */
.leaflet-container {
  font-family: 'DM Sans', sans-serif;
}

.map-popup h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  color: #003b7b;
  margin: 0 0 4px 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.map-popup p {
  color: #6b7280;
  margin: 0;
  font-size: 13px;
}

.map-popup .zahl {
  font-size: 22px;
  font-weight: 800;
  color: #003b7b;
  display: block;
  margin-top: 4px;
  font-family: 'Barlow Condensed', sans-serif;
}

/* ============================================================
   BEWERBER-TABELLE – Suche + Sortierung + Scroll
   ============================================================ */
#berufe-table tr {
  transition: background-color 0.15s ease;
}

/* Sticky Header beim Scrollen */
#berufe-scroll thead tr th {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #003b7b;
}

/* Scrollbar der Tabelle */
#berufe-scroll::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
#berufe-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
}
#berufe-scroll::-webkit-scrollbar-thumb {
  background: #FFE600;
}

/* Sortier-Header Hover */
.sort-th:hover {
  background-color: #1a5295 !important;
}
.sort-th.sorted {
  background-color: #1a5295 !important;
  box-shadow: inset 0 -3px 0 #FFE600;
}
.sort-th .sort-icon {
  transition: opacity 0.2s;
}
.sort-th.sorted .sort-icon {
  opacity: 1 !important;
  color: #FFE600;
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  display: none;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   PARTNER SEKTION
   ============================================================ */
.partner-card {
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.partner-card:hover {
  border-color: #003b7b;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,59,123,0.15);
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.slide {
  transition: opacity 1s ease-in-out;
}

.slider-dot {
  cursor: pointer;
  border: none;
  outline: none;
  border-radius: 0;
}

.slider-dot.active {
  background-color: #FFE600;
  width: 1.5rem;
}

/* ============================================================
   LOGO PNG – Flaggen-Hover
   ============================================================ */
.logo-wrapper .flag-overlay {
  pointer-events: none;
}

/* ============================================================
   BUBBLE ZAHLEN (Bundesland-Liste)
   ============================================================ */
.bubble-number {
  background: #FFE600;
  color: #003b7b;
  border: none;
  border-radius: 0;
  font-weight: 800;
  font-family: 'Barlow Condensed', sans-serif;
  transition: transform 0.2s ease, background 0.2s ease;
}

.bubble-number:hover {
  transform: scale(1.1);
  background: white;
  color: #003b7b;
}

/* ============================================================
   KARTE – Marker mit Zahlen
   ============================================================ */
.map-marker-bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #003b7b;
  border: 2.5px solid #FFE600;
  color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 59, 123, 0.4);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  width: 100%;
  height: 100%;
}

.map-marker-bubble:hover {
  background: #FFE600;
  color: #003b7b;
  transform: scale(1.1);
}

.leaflet-div-icon {
  background: transparent !important;
  border: none !important;
}

.map-tooltip {
  background: white;
  border: 2px solid #003b7b;
  border-radius: 0;
  box-shadow: 4px 4px 0 rgba(0,59,123,0.12);
  padding: 10px 14px;
}

/* ============================================================
   SCROLL-BAR (Bundesland-Liste)
   ============================================================ */
.space-y-2::-webkit-scrollbar {
  width: 4px;
}
.space-y-2::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1);
}
.space-y-2::-webkit-scrollbar-thumb {
  background: #FFE600;
}

/* ============================================================
   ABLAUF-TIMELINE (Handschrift)
   ============================================================ */
.font-caveat,
.timeline-step p {
  font-family: 'Caveat', cursive;
}

.timeline-dot {
  box-shadow: 0 0 0 4px rgba(255, 230, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 0;
}

.timeline-step:hover .timeline-dot {
  transform: scale(1.12);
  box-shadow: 0 0 0 6px rgba(255, 230, 0, 0.25);
}

.timeline-step p {
  font-size: 1.15rem;
  line-height: 1.35;
}

/* ============================================================
   SCROLL-TO-TOP BUTTON
   ============================================================ */
#scroll-top-btn {
  position: fixed;
  bottom: 1.75rem;
  right: 1.25rem;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0;
  background-color: #003b7b;
  color: #FFE600;
  border: 2px solid #FFE600;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(0, 59, 123, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
}

#scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scroll-top-btn:hover {
  background-color: #FFE600;
  color: #003b7b;
}

/* ============================================================
   RESPONSIVE – Handy (< 640px)
   ============================================================ */
@media (max-width: 639px) {

  .contact-btn .label-wrap {
    display: none;
  }
  .contact-btn .icon-wrap {
    width: 2.5rem;
    height: 2.5rem;
  }
  .contact-btn .icon-wrap svg {
    width: 1.1rem;
    height: 1.1rem;
  }

  .table-contact-col {
    display: none;
  }

  #map {
    height: 280px !important;
  }

  section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

/* ============================================================
   RESPONSIVE – Tablet / iPad (640px – 1023px)
   ============================================================ */
@media (min-width: 640px) and (max-width: 1023px) {

  .contact-btn .label-wrap {
    display: none;
  }

  #map {
    height: 360px !important;
  }

  .service-card {
    min-height: 220px;
  }
}

/* ============================================================
   RESPONSIVE – Laptop / Desktop (>= 1024px)
   ============================================================ */
@media (min-width: 1024px) {

  .contact-btn .label-wrap {
    display: block;
  }
}
