/* =================================================================
   6G-FOR-ALL CUSTOM STYLES
   ================================================================= */

/* =================================================================
   COLOR SCHEME VARIABLES
   ================================================================= */

:root {
  --6g-blue: #005478;
  --6g-blue-light: #0074a8;
  --6g-blue-dark: #003c5a;
  --6g-white: #ffffff;
  --6g-black: #000000;
  --6g-gray-light: #f5f5f5;
  --6g-gray-medium: #cccccc;
  --6g-gray-dark: #333333;
  
  --6g-bg-primary: var(--6g-white);
  --6g-text-primary: var(--6g-black);
  --6g-border-primary: var(--6g-gray-medium);
  
  --6g-button-primary-bg: var(--6g-blue);
  --6g-button-primary-bg-hover: var(--6g-blue-light);
  --6g-button-primary-bg-active: var(--6g-blue-dark);
}

[data-md-color-scheme="slate"] {
  --6g-bg-primary: var(--6g-black);
  --6g-text-primary: var(--6g-white);
  --6g-border-primary: var(--6g-gray-dark);
  
  --6g-button-primary-bg: var(--6g-blue-light);
  --6g-button-primary-bg-hover: var(--6g-blue);
  --6g-button-primary-bg-active: var(--6g-blue-dark);
}

/* =================================================================
   HEADER STYLES
   ================================================================= */

.md-header {
  height: 5rem !important;
  background-color: var(--6g-bg-primary) !important;
  border-bottom: 1px solid var(--6g-border-primary) !important;
  overflow: visible !important;
}

.md-header__inner {
  padding: 0 1rem !important;
  justify-content: space-between !important;
  overflow: visible !important;
}

.md-header .md-grid {
  max-width: none !important;
  margin: 0 !important;
  margin-left: auto !important;
  padding-right: 2rem !important;
  width: auto !important;
}

.md-header ~ .md-main .md-main__inner {
  max-width: 80rem !important;
}

.md-header ~ .md-main .md-content {
  margin-left: 0 !important;
}

.md-content {
  margin-left: auto !important;
}

.md-header__button.md-logo {
  width: auto !important;
  border-radius: 2px !important;
  transition: background-color 0.3s ease !important;
  position: relative !important;
  z-index: 30 !important;
}

.md-header__button.md-logo img {
  height: 4rem !important;
  width: auto !important;
}

[data-md-color-scheme="slate"] .md-header__button.md-logo {
  background-color: rgba(255, 255, 255, 1) !important;
}

.md-header__title,
.md-search {
  display: none !important;
}

.md-header__option {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  position: absolute !important;
  right: 2rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 30 !important;
}

.md-header__option .md-icon {
  color: var(--6g-text-primary) !important;
}

.md-header__option > label[for^="__palette"] {
  position: absolute !important;
  right: 12rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

.md-select .md-header__button {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.4rem 0.8rem !important;
  border-radius: 4px !important;
}

.md-select .md-header__button::after {
  content: "Languages" !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: var(--6g-text-primary) !important;
}

.lang-de .md-select .md-header__button::after {
  content: "Sprachen" !important;
}

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

.md-tabs {
  background-color: transparent !important;
  border-bottom: none !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  right: 16rem !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  z-index: 20 !important;
  pointer-events: auto !important;
  visibility: visible !important;
  overflow: visible !important;
}

.md-tabs__list {
  gap: 1rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  padding: 0 !important;
  height: auto !important;
  visibility: visible !important;
  pointer-events: auto !important;
  margin: 0 !important;
  overflow: visible !important;
}

.md-tabs__item {
  display: flex !important;
  align-items: center !important;
  visibility: visible !important;
  pointer-events: auto !important;
  height: auto !important;
}

.md-tabs__item:not([hidden]) {
  display: flex !important;
}

.md-tabs__link {
  background-color: transparent !important;
  color: var(--6g-blue) !important;
  padding: 0.6rem 1.8rem !important;
  margin: 1em !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 1.1rem !important;
  text-transform: none !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  opacity: 1 !important;
  display: flex !important;
  align-items: center !important;
  height: auto !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

[data-md-color-scheme="slate"] .md-tabs__link {
  color: var(--6g-white) !important;
}

.md-tabs__link:hover {
  background-color: rgba(0, 84, 120, 0.1) !important;
  color: var(--6g-blue-dark) !important;
  text-decoration: none !important;
}

[data-md-color-scheme="slate"] .md-tabs__link:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--6g-blue-light) !important;
}

.md-tabs__link--active {
  color: var(--6g-blue-dark) !important;
  background-color: rgba(0, 84, 120, 0.15) !important;
  text-decoration: none !important;
}

[data-md-color-scheme="slate"] .md-tabs__link--active {
  color: var(--6g-blue-light) !important;
  background-color: rgba(255, 255, 255, 0.15) !important;
}

.md-tabs__link:focus {
  outline: 2px solid var(--6g-blue) !important;
  outline-offset: 2px !important;
}

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


   /* Standard: nur Deutsch anzeigen */
.footer-en { 
  display: none;
}
.footer-de { 
  display: flex;
  gap: 30px; 
}

/* Englische Version anzeigen, wenn Body die Klasse lang-en hat */
body.lang-en .footer-en { 
  display: flex;
  gap: 30px;
}
body.lang-en .footer-de { 
  display: none; 
}

.md-footer {
  background-color: var(--6g-bg-primary) !important;
  border-top: 1px solid var(--6g-border-primary) !important;
  color: var(--6g-text-primary) !important;
  height: 240px !important;
  min-height: 240px !important;
}

[data-md-color-scheme="slate"] .md-footer {
  background-color: #2d3748 !important;
  border-top: 1px solid #4a5568 !important;
  color: #e2e8f0 !important;
}

.md-footer__inner {
  padding: 4rem 2rem !important;
  height: 240px !important;
  min-height: 240px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.md-footer-meta {
  background-color: var(--6g-bg-primary) !important;
  height: 240px !important;
  min-height: 240px !important;
  display: flex !important;
  align-items: center !important;
}

[data-md-color-scheme="slate"] .md-footer-meta {
  background-color: #2d3748 !important;
}

.md-footer-meta__inner,
.md-footer-meta .md-grid {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 2rem !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}

.footer-container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  gap: 2rem !important;
  flex-wrap: wrap !important;
}

.footer-links {
  display: flex !important;
  gap: 2rem !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}

.footer-logos {
  display: flex !important;
  align-items: center !important;
  gap: 4rem !important;
  flex-wrap: wrap !important;
}

.footer-link {
  color: var(--6g-text-primary) !important;
  text-decoration: none !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  transition: color 0.3s ease !important;
}

.footer-link:hover {
  color: var(--6g-blue) !important;
  text-decoration: underline !important;
}

[data-md-color-scheme="slate"] .footer-link {
  color: #e2e8f0 !important;
}

[data-md-color-scheme="slate"] .footer-link:hover {
  color: var(--6g-blue-light) !important;
}

.footer-logo {
  height: 9rem !important;
  width: auto !important;
  transition: filter 0.3s ease !important;
  object-fit: contain !important;
  max-width: 200px !important;
}

.md-footer-copyright__highlight {
  color: var(--6g-text-primary) !important;
}

.md-footer-copyright__highlight a {
  color: var(--6g-text-primary) !important;
  text-decoration: none !important;
}

.md-footer-copyright__highlight a:hover {
  color: var(--6g-blue) !important;
  text-decoration: underline !important;
}

[data-md-color-scheme="slate"] .md-footer-copyright__highlight {
  color: #e2e8f0 !important;
}

[data-md-color-scheme="slate"] .md-footer-copyright__highlight a {
  color: #e2e8f0 !important;
}

/* =================================================================
   MOBILE RESPONSIVE STYLES
   ================================================================= */

/* Mobile header and tabs reset */
@media (max-width: 76.1875em) {
  /* ... alle bisherigen Mobile-Regeln bleiben hier unverändert ... */
}

/* Mobile footer adjustments */
@media (max-width: 768px) {
  .md-footer {
    height: auto !important;
    min-height: unset !important;
  }

  .md-footer__inner {
    height: auto !important;
    min-height: unset !important;
    padding: 2rem 1rem !important;
  }

  .md-footer-meta {
    height: auto !important;
    min-height: unset !important;
  }

  .md-footer-meta__inner,
  .md-footer-meta .md-grid {
    padding: 1rem !important;
  }

  .footer-container {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.5rem !important;
    padding: 1rem 0 !important;
  }

  .footer-links {
    justify-content: center !important;
  }

  .footer-logos {
    flex-direction: column !important;
    align-items: center !important;
    gap: 2rem !important;
  }

  .footer-logo {
    height: 6rem !important;
    max-width: 160px !important;
  }
}

@media (max-width: 480px) {
  /* ... alle bisherigen Footer-Regeln bleiben hier unverändert ... */
}
