:root {
  --text: #060b0e;
  --background: #f5f9fa;
  --primary: #5ca1ad;
  --secondary: #9db3cd;
  --accent: #7e8dbe;
  --linearPrimarySecondary: linear-gradient(#5ca1ad, #9db3cd);
  --linearPrimaryAccent: linear-gradient(#5ca1ad, #7e8dbe);
  --linearSecondaryAccent: linear-gradient(#9db3cd, #7e8dbe);
  --radialPrimarySecondary: radial-gradient(#5ca1ad, #9db3cd);
  --radialPrimaryAccent: radial-gradient(#5ca1ad, #7e8dbe);
  --radialSecondaryAccent: radial-gradient(#9db3cd, #7e8dbe);
}

body {
  background-color: var(--background);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right top;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  color: var(--text);
  margin: 0;
  padding-top: 60px; /* Add padding equal to header height */
}

.gradient-text {
  background: var(--radialPrimaryAccent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  margin: 100px;
}

h1, h2, h3, h4, h5 {
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  color: var(--text);
}

html { font-size: 100%; } /* 16px */

h1 { font-size: 4.210rem; font-weight: 900; /* 67.36px */ }
h2 { font-size: 3.158rem; /* 50.56px */ }
h3 { font-size: 2.369rem; /* 37.92px */ }
h4 { font-size: 1.777rem; /* 28.48px */ }
h5 { font-size: 1.333rem; /* 21.28px */ }
small { font-size: 0.750rem; /* 12px */ }

.centered-title {
  text-align: center;
  margin-top: 100px; /* for centered headlines */
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
  flex-shrink: 0;
}

.site-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
}

.site-title a {
  color: var(--text);
  background: var(--radialPrimaryAccent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.header-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.logo img {
  height: 40px;
  margin: 10px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--background);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
  flex-shrink: 0;
}

.site-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Lexend', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.site-title a {
  text-decoration: none;
  background: var(--radialPrimaryAccent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Base menu button styles */
.menu-button {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    width: 30px;
    height: 30px;
    padding: 0;
    min-width: unset;
    margin-right: 0;
}

.menu-button span {
    display: block;
    position: absolute;
    height: 2px;
    width: 24px;
    background: var(--text);
    border-radius: 2px;
    opacity: 1;
    left: 3px;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.menu-button span:nth-child(1) { top: 10px; }
.menu-button span:nth-child(2) { top: 18px; }
.menu-button span:nth-child(3) { top: 26px; }

.menu-button.active span:nth-child(1) {
    top: 18px;
    transform: rotate(135deg);
}

.menu-button.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.menu-button.active span:nth-child(3) {
    top: 18px;
    transform: rotate(-135deg);
}

/* Mobile menu styles */
.mobile-menu {
    position: fixed;
    top: 60px;
    right: 0;
    width: 250px;
    background-color: var(--background);
    box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: transform 0.3s ease-in-out;
    transform: translateX(0);
}

.mobile-menu.hidden {
    transform: translateX(100%);
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 1rem;
}

.mobile-menu li {
    margin: 0.5rem 0;
}

.mobile-menu li a {
    color: var(--text);
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    transition: all 200ms;
    font-size: 1rem;
}

.mobile-menu li a:hover {
    background-color: rgba(51, 51, 51, 0.05);
    border-radius: 4px;
}

/* Remove media queries that hide menu button and mobile menu */

.grey-button {
  background-color: rgba(51, 51, 51, 0.05);
  border-radius: 8px;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  transition: all 200ms;
}

.grey-button:hover {
  background-color: rgba(51, 51, 51, 0.1);
}

.primary-secondary-button {
  background-image: linear-gradient(200deg, var(--primary), var(--secondary));
  border-radius: 8px;
  border: none;
  color: var(--background);
  cursor: pointer;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  transition: all 200ms;
}

.primary-secondary-button:hover {
  opacity: 0.9;
}

.hidden {
  display: none;
}

/* Einheitliches Styling für Header-Buttons */
.header-buttons {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.grey-button, 
.primary-secondary-button {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  margin-right: 0.5rem;
  display: inline-block;
  border: none;
  cursor: pointer;
  min-width: 80px;
}

.grey-button {
  background-color: #f0f0f0;
  color: #333;
}

.primary-secondary-button {
  background-color: #3498db;
  color: white;
  transition: background-color 0.3s ease;
}

.primary-secondary-button:hover {
  background-color: #2980b9;
}

/* Verbesserte Button-Stile für konsistente Darstellung in der gesamten Anwendung */

.header-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.site-header .header-buttons .grey-button,
.site-header .grey-button,
.grey-button {
  background-color: rgba(51, 51, 51, 0.05);
  border-radius: 8px;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  min-width: 80px;
  text-align: center;
  transition: all 200ms;
  text-decoration: none;
  display: inline-block;
  margin-right: 10px;
}

.site-header .header-buttons .grey-button:hover,
.site-header .grey-button:hover,
.grey-button:hover {
  background-color: rgba(51, 51, 51, 0.1);
}

.site-header .header-buttons .primary-secondary-button,
.site-header .primary-secondary-button,
.primary-secondary-button {
  background-image: linear-gradient(200deg, var(--primary), var(--secondary));
  border-radius: 8px;
  border: none;
  color: var(--background);
  cursor: pointer;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  min-width: 80px;
  text-align: center;
  transition: all 200ms;
  text-decoration: none;
  display: inline-block;
  margin-right: 10px;
}

.site-header .header-buttons .primary-secondary-button:hover,
.site-header .primary-secondary-button:hover,
.primary-secondary-button:hover {
  opacity: 0.9;
}

/* Button-Klassen für seitenspezifische Buttons */
.submit-button {
  background-image: linear-gradient(200deg, var(--primary), var(--secondary));
  border-radius: 8px;
  border: none;
  color: var(--background);
  cursor: pointer;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  min-width: 80px;
  text-align: center;
  transition: all 200ms;
  margin-top: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.submit-button:hover {
  opacity: 0.9;
}


/* Einheitlicher Button-Stil für die gesamte Anwendung */

/* Button-Basis-Stil */
button, 
.button,
a[role="button"] {
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  min-width: 80px;
  text-align: center;
  transition: all 200ms;
  text-decoration: none;
  display: inline-block;
  margin-right: 10px;
}

/* Graue Buttons */
.grey-button {
  background-color: rgba(51, 51, 51, 0.05);
  color: var(--text);
}

.grey-button:hover {
  background-color: rgba(51, 51, 51, 0.1);
}

/* Primäre Buttons mit Farbverlauf */
.primary-secondary-button,
.submit-button {
  background-image: linear-gradient(200deg, var(--primary), var(--secondary));
  color: var(--background);
}

.primary-secondary-button:hover,
.submit-button:hover {
  opacity: 0.9;
}

.primary-secondary-button.placeholder-gleis {
  opacity: 0;
  pointer-events: none;
}

/* Menü-Button */
.menu-button {
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 0;
  min-width: unset;
  margin-right: 0;
}

/* Header-Buttons Container */
.header-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Spezifischer Submit-Button für Formulare */
.submit-button {
  margin-top: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Footer Styles */
.site-footer {
  background-color: var(--background);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 3rem 1rem 1rem;
  margin-top: 4rem;
  font-family: 'Roboto', sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

.footer-section h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  background: var(--radialPrimaryAccent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.footer-section p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
  opacity: 0.8;
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: all 200ms;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary);
}

/* Add styling for non-link list items to match links */
.footer-links li:not(:has(a)) {
  color: var(--text);
  font-size: 0.9rem;
  opacity: 0.8;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(51, 51, 51, 0.05);
  transition: all 200ms;
  color: var(--text);
}

.social-links a:hover {
  background-color: var(--primary);
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text);
  opacity: 0.7;
}

.legal-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
}

.legal-links li a {
  font-size: 0.8rem;
  color: var(--text);
  text-decoration: none;
  opacity: 0.7;
  transition: all 200ms;
}

.legal-links li a:hover {
  opacity: 1;
  color: var(--primary);
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .footer-section {
    width: 100%;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .legal-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Status Badge Styles */
.status-badge, .status-cell, .status, [class*='status'], [class*='badge'] {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  background-image: none !important;
}

td[class*='status'], td[class*='badge'], span[class*='status'], span[class*='badge'] {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  background-image: none !important;
}

.status-badge.status-abgeschlossen, .status-abgeschlossen {
  background-color: #6C757D !important;
  color: #fff !important;
}

.status-badge.status-abgelehnt, .status-abgelehnt {
  background-color: #DC3545 !important;
  color: #fff !important;
}

.status-badge.status-genehmigt, .status-genehmigt {
  background-color: #28A745 !important;
  color: #fff !important;
}

.status-badge.status-geplant, .status-geplant {
  background-color: #FFC107 !important;
  color: #212529 !important;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: capitalize;
    color: white;
    transition: opacity 0.2s ease;
}

.status-badge:hover {
    opacity: 0.9;
}

/* Table Cell Styling */
.status-cell {
    text-align: center;
    padding: 8px 4px !important;
}

/* Ensure consistent spacing */
.rides-table td {
    vertical-align: middle;
}

[data-theme="dark"] body,
[data-theme="dark"] .main-wrapper,
[data-theme="dark"] .form-box,
[data-theme="dark"] .booking-table,
[data-theme="dark"] .rides-table,
[data-theme="dark"] .site-header,
[data-theme="dark"] .site-footer,
[data-theme="dark"] .footer-bottom {
  background-color: #121a1f !important;
  color: #f5f9fa !important;
}
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] th,
[data-theme="dark"] td,
[data-theme="dark"] label,
[data-theme="dark"] .section-title,
[data-theme="dark"] .no-bookings,
[data-theme="dark"] .form-group label,
[data-theme="dark"] .footer-section,
[data-theme="dark"] .footer-links a,
[data-theme="dark"] .footer-links li,
[data-theme="dark"] .footer-bottom p {
  color: #f5f9fa !important;
}
[data-theme="dark"] .form-box,
[data-theme="dark"] .booking-table,
[data-theme="dark"] .rides-table {
  background-color: #1a232a !important;
  border-color: #222c36 !important;
}
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background-color: #232e39 !important;
  color: #f5f9fa !important;
  border-color: #2a3744 !important;
}
[data-theme="dark"] .primary-secondary-button,
[data-theme="dark"] .grey-button {
  background-color: #232e39 !important;
  color: #f5f9fa !important;
  border: none !important;
}
[data-theme="dark"] .primary-secondary-button:hover,
[data-theme="dark"] .grey-button:hover {
  background-color: #2a3744 !important;
}
[data-theme="dark"] .modal-content {
  background-color: #232e39 !important;
  color: #f5f9fa !important;
}
[data-theme="dark"] .status-badge.status-abgeschlossen, [data-theme="dark"] .status-abgeschlossen {
  background-color: #adb5bd !important;
  color: #212529 !important;
}

[data-theme="dark"] .status-badge.status-abgelehnt, [data-theme="dark"] .status-abgelehnt {
  background-color: #c82333 !important;
  color: #fff !important;
}

[data-theme="dark"] .status-badge.status-genehmigt, [data-theme="dark"] .status-genehmigt {
  background-color: #218838 !important;
  color: #fff !important;
}

[data-theme="dark"] .status-badge.status-geplant, [data-theme="dark"] .status-geplant {
  background-color: #ffe066 !important;
  color: #212529 !important;
}

[data-theme="dark"] .dashboard-header-image,
[data-theme="dark"] .dashboard-image,
[data-theme="dark"] .header-image,
[data-theme="dark"] .image-container {
  filter: brightness(1.2) contrast(0.85) !important;
  position: relative;
}

[data-theme="dark"] .dashboard-header-image::after,
[data-theme="dark"] .dashboard-image::after,
[data-theme="dark"] .header-image::after,
[data-theme="dark"] .image-container::after {
  content: '';
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(18,26,31,0.3) 0%, rgba(18,26,31,0.6) 100%);
  pointer-events: none;
  z-index: 2;
}

[data-theme="dark"] .section-title,
[data-theme="dark"] h2,
[data-theme="dark"] .dashboard-subtitle,
[data-theme="dark"] .subtitle {
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

[data-theme="dark"] .highlight-image img,
[data-theme="dark"] .image-container img {
  filter: brightness(1.15) contrast(0.85) drop-shadow(0 0 16px #121a1f) !important;
}

[data-theme="dark"] h2,
[data-theme="dark"] .section-title {
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}