/* AI-Ready Check - Main Stylesheet */
/* SPACING REGEL: Alle Sections haben padding: 60px 20px (außer Hero: 80px top) */

/* ==================== RESET & BASE ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  color: #fff;
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== HEADER ==================== */
.header {
  padding: 20px 0;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.logo {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==================== HERO SECTION ==================== */
.hero {
  text-align: center;
  padding: 80px 20px 60px;
}

.hero h1 {
  font-size: 3.5em;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero .subtitle {
  font-size: 1.3em;
  color: #b8b8d1;
  margin-bottom: 40px;
  margin-left: auto;
  margin-right: auto;
}

/* ==================== STATS SECTION ==================== */
.stats-section {
  padding: 60px 20px;
  background: rgba(0, 0, 0, 0.2);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(102, 126, 234, 0.3);
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2.5em;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  color: #b8b8d1;
  font-size: 0.95em;
  font-weight: 500;
}

/* ==================== CHECK SECTION ==================== */
.check-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 40px 0;
  margin: 60px 0;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-group {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding: 0 40px;
}

.info-text {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9em;
  padding: 0 40px;
}

.input-group {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.url-input {
  flex: 1;
  padding: 18px 24px;
  font-size: 1.1em;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  outline: none;
  transition: all 0.3s;
}

.url-input:focus {
  border-color: #667eea;
  background: rgba(255, 255, 255, 0.08);
}

.url-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.check-btn {
  padding: 18px 40px;
  font-size: 1.1em;
  font-weight: 600;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
  white-space: nowrap;
}

.check-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.check-btn:active {
  transform: translateY(0);
}

.check-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.info-text {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9em;
}

/* ==================== TRUST SECTION ==================== */
.trust-section {
  padding: 0 20px 60px;
  text-align: center;
}

.trust-headline {
  color: #b8b8d1;
  font-size: 1em;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.trust-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin: 0 auto;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.trust-badge span {
  white-space: nowrap;
}

.trust-badge:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(102, 126, 234, 0.3);
  transform: translateY(-3px);
}

.trust-icon {
  color: #667eea;
  opacity: 0.9;
}

.trust-badge span {
  color: #fff;
  font-weight: 600;
  font-size: 0.95em;
}

/* ==================== RESULTS SECTION ==================== */
.results {
  display: none;
  max-width: 1040px !important;  /* Wie .container */
  margin: 0 auto;
  padding: 60px 20px;
}

.score-display {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 40px 0;
  text-align: center;
  margin-bottom: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.category-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.category-title {
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #fff;
}

.category-score {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 10px;
}

/* ==================== RECOMMENDATIONS SECTION ==================== */
.recommendations-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 40px 0;
  margin-bottom: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==================== DETAILS SECTION ==================== */
.details-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 40px 0;
  margin-bottom: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-category {
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border-left: 3px solid #667eea;
}

.detail-category h3 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 1.2em;
}

.detail-item {
  padding: 12px 0;
  color: #b8b8d1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  color: #999;
  font-size: 0.95em;
}

.detail-value {
  color: #fff;
  font-weight: 500;
  text-align: right;
}

details[open] .toggle-arrow {
  transform: rotate(90deg);
}

.section-title {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 25px;
  color: #fff;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: #b8b8d1;
  font-size: 1.1em;
  margin-bottom: 40px;
}

.export-btn {
  padding: 14px 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: all 0.3s;
}

.export-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #667eea;
}

/* ==================== FAQ SECTION ==================== */
.faq-section {
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.02);
}

.faq-container {
  margin: 40px auto 0;
}

.faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(102, 126, 234, 0.3);
}

.faq-item[open] {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(102, 126, 234, 0.5);
}

.faq-question {
  padding: 24px 28px;
  font-size: 1.1em;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.3s ease;
  color: #667eea;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 28px 24px;
  color: #b8b8d1;
  line-height: 1.7;
  animation: fadeIn 0.3s ease;
}

.faq-answer p {
  margin: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== FEATURES SECTION ==================== */
.features {
  padding: 60px 20px;
  background: rgba(0, 0, 0, 0.2);
}

.features-headline {
  font-size: 2.5em;
  font-weight: 700;
  color: #fff;
  margin-bottom: 15px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin: 0 auto;
}

.feature-card {
  text-align: center;
  padding: 30px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.feature-icon {
  margin-bottom: 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.3));
}

.feature-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
}

.feature-desc {
  color: #b8b8d1;
  line-height: 1.6;
}

/* ==================== FOOTER ==================== */
    .footer {
      padding: 60px 20px 40px;
      background: rgba(0, 0, 0, 0.2);
    }

    .footer a {
      color: #fff;
      text-decoration: none;
      transition: opacity 0.3s;
    }

    .footer a:hover {
      opacity: 0.8;
      text-decoration: underline;
    }

/* ==================== LOADING STATE ==================== */
.loading {
  text-align: center;
  padding: 40px;
  color: #b8b8d1;
}

.spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==================== RESPONSIVE - TABLET ==================== */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==================== RESPONSIVE - MOBILE ==================== */
@media (max-width: 768px) {
  .hero {
    padding: 60px 20px 40px;
  }

  .hero h1 {
    font-size: 2.2em;
  }

  .hero .subtitle {
    font-size: 1.1em;
  }

  .stats-section,
  .trust-section,
  .results,
  .faq-section,
  .features {
    padding: 40px 20px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat-number {
    font-size: 2em;
  }

  .input-group {
    flex-direction: column;
  }

  .check-section {
    padding: 30px 0;
    margin: 40px 0;
  }

  .input-group {
    padding: 0 20px;
  }

  .info-text {
    padding: 0 20px;
  }

  .trust-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .trust-badge {
    padding: 15px 20px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .faq-question {
    padding: 20px;
    font-size: 1em;
  }

  .faq-answer {
    padding: 0 20px 20px;
    font-size: 0.95em;
  }

  .faq-icon {
    margin-left: 12px;
    width: 18px;
    height: 18px;
  }

  .features-headline {
    font-size: 2em;
  }
}

/* ==================== RESPONSIVE - SMALL MOBILE ==================== */
@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .trust-logos {
    grid-template-columns: 1fr;
  }

  .features-headline {
    font-size: 1.5em;
  }
}