/**
 * Styling für 403 und 404 Fehlerseiten.
 *
 * Version: 2025.11.06.145500
 * 
 * Integration ins bestehende Theme-Layout (Header, Footer, Navigation)
 */

/* ============================================================================
   ALLGEMEIN
   ============================================================================ */

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.error-container {
  max-width: 800px;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 60px 40px;
  text-align: center;
}

/* ============================================================================
   ICON
   ============================================================================ */

.error-icon {
  margin-bottom: 30px;
  animation: pulse 2s ease-in-out infinite;
}

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

/* ============================================================================
   CONTENT
   ============================================================================ */

.error-content {
  margin-bottom: 40px;
}

.error-code {
  font-size: 120px;
  font-weight: 900;
  margin: 0;
  line-height: 1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-404 .error-code {
  background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-403 .error-code {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-title {
  font-size: 32px;
  font-weight: 700;
  color: #2c3e50;
  margin: 20px 0 15px;
}

.error-message {
  font-size: 18px;
  color: #555;
  margin: 0 0 15px;
  line-height: 1.6;
}

.error-description {
  font-size: 16px;
  color: #777;
  margin: 0 0 30px;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================================
   SUCHFELD (404)
   ============================================================================ */

.error-search {
  max-width: 600px;
  margin: 0 auto 40px;
}

.search-form {
  width: 100%;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  padding: 8px 8px 8px 20px;
  transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
  background: #fff;
}

.search-icon {
  flex-shrink: 0;
  color: #999;
  margin-right: 12px;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  color: #333;
  outline: none;
  padding: 8px 0;
}

.search-input::placeholder {
  color: #999;
}

.search-submit {
  flex-shrink: 0;
  background: #3498db;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-submit:hover {
  background: #2980b9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.search-submit:active {
  transform: translateY(0);
}

/* ============================================================================
   AKTIONS-BUTTONS
   ============================================================================ */

.error-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn svg {
  flex-shrink: 0;
}

.btn-primary {
  background: #3498db;
  color: #fff;
}

.btn-primary:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
  background: #2ecc71;
  color: #fff;
}

.btn-secondary:hover {
  background: #27ae60;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.btn-outline {
  background: transparent;
  color: #555;
  border-color: #ddd;
}

.btn-outline:hover {
  background: #f8f9fa;
  border-color: #999;
  transform: translateY(-2px);
}

.error-403 .btn-primary {
  background: #e74c3c;
}

.error-403 .btn-primary:hover {
  background: #c0392b;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* ============================================================================
   HILFREICHE LINKS
   ============================================================================ */

.error-help {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
}

.error-help h3 {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 15px;
}

.error-help ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.error-help li {
  margin: 0;
}

.error-help a {
  color: #3498db;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.error-help a:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
  .error-container {
    padding: 40px 24px;
  }

  .error-code {
    font-size: 80px;
  }

  .error-title {
    font-size: 24px;
  }

  .error-message {
    font-size: 16px;
  }

  .error-description {
    font-size: 14px;
  }

  .error-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .error-help ul {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .error-page {
    padding: 20px 15px;
  }

  .error-container {
    padding: 30px 20px;
  }

  .error-code {
    font-size: 60px;
  }

  .error-icon svg {
    width: 80px;
    height: 80px;
  }

  .search-input-wrapper {
    flex-direction: column;
    padding: 15px;
    border-radius: 12px;
  }

  .search-icon {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .search-submit {
    width: 100%;
  }
}

