:root {
  --hero-grad-start: #0074d9;
  --hero-grad-end: #00c3ff;
  --hero-text: #fff;
  --header-bg: #fff;
  --border-color: #dee2e6;
  --text-color: #495057;
  --link-color: #007bff;
}

body.darkmode {
  --hero-grad-start: #004e92;
  --hero-grad-end: #000428;
  --hero-text: #fff;
}

body {
  background: #f8f9fa;
  font-family: 'Segoe UI', Arial, sans-serif;
  transition: background 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container {
  transition: all 0.3s ease;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e9ecef;
}
.calendar:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.calendar-header-cell {
  background: linear-gradient(135deg, #e9ecef, #dee2e6);
  text-align: center;
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 2px solid #dee2e6;
  color: #495057;
  font-size: 1.05em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.calendar-day {
  min-height: 60px;
  padding: 6px 4px 4px 6px;
  background: #fff;
  border: 1px solid #f1f3f4;
  text-align: left;
  font-size: 1.1em;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
}
.calendar-day::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s;
}
.calendar-day:hover::before {
  left: 100%;
}
.calendar-day:hover:not(.empty) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  z-index: 10;
  background: #e3f2fd;
  border-color: #2196f3;
}
.calendar-day.empty {
  background: transparent;
  border: none;
  cursor: default;
}
.calendar-day.ferien {
  background: linear-gradient(135deg, #d1f5d3, #a5d6a7) !important;
  border-color: #7ed957 !important;
  position: relative;
  overflow: hidden;
}
.calendar-day.ferien::before {
  content: '🎓';
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 0.8em;
  opacity: 0.7;
}
.calendar-day.feiertag {
  background: linear-gradient(135deg, #fff3cd, #ffe082) !important;
  border-color: #ffc107 !important;
  position: relative;
  overflow: hidden;
}
.calendar-day.feiertag::before {
  content: '🎉';
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 0.8em;
  opacity: 0.7;
}
.calendar-day.today {
  border: 3px solid #388e3c;
  background: linear-gradient(135deg, #fff, #e8f5e8) !important;
  font-weight: bold;
  color: #333;
  box-shadow: 0 4px 15px rgba(56, 142, 60, 0.3);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 4px 15px rgba(56, 142, 60, 0.3); }
  50% { box-shadow: 0 4px 20px rgba(56, 142, 60, 0.5); }
  100% { box-shadow: 0 4px 15px rgba(56, 142, 60, 0.3); }
}
.calendar-day.saturday, .calendar-day.sunday {
  background: #fff3e0 !important;
  border-color: #ffcc80 !important;
  color: #e65100 !important;
  position: relative;
}
.calendar-day.saturday::after, .calendar-day.sunday::after {
  content: '🌅';
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 0.7em;
  opacity: 0.6;
}
.badge {
  font-size: 0.7em;
  margin-left: 3px;
  vertical-align: middle;
  border-radius: 6px;
  padding: 2px 6px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
.badge:hover {
  transform: scale(1.1);
}
.calendar-legend {
  display: flex;
  gap: 2em;
  align-items: center;
  font-size: 1.05em;
  padding: 1em;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin: 1.5em 0;
  text-align: center;
}
.calendar-legend > span {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5em;
  width: auto !important;
  height: auto !important;
  border-radius: 8px !important;
  margin: 0 0.5em 0 0 !important;
  padding: 0.3em 1em !important;
  font-size: 1em;
}
.calendar-legend > span > span {
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  margin: 0 !important;
  font-size: 1.2em;
  display: inline !important;
}
.calendar-legend .legend-ferien {
  background-color: var(--bs-info-bg-subtle);
}
.calendar-legend .legend-feiertag {
  background-color: var(--bs-warning-bg-subtle);
}
.legend-ferien, .legend-feiertag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}
.legend-ferien {
  background: linear-gradient(135deg, #d1f5d3, #a5d6a7);
  border: 2px solid #7ed957;
  color: #2e7d32;
}
.legend-feiertag {
  background: linear-gradient(135deg, #fff3cd, #ffe082);
  border: 2px solid #ffc107;
  color: #e65100;
}
.legend-ferien:hover, .legend-feiertag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.ferien-summary {
  width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border-collapse: collapse;
  margin-top: 1.5em;
  overflow: hidden;
  border: 1px solid #e9ecef;
}
.ferien-summary th {
  background: linear-gradient(135deg, #f1f3f4, #e9ecef);
  font-weight: 600;
  color: #495057;
  padding: 12px 16px;
  border: 1px solid #dee2e6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9em;
}
.ferien-summary td {
  padding: 10px 16px;
  border: 1px solid #e9ecef;
  transition: background 0.3s ease;
}
.ferien-summary tr:hover td {
  background: #f8f9fa;
}
#ferien-planer, #brueckentage-box, #ferien-countdown {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  padding: 1em 1.2em;
  margin-bottom: 1em;
  font-size: 1.08em;
  color: #333;
}
#ferien-countdown {
  font-size: 1.2em;
  font-weight: 600;
  color: #0d6efd;
}
#brueckentage-box {
  background: #e3f2fd;
  border-left: 5px solid #90caf9;
}
#print-view {
  display: inline-block;
}
@media print {
  body, .container {
    background: #fff !important;
    color: #000 !important;
  }
  nav, .btn, #export-ics, #export-ics-all, #export-pdf, #goto-today, #print-view, .accordion, .calendar-legend {
    display: none !important;
  }
  .calendar, .ferien-summary {
    box-shadow: none !important;
    border-radius: 0 !important;
  }
}
/* Enhanced Accordion Styling for FAQ Pages */
.accordion {
  --bs-accordion-border-radius: 0.75rem;
  --bs-accordion-border-width: 0;
  --bs-accordion-btn-padding-x: 1.5rem;
  --bs-accordion-btn-padding-y: 1.25rem;
  --bs-accordion-body-padding-x: 1.5rem;
  --bs-accordion-body-padding-y: 1.25rem;
  --bs-accordion-active-color: #0d6efd;
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.accordion-item {
  border: 1px solid #e0e0e0;
  border-radius: 0.75rem !important;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
  background-color: #fff;
}

.accordion-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.accordion-item:last-child {
  margin-bottom: 0;
}

.accordion-button {
  font-size: 1em;
  font-weight: 600;
  color: #212529;
  background-color: #f8f9fa;
  border: none;
  padding: 1rem 1.25rem;
  position: relative;
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
  color: #0d6efd;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.accordion-button:hover {
  background-color: #e9ecef;
  color: #0d6efd;
}

.accordion-button:not(.collapsed):hover {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230d6efd'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transition: transform 0.3s ease;
  width: 1.25rem;
  height: 1.25rem;
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230d6efd'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transform: rotate(180deg);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
  border-color: transparent;
}

.accordion-body {
  padding: 1.25rem 1.5rem;
  background-color: #fff;
  color: #495057;
  line-height: 1.7;
  font-size: 0.95em;
  border-top: 1px solid #e9ecef;
}

.accordion-body strong {
  color: #0d6efd;
  font-weight: 600;
}

.accordion-body a {
  color: #0d6efd;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.accordion-body a:hover {
  color: #0a58ca;
  text-decoration: underline;
}

/* FAQ-specific enhancements */
#faqAccordion .accordion-item {
  border-left: 4px solid #0d6efd;
}

#faqAccordion .accordion-item:first-child {
  border-left-color: #198754;
}

#faqAccordion .accordion-button {
  padding-left: 3rem;
  font-size: 0.875em;
}

#faqAccordion .accordion-button::before {
  content: "❓";
  position: absolute;
  left: 1rem;
  font-size: 0.85em;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  line-height: 1;
}

#faqAccordion .accordion-button:not(.collapsed)::before {
  content: "✓";
  opacity: 0.8;
  font-size: 0.9em;
  font-weight: bold;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .accordion-button {
    font-size: 0.9em;
    padding: 0.875rem 1rem;
    padding-left: 2.25rem;
  }
  
  .accordion-body {
    padding: 1rem 1.25rem;
    font-size: 0.9em;
  }
  
  #faqAccordion .accordion-button {
    padding-left: 2.5rem;
    font-size: 0.85em;
  }
  
  #faqAccordion .accordion-button::before {
    left: 0.75rem;
    font-size: 0.75em;
  }
  
  .accordion-item {
    margin-bottom: 0.75rem;
  }
}
@media (max-width: 768px) {
  .calendar-day {
    min-height: 45px;
    font-size: 1em;
    padding: 4px 2px 2px 4px;
  }
  .calendar-header-cell {
    font-size: 0.9em;
    padding: 8px 0;
  }
  .calendar-legend {
    flex-direction: column;
    gap: 1em;
    text-align: center;
  }
  #feature-bar {
    flex-direction: column;
    gap: 0.5em;
  }
  .year-btn {
    min-width: 60px;
    font-size: 1em;
  }
}
#kalender-monat-jahr {
  cursor: pointer;
  text-decoration: underline dotted #0d6efd;
  transition: color 0.2s;
}
#kalender-monat-jahr:hover, #kalender-monat-jahr:focus {
  color: #0d6efd;
  background: #e3f2fd;
  border-radius: 4px;
}
.calendar-controls .btn-group {
  gap: 0.5em;
}
#year-nav {
  justify-content: flex-start;
  margin-bottom: 1.2em;
}
.year-btn {
  min-width: 80px;
  font-size: 1.1em;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.year-btn.active {
  background: linear-gradient(135deg, #0d6efd, #0056b3);
  color: #fff;
  border-color: #0d6efd;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
  transform: scale(1.05);
}
.year-btn:hover:not(.active) {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
#feature-bar {
  gap: 0.8em;
  flex-wrap: wrap;
  margin-bottom: 1.5em;
  padding: 1em;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
#feature-bar .btn-group label {
  min-width: 90px;
}
#feature-bar .btn {
  border-radius: 8px;
  font-weight: 500;
  min-height: 40px;
}
#toggle-darkmode.active, #toggle-darkmode:focus {
  background: #222;
  color: #fff;
  border-color: #222;
}
/* Dark mode */
body.darkmode {
  background: #181a1b;
  color: #e0e0e0;
}
body.darkmode .container, body.darkmode .calendar, body.darkmode .ferien-planer-box, body.darkmode #ferien-planer, body.darkmode #brueckentage-box, body.darkmode #ferien-countdown {
  background: #23272b !important;
  color: #e0e0e0 !important;
}
body.darkmode .calendar-day {
  background: #23272b;
  color: #e0e0e0;
  border-color: #333;
}
body.darkmode .calendar-day:hover:not(.empty) {
  background: #2c3034;
  border-color: #4a9eff;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}
body.darkmode .calendar-day.saturday, body.darkmode .calendar-day.sunday {
  background: linear-gradient(135deg, #3d2c1b, #2c1f15) !important;
  border-color: #ff9800 !important;
  color: #ffcc80 !important;
}
body.darkmode .calendar-day.ferien {
  background: linear-gradient(135deg, #244c2c, #1b3a1b) !important;
  border-color: #7ed957 !important;
  color: #d1f5d3 !important;
}
body.darkmode .calendar-day.feiertag {
  background: linear-gradient(135deg, #5c4a1a, #4a3a15) !important;
  border-color: #ffe082 !important;
  color: #fff3cd !important;
}
body.darkmode .calendar-day.today {
  background: linear-gradient(135deg, #23272b, #1b1f23) !important;
  border-color: #7ed957;
  color: #fff;
  box-shadow: 0 4px 15px rgba(126, 217, 87, 0.3);
}
body.darkmode .calendar-header-cell {
  background: linear-gradient(135deg, #2c3034, #23272b);
  color: #e0e0e0;
  border-bottom-color: #333;
}
body.darkmode .badge {
  background: #333 !important;
  color: #fff !important;
}
body.darkmode .legend-ferien {
  background: linear-gradient(135deg, #244c2c, #1b3a1b);
  border-color: #7ed957;
}
body.darkmode .legend-feiertag {
  background: linear-gradient(135deg, #5c4a1a, #4a3a15);
  border-color: #ffe082;
}
body.darkmode .ferien-summary {
  background: #23272b;
  color: #e0e0e0;
}
body.darkmode .btn-outline-primary, body.darkmode .btn-outline-success, body.darkmode .btn-outline-warning, body.darkmode .btn-outline-secondary, body.darkmode .btn-outline-dark {
  border-color: #444;
  color: #e0e0e0;
}
body.darkmode .btn-outline-primary:hover, body.darkmode .btn-outline-success:hover, body.darkmode .btn-outline-warning:hover, body.darkmode .btn-outline-secondary:hover, body.darkmode .btn-outline-dark:hover {
  background: #333;
  color: #fff;
}
/* Loading animation */
.loading {
  opacity: 0.6;
  pointer-events: none;
}
.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* Enhanced buttons */
.btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.btn:hover::before {
  width: 300px;
  height: 300px;
}
.btn:active {
  transform: scale(0.95);
}
/* Accessibility improvements */
.calendar-day:focus {
  outline: 3px solid #2196f3;
  outline-offset: 2px;
}
.btn:focus {
  outline: 3px solid #2196f3;
  outline-offset: 2px;
}
/* Enhanced tooltips */
.tooltip {
  font-size: 0.9em;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
/* Loading states */
.loading-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loading-spinner {
  width: 3rem;
  height: 3rem;
  border: 0.4rem solid #007bff;
  border-top: 0.4rem solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
body.darkmode .loading-overlay {
  background: rgba(0,0,0,0.8);
}
body.printview nav,
body.printview #feature-bar,
body.printview .calendar-legend,
body.printview .btn,
body.printview #ferien-planer,
body.printview #brueckentage-box,
body.printview #ferien-countdown,
body.printview #year-nav {
  display: none !important;
}
body.printview .container {
  max-width: 100vw !important;
  padding: 0 !important;
}
body.printview #ferienkalender,
body.printview .ferien-summary {
  box-shadow: none !important;
  border-radius: 0 !important;
  width: 100% !important;
  margin: 0 !important;
}
body.printview .calendar {
  box-shadow: none !important;
  border-radius: 0 !important;
  border: 2px solid #000 !important;
}
body.printview .calendar-day {
  border: 1px solid #ccc !important;
  min-height: 50px !important;
}
body.printview footer {
  display: none !important;
}

/* Advanced Feature Styles */

/* Quick Navigation */
#quick-nav {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.quick-nav-toggle {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #0d6efd, #0056b3);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5em;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-nav-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.quick-nav-menu {
  position: absolute;
  top: 60px;
  right: 0;
  width: 280px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  padding: 1.5em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e9ecef;
}

#quick-nav.active .quick-nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.quick-nav-header {
  font-size: 1.2em;
  font-weight: 600;
  color: #495057;
  margin-bottom: 1em;
  text-align: center;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 0.5em;
}

.quick-nav-section {
  margin-bottom: 1.5em;
}

.quick-nav-title {
  font-size: 0.9em;
  font-weight: 600;
  color: #6c757d;
  margin-bottom: 0.5em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quick-nav-btn {
  display: block;
  width: 100%;
  padding: 0.5em 1em;
  margin-bottom: 0.3em;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  color: #495057;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9em;
}

.quick-nav-btn:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

/* Statistics Panel */
#statistics-panel {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

.stats-toggle {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5em;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stats-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.stats-content {
  position: absolute;
  top: 60px;
  left: 0;
  width: 320px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  padding: 1.5em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e9ecef;
}

#statistics-panel.active .stats-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.stats-header {
  font-size: 1.2em;
  font-weight: 600;
  color: #495057;
  margin-bottom: 1.5em;
  text-align: center;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 0.5em;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
  margin-bottom: 1.5em;
}

.stat-item {
  text-align: center;
  padding: 1em;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.stat-value {
  font-size: 1.8em;
  font-weight: 700;
  color: #0d6efd;
  margin-bottom: 0.3em;
}

.stat-label {
  font-size: 0.8em;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Search Bar */
#search-container {
  margin: 1.5em 0;
  position: relative;
}

.search-bar {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  background: white;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
  position: relative;
}

.search-bar:focus-within {
  border-color: #0d6efd;
  box-shadow: 0 4px 20px rgba(13, 110, 253, 0.2);
}

#search-input {
  flex: 1;
  padding: 0.8em 1.2em;
  border: none;
  outline: none;
  font-size: 1em;
  background: transparent;
}

#search-btn {
  padding: 0.8em 1.2em;
  background: linear-gradient(135deg, #0d6efd, #0056b3);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
  transition: all 0.3s ease;
  min-width: 50px;
}

#search-btn:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin-top: 0.5em;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
  border: 1px solid #e9ecef;
}

.search-results-header {
  padding: 0.8em 1em;
  background: #f8f9fa;
  font-weight: 600;
  color: #495057;
  border-bottom: 1px solid #e9ecef;
  position: sticky;
  top: 0;
}

.search-result-item {
  display: flex;
  align-items: center;
  padding: 0.8em 1em;
  cursor: pointer;
  transition: background 0.3s ease;
  border-bottom: 1px solid #f8f9fa;
}

.search-result-item:hover {
  background: #f8f9fa;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-icon {
  font-size: 1.2em;
  margin-right: 0.8em;
  flex-shrink: 0;
}

.search-result-content {
  flex: 1;
  min-width: 0;
}

.search-result-name {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.2em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-date {
  font-size: 0.9em;
  color: #6c757d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-no-results {
  padding: 1em;
  text-align: center;
  color: #6c757d;
  font-style: italic;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
  /* Search improvements for mobile */
  .search-bar {
    max-width: 100%;
    border-radius: 20px;
    margin: 0 1em;
  }
  
  #search-input {
    padding: 0.7em 1em;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  #search-btn {
    padding: 0.7em 1em;
    min-width: 45px;
  }
  
  .search-results {
    left: 1em;
    right: 1em;
    transform: none;
    max-width: none;
    width: auto;
    max-height: 250px;
    border-radius: 12px;
  }
  
  .search-result-item {
    padding: 1em;
    min-height: 60px;
  }
  
  .search-result-icon {
    font-size: 1.5em;
    margin-right: 1em;
  }
  
  /* Quick nav mobile improvements */
  #quick-nav {
    top: 10px;
    right: 10px;
  }
  
  .quick-nav-toggle {
    width: 45px;
    height: 45px;
    font-size: 1.3em;
  }
  
  .quick-nav-menu {
    width: 280px;
    right: 0;
    left: auto;
    max-height: 80vh;
    overflow-y: auto;
  }
  
  /* Statistics panel mobile improvements */
  #statistics-panel {
    top: 10px;
    left: 10px;
  }
  
  .stats-toggle {
    width: 45px;
    height: 45px;
    font-size: 1.3em;
  }
  
  .stats-content {
    width: 280px;
    left: 0;
    right: auto;
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.8em;
  }
  
  .stat-item {
    padding: 0.8em;
  }
  
  .stat-value {
    font-size: 1.5em;
  }
  
  /* Calendar mobile improvements */
  .calendar-day {
    min-height: 50px;
    font-size: 1em;
    padding: 4px 2px 2px 4px;
  }
  
  .calendar-header-cell {
    font-size: 0.9em;
    padding: 8px 0;
  }
  
  .calendar-legend {
    flex-direction: column;
    gap: 1em;
    text-align: center;
    padding: 1em;
  }
  
  .legend-ferien, .legend-feiertag {
    width: 100%;
    justify-content: center;
  }
  
  /* Feature bar mobile improvements */
  #feature-bar {
    flex-direction: column;
    gap: 0.8em;
    padding: 1em;
    margin: 1em 0;
  }
  
  #feature-bar .btn-group {
    width: 100%;
    justify-content: center;
  }
  
  #feature-bar .btn-group label {
    min-width: 80px;
    font-size: 0.9em;
  }
  
  #feature-bar .btn {
    min-height: 45px;
    font-size: 0.9em;
  }
  
  /* Year navigation mobile improvements */
  #year-nav {
    flex-direction: column;
    gap: 0.5em;
    margin-bottom: 1em;
  }
  
  .year-btn {
    width: 100%;
    min-width: 0;
    min-height: 45px;
    font-size: 1em;
  }
  
  /* Calendar controls mobile improvements */
  .calendar-controls {
    flex-direction: column;
    gap: 0.8em;
    align-items: stretch;
  }
  
  .calendar-controls .btn-group {
    justify-content: center;
  }
  
  /* Day details modal mobile improvements */
  .day-details-content {
    width: 95%;
    margin: 1em;
    max-height: 85vh;
  }
  
  .day-details-header {
    padding: 1em;
  }
  
  .day-details-header h3 {
    font-size: 1.1em;
  }
  
  .day-details-body {
    padding: 1em;
  }
  
  .day-event {
    flex-direction: column;
    text-align: center;
    padding: 1em;
  }
  
  .event-icon {
    margin-right: 0;
    margin-bottom: 0.5em;
    font-size: 1.8em;
  }
  
  /* Button improvements for mobile */
  .btn {
    min-height: 44px; /* Touch target size */
    padding: 0.6em 1em;
    font-size: 1em;
  }
  
  /* Container padding for mobile */
  .container {
    padding-left: 1em;
    padding-right: 1em;
  }
  
  /* Title mobile improvements */
  h1 {
    font-size: 1.8em;
    text-align: center;
  }
  
  /* Navigation mobile improvements */
  nav {
    margin-bottom: 1em;
  }
  
  nav .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  /* Extra small screen improvements */
  .search-bar {
    margin: 0 0.5em;
    border-radius: 15px;
  }
  
  #search-input {
    padding: 0.6em 0.8em;
  }
  
  #search-btn {
    padding: 0.6em 0.8em;
    min-width: 40px;
  }
  
  .search-results {
    left: 0.5em;
    right: 0.5em;
    max-height: 200px;
  }
  
  .quick-nav-menu,
  .stats-content {
    width: 250px;
  }
  
  .calendar-day {
    min-height: 45px;
    font-size: 0.9em;
  }
  
  .calendar-header-cell {
    font-size: 0.8em;
    padding: 6px 0;
  }
  
  .btn {
    min-height: 40px;
    font-size: 0.9em;
  }
  
  .container {
    padding-left: 0.5em;
    padding-right: 0.5em;
  }
  
  h1 {
    font-size: 1.5em;
  }
  
  /* Hide some elements on very small screens */
  .calendar-legend {
    font-size: 0.9em;
  }
  
  .legend-ferien, .legend-feiertag {
    padding: 4px 8px;
    font-size: 0.8em;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  /* Touch device specific improvements */
  .calendar-day:hover {
    transform: none;
  }
  
  .calendar-day:active {
    transform: scale(0.95);
  }
  
  .btn:hover {
    transform: none;
  }
  
  .btn:active {
    transform: scale(0.95);
  }
  
  .quick-nav-btn:hover {
    transform: none;
  }
  
  .quick-nav-btn:active {
    transform: scale(0.95);
  }
  
  .search-result-item:hover {
    background: none;
  }
  
  .search-result-item:active {
    background: #f8f9fa;
  }
  
  .day-event:hover {
    transform: none;
  }
  
  .day-event:active {
    transform: scale(0.98);
  }
}

/* Landscape mobile improvements */
@media (max-width: 768px) and (orientation: landscape) {
  .search-results {
    max-height: 150px;
  }
  
  .day-details-content {
    max-height: 70vh;
  }
  
  .quick-nav-menu,
  .stats-content {
    max-height: 60vh;
  }
  
  .calendar-day {
    min-height: 40px;
  }
}

/* Day Details Modal */
.day-details-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
}

.day-details-content {
  background: white;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.day-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5em;
  border-bottom: 2px solid #e9ecef;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.day-details-header h3 {
  margin: 0;
  color: #495057;
  font-size: 1.3em;
}

.day-details-close {
  background: none;
  border: none;
  font-size: 1.5em;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.day-details-close:hover {
  background: #e9ecef;
  color: #495057;
}

.day-details-body {
  padding: 1.5em;
}

.day-event {
  display: flex;
  align-items: center;
  padding: 1em;
  margin-bottom: 1em;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.day-event:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.event-icon {
  font-size: 2em;
  margin-right: 1em;
  width: 50px;
  text-align: center;
}

.event-details h4 {
  margin: 0 0 0.3em 0;
  color: #495057;
  font-size: 1.1em;
}

.event-details p {
  margin: 0;
  color: #6c757d;
  font-size: 0.9em;
}

.ferien-event {
  background: linear-gradient(135deg, #d1f5d3, #a5d6a7);
  border-color: #7ed957;
}

.feiertag-event {
  background: linear-gradient(135deg, #fff3cd, #ffe082);
  border-color: #ffc107;
}

.weekend-event {
  background: linear-gradient(135deg, #fff3e0, #ffcc80);
  border-color: #ff9800;
}

.today-event {
  background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
  border-color: #4caf50;
}

.normal-day {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-color: #dee2e6;
}

/* Dark mode styles for new features */
body.darkmode .quick-nav-menu,
body.darkmode .stats-content,
body.darkmode .search-results,
body.darkmode .day-details-content {
  background: #23272b;
  color: #e0e0e0;
  border-color: #333;
}

body.darkmode .quick-nav-btn {
  background: #2c3034;
  border-color: #333;
  color: #e0e0e0;
}

body.darkmode .quick-nav-btn:hover {
  background: #333;
}

body.darkmode .stat-item {
  background: linear-gradient(135deg, #2c3034, #23272b);
  border-color: #333;
}

body.darkmode .stat-value {
  color: #4a9eff;
}

body.darkmode .search-bar {
  background: #23272b;
  border-color: #333;
}

body.darkmode #search-input {
  color: #e0e0e0;
  background: transparent;
}

body.darkmode .search-results-header {
  background: #2c3034;
  color: #e0e0e0;
  border-color: #333;
}

body.darkmode .search-result-item {
  border-color: #333;
}

body.darkmode .search-result-item:hover {
  background: #2c3034;
}

body.darkmode .day-details-header {
  background: linear-gradient(135deg, #2c3034, #23272b);
  border-color: #333;
}

body.darkmode .day-event {
  border-color: #333;
}

body.darkmode .ferien-event {
  background: linear-gradient(135deg, #244c2c, #1b3a1b);
  border-color: #7ed957;
}

body.darkmode .feiertag-event {
  background: linear-gradient(135deg, #5c4a1a, #4a3a15);
  border-color: #ffe082;
}

body.darkmode .weekend-event {
  background: linear-gradient(135deg, #3d2c1b, #2c1f15);
  border-color: #ff9800;
}

body.darkmode .today-event {
  background: linear-gradient(135deg, #1b3a1b, #0f2a0f);
  border-color: #4caf50;
}

body.darkmode .normal-day {
  background: linear-gradient(135deg, #2c3034, #23272b);
  border-color: #333;
}

/* Jahresübersicht */
#jahresuebersicht .month-container {
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

#jahresuebersicht .month-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

#jahresuebersicht .small-calendar {
  border: 1px solid var(--bs-border-color);
  padding: 10px;
  border-radius: var(--bs-border-radius);
  background-color: var(--bs-body-bg);
}

.small-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  font-size: 0.75rem;
  text-align: center;
  align-items: center;
  transition: all 0.2s ease-in-out;
}

.small-calendar-header {
  font-weight: bold;
}

.small-calendar-day {
  border-radius: var(--bs-border-radius-sm);
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease-in-out;
}

.small-calendar-day:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.small-calendar-day.weekend {
  background: linear-gradient(135deg, #ffe0b2 60%, #fff3e0 100%) !important;
  border: 2px solid #ff9800 !important;
  color: #e65100 !important;
  position: relative;
  font-weight: bold;
}

.darkmode .small-calendar-day.weekend {
  background: linear-gradient(135deg, #3d2c1b 60%, #2c1f15 100%) !important;
  border: 2px solid #ff9800 !important;
  color: #ffcc80 !important;
}

.small-calendar-day.ferien {
  background-color: var(--bs-info-bg-subtle);
  color: var(--bs-emphasis-color);
}

.small-calendar-day.feiertag {
  background-color: var(--bs-warning-bg-subtle);
  color: var(--bs-emphasis-color);
}

.small-calendar-day.today {
    border: 2px solid var(--bs-primary);
    font-weight: bold;
    color: var(--bs-primary);
    background-color: var(--bs-primary-bg-subtle);
}

.darkmode #jahresuebersicht .month-container:hover {
  box-shadow: 0 8px 15px rgba(255,255,255,0.05);
}

.darkmode .small-calendar-day.today {
  border-color: var(--bs-primary);
  color: var(--bs-primary);
}

.kalender-vergleich-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin: 1em 0;
}

.kalender-vergleich-table td,
.kalender-vergleich-table th {
  border: 1px solid #dee2e6;
  padding: 8px;
  height: 40px;
  line-height: 40px;
  vertical-align: middle;
}

.kalender-vergleich-table td:first-child,
.kalender-vergleich-table th:first-child {
  min-width: 280px;
  padding: 8px 16px;
  background: #f8f9fa;
  font-weight: 500;
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 1;
  white-space: nowrap;
}

.kalender-vergleich-table td:not(:first-child),
.kalender-vergleich-table th:not(:first-child) {
  width: 40px;
  text-align: center;
}

.table-responsive {
  overflow-x: auto;
  margin: 0;
  padding: 0;
  width: 100%;
}

#homepage-kalender-section .kalender-vergleich-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin: 1em 0;
}

#homepage-kalender-section .kalender-vergleich-table td,
#homepage-kalender-section .kalender-vergleich-table th {
  border: 1px solid #dee2e6;
  padding: 8px;
  height: 40px;
  line-height: 40px;
  vertical-align: middle;
}

#homepage-kalender-section .kalender-vergleich-table td:first-child,
#homepage-kalender-section .kalender-vergleich-table th:first-child {
  min-width: 280px;
  padding: 8px 16px;
  background: #f8f9fa;
  font-weight: 500;
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 1;
  white-space: nowrap;
}

#homepage-kalender-section .kalender-vergleich-table td:not(:first-child),
#homepage-kalender-section .kalender-vergleich-table th:not(:first-child) {
  width: 40px;
  text-align: center;
}

#homepage-kalender-section .table-responsive {
  overflow-x: auto;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* --- Improved Header/Menu Styles --- */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0;
  transition: box-shadow 0.2s;
  z-index: 1002;
}
.main-header .main-nav {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #007bff #e9ecef;
  max-width: 100vw;
}
.main-header .main-nav a,
.main-header .dropdown-toggle {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
  outline: none;
}
.main-header .main-nav a.active,
.main-header .main-nav a:focus,
.main-header .main-nav a:hover {
  background: #e3f2fd;
  color: #007bff;
}
.main-header .main-nav a.active {
  font-weight: 700;
  background: #007bff;
  color: #fff;
}
.menu-toggle {
  font-size: 2rem;
  color: #007bff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1003;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  transition: opacity 0.3s ease;
  opacity: 0;
  backdrop-filter: blur(4px);
}

.mobile-menu-overlay.show {
  display: block;
  opacity: 1;
}

/* Dark mode compatibility for mobile nav */
body.darkmode .mobile-nav {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

/* Preserve existing mobile menu styles for compatibility */
@media (min-width: 768px) {
  .mobile-menu-overlay,
  .mobile-nav {
    display: none !important;
  }
  .main-header .main-nav {
    display: flex !important;
  }
}

@media (max-width: 767.98px) {
  .main-header .main-nav {
    display: none !important;
  }
  .menu-toggle {
    display: block !important;
  }
}

/* --- Hero Section Styles --- */
.hero-section {
  background: linear-gradient(90deg, var(--hero-grad-start) 0%, var(--hero-grad-end) 100%);
  color: var(--hero-text);
  padding: 4rem 0 3rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 2.5rem;
}
.hero-section .hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}
.hero-section h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  color: var(--hero-text);
}
.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 2.2rem;
  opacity: 0.95;
  color: var(--hero-text);
}
.minimal-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}
.minimal-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
  color: var(--hero-text);
}
.minimal-hero p {
  font-size: 1.15rem;
  color: var(--hero-text);
  opacity: 0.95;
  margin-bottom: 0.2rem;
}

/* --- Footer Styles --- */
.site-footer {
  background-color: #343a40;
  color: #adb5bd;
  padding: 3rem 0;
  margin-top: auto !important;
  font-size: 0.9rem;
}
.footer-links a {
  color: var(--link-color) !important;
}
.footer-icon {
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* --- Responsive Adjustments --- */
@media (max-width: 700px) {
  .hero-section {
    padding: 3rem 0 2rem 0;
  }
  .hero-section h1 {
    font-size: 2rem;
  }
}
@media (max-width: 600px) {
  .hero-section .hero-content h1 {
    font-size: 1.8rem;
  }
  .hero-section .hero-content p {
    font-size: 1rem;
  }
}

/* Feiertage page loading overlay and spinner */
.loading-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loading-spinner {
  width: 3rem;
  height: 3rem;
  border: 0.4rem solid #007bff;
  border-top: 0.4rem solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Feiertage table highlight for today */
.table-success.fw-bold {
  background-color: #d1e7dd !important;
  font-weight: 700 !important;
}

/* Responsive adjustments for Feiertage page */
#feiertageResult .card {
  border-radius: 1rem;
}
#feiertageTable th, #feiertageTable td {
  vertical-align: middle;
  font-size: 1.05rem;
}
#feiertageTitle {
  font-size: 1.4rem;
  font-weight: 600;
}

/* Minimal hero for Feiertage */
.hero-section.minimal-hero {
  background: linear-gradient(90deg, #e3f2fd 0%, #fff 100%);
  padding: 2.5rem 0 1.5rem 0;
  margin-bottom: 0;
}
.hero-section.minimal-hero .hero-content {
  text-align: center;
}
.hero-section.minimal-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #007bff;
}
.hero-section.minimal-hero p {
  font-size: 1.15rem;
  color: #333;
}

/* --- Dropdown and Grouped Menu Styles --- */
.main-header .dropdown {
  position: relative;
}
.main-header .dropdown-toggle {
  color: var(--text-color);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  background: none;
  border: none;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
  outline: none;
  cursor: pointer;
}
.main-header .dropdown-toggle.active,
.main-header .dropdown-toggle:focus,
.main-header .dropdown-toggle:hover {
  background: #e3f2fd;
  color: #007bff;
}
.main-header .dropdown-menu {
  min-width: 180px;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
  border: 1px solid #e9ecef;
  margin-top: 0.5rem;
  z-index: 1100;
}
.main-header .dropdown-item {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color);
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.main-header .dropdown-item.active,
.main-header .dropdown-item:focus,
.main-header .dropdown-item:hover {
  background: #e3f2fd;
  color: #007bff;
}
/* Mobile Menu Styles - Clean and Working */
@media (max-width: 767.98px) {
  .mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1004;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 100vh;
  }

  .mobile-nav.open {
    transform: translateX(0);
  }

  /* Mobile Menu Header */
  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
  }

  .mobile-menu-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .mobile-brand-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
  }

  .mobile-brand-icon i {
    font-size: 1.5rem;
    color: white;
  }

  .mobile-brand-text h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
  }

  .mobile-brand-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
    margin-top: 0.2rem;
  }

  .mobile-menu-close {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
  }

  .mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
  }

  /* Mobile Menu Body */
  .mobile-menu-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
    padding-bottom: 2rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    max-height: calc(100vh - 120px);
  }

  .mobile-menu-body::-webkit-scrollbar {
    width: 4px;
  }

  .mobile-menu-body::-webkit-scrollbar-track {
    background: transparent;
  }

  .mobile-menu-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
  }

  .mobile-menu-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
  }

  /* Ensure proper scrolling on all devices */
  .mobile-menu-body {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  /* Mobile Menu Sections */
  .mobile-menu-section {
    margin-bottom: 2rem;
  }

  .mobile-menu-section-header {
    margin-bottom: 1rem;
    padding-left: 0.5rem;
  }

  .mobile-menu-section-header h4 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    position: relative;
  }

  .mobile-menu-section-header h4::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 1rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
  }

  /* Mobile Menu Items */
  .mobile-menu-item {
    margin-bottom: 0.5rem;
  }

  .mobile-menu-item:last-child {
    margin-bottom: 0;
  }

  .mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
  }

  .mobile-menu-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
  }

  .mobile-menu-link:hover::before {
    left: 100%;
  }

  .mobile-menu-link:hover,
  .mobile-menu-link:focus,
  .mobile-menu-link.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  .mobile-menu-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
  }

  .mobile-menu-icon i {
    font-size: 1.2rem;
    color: white;
  }

  .mobile-menu-link:hover .mobile-menu-icon,
  .mobile-menu-link:focus .mobile-menu-icon,
  .mobile-menu-link.active .mobile-menu-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
  }

  .mobile-menu-text {
    flex: 1;
    min-width: 0;
  }

  .mobile-menu-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.2rem;
    line-height: 1.2;
  }

  .mobile-menu-subtitle {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.2;
  }

  .mobile-menu-arrow {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
  }

  .mobile-menu-link:hover .mobile-menu-arrow,
  .mobile-menu-link:focus .mobile-menu-arrow,
  .mobile-menu-link.active .mobile-menu-arrow {
    color: white;
    transform: translateX(3px);
  }
}

/* --- Modern Back to Top Button --- */
.back-to-top {
  position: fixed;
  right: 2rem;
  bottom: 2.5rem;
  z-index: 1200;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #007bff 60%, #00c3ff 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 24px rgba(0,123,255,0.18), 0 1.5px 6px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, background 0.18s, box-shadow 0.18s, color 0.18s, transform 0.18s;
  cursor: pointer;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover, .back-to-top:focus-visible {
  background: linear-gradient(135deg, #0056b3 60%, #007bff 100%);
  color: #ffd700;
  box-shadow: 0 8px 32px rgba(0,123,255,0.22), 0 2px 8px rgba(0,0,0,0.12);
  transform: translateY(-3px) scale(1.07);
  outline: none;
}
.back-to-top:active {
  background: linear-gradient(135deg, #007bff 60%, #00c3ff 100%);
  color: #fff;
  transform: scale(0.96);
}
body.dark-mode .back-to-top {
  background: linear-gradient(135deg, #004e92 60%, #000428 100%);
  color: #fff;
  box-shadow: 0 4px 24px rgba(0,123,255,0.10), 0 1.5px 6px rgba(0,0,0,0.18);
}
body.dark-mode .back-to-top:hover, body.dark-mode .back-to-top:focus-visible {
  background: linear-gradient(135deg, #0056b3 60%, #007bff 100%);
  color: #ffd700;
}
@media (max-width: 600px) {
  .back-to-top {
    right: 1rem;
    bottom: 1.2rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
  }
}

/* --- Fix hero-section text color for Kooperationen / Werbung page --- */
.hero-section.minimal-hero h1,
.hero-section.minimal-hero p {
  color: #fff !important;
}

/* Fix for footer link list item (if needed) */
.site-footer .footer-links-item {
  display: inline;
}
.site-footer .footer-links-item a {
  color: #adb5bd !important;
  margin-left: 0.5em;
}

/* --- Sticky footer for short pages --- */
html, body {
  height: 100%;
}
main {
  flex: 1 0 auto;
}
.site-footer {
  flex-shrink: 0;
}

/* Dynamic pSEO Pages Styles */
#dynamic-page:not([hidden]) {
  display: block;
  opacity: 1;
}

.dyn-content {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dynamic-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.dyn-hero {
  background: linear-gradient(135deg, #0074d9 0%, #00c3ff 100%);
  color: #fff;
  border-radius: 1.5rem;
  padding: 3rem 3rem 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 20px 60px rgba(0, 116, 217, 0.25);
  position: relative;
  overflow: hidden;
}

.dyn-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.dyn-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0.5rem 0 1rem;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.dyn-breadcrumb {
  font-size: 0.95rem;
  opacity: 0.95;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.dyn-breadcrumb a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
  font-weight: 500;
}

.dyn-breadcrumb a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.dyn-breadcrumb span[aria-hidden="true"] {
  opacity: 0.7;
  margin: 0 0.5rem;
}

.dyn-dates {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 0.75rem;
  opacity: 0.98;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dyn-dates::before {
  content: '📅';
  font-size: 1.1rem;
  opacity: 0.9;
}

.dyn-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.dyn-panel {
  background: var(--card-bg, #fff);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.dyn-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0074d9, #00c3ff);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dyn-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.dyn-panel:hover::before {
  opacity: 1;
}

.dyn-panel h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #212529;
  line-height: 1.3;
}

.dyn-panel p {
  color: #495057;
  line-height: 1.7;
  margin-bottom: 0;
}

.weather-copy {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.weather-season {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0074d9;
  margin-bottom: 0.5rem;
}

.weather-copy p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #495057;
  margin: 0;
}

.affiliate-panel {
  background: linear-gradient(135deg, #fff7e6 0%, #ffe0b5 50%, #ffd9a3 100%);
  border: 2px solid #ffb84d;
  position: relative;
  overflow: hidden;
}

.affiliate-panel::after {
  content: '✨';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  opacity: 0.3;
  pointer-events: none;
}

.affiliate-panel h2 {
  color: #d97706;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.affiliate-panel p {
  color: #92400e;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.affiliate-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  color: #fff;
  background: linear-gradient(135deg, #ff7a18 0%, #ff954b 100%);
  text-decoration: none;
  margin-top: 0.5rem;
  box-shadow: 0 8px 24px rgba(255, 122, 24, 0.4);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.affiliate-cta:hover,
.affiliate-cta:focus-visible {
  background: linear-gradient(135deg, #ff954b 0%, #ff7a18 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 122, 24, 0.5);
}

.affiliate-cta:active {
  transform: translateY(0);
}

.related-holidays-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.related-holiday-link {
  display: block;
  padding: 0.75rem 1.25rem;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  color: #0074d9;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  text-align: center;
}

.related-holiday-link:hover,
.related-holiday-link:focus {
  background: #e9ecef;
  border-color: #0074d9;
  color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 116, 217, 0.15);
}

body.dark-mode .related-holiday-link {
  background: var(--card-bg);
  border-color: var(--border-color);
  color: var(--link-color);
}

body.dark-mode .related-holiday-link:hover {
  background: var(--filter-bg);
  border-color: var(--link-color);
}

.ads-panel {
  min-height: 250px;
  min-width: 300px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f6f8fb 0%, #e9ecef 100%);
  border: 2px dashed #dee2e6;
  border-radius: 1.25rem;
}

.ads-placeholder {
  font-style: italic;
  color: #6c757d;
  font-size: 0.95rem;
}

.dyn-loading {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  background: var(--card-bg, #fff);
  border-radius: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.skeleton-line {
  display: block;
  width: 100%;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e9ecef 25%, #f8f9fa 50%, #e9ecef 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-title {
  height: 32px;
  width: 70%;
  margin-bottom: 0.5rem;
}

.skeleton-text {
  height: 16px;
}

.skeleton-text.short {
  width: 50%;
}

@keyframes skeleton-pulse {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

#dyn-bridge-day-tip h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #0074d9;
}

#dyn-bridge-day-tip h2::before {
  content: '💡';
  font-size: 1.5rem;
}

#dyn-bridge-day-tip p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #495057;
}

body.dark-mode .dyn-panel {
  background: var(--card-bg);
  border-color: var(--border-color);
}

body.dark-mode .dyn-panel h2 {
  color: var(--text-color);
}

body.dark-mode .dyn-panel p {
  color: var(--text-color);
  opacity: 0.9;
}

body.dark-mode .weather-copy p {
  color: var(--text-color);
  opacity: 0.85;
}

body.dark-mode .affiliate-panel {
  background: linear-gradient(135deg, #2d1b0e 0%, #3d2815 50%, #4a3219 100%);
  border-color: #6b4423;
}

body.dark-mode .affiliate-panel h2 {
  color: #ffb84d;
}

body.dark-mode .affiliate-panel p {
  color: #ffd9a3;
}

body.dark-mode .ads-panel {
  background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
  border-color: #3a3a3a;
}

body.dark-mode .skeleton-line {
  background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
}

.ferien-uebersicht-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.state-section-card {
  background: var(--card-bg, #fff);
  border-radius: 1.25rem;
  padding: 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.state-section-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 116, 217, 0.12);
}

.state-header {
  background: linear-gradient(135deg, #0074d9 0%, #00c3ff 100%);
  padding: 1.5rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.state-header .state-icon {
  font-size: 1.75rem;
  opacity: 0.9;
}

.state-section-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.holiday-links {
  list-style: none;
  padding: 1.25rem;
  margin: 0;
}

.holiday-links li {
  margin-bottom: 0.75rem;
}

.holiday-links li:last-child {
  margin-bottom: 0;
}

.holiday-links a {
  display: flex;
  align-items: center;
  padding: 0.875rem 1.125rem;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 0.75rem;
  color: #212529;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.holiday-links a i {
  color: #0074d9;
  font-size: 1.1rem;
}

.holiday-links a:hover,
.holiday-links a:focus {
  background: linear-gradient(135deg, #e6f0fa 0%, #f0f8ff 100%);
  border-color: #0074d9;
  color: #0074d9;
  transform: translateX(6px);
  box-shadow: 0 4px 12px rgba(0, 116, 217, 0.15);
}

body.dark-mode .state-section-card {
  background: var(--card-bg);
  border-color: var(--border-color);
}

body.dark-mode .state-header {
  background: linear-gradient(135deg, #004e92 0%, #000428 100%);
}

body.dark-mode .holiday-links a {
  background: var(--card-bg);
  border-color: var(--border-color);
  color: var(--text-color);
}

body.dark-mode .holiday-links a:hover {
  background: var(--filter-bg);
  border-color: var(--link-color);
  color: var(--link-color);
}

@media (max-width: 768px) {
  .ferien-uebersicht-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .state-header {
    padding: 1.25rem;
  }
  
  .holiday-links {
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .dynamic-shell {
    padding: 1.5rem 1rem 2.5rem;
  }
  
  .dyn-hero {
    padding: 2rem 1.5rem 1.75rem;
    border-radius: 1rem;
  }
  
  .dyn-hero h1 {
    font-size: 1.85rem;
  }
  
  .dyn-dates {
    font-size: 1.1rem;
  }
  
  .dyn-panels {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .dyn-panel {
    padding: 1.5rem;
  }
  
  .dyn-panel h2 {
    font-size: 1.25rem;
  }
  
  .affiliate-panel h2 {
    font-size: 1.3rem;
  }
  
  .affiliate-panel p {
    font-size: 1rem;
  }
  
  .affiliate-cta {
    padding: 0.9rem 1.75rem;
    font-size: 1rem;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .dyn-hero {
    padding: 1.5rem 1.25rem 1.5rem;
  }
  
  .dyn-hero h1 {
    font-size: 1.6rem;
  }
  
  .dyn-dates {
    font-size: 1rem;
    flex-wrap: wrap;
  }
  
  .dyn-panel {
    padding: 1.25rem;
  }
}

/* Floating Action Buttons - Enhanced Design */
.floating-actions {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: none;
  flex-direction: column;
  gap: 12px;
}

.floating-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.floating-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.floating-btn:hover::before {
  width: 300px;
  height: 300px;
}

.floating-btn:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.floating-btn:active {
  transform: scale(1.05);
}

.floating-btn-primary {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.floating-btn-primary:hover {
  background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

.floating-btn-success {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.floating-btn-success:hover {
  background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
}

.floating-btn-info {
  background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
}

.floating-btn-info:hover {
  background: linear-gradient(135deg, #117a8b 0%, #0c5460 100%);
}

.floating-btn-warning {
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.floating-btn-warning:hover {
  background: linear-gradient(135deg, #e0a800 0%, #d39e00 100%);
}

.floating-btn-label {
  position: absolute;
  right: 75px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.8));
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  transform: translateX(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.floating-btn-label::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid rgba(0, 0, 0, 0.9);
}

.floating-btn:hover .floating-btn-label {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .floating-actions {
    bottom: 15px;
    right: 15px;
  }
  
  .floating-btn {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
  
  .floating-btn-label {
    display: none;
  }
}

/* Trending Cards - Enhanced Design */
.trending-header-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.trending-card {
  transition: all 0.3s ease;
  border-left: 4px solid transparent !important;
  background: #fff;
}

.trending-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  border-left-color: #007bff !important;
}

.trending-card-1:hover {
  border-left-color: #dc3545 !important;
}

.trending-card-2:hover {
  border-left-color: #ffc107 !important;
}

.trending-card-3:hover {
  border-left-color: #17a2b8 !important;
}

.trending-card-4:hover {
  border-left-color: #28a745 !important;
}

.trending-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.trending-badge-1 {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
}

.trending-badge-2 {
  background: linear-gradient(135deg, #ffc107, #e0a800);
  color: #212529;
}

.trending-badge-3 {
  background: linear-gradient(135deg, #17a2b8, #138496);
  color: white;
}

.trending-badge-4 {
  background: linear-gradient(135deg, #28a745, #218838);
  color: white;
}

.trending-number {
  font-size: 1.5rem;
  line-height: 1;
}

.trending-title {
  color: #212529;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
  transition: color 0.2s ease;
}

.trending-card:hover .trending-title {
  color: #007bff;
}

.trending-arrow {
  font-size: 1.25rem;
  opacity: 0;
  transition: all 0.3s ease;
  transform: translateX(-10px);
}

.trending-card:hover .trending-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Quick Calendar Preview - Enhanced Design */
.quick-calendar-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid #007bff;
  border-radius: 16px;
  overflow: hidden;
}

.quick-calendar-header {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e9ecef;
}

.quick-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.quick-calendar-grid > div {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.quick-calendar-grid > div:not(:first-child):not(:nth-child(2)):not(:nth-child(3)):not(:nth-child(4)):not(:nth-child(5)):not(:nth-child(6)):not(:nth-child(7)):hover {
  background-color: #e9ecef;
  cursor: pointer;
}

.quick-calendar-grid > div:first-child,
.quick-calendar-grid > div:nth-child(2),
.quick-calendar-grid > div:nth-child(3),
.quick-calendar-grid > div:nth-child(4),
.quick-calendar-grid > div:nth-child(5),
.quick-calendar-grid > div:nth-child(6),
.quick-calendar-grid > div:nth-child(7) {
  font-weight: 600;
  color: #6c757d;
  font-size: 0.7rem;
  text-transform: uppercase;
}
/* ============================================
   PSEO Dynamic Pages Styles
   Professional design matching site's hero section and card styles
   ============================================ */

   .pseo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    min-height: 60vh;
    background: var(--bg-color, #f8f9fa);
  }
  
  .pseo-loading,
  .pseo-error {
    text-align: center;
    padding: 4rem 2rem;
    font-size: 1.1rem;
    color: #495057;
    background: #fff;
    border-radius: 1rem;
    margin: 2rem 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  }
  
  .pseo-content {
    background: #fff;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin: 0;
    overflow: hidden;
  }
  
  /* Hero Header Section - Matches site's hero-section style exactly */
  .pseo-header {
    background: linear-gradient(135deg, var(--hero-grad-start, #0074d9) 0%, var(--hero-grad-end, #00c3ff) 100%);
    color: var(--hero-text, #fff);
    padding: 5rem 2rem 4rem;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    text-align: center;
  }
  
  .pseo-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
  }
  
  .pseo-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
    animation: float 15s ease-in-out infinite reverse;
  }
  
  @keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, -20px) rotate(5deg); }
  }
  
  .pseo-breadcrumb {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
  }
  
  .pseo-breadcrumb a {
    color: rgba(255, 255, 255, 1);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
  }
  
  .pseo-breadcrumb a:hover {
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
  }
  
  .pseo-breadcrumb span[aria-hidden="true"] {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.7);
  }
  
  .pseo-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--hero-text, #fff);
    margin: 0;
    line-height: 1.2;
    position: relative;
    z-index: 1;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  /* Content Section - Card style with shadow */
  .pseo-body {
    font-size: 1.125rem;
    line-height: 1.9;
    color: #495057;
    background: #fff;
    padding: 4rem 3rem;
    margin: -2rem 2rem 0;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
  }
  
  .pseo-body p {
    margin-bottom: 1.75rem;
    text-align: justify;
  }
  
  .pseo-body p:last-child {
    margin-bottom: 0;
  }
  
  .pseo-body p:first-child {
    font-size: 1.25rem;
    font-weight: 500;
    color: #212529;
    line-height: 2;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e9ecef;
  }
  
  /* Info Cards Section */
  .pseo-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
    padding: 0;
  }
  
  .pseo-info-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
  
  .pseo-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 116, 217, 0.15);
    border-color: #0074d9;
  }
  
  .pseo-info-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0074d9;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .pseo-info-card h3::before {
    content: '📅';
    font-size: 1.3rem;
  }
  
  .pseo-info-card p {
    font-size: 0.95rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
  }
  
  /* Related Links Section - Enhanced card style */
  .pseo-related {
    margin: 3rem 2rem 0;
    padding: 3rem 2.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
  }
  
  .pseo-related h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 2rem 0;
    padding-bottom: 1rem;
    border-bottom: 3px solid #0074d9;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  
  .pseo-related h2::before {
    content: '🔗';
    font-size: 1.5rem;
  }
  
  .pseo-related ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
  }
  
  .pseo-related li {
    margin-bottom: 0;
  }
  
  .pseo-related a {
    color: #0074d9;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #fff;
    border-radius: 0.875rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }
  
  .pseo-related a:hover {
    color: #0056b3;
    border-color: #0074d9;
    box-shadow: 0 6px 20px rgba(0, 116, 217, 0.2);
    transform: translateY(-3px);
    text-decoration: none;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
  }
  
  .pseo-related a::before {
    content: '→';
    margin-right: 0.75rem;
    color: #0074d9;
    font-weight: bold;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
  }
  
  .pseo-related a:hover::before {
    transform: translateX(6px);
    color: #0056b3;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .pseo-header {
      padding: 4rem 1.5rem 3rem;
    }
    
    .pseo-title {
      font-size: 2.2rem;
    }
    
    .pseo-body {
      padding: 3rem 2rem;
      margin: -1.5rem 1.5rem 0;
      font-size: 1.05rem;
    }
    
    .pseo-body p:first-child {
      font-size: 1.15rem;
      padding-bottom: 1.25rem;
      margin-bottom: 1.5rem;
    }
    
    .pseo-info-cards {
      grid-template-columns: 1fr;
      gap: 1.25rem;
      margin: 2rem 0;
    }
    
    .pseo-related {
      margin: 2rem 1.5rem 0;
      padding: 2.5rem 2rem;
    }
    
    .pseo-related h2 {
      font-size: 1.5rem;
    }
    
    .pseo-related ul {
      grid-template-columns: 1fr;
      gap: 1rem;
    }
  }
  
  @media (max-width: 480px) {
    .pseo-header {
      padding: 3rem 1.25rem 2.5rem;
    }
    
    .pseo-title {
      font-size: 1.9rem;
    }
    
    .pseo-body {
      padding: 2.5rem 1.5rem;
      margin: -1rem 1rem 0;
      font-size: 1rem;
      line-height: 1.8;
      border-radius: 1.25rem;
    }
    
    .pseo-body p:first-child {
      font-size: 1.1rem;
      padding-bottom: 1rem;
      margin-bottom: 1.25rem;
    }
    
    .pseo-info-cards {
      margin: 1.5rem 0;
      gap: 1rem;
    }
    
    .pseo-info-card {
      padding: 1.25rem;
    }
    
    .pseo-related {
      margin: 2rem 1rem 0;
      padding: 2rem 1.5rem;
      border-radius: 1.25rem;
    }
    
    .pseo-related h2 {
      font-size: 1.35rem;
      margin-bottom: 1.5rem;
    }
    
    .pseo-related a {
      padding: 0.875rem 1rem;
      font-size: 1rem;
    }
  }
  
  /* Dark mode support */
  body.dark-mode .pseo-container {
    background: var(--bg-color, #121212);
  }
  
  body.dark-mode .pseo-loading,
  body.dark-mode .pseo-error {
    background: var(--card-bg, #1e1e1e);
    color: var(--text-color, #e0e0e0);
  }
  
  body.dark-mode .pseo-body {
    background: var(--card-bg, #1e1e1e);
    color: var(--text-color, #e0e0e0);
  }
  
  body.dark-mode .pseo-body p:first-child {
    color: var(--text-color, #e0e0e0);
  }
  
  body.dark-mode .pseo-related {
    background: var(--bg-color, #121212);
    border-top-color: var(--border-color, #3a3a3a);
  }
  
  body.dark-mode .pseo-related h2 {
    color: var(--text-color, #e0e0e0);
    border-bottom-color: var(--border-color, #3a3a3a);
  }
  
  body.dark-mode .pseo-related a {
    background: var(--card-bg, #1e1e1e);
    border-color: var(--border-color, #3a3a3a);
    color: var(--link-color, #58a6ff);
  }
  
  body.dark-mode .pseo-related a:hover {
    border-color: var(--link-color, #58a6ff);
    color: var(--link-hover-color, #80bfff);
  }
  
  body.dark-mode .pseo-body {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }
  
  body.dark-mode .pseo-info-card {
    background: linear-gradient(135deg, var(--card-bg, #1e1e1e) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: var(--border-color, #3a3a3a);
  }
  
  body.dark-mode .pseo-info-card:hover {
    border-color: var(--link-color, #58a6ff);
  }
  
  body.dark-mode .pseo-info-card h3 {
    color: var(--link-color, #58a6ff);
  }
  
  body.dark-mode .pseo-info-card p {
    color: var(--text-color, #e0e0e0);
    opacity: 0.9;
  }
  
  body.dark-mode .pseo-related {
    background: linear-gradient(135deg, var(--bg-color, #121212) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: var(--border-color, #3a3a3a);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  
  body.dark-mode .pseo-related h2 {
    border-bottom-color: var(--link-color, #58a6ff);
  }
  
  body.dark-mode .pseo-body p:first-child {
    border-bottom-color: var(--border-color, #3a3a3a);
  }
  
  /* Hide static homepage when PSEO page is active */
  body.pseo-active #static-homepage {
    display: none !important;
  }
  
  body.pseo-active .pseo-container {
    display: block !important;
  }

@media (max-width: 768px) {
  .trending-header-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .trending-badge {
    width: 40px;
    height: 40px;
  }
  
  .trending-number {
    font-size: 1.25rem;
  }
  
  .trending-title {
    font-size: 1rem;
  }
  
  .quick-calendar-grid {
    font-size: 0.7rem;
    gap: 2px;
  }
  
  .quick-calendar-grid > div {
    min-height: 28px;
  }
} 