/* Professional Business Theme - Version 2.1.1 - Visuelle Tiefe & Konsistenz */
:root {
    /* VEREINHEITLICHTES FARBKONZEPT - EINE KLARE AKZENTFARBE */
    --primary-color: #007C91;         /* Petrolblau - Konsistente Akzentfarbe */
    --accent-color: #007C91;          /* Gleiche Farbe für alle Akzente */
    --danger-color: #DC2626;          /* Klareres Rot für Warnungen */
    --warning-color: #FCD34D;         /* Milde Warnfarbe wie im Feedback */
    --success-color: #047857;         /* Ruhiges Grün */
    
    /* VISUELLE TIEFE - KONTRASTHINTERGRÜNDE */
    --bg-color: #F5F7FA;              /* Sanft, ruhig wie im Feedback */
    --surface-color: #FFFFFF;         /* Pure Weiß für Cards */
    --surface-cards: #FFFFFF;         /* Karten-Hintergrund */
    --surface-contrast: #F9FAFC;      /* Leichter Kontrast für Hierarchie */
    
    /* HIERARCHIE-FARBEN */
    --header-color: #1E2A38;          /* Navy Blue - Vertrauen, Tiefe */
    --footer-color: #1E2A38;          /* Navy Blue - Konsistenz */
    
    /* VERBESSERTE TEXT-HIERARCHIE */
    --text-primary: #2E3A4B;          /* Lesefreundlich wie im Feedback */
    --text-secondary: #6B7280;        /* Neutrales Grau */
    --text-light: #9CA3AF;            /* Helles Grau */
    
    /* VISUELLE TIEFE - SCHATTEN & RAHMEN */
    --border-color: #D9E0E7;          /* Struktur wie im Feedback */
    --border-radius: 12px;
    --shadow-soft: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 2px 8px -2px rgba(0, 0, 0, 0.08), 0 4px 12px -3px rgba(0, 0, 0, 0.06);
    
    /* MILDERE SPEZIAL-BOXEN */
    --warning-box-bg: #FEF9E7;        /* Sehr mildes Gelb */
    --warning-box-text: #8B5A00;      /* Warmes Braun */
    --risk-box-bg: #FDF2F2;           /* Sehr mildes Rosa */
    --risk-box-text: #2E3A4B;         /* Konsistenter dunkler Text */
    
    /* KONSISTENTE CTA-FARBEN */
    --cta-primary: #007C91;           /* Gleiche Farbe wie primary */
    --cta-secondary: #1E2A38;         /* Navy für sekundäre CTAs */
    --cta-hover: #005A6B;             /* Dunkler für Hover-Effekte */
}

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

/* Screen reader only text */
.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 9999;
    color: white;
}

.hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* MOBILE MENU - STARTET UNTER HEADER */
.mobile-menu {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 60px);
    background: var(--surface-color);
    border-left: 1px solid var(--border-color);
    transition: right 0.3s ease;
    z-index: 10000;
    padding: 0;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
}

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

.mobile-menu-close {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    background: white !important;
    border: 2px solid var(--primary-color) !important;
    border-radius: 50% !important;
    font-size: 1.5rem !important;
    color: var(--primary-color) !important;
    cursor: pointer !important;
    z-index: 10001 !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
}

/* MOBILE SEARCH - GANZ OBEN */
.mobile-search {
    padding: 0.75rem;
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    margin-top: 0;
}

.mobile-search input {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.mobile-search button {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.mobile-search button:hover {
    background: var(--cta-hover);
}

/* MOBILE NAVIGATION - KOMPAKT OHNE LINIEN */
.mobile-nav-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--surface-color);
}

.mobile-nav-menu li {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-bottom: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.mobile-nav-menu a {
    display: block;
    color: var(--text-primary) !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem !important;
    margin: 0 !important;
    border: none !important;
    border-bottom: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
    outline: none !important;
    transition: all 0.2s;
}

.mobile-nav-menu a:hover {
    background: var(--bg-color);
    color: var(--primary-color) !important;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: var(--shadow-medium);
}

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

.scroll-to-top:hover {
    background: var(--cta-hover);
}

.scroll-to-top:focus {
    outline: 2px solid var(--warning-color);
    outline-offset: 2px;
}

/* Sidebar Search Widget - Global styles */
.search-widget .sidebar-search-form {
    padding: 1rem;
}

.search-input-group {
    display: flex;
    gap: 0.5rem;
}

.search-input-group input {
    flex: 1;
    padding: 0.75rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.search-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 124, 145, 0.2);
}

.search-input-group input::placeholder {
    color: var(--text-secondary);
}

.search-input-group button {
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.search-input-group button:hover {
    background: var(--cta-hover);
}

.search-input-group button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 124, 145, 0.5);
}

/* DESKTOP MENU - SICHTBAR AUF DESKTOP */
.dropdown {
    display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block !important;
    }
    
    .dropdown {
        display: none !important;
    }
    
    /* ALLES SIDEBAR BRUTAL VERSTECKEN */
    .sidebar,
    .sidebar *,
    .search-widget,
    .search-widget *,
    .sidebar-search-form,
    .sidebar-search-form *,
    .widget,
    .widget *,
    .widget-area,
    .widget-area * {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* MOBILE MENU OHNE BORDER BRUTAL + ALLE ELEMENTE */
    .mobile-nav-menu,
    .mobile-nav-menu *,
    .mobile-nav-menu li,
    .mobile-nav-menu li *,
    .mobile-nav-menu a,
    .mobile-nav-menu a *,
    .mobile-menu,
    .mobile-menu * {
        border: none !important;
        border-bottom: none !important;
        border-top: none !important;
        border-left: none !important;
        border-right: none !important;
        box-shadow: none !important;
        outline: none !important;
    }
    
}

/* Header - Same on all pages */
.header {
    background: var(--header-color);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
}

.shield-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-select {
    background: var(--header-color);
    color: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

.language-select:hover,
.language-select:focus {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.mobile-language-select {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.language-select.mobile {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
}

/* DROPDOWN SYSTEM - KOMPLETT NEU */
.dropdown ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.8rem;
}

.dropdown > ul > li {
  position: relative;
  display: inline-block;
}

/* Erweitere Hover-Bereich damit Dropdown nicht sofort schließt */
.dropdown > ul > li:hover::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 10px;
  background: transparent;
  z-index: 999;
}

.dropdown a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
}

.dropdown a:hover {
  color: white;
  text-decoration: underline;
}

/* Submenu verstecken - MIT !important */
.dropdown .submenu {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  min-width: 200px !important;
  background: white !important;
  z-index: 1000 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  margin-top: 0px !important;
  padding-top: 8px !important;
}

/* Submenu zeigen bei Hover - MIT !important */
.dropdown li:hover > .submenu {
  display: block !important;
}

.submenu li {
  display: block;
}

.submenu a {
  padding: 15px 20px !important;
  font-size: 1.1rem !important;
  color: #333 !important;
  border-bottom: 1px solid #f0f0f0 !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
}

.submenu a:hover {
  background: #007C91 !important;
  color: white !important;
  padding-left: 25px !important;
}

.submenu li:last-child a {
  border-bottom: none !important;
  border-bottom-left-radius: 4px !important;
  border-bottom-right-radius: 4px !important;
}

.submenu li:first-child a {
  border-top-left-radius: 4px !important;
  border-top-right-radius: 4px !important;
}

.search-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s;
    color: white;
}

.search-btn:hover {
    background: rgba(255,255,255,0.1);
}

/* Footer - Same on all pages */
.footer {
   background: var(--footer-color);
   color: white;
   padding: 3rem 0 1rem;
}

.footer-content {
   display: grid;
   grid-template-columns: 1fr 2fr;
   gap: 3rem;
   margin-bottom: 2rem;
}

.footer-brand .logo {
   color: white;
   margin-bottom: 1rem;
}

.footer-brand p {
   opacity: 0.8;
}

.footer-links {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 2rem;
}

.link-group h4 {
   font-weight: 600;
   margin-bottom: 1rem;
   color: white;
}

.link-group a {
   display: block;
   color: var(--text-light);
   text-decoration: none;
   margin-bottom: 0.5rem;
   transition: color 0.2s;
}

.link-group a:hover {
   color: var(--primary-color);
}

.footer-bottom {
   border-top: 1px solid var(--border-color);
   padding-top: 1rem;
   text-align: center;
   opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
   .nav {
       display: none;
   }
   
   .mobile-menu-toggle {
       display: block;
   }
   
   
   .footer-content {
       grid-template-columns: 1fr;
   }
   
   .footer-links {
       grid-template-columns: 1fr;
   }
}


/* Keyboard navigation styles */
.keyboard-navigation *:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

@media (max-width: 480px) {
   .container {
       padding: 0 0.75rem;
   }
   
   .back-to-top {
       bottom: 1rem;
       right: 1rem;
       width: 45px;
       height: 45px;
   }
}