/* =========================================================
   SMARTER.YACHTS – PREMIUM UI FRAMEWORK (FINAL CLEAN)
   ========================================================= */

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================================================
   SMARTER.YACHTS — DESIGN TOKENS
   All colors and shared component styling live here.
   ========================================================= */
:root {
  /* =========================================================
     SMARTER.YACHTS — LIGHT MARITIME THEME
     ========================================================= */

/* =========================================================
   SMARTER.YACHTS — NORTH ATLANTIC BLUE THEME
   ========================================================= */

/* Brand */
--color-brand-primary: #1E5AA8;
--color-brand-hover: #174B8F;
--color-brand-bright: #3E7DCC;
--color-brand-hero: #7FAFEA;

/* Main page backgrounds */
--color-page-start: #ffffff;
--color-page-end: #f4f7fb;
--color-section-deep: #e9f0f8;
--color-section-footer: #071f3d;

/* Cards */
--color-card: #ffffff;
--color-card-hover: #f7faff;
--color-card-gradient-start: #ffffff;
--color-card-gradient-end: #f3f7fc;

/* Form fields */
--color-field: #ffffff;
--color-field-hover: #f5f8fc;
--color-field-border: #bdccdc;
--color-quantity-button: #e5edf7;
--color-progress-track: #dce7f2;

/* Text used on dark backgrounds and buttons */
--color-text-primary: #ffffff;
--color-text-secondary: rgba(255, 255, 255, 0.82);
--color-text-subtle: rgba(255, 255, 255, 0.62);

/* Text used on white and light backgrounds */
--color-text-on-light: #17304f;
--color-text-on-light-muted: #566c84;
--color-text-on-light-soft: #74889d;

/* Transparent surfaces */
--color-overlay-subtle: rgba(30, 90, 168, 0.025);
--color-overlay: rgba(30, 90, 168, 0.055);
--color-overlay-hover: rgba(30, 90, 168, 0.09);
--color-overlay-active: rgba(30, 90, 168, 0.14);

/* Borders and accent overlays */
--color-border-subtle: rgba(23, 67, 115, 0.14);
--color-border-strong: rgba(23, 67, 115, 0.27);

--color-accent-soft: rgba(30, 90, 168, 0.10);
--color-accent-medium: rgba(30, 90, 168, 0.24);

--color-backdrop: rgba(5, 22, 38, 0.74);
--color-transparent: transparent;

/* Light surfaces */
--color-surface-light: #ffffff;
--color-surface-light-alt: #f4f7fb;
--color-surface-white: #ffffff;
--color-border-on-light: #c6d2df;

/* Success */
--color-success: #168057;
--color-success-strong: #116b49;
--color-success-text: #116443;
--color-success-border: #73c99c;
--color-success-surface: #e9f7f0;
--color-success-surface-soft: #f3fbf7;
--color-success-on-dark: #78dfa9;

--color-status-success-border: rgba(22, 128, 87, 0.30);
--color-status-success-surface: rgba(22, 128, 87, 0.09);

/* Error */
--color-error: #cf4040;
--color-error-border: #dc6a6a;
--color-error-strong: #b92f2f;
--color-error-text: #8c2424;
--color-error-on-dark: #ffbcbc;
--color-error-border-light: #e5aaaa;
--color-error-surface: #fff2f2;
--color-error-surface-soft: #fff7f7;

/* Warning and information */
--color-warning: #d69c15;
--color-warning-text-on-dark: #ffe098;
--color-warning-border: rgba(214, 156, 21, 0.40);
--color-warning-surface: rgba(214, 156, 21, 0.10);
--color-warning-text-on-light: #8a5a00;

--color-info: #2D6FB7;

/* Navigation */
--color-nav-avatar-border: rgba(255, 255, 255, 0.48);

/* Header / Navigation surfaces */
--color-header-start: #F5F9FE;
--color-header-end: #EBF3FC;
--color-header-border: #D4E1EE;
--color-header-shadow: rgba(7, 31, 61, 0.08);
--color-header-inner-highlight: rgba(255, 255, 255, 0.55);

/* Navigation dropdown surfaces */
--color-submenu-background: #F8FBFE;
--color-submenu-border: #D8E4F0;

/* Footer */
--color-footer-text: #ffffff;
--color-footer-text-muted: rgba(255, 255, 255, 0.76);
--color-footer-text-subtle: rgba(255, 255, 255, 0.58);
--color-footer-border: rgba(255, 255, 255, 0.12);

/* Hero */
--color-hero-background: #071F3D;

--color-hero-glow: rgba(62, 125, 204, 0.22);

--color-hero-overlay-start: rgba(5, 23, 45, 0.88);
--color-hero-overlay-middle: rgba(8, 41, 76, 0.66);
--color-hero-overlay-end: rgba(20, 72, 127, 0.30);

--color-hero-overlay-mobile-start: rgba(5, 22, 43, 0.95);
--color-hero-overlay-mobile-end: rgba(7, 34, 66, 0.90);

--color-hero-control: rgba(5, 28, 51, 0.60);
  /* Shadows */
  --shadow-card-soft: rgba(19, 50, 66, 0.07);
  --shadow-card: rgba(19, 50, 66, 0.11);
  --shadow-card-strong: rgba(19, 50, 66, 0.17);

  /* Card system */
  --card-background: var(--color-card);
  --card-background-hover: var(--color-card-hover);

  --card-border: #d3e0e5;
  --card-border-hover: var(--color-brand-primary);

  --card-radius: 18px;

  --card-shadow:
    0 10px 30px var(--shadow-card);

  --card-shadow-hover:
    0 16px 40px var(--shadow-card-strong);

  /* Form field system */
  --field-background: var(--color-field);
  --field-background-readonly: #edf3f5;

  --field-border: var(--color-field-border);
  --field-border-hover: #8baab5;
  --field-border-focus: var(--color-brand-primary);

  --field-text: var(--color-text-on-light);
  --field-placeholder: var(--color-text-on-light-soft);

  --field-radius: 10px;

  --field-focus-ring:
    0 0 0 3px var(--color-accent-soft);

  /* Button system */
  --button-background: var(--color-brand-primary);
  --button-background-hover: var(--color-brand-hover);
  --button-text: #ffffff;
  --button-radius: 10px;

  /* Transitions */
  --transition-ui: 0.2s ease;

  /* =========================================================
     BACKWARD-COMPATIBLE ALIASES
     Wichtig: Text verweist im Light Theme auf dunkle Farben.
     ========================================================= */

  --bg-main: var(--color-page-start);
  --bg-dark: var(--color-page-end);

  --accent: var(--color-brand-primary);
  --accent-light: var(--color-brand-hover);
  --accent-soft: var(--color-accent-soft);

  --text-main: var(--color-text-on-light);
  --text-muted: var(--color-text-on-light-muted);

  --surface-0: var(--color-surface-light-alt);
  --surface-1: var(--color-page-end);
  --surface-2: var(--color-page-start);

  --card-bg: var(--card-background);
  --card-bg-hover: var(--card-background-hover);

  --border-soft: var(--color-border-subtle);

  --radius: var(--card-radius);

  --shadow-1: var(--card-shadow);
  --shadow-2: var(--card-shadow-hover);
}

/* BASE */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(180deg, var(--bg-main), var(--bg-dark));
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* CONTAINER */
.container {
  max-width: 1300px;
  margin: auto;
  padding: 40px 20px;
}

/* TYPO */
h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 20px;
}

/* Semantic page H1 with the established visual H2 sizing. */
.page-title {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 20px;
}

/* Legal chapters are direct sections beneath the page H1. */
.legal-page h2 {
  margin-top: 40px;
  margin-bottom: 10px;
  font-size: 20px;
}

.legal-page ul,
.legal-page ol {
  max-width: 700px;
  margin: 8px 0 24px;
  padding-left: 24px;
  color: var(--text-muted);
}

.legal-page li {
  padding-left: 4px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.55;
}

.legal-page li + li {
  margin-top: 4px;
}

p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 700px;
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 30px;

  background: linear-gradient(
    180deg,
    var(--color-header-start) 0%,
    var(--color-header-end) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-bottom: 1px solid var(--color-header-border);
  box-shadow:
    0 3px 14px var(--color-header-shadow),
    inset 0 -1px var(--color-header-inner-highlight);

  z-index: 999;
}

/* =========================================================
   LOGO
   ========================================================= */

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo img {
  display: block;
  width: auto;
  height: 48px;
  max-width: min(235px, 46vw);
  object-fit: contain;
}

/* =========================================================
   DESKTOP MENU
   ========================================================= */

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;

  padding: 8px 12px;
  border-radius: 8px;

  color: var(--color-text-on-light);
  text-decoration: none;

  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;

  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.nav-menu a:hover {
  color: var(--color-brand-primary);
  background: var(--color-accent-soft);
}

.nav-menu a:focus-visible {
  color: var(--color-brand-primary);
  background: var(--color-accent-soft);
  outline: 2px solid var(--color-brand-primary);
  outline-offset: 2px;
}

/* Aktuelle Seite, sofern aria-current="page" gesetzt ist */
.nav-menu a[aria-current="page"] {
  color: var(--color-brand-primary);
  background: var(--color-accent-soft);
  font-weight: 600;
}

/* =========================================================
   BUY / CTA
   ========================================================= */

.nav-menu .cta {
  padding: 9px 15px;

  color: var(--color-text-primary);
  background: var(--color-brand-primary);

  font-weight: 600;
  box-shadow: 0 4px 12px rgba(17, 48, 67, 0.12);
}

.nav-menu .cta:hover,
.nav-menu .cta:focus-visible {
  color: var(--color-text-primary);
  background: var(--color-brand-hover);
  box-shadow: 0 6px 16px rgba(17, 48, 67, 0.18);
}

/* =========================================================
   BURGER BUTTON
   ========================================================= */

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;
  padding: 0;

  border: 1px solid var(--color-border-subtle);
  border-radius: 10px;

  background: var(--color-surface-white);
  color: var(--color-text-on-light);

  font-size: 26px;
  cursor: pointer;

  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  color: var(--color-brand-primary);
  background: var(--color-accent-soft);
  border-color: var(--color-brand-primary);
}

/* =========================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================= */

@media (max-width: 1100px) {
  .nav {
    padding: 0 20px;
  }

  .nav-menu {
    gap: 10px;
  }

  .nav-menu a {
    padding: 8px 9px;
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  .logo img {
    height: 42px;
    max-width: 210px;
  }
}

/* CTA */
.nav-menu .cta {
  background: var(--accent);
  color: var(--color-text-primary);
  padding: 8px 14px;
  border-radius: 10px;
}

.nav-menu .cta:hover {
  background: var(--accent-light);
  box-shadow: 0 0 20px var(--color-accent-medium);
}


/* =========================================================
   SUBMENU – DESKTOP
   ========================================================= */

.nav-item {
  position: relative;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;

  min-width: 230px;
  margin-top: 0;
  padding: 8px;

  background: var(--color-submenu-background);
  border: 1px solid var(--color-submenu-border);
  border-radius: 12px;
  box-shadow: 0 14px 35px rgba(17, 48, 67, 0.16);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(6px);
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease,
    transform 0.18s ease;

  z-index: 1000;
}

.nav-item:hover > .submenu,
.nav-item:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.submenu a {
  display: block;
  width: 100%;
  padding: 10px 12px;

  color: var(--color-text-on-light);
  white-space: nowrap;
  text-decoration: none;

  border-radius: 8px;
}

.submenu a:hover,
.submenu a:focus-visible {
  color: var(--color-brand-primary);
  background: var(--color-accent-soft);
}

/* =========================================================
   MOBILE NAV
   ========================================================= */

@media (max-width: 900px) {

  .nav {
    padding: 0 20px;
  }

  .nav-toggle {
    display: flex;
  }


  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;

    width: 80%;
    max-width: 320px;
    height: 100vh;

    overflow-y: auto;              /* 🔥 FIX */
    -webkit-overflow-scrolling: touch; /* 🔥 smooth iOS */

    background: linear-gradient(180deg, var(--bg-main), var(--bg-dark));

    display: flex;
    flex-direction: column;

    justify-content: flex-start;   /* 🔥 FIX (nicht center!) */
    align-items: flex-start;

    padding: 100px 30px 40px;      /* 🔥 unten Luft */
    gap: 25px;

    transition: 0.3s ease;
    z-index: 998;
  }


  .nav-menu.active {
    right: 0;
  }

  .nav-menu a {
    font-size: 18px;
  }
}

/* =========================================================
   MOBILE SUBMENU
   ========================================================= */

@media (max-width: 900px) {

  .nav-item {
    width: 100%;
  }

  .nav-item > a {
    width: 100%;
    display: block;
  }

  .submenu {
    width: 100%;
  }

  .nav-item.active .submenu {
    display: block;
  }

  .submenu a {
    display: block;
    width: 100%;

    padding: 10px 20px;
    font-size: 16px;

    white-space: normal;
    overflow-wrap: break-word;
  }

  .nav-menu {
    overflow-y: auto;
    overflow-x: hidden;
  }

}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* =========================================================
   BUTTON
   ========================================================= */

.btn {
  display: inline-block;
  padding: 14px 28px;

  background: var(--accent);
  color: var(--color-text-primary);

  border-radius: 12px;
  text-decoration: none;
  margin-top: 20px;

  font-weight: 600;             
  letter-spacing: 0.3px;

  border: 1px solid var(--color-overlay-active);  /* 🔥 Kontrast */
  box-shadow: 0 8px 25px var(--shadow-card-soft);   /* 🔥 hebt ihn ab */

  transition: all 0.2s ease;
}

.btn:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px var(--shadow-card);
}

/* =========================================================
   CARD / GRID
   ========================================================= */

.card {
  background: var(--color-overlay-subtle);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(10px);
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;           /* 🔥 verhindert blau */
  border: none;             /* 🔥 verhindert underline */
}

.card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px var(--shadow-card-soft);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* =========================================================
   MEDIA
   ========================================================= */

.image-block img {
  width: 100%;
  border-radius: 20px;
}

/* =========================================================
   SPACING SYSTEM (CLEAN)
   ========================================================= */

/* default section spacing */
.section {
  padding: 80px 0;
}

/* tighter PRODUCT → HARDWARE transition (target ~50px total) */
.product.section {
  padding-bottom: 25px;
}

.product + .product-block {
  padding-top: 25px;
}

/* =========================================================
   OVERLAY + SCROLL LOCK
   ========================================================= */

.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--shadow-card);
  backdrop-filter: blur(6px);

  opacity: 0;
  pointer-events: none;

  transition: 0.3s;
  z-index: 997;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.no-scroll {
  overflow: hidden;
}

/* =========================================================
   NAV
   ========================================================= */

#navClose {
  display: none;
}

.nav-menu.active #navClose {
  display: block;
}

@media (min-width: 901px) {
  #navClose {
    display: none !important;
  }
}

/* ===== SPEC CARDS ===== */

.specs {
  background: var(--color-surface-light);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.spec-card {
  background: var(--color-text-primary);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 8px 25px var(--shadow-card-soft);
  transition: all 0.25s ease;
}

.spec-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px var(--shadow-card-soft);
}

.spec-card h3 {
  margin-bottom: 15px;
  color: var(--color-text-on-light);
}

.spec-card ul {
  list-style: none;
  padding: 0;
}

.spec-card li {
  margin-bottom: 8px;
  color: var(--color-text-on-light-muted);
}

.spec-card li strong {
  color: var(--color-text-on-light);
}

/* ===== HIGHLIGHT ===== */

.spec-card.highlight {
  background: linear-gradient(135deg, var(--color-text-on-light), var(--color-field-hover));
  color: var(--color-text-primary);
}

.spec-card.highlight h3,
.spec-card.highlight li,
.spec-card.highlight strong {
  color: var(--color-text-primary);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1000px) {
  .spec-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
  .product-block-grid {
    grid-template-columns: 1fr;
  }
}

.spec-table {
  margin-top: 25px;
  border-top: 1px solid var(--border-soft);
}

.spec-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}

.spec-label {
  font-weight: 600;
  color: var(--text-main);
}

.spec-value {
  color: var(--text-muted);
}

/* LIGHT SECTION SUPPORT */
.product-block.alt .spec-label {
  color: var(--color-text-on-light);
}

.product-block.alt .spec-value {
  color: var(--color-text-on-light-muted);
}

/* MOBILE */
@media (max-width: 600px) {
  .spec-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  background: var(--color-section-footer);
  color: var(--color-footer-text);
  border-top: 1px solid var(--color-footer-border);
  margin-top: 80px;
}

/* GRID */

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 50px;

  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* COLUMNS */

.footer-col h4 {
  margin-bottom: 15px;

  color: var(--color-footer-text);

  font-size: 14px;
  font-weight: 700;
}

.footer-col a {
  display: block;
  margin-bottom: 10px;

  color: var(--color-footer-text-muted);

  font-size: 14px;
  text-decoration: none;

  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--color-brand-bright);
}

/* BRAND */

.footer-brand img {
  display: block;
  max-width: 160px;
  height: auto;
  margin-bottom: 15px;
}

.footer-brand p {
  margin-bottom: 10px;

  color: var(--color-footer-text-muted);

  font-size: 14px;
  line-height: 1.6;
}

.footer-note {
  color: var(--color-footer-text-subtle);
  font-size: 13px;
}

/* BOTTOM */

.footer-bottom {
  border-top: 1px solid var(--color-footer-border);
  padding: 20px 0;

  color: var(--color-footer-text-subtle);

  font-size: 13px;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-logo {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
  margin-bottom: 18px;
  background: transparent;
}

/* MOBILE */

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* =========================================================
   LINKS
   ========================================================= */

.section a:not(.btn):not(.card-link) {
  color: var(--accent);
  border-bottom: 1px solid var(--color-accent-medium);
}

.section a:not(.btn):not(.card-link):hover {
  color: var(--accent-light);
  border-bottom: 1px solid var(--accent);
}

/* =========================================================
   GLOBAL FIXES (OVERRIDE CHAOS)
   ========================================================= */

/* prevent broken grids */
.solution-grid,
.product-grid,
.product-block-grid {
  display: grid !important;
}

/* fix images shrinking / exploding */
.solution-image img,
.product-image img,
.product-block-image img {
  max-width: 420px !important;
  width: 100%;
  margin: 0 auto;
  display: block;
}

/* fix flex conflicts */
.solution-image,
.product-image {
  display: block !important;
}

/* fix footer alignment */
.footer-grid {
  margin: 0 auto;
  max-width: 1200px;
}




/* =========================================================
   3RD PARTY PRODUCTS GRID
   ========================================================= */

#productList {
  margin-top: 40px;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
  gap: 20px;

  justify-content: start;
}

@media (max-width: 600px) {

  #productList{
    justify-content: center;
  }

}

/* =========================================================
   GLOBAL BUTTON SYSTEM – FORCE CONSISTENCY
   ========================================================= */

/* ALL BUTTON-LIKE ELEMENTS */
.btn,
.download-action a,
.solution-video a,
.filter-btn,
.faq-filter-btn,
.firmware-actions a,
.download-filters button,
.usecase-filters button,
.supplier-item a {
  
  background: var(--accent) !important;
  border: 1px solid var(--accent) !important;
  color: var(--color-text-primary) !important;

  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;

  transition: all 0.2s ease;
}

/* HOVER */
.btn:hover,
.download-action a:hover,
.solution-video a:hover,
.filter-btn:hover,
.faq-filter-btn:hover,
.firmware-actions a:hover,
.download-filters button:hover,
.usecase-filters button:hover,
.supplier-item a:hover {

  background: var(--accent-light) !important;
  border-color: var(--accent-light) !important;

  transform: translateY(-1px);
}

/* ACTIVE / SELECTED STATES */
.filter-btn.active,
.faq-filter-btn.active,
.usecase-filters button.active {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--color-text-primary) !important;
}

/* =========================================================
   GLOBAL CARD SYSTEM
   ========================================================= */

.card,
.usecase-card,
.solution-block,
.support-card,
.download-card,
.firmware-card,
.news-card,
.product-card {

  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);

  backdrop-filter: blur(10px);

  box-shadow: var(--card-shadow);

  transition: all 0.25s ease;
}

.card:hover,
.usecase-card:hover,
.solution-block:hover,
.support-card:hover,
.download-card:hover,
.firmware-card:hover,
.news-card:hover,
.product-card:hover {

  background: var(--card-bg-hover);
  border-color: var(--card-border-hover);

  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.solutions,
.usecases,
.support,
.news,
.downloads,
.support-products {
  background: linear-gradient(
    180deg,
    var(--color-section-deep),
    var(--color-page-end)
  );
}	

.card,
.usecase-card,
.product-card,
.support-card,
.firmware-card,
.faq-card,
.download-card {

  background: var(--card-bg);
  border: 1px solid var(--card-border);

  border-radius: var(--card-radius);

  /* 🔥 DAS ist der Gamechanger */
  outline: 1px solid var(--color-overlay);

}

.card {
  background: linear-gradient(
    180deg,
    var(--color-overlay-hover),
    var(--color-overlay-subtle)
  );
}

.card::after,
.usecase-card::after,
.product-card::after {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle at top right,
    var(--color-accent-soft),
    var(--color-transparent) 60%
  );

  opacity: 0;
  transition: 0.3s;
}

.card:hover::after,
.usecase-card:hover::after,
.product-card:hover::after {
  opacity: 1;
}

.solutions,
.usecases,
.support,
.news,
.downloads,
.support-products {
  background: var(--surface-1);
}

.card,
.usecase-card,
.product-card,
.support-card,
.download-card {

  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);

  box-shadow: var(--shadow-1);

  transition: all 0.2s ease;
}

.card:hover,
.usecase-card:hover,
.product-card:hover {

  background: var(--card-bg-hover);
  border-color: var(--card-border-hover);

  box-shadow: var(--shadow-2);
  transform: translateY(-3px);
}

p {
  color: var(--text-muted);
}

.card p {
  color: var(--text-muted);
}

/* =========================
INSTALL 
================ */

/* =========================================================
   BUTTON VARIANTS
   ========================================================= */

/* SECONDARY BUTTON (z.B. Close / Cancel) */
.btn-secondary {
  display: inline-block;
  padding: 12px 22px;

  border-radius: 10px;

  background: var(--color-overlay);
  border: 1px solid var(--border-soft);

  color: var(--text-muted);

  cursor: pointer;
  text-decoration: none;

  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--color-overlay-hover);
  border-color: var(--accent);
  color: var(--text-main);

  transform: translateY(-1px);
}

/* ========================================
LOGIN 
=========================================== */

#loadingOverlay {

    position: fixed;
    inset: 0;

    background: var(--color-page-end);

    backdrop-filter: blur(8px);

    z-index: 99999;

    display: none;

    align-items: center;
    justify-content: center;
}

.loading-content {

    text-align: center;
}

.loading-spinner {

    width: 80px;
    height: 80px;

    border-radius: 50%;

    border: 5px solid var(--color-overlay-active);

    border-top-color: var(--color-brand-primary);

    animation: spin 1s linear infinite;

    margin: 0 auto 20px auto;
}

.loading-text {

    color: var(--color-text-primary);

    font-size: 18px;

    letter-spacing: 1px;
}

@keyframes spin {

    to {
        transform: rotate(360deg);
    }
}