/* =========================================================
   GLOBAL STYLES – Dunexio (Floating Glassmorphism Edition)
   ========================================================= */

:root {
  --bg: #f8fafc;
  --bg-alt: #f0f9ff;
  --text: #0f172a;               /* Sattes Schwarz / Dunkelgrau */
  --text-dark: #0f172a;
  --primary-blue: #03045e;        /* Edles Dunkelblau */
  --accent-cyan: #0096c7;
  --muted: #475569;
  --silver: #94a3b8;
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-bg-hover: rgba(3, 4, 94, 0.1);
  --glass-border: rgba(255, 255, 255, 0.8);
  --shadow-sm: 0 4px 15px rgba(31, 38, 135, 0.05);
  --shadow-md: 0 15px 35px rgba(31, 38, 135, 0.1);
  --shadow-lg: 0 20px 45px rgba(31, 38, 135, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  padding-top: 100px; /* Platz für den schwebenden Header */
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   HEADER & NAV – SCHWEBENDES GLASSMORPHISM
   ========================================================= */

.site-header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 1.5rem 0.5rem;
  pointer-events: none;
}

.site-header {
  max-width: 1140px;
  margin: 0 auto;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-md);
  pointer-events: auto;
  transition: all 0.3s ease;
}

.header-container,
.header-inner {
  width: 100%;
  padding: 0 1.5rem;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand-logo,
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand-logo:hover,
.logo:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.brand-logo-text,
.logo-text {
  color: var(--primary-blue);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Navigation Desktop */
.site-nav, .site-nav ul, .site-nav li,
.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.site-nav a,
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.5rem 1rem;
  color: var(--text);
  border-radius: 12px;
  font-size: 0.925rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Deutliche Hover-Effekte */
.site-nav a:hover,
.nav-link:hover {
  color: var(--primary-blue);
  background: var(--glass-bg-hover);
  box-shadow: inset 0 0 0 1px rgba(3, 4, 94, 0.2);
  transform: translateY(-1px);
}

.site-nav a.active,
.nav-link.active {
  color: #ffffff;
  background: var(--primary-blue);
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(3, 4, 94, 0.3);
}

/* Dropdown Menü (Glassmorphism) */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  min-width: 240px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1050;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  background: transparent;
  box-shadow: none;
}

.dropdown-menu a:hover {
  background: rgba(3, 4, 94, 0.12);
  color: var(--primary-blue);
  box-shadow: none;
  transform: translateX(4px);
}

.mobile-toggle,
.nav-toggle { 
  display: none; 
}

/* =========================================================
   HINWEIS BANNER
   ========================================================= */

.site-disclaimer-banner {
  max-width: 1140px;
  margin: 0.5rem auto 0;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.65rem 1rem;
  font-size: 0.825rem;
  color: var(--text);
  text-align: center;
  box-shadow: 0 8px 25px 0 rgba(31, 38, 135, 0.05);
}

.disclaimer-banner-container {
  line-height: 1.45;
}

.disclaimer-banner-container strong {
  color: var(--primary-blue);
}

/* =========================================================
   HERO SECTION
   ========================================================= */

.hero,
.home-hero {
  position: relative;
  padding: 80px 0 60px;
  background: radial-gradient(1000px 600px at 50% 0%, var(--bg-alt) 0%, #ffffff 70%);
  overflow: hidden;
}

.hero-inner {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.hero-title,
.hero-copy h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: var(--primary-blue);
}

.hero-copy h1 span {
  background: linear-gradient(90deg, var(--silver), var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle,
.hero-description {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 580px;
}

/* Buttons */
.hero-cta,
.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn,
.home-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary,
.home-button-primary {
  background: var(--primary-blue);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(3, 4, 94, 0.25);
}

.btn-primary:hover,
.home-button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(3, 4, 94, 0.35);
  background: #020340;
}

.btn-secondary,
.home-button-outline {
  background: rgba(255, 255, 255, 0.8);
  color: var(--primary-blue);
  border-color: rgba(3, 4, 94, 0.15);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover,
.home-button-outline:hover {
  border-color: var(--primary-blue);
  background: rgba(3, 4, 94, 0.05);
  transform: translateY(-2px);
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat strong {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-blue);
}

.hero-stat span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Dashboard Card */
.dashboard-card {
  position: relative;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(3, 4, 94, 0.08);
  background: rgba(255, 255, 255, 0.6);
}

.dashboard-dots {
  display: flex;
  gap: 6px;
}

.dashboard-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.dashboard-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-blue);
  margin-left: auto;
}

.dashboard-status {
  font-size: 0.75rem;
  font-weight: 700;
  color: #10b981;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dashboard-content {
  padding: 24px;
  text-align: center;
}

.dashboard-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--primary-blue);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 auto 12px;
  box-shadow: 0 10px 24px rgba(3, 4, 94, 0.25);
}

.dashboard-small-title {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.dashboard-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--primary-blue);
}

/* =========================================================
   SECTIONS & CARDS
   ========================================================= */

.section,
.home-section {
  padding: 72px 0;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 36px;
  text-align: center;
  letter-spacing: -0.01em;
  color: var(--primary-blue);
}

.section-intro {
  max-width: 720px;
  margin: 0 auto 40px;
}

.section-intro h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  margin: 10px 0 12px;
  color: var(--primary-blue);
}

.section-intro.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.leistungen-grid,
.feature-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.leistung-card,
.feature-card {
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.leistung-card:hover,
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.9);
}

.leistung-title,
.feature-card-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-blue);
}

.leistung-text,
.feature-card-content p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* =========================================================
   FOOTER – SCHWEBENDES GLASSMORPHISM
   ========================================================= */

.site-footer-wrapper {
  padding: 0 1.5rem 2rem;
  margin-top: 60px;
}

.site-footer {
  max-width: 1140px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 54px 40px 28px;
  box-shadow: var(--shadow-md);
}

.footer-container,
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 0.8fr);
  gap: 40px;
}

.footer-brand-title {
  color: var(--primary-blue);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-description {
  max-width: 320px;
  margin: 0 0 1rem;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-ai-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

.footer-col h4 {
  margin: 0 0 1.2rem;
  color: var(--primary-blue);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.footer-col ul,
.footer-nav ul {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a,
.footer-nav a,
.footer-legal a {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-col a:hover,
.footer-nav a:hover,
.footer-legal a:hover {
  color: var(--primary-blue);
  padding-left: 6px;
}

.footer-bottom,
.footer-copy {
  margin-top: 44px;
  padding-top: 22px;
  color: var(--muted);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
}

/* =========================================================
   SCROLL TO TOP BUTTON (GLASSMORPHISM)
   ========================================================= */

.scroll-to-top,
#scroll-to-top-btn {
  position: fixed;
  right: 1.75rem;
  bottom: 1.75rem;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px 0 rgba(31, 38, 135, 0.15);
  z-index: 999;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-to-top:hover,
#scroll-to-top-btn:hover {
  background: rgba(3, 4, 94, 0.9);
  border-color: rgba(3, 4, 94, 1);
  color: #ffffff;
  transform: translateY(-3px) scale(1.05);
}

/* =========================================================
   TEXT SELECTION & INFO BANNER
   ========================================================= */

::selection {
  background: var(--primary-blue);
  color: #ffffff;
}

::-moz-selection {
  background: var(--primary-blue);
  color: #ffffff;
}

.info-banner {
  background: rgba(254, 243, 199, 0.85);
  border-bottom: 1px solid #fde68a;
  backdrop-filter: blur(12px);
  padding: 12px 0;
}

.info-banner-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS & MOBIL-HANDHABUNG
   ========================================================= */

@media (max-width: 900px) {
  .site-header-wrapper { padding: 0.75rem 1rem; }
  .header-container, .header-inner { padding: 0 1rem; min-height: 64px; }
  body { padding-top: 90px; }

  .mobile-toggle,
  .nav-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    cursor: pointer;
    place-items: center;
    backdrop-filter: blur(10px);
  }

  .site-navigation,
  .main-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 1rem;
    left: 1rem;
  }

  .site-nav,
  .nav-list {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .site-nav.active,
  .main-nav.open .nav-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav > li { width: 100%; }
  .site-nav a { width: 100%; justify-content: flex-start; padding: 0.75rem 1rem; }

  /* Touch-Dropdown auf Mobilgeräten */
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: rgba(3, 4, 94, 0.05);
    padding-left: 1rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: none;
    margin-top: 0;
    transition: all 0.3s ease;
  }

  .nav-dropdown.mobile-dropdown-open .dropdown-menu {
    max-height: 300px;
    opacity: 1;
    visibility: visible;
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
  }

  .leistungen-grid,
  .feature-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .site-footer-wrapper { padding: 0 1rem 1.5rem; }
  .site-footer { padding: 36px 20px 24px; }
  .footer-container, .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .leistungen-grid,
  .feature-card-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta,
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn,
  .home-button {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* =========================================================
   FIX FÜR MOBILE KLICKBARKEIT (TOUCH-GERÄTE)
   ========================================================= */
@media (max-width: 900px) {
  /* Stellt sicher, dass der Header-Wrapper keine Klicks blockiert */
  .site-header-wrapper {
    pointer-events: none;
  }
  .site-header {
    pointer-events: auto;
  }

  /* Bringt Buttons und Links in der Mobilansicht in die oberste Ebene */
  .hero-actions,
  .btn,
  .home-button,
  a {
    position: relative;
    z-index: 100;
    touch-action: manipulation;
  }
}

/* =========================================================
   EMERGENCY MOBILE TOUCH & CLICK FIX
   ========================================================= */
@media (max-width: 900px) {
  /* 1. Verhindert, dass unsichtbare Header-Ränder Klicks blockieren */
  .site-header-wrapper {
    pointer-events: none !important;
    height: auto !important;
  }
  
  .site-header-wrapper * {
    pointer-events: auto;
  }

  /* 2. Zwingt Buttons in den Vordergrund und aktiviert Touch */
  a.btn, 
  button.btn, 
  .hero-actions a,
  .partner-banner a {
    position: relative !important;
    z-index: 99999 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(3, 4, 94, 0.2) !important;
    cursor: pointer !important;
  }

  /* 3. Stellt sicher, dass das Sidebar-Overlay Klicks nur abfängt, wenn es AKTIV ist */
  .itsdesk-sidebar-overlay:not(.active),
  #itsdeskSidebarOverlay:not(.active),
  .itsdesk-modal-overlay:not(.active) {
    display: none !important;
    pointer-events: none !important;
  }
}