/**
 * Additional CSS Components for Pizza Olive Theme
 * Restaurant-specific styling enhancements
 */

/* Body Padding für Fixed Navigation */
body {
  padding-top: 70px; /* Gleiche Höhe wie die Navigation */
}

/* Page Templates Styling */
.page-content {
  min-height: 60vh;
  padding: 2rem 0;
}

.page-article {
  max-width: 1200px;
  margin: 0 auto;
}

.page-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem 1rem 1rem;
  border-bottom: 3px solid var(--accent-color);
  background: white;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.page-content-wrapper {
  background: white;
  padding: 2rem;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Erweiterte Galerie Styling */
.galerie-item {
  position: relative;
  overflow: hidden;
}

.galerie-item.featured {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(44, 85, 48, 0.3);
  border: 3px solid var(--accent-color);
}

.galerie-item.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(247, 220, 111, 0.1), transparent);
  pointer-events: none;
  z-index: 1;
}

.galerie-caption {
  position: relative;
  z-index: 2;
}

.galerie-caption .title {
  display: block;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.galerie-caption .kategorie {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.galerie-caption .featured-badge {
  position: absolute;
  top: -2rem;
  right: 0.5rem;
  background: var(--accent-color);
  color: var(--primary-color);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Kategorie-spezifische Farben */
.galerie-item.kategorie-restaurant .galerie-caption .kategorie {
  background: #8e44ad;
}

.galerie-item.kategorie-essen .galerie-caption .kategorie {
  background: #e74c3c;
}

.galerie-item.kategorie-zutaten .galerie-caption .kategorie {
  background: #27ae60;
}

.galerie-item.kategorie-events .galerie-caption .kategorie {
  background: #f39c12;
}

/* Hover Effekte für Featured Items */
.galerie-item.featured:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* Accordion Speisekarte Styling */
.accordion-item {
  margin-bottom: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
}

/* Lieferzeiten Counter Styling */
.lieferzeiten-counter {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.2);
}

.liefer-status {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.status-icon {
  font-size: 2.5rem;
  min-width: 60px;
  text-align: center;
}

.status-text h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.liefer-status.offen .status-text h3 {
  color: #27ae60;
}

.liefer-status.geschlossen .status-text h3 {
  color: #e74c3c;
}

.status-text p {
  margin: 0;
  font-size: 1rem;
  color: #666;
}

.lieferzeit {
  font-weight: 600;
  color: #2c5530 !important;
}

.sonder-text {
  font-style: italic;
  color: #f39c12 !important;
  font-weight: 500;
}

.countdown-timer {
  background: linear-gradient(135deg, #2c5530, #4a7c59);
  color: white;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  min-width: 200px;
  margin-left: auto;
}

.countdown-timer.vor-start {
  background: linear-gradient(135deg, #f39c12, #e67e22);
}

.countdown-timer.aktiv {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  animation: pulse 2s infinite;
}

.countdown-timer.beendet {
  background: linear-gradient(135deg, #7f8c8d, #95a5a6);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.countdown-text {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.countdown-time {
  font-size: 1.5rem;
  font-weight: bold;
  font-family: 'Courier New', monospace;
}

.mindestbestellung {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.mindest-item {
  background: var(--primary-color);
  padding: 0.75rem;
  border-radius: 6px;
  text-align: center;
  font-size: 0.9rem;
}

.mindest-item strong {
  color: var(--white);
}

.hero-buttons {
  margin-top: 2rem;
}

/* Responsive Lieferzeiten */
@media (max-width: 768px) {
  .lieferzeiten-counter {
    padding: 1rem;
  }
  
  .liefer-status {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .countdown-timer {
    margin-left: 0;
    margin-top: 1rem;
  }
  
  .mindestbestellung {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .status-icon {
    font-size: 2rem;
  }
  
  .countdown-time {
    font-size: 1.2rem;
  }
}

.accordion-item:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.accordion-header {
  background: linear-gradient(135deg, var(--primary-color), #1e4a22);
  color: white;
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
  user-select: none;
}

.accordion-header:hover {
  background: linear-gradient(135deg, #1e4a22, var(--primary-color));
}

.accordion-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: white;
}

.accordion-icon {
  font-size: 1.5rem;
  font-weight: bold;
  transition: transform 0.3s ease;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
}

.accordion-header.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: white;
  padding: 0 1.5rem;
}

.accordion-content.active {
  max-height: 2000px;
  padding: 1.5rem;
}

/* Speisekarte Items im Accordion */
.accordion-content .speisekarte-list {
  margin: 0;
}

.accordion-content .speisekarte-item {
  padding: 1rem 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.accordion-content .speisekarte-item:last-child {
  border-bottom: none;
}

/* Responsive adjustments for page templates */
@media (max-width: 768px) {
  body {
    padding-top: 60px; /* Kleinere Navigation auf Mobile */
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .page-content-wrapper {
    padding: 1rem;
  }
  
  .page-header {
    padding: 1.5rem 1rem 1rem;
  }
  
  .accordion-header {
    padding: 1rem;
  }
  
  .accordion-header h3 {
    font-size: 1.1rem;
  }
  
  .accordion-content.active {
    padding: 1rem;
  }
}

/* Additional Component Styles */

/* Special Menu Items */
.menu-highlight {
  position: relative;
  overflow: hidden;
}

.menu-highlight::before {
  content: '⭐';
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.2rem;
  color: var(--accent-color);
}

/* Dietary Information Icons */
.dietary-icons {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.dietary-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: white;
  font-weight: bold;
}

.dietary-icon.vegetarian {
  background-color: #27ae60;
}

.dietary-icon.vegan {
  background-color: #2ecc71;
}

.dietary-icon.gluten-free {
  background-color: #f39c12;
}

.dietary-icon.spicy {
  background-color: #e74c3c;
}

/* Loading States */
.loading {
  position: relative;
  opacity: 0.7;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Image Modal Styles */
.image-modal {
  backdrop-filter: blur(5px);
}

.image-modal .modal-content {
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  transform-origin: left;
  transform: scaleX(0);
  z-index: 9999;
  transition: transform 0.1s ease;
}

/* Print Styles */
@media print {
  .main-navigation,
  .menu-toggle,
  .cta-button,
  .image-modal {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .container {
    max-width: none;
    padding: 0;
  }
  
  section {
    padding: 20pt 0;
    page-break-inside: avoid;
  }
  
  .speisekarte-item {
    box-shadow: none;
    border: 1px solid #ccc;
    margin-bottom: 10pt;
  }
}
