/* Business Premium – News-Dunkelblau (#1e3a5f) für Buttons, Titel, Floating Boxes */

:root {
  --biz-blue: #1e3a5f;
  --biz-blue-hover: #16304f;
  --biz-blue-soft: #dce6f2;
  --biz-blue-glow: rgba(30, 58, 95, 0.28);
}

/* ===== Nav / Action Buttons ===== */
body .btn-theme,
body.theme-light .btn-theme,
body.theme-dark .btn-theme,
.btn-theme.btn-floating {
  background-color: var(--biz-blue) !important;
  border-color: var(--biz-blue) !important;
  color: #fff !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}

body .btn-theme:hover,
body.theme-light .btn-theme:hover,
body.theme-dark .btn-theme:hover,
.btn-theme.btn-floating:hover {
  background-color: var(--biz-blue-hover) !important;
  border-color: var(--biz-blue-hover) !important;
  color: #fff !important;
  transform: none !important;
}

.galactic-btn,
.new-query-btn,
.ph-cta {
  background: var(--biz-blue) !important;
  border-color: var(--biz-blue) !important;
  color: #fff !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}

.galactic-btn:hover,
.new-query-btn:hover,
.ph-cta:hover {
  background: var(--biz-blue-hover) !important;
  border-color: var(--biz-blue-hover) !important;
  color: #fff !important;
}

/* ===== Titel ===== */
.galactic-title-center,
.orbitron-title,
.license-search h2,
.license-stats h2,
.welcome-title,
h1.orbitron-title,
.ph-title {
  color: var(--biz-blue) !important;
  text-shadow: none !important;
}

body.theme-dark .galactic-title-center,
body.theme-dark .orbitron-title,
body.theme-dark .license-search h2,
body.theme-dark .license-stats h2,
body.theme-dark .ph-title {
  color: #c5d4e8 !important;
}

/* ===== Floating Boxes – wie Referenz (4er-Reihe, Glow, Pill-Heading) ===== */
.cms-floating-boxes {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 2rem !important;
  max-width: 1200px !important;
  width: 100% !important;
  margin: 6rem auto 2rem !important;
  padding: 1.5rem 1rem 1rem !important;
  box-sizing: border-box !important;
}

.cms-floating-box {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 260px !important;
  background: radial-gradient(circle at center, #f4f7fb, #d9e3f0) !important;
  border: 2px solid rgba(30, 58, 95, 0.18) !important;
  box-shadow: 0 0 18px rgba(30, 58, 95, 0.22) !important;
  border-radius: 1rem !important;
  padding: 2rem 1rem 1rem !important;
}

.cms-box-heading {
  position: absolute !important;
  top: -1.15rem !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: var(--biz-blue) !important;
  color: #ffffff !important;
  padding: 0.35rem 1.1rem !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: clamp(0.85rem, 1.6vw, 1.05rem) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 92% !important;
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.28) !important;
  z-index: 2 !important;
}

.cms-box {
  display: block !important;
  width: 100% !important;
  background: #ffffff !important;
  border: 1px solid rgba(30, 58, 95, 0.18) !important;
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.1) !important;
  border-radius: 0.75rem !important;
  padding: 0.65rem 1rem !important;
  color: var(--biz-blue) !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  margin-bottom: 0.65rem !important;
  text-align: center !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

.cms-box:last-child {
  margin-bottom: 0 !important;
}

.cms-box:hover {
  transform: translateY(-2px) !important;
  background: #eef3f9 !important;
  box-shadow: 0 4px 14px rgba(30, 58, 95, 0.2) !important;
  color: var(--biz-blue-hover) !important;
}

body.theme-dark .cms-floating-box {
  width: auto !important;
  max-width: 260px !important;
  background: radial-gradient(circle at center, #1a2740, #0f1828) !important;
  border-color: rgba(90, 140, 200, 0.28) !important;
  box-shadow: 0 0 18px rgba(40, 90, 160, 0.25) !important;
}

body.theme-dark .cms-box-heading {
  background: var(--biz-blue) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.4) !important;
}

body.theme-dark .cms-box {
  background: #152033 !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
  color: #e2e8f0 !important;
}

body.theme-dark .cms-box:hover {
  background: #1e2d48 !important;
  color: #ffffff !important;
}

@media (max-width: 900px) {
  .cms-floating-boxes {
    flex-wrap: wrap !important;
  }

  .cms-floating-box {
    flex: 1 1 220px !important;
    max-width: 280px !important;
  }
}

/* ===== Footer Theme / Cookie Icons ===== */
.theme-toggle,
.cookie-settings-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  padding: 0.15rem !important;
  border-radius: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--biz-blue) !important;
  font-size: 1.15rem !important;
  line-height: 1 !important;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.theme-toggle:hover,
.cookie-settings-btn:hover {
  background: transparent !important;
  border: none !important;
  color: var(--biz-blue-hover) !important;
  opacity: 0.85;
}

body.theme-dark .theme-toggle,
body.theme-dark .cookie-settings-btn {
  background: transparent !important;
  border: none !important;
  color: #e2e8f0 !important;
}

body.theme-dark .theme-toggle:hover,
body.theme-dark .cookie-settings-btn:hover {
  background: transparent !important;
  border: none !important;
  color: #fff !important;
}

.theme-toggle i,
.cookie-settings-btn i {
  pointer-events: none;
}

/* ===== Floating news panel ===== */
.floating-news-box {
  width: min(340px, calc(100vw - 24px)) !important;
  padding: 0 !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.14) !important;
  color: #0f172a !important;
  overflow: hidden;
  animation: none !important;
}

.floating-news-box.show {
  animation: none !important;
}

.floating-news-header {
  margin: 0 !important;
  padding: 0.85rem 1rem !important;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a !important;
  text-shadow: none !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.floating-news-content {
  padding: 1rem;
}

.floating-news-thumb {
  border-radius: 2px !important;
  box-shadow: none !important;
  margin-bottom: 0.85rem !important;
  height: 120px !important;
}

.floating-news-content h4 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 650;
  color: #0f172a;
  line-height: 1.35;
}

.floating-news-content p {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #64748b;
}

.close-news-box {
  color: #64748b !important;
  text-shadow: none !important;
  font-size: 1rem !important;
  line-height: 1;
}

.close-news-box:hover {
  color: #0f172a !important;
  text-shadow: none !important;
}

.btn-floating-news {
  display: inline-flex !important;
  margin-top: 0.25rem !important;
  padding: 0.45rem 0.85rem !important;
  border-radius: 4px !important;
  background: var(--biz-blue) !important;
  border: 1px solid var(--biz-blue) !important;
  color: #fff !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

.btn-floating-news:hover {
  background: var(--biz-blue-hover) !important;
  box-shadow: none !important;
  color: #fff !important;
}

.floating-news-icon {
  animation: none !important;
  width: auto !important;
  height: auto !important;
  min-height: 44px !important;
  padding: 0.55rem 1rem 0.55rem 0.85rem !important;
  border-radius: 999px !important;
  background: var(--biz-blue) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.28) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  line-height: 1;
  cursor: pointer;
}

.floating-news-icon.light {
  background: var(--biz-blue) !important;
  color: #fff !important;
  border: none !important;
}

.floating-news-icon-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.floating-news-icon-glyph svg {
  display: block;
}

.floating-news-icon-label {
  display: inline-block;
  color: inherit;
}

.floating-news-icon:hover {
  transform: none !important;
  background: var(--biz-blue-hover) !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.34) !important;
}

body.theme-dark .floating-news-box {
  background: #121a2b !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
  color: #e2e8f0 !important;
}

body.theme-dark .floating-news-header {
  background: #0d1422 !important;
  border-bottom-color: rgba(148, 163, 184, 0.2) !important;
  color: #e2e8f0 !important;
}

body.theme-dark .floating-news-content h4 {
  color: #f8fafc;
}

body.theme-dark .floating-news-content p {
  color: #94a3b8;
}

body.theme-dark .close-news-box {
  color: #94a3b8 !important;
}

body.theme-dark .close-news-box:hover {
  color: #f8fafc !important;
}

body.theme-dark .btn-floating-news {
  background: #e2e8f0 !important;
  border-color: #e2e8f0 !important;
  color: #0b1220 !important;
}

body.theme-dark .floating-news-icon,
body.theme-dark .floating-news-icon.light {
  background: var(--biz-blue) !important;
  color: #fff !important;
}

body.theme-dark .floating-news-icon:hover {
  background: #274a73 !important;
}

.license-search,
.license-stats,
.license-result {
  border-radius: 4px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
}

.galactic-input {
  border-radius: 4px !important;
  box-shadow: none !important;
}

.license-wrapper:not(:has(.license-result.hidden))::before {
  box-shadow: none !important;
  opacity: 0.25;
}

@media (max-width: 480px) {
  .floating-news-icon {
    padding: 0.5rem 0.85rem 0.5rem 0.7rem !important;
    font-size: 0.75rem !important;
  }
}
