/* Dashboard Styles */
:root {
  --primary-color: #a02826;
  --secondary-color: #ffcc00;
  --light-gray: #f5f5f5;
  --dark-gray: #666;
  --border-color: #ddd;
}

.dashboard-header {
  text-align: center;
  margin-bottom: 2rem;
}

.couple-names {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.5rem 0;
  gap: 0.5rem;
}

.couple-name {
  font-family: 'Dancing Script', cursive;
  font-size: 3rem;
  color: var(--primary-color);
  margin: 0;
}

.wedding-date {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin: 0.5rem 0;
}

.wedding-countdown {
  color: #666;
  font-size: 1rem;
  text-align: center;
}

.infinity-symbol {
  font-size: 3.5rem;
  color: var(--secondary-color);
  margin: 0 1rem;
}

.divider {
  width: 100%;
  margin: 2rem 0;
  text-align: center;
}

/* Wir entfernen den after-Pseudoelement, da wir stattdessen das Bild verwenden */

.section-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.checklist-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  border-radius: 0.25rem;
}

/* Hintergrundfarben für verschiedene Status */
.checklist-item.bg-success {
  background-color: rgba(76, 175, 80, 0.2);
}

.checklist-item.bg-danger {
  background-color: rgba(244, 67, 54, 0.2);
}

.checklist-item.bg-warning {
  background-color: rgba(255, 193, 7, 0.2);
}

.checklist-item-circle {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 10px;
  border: 1px solid #333;
}

.checklist-item-text {
  font-size: 1.1rem;
}

.checklist-item-days {
  color: #666;
  font-size: 0.9rem;
}

.budget-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.budget-info-item {
  flex: 1;
}

.budget-info-label {
  font-size: 0.9rem;
  color: var(--dark-gray);
}

.budget-info-value {
  font-size: 1.2rem;
  font-weight: bold;
}

.guest-list {
  margin-bottom: 1rem;
}

.guest-item {
  margin-bottom: 0.5rem;
}

.guest-accepted {
  color: #4caf50;
}

.guest-declined {
  color: #f44336;
}

.guest-chart {
  width: 100%;
  height: auto;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.location-item {
  background-color: var(--light-gray);
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
  height: 100%;
}

.location-item.confirmed {
  background-color: #d8f3d8;
}

.location-item.pending {
  background-color: #fff3cd;
}

.view-all-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  background-color: #f0f0f0;
  border-radius: 2rem;
}

.view-all-link:hover {
  background-color: #e0e0e0;
}

/* Touch-optimierte Dashboard-Elemente */
.dashboard-card {
  touch-action: pan-y pinch-zoom;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:active {
  transform: scale(0.98);
}

/* Responsive Grid-Layout für Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-widget {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.dashboard-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Mobile-optimierte Dashboard-Layouts */
@media (max-width: 768px) {
  .couple-names {
    flex-direction: column;
    gap: 0.2rem;
  }

  .couple-name {
    font-size: 2rem;
  }

  .infinity-symbol {
    margin: 0.5rem 0;
  }

  .wedding-date {
    font-size: 2rem;
  }

  .location-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Mobile Dashboard Grid */
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .dashboard-widget {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  /* Mobile Typografie */
  .section-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  .checklist-item-text {
    font-size: 1rem;
  }
  
  .budget-info-value {
    font-size: 1.1rem;
  }
  
  /* Mobile Abstände */
  .dashboard-header {
    margin-bottom: 1.5rem;
  }
  
  .divider {
    margin: 1.5rem 0;
  }
}

/* Tablet-optimierte Dashboard-Layouts */
@media (min-width: 769px) and (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  .couple-name {
    font-size: 2.5rem;
  }
  
  .wedding-date {
    font-size: 2.25rem;
  }
  
  .location-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Kleine Bildschirme (Mobile) */
@media (max-width: 576px) {
  .couple-name {
    font-size: 1.75rem;
  }
  
  .wedding-date {
    font-size: 1.5rem;
  }
  
  .infinity-symbol {
    font-size: 2.5rem;
    margin: 0.25rem 0;
  }
  
  .section-title {
    font-size: 1.1rem;
  }
  
  .checklist-item {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  .checklist-item-text {
    font-size: 0.95rem;
  }
  
  .budget-info {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .budget-info-item {
    text-align: center;
  }
  
  .location-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .location-item {
    padding: 0.75rem;
  }
  
  /* Mobile-spezifische Utility-Klassen */
  .d-mobile-none {
    display: none !important;
  }
  
  .d-mobile-block {
    display: block !important;
  }
  
  .text-mobile-center {
    text-align: center !important;
  }
}

/* Touch-Gesten für mobile Geräte */
@media (hover: none) and (pointer: coarse) {
  .dashboard-widget:hover {
    transform: none;
  }
  
  .dashboard-widget:active {
    transform: scale(0.98);
    background-color: rgba(0,0,0,0.02);
  }
  
  .view-all-link:hover {
    background-color: #f0f0f0;
  }
  
  .view-all-link:active {
    background-color: #e0e0e0;
    transform: scale(0.98);
  }
}

/* Performance-Optimierungen für mobile Geräte */
@media (max-width: 768px) {
  .dashboard-widget {
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  }
  
  /* Reduzierte Animationen auf mobilen Geräten */
  .dashboard-widget,
  .checklist-item,
  .location-item {
    transition-duration: 0.15s;
  }
  
  /* Optimierte Scroll-Performance */
  .dashboard-content {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }
}

/* Accessibility-Verbesserungen */
@media (prefers-reduced-motion: reduce) {
  .dashboard-widget,
  .checklist-item,
  .location-item,
  .view-all-link {
    transition: none;
  }
  
  .dashboard-widget:hover {
    transform: none;
  }
}

/* High-Contrast-Modus */
@media (prefers-contrast: high) {
  .dashboard-widget {
    border: 2px solid var(--primary-color);
  }
  
  .checklist-item {
    border: 1px solid var(--border-color);
  }
  
  .location-item {
    border: 1px solid var(--border-color);
  }
}
