/* ========= Base ========= */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root{
  --bg-grad-a:#667eea;        /* Indigo */
  --bg-grad-b:#764ba2;        /* Purple */
  --text:#2d3748;             /* Slate 800 */
  --text-muted:#718096;       /* Gray 600 */
  --white:#ffffff;

  --card:#ffffff;
  --card-soft:#f7fafc;

  --brand:#667eea;
  --brand-2:#764ba2;

  --ok-bg:#c6f6d5;            /* green 100 */
  --ok-fg:#22543d;            /* green 900 */
  --warn-bg:#fefcbf;          /* yellow 100 */
  --warn-fg:#744210;          /* yellow 900 */
  --err-bg:#fed7d7;           /* red 200 */
  --err-fg:#742a2a;           /* red 900 */

  --accent:#48bb78;           /* green 400 */
  --accent-2:#38a169;         /* green 500 */
  --border:#e2e8f0;           /* gray 200 */
  --shadow:0 8px 32px rgba(0,0,0,.1);
}

html, body { height: 100%; }

body{
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, var(--bg-grad-a) 0%, var(--bg-grad-b) 100%);
  color: var(--text);
  line-height: 1.6;
}

/* ========= Layout ========= */
.container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header{ text-align: center; margin-bottom: 3rem; }
.header h1{ font-size: 2.5rem; font-weight: 300; color: var(--white); margin-bottom: .5rem; letter-spacing: -.02em; }
.header p{ color: rgba(255,255,255,.85); font-size: 1.1rem; font-weight: 300; }

/* ========= Services cards ========= */
.services-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.service-card{
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: .3s;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: var(--shadow);
}
.service-card:hover{ transform: translateY(-5px); box-shadow: 0 16px 48px rgba(0,0,0,.15); }
.service-card h3{ font-size: 1.2rem; font-weight: 500; margin-bottom: .5rem; color: var(--text); }
.service-card p{ color: var(--text-muted); margin-bottom: 1.5rem; font-size: .9rem; }
.service-link{
  display: inline-block;
  padding: .75rem 2rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition:.3s;
}
.service-link:hover{ transform: scale(1.05); box-shadow: 0 4px 16px rgba(102,126,234,.3); }

/* ========= Validator section ========= */
.validator-section{
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 3rem;
  margin-top: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.2);
}
.section-title{ font-size: 1.8rem; font-weight: 400; margin-bottom: .5rem; color: var(--text); text-align: center; }
.section-subtitle{ color: var(--text-muted); text-align: center; margin-bottom: 1rem; }

/* Language toggle */
.lang-toggle{ display:flex; gap:.5rem; justify-content:center; margin-bottom:1rem; }
.btn{
  padding: .55rem 1rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  font-weight: 500;
}
.btn:hover{ background:#f7fafc; }
.btn.active{ background:#2b6cb0; border-color:#2b6cb0; color:#fff; }

/* Controls */
.validator-controls{ display:flex; gap:1rem; justify-content:center; margin-bottom:2rem; }
.input-url{
  padding: .75rem 1rem;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  font-size: 1rem;
  width: 60%;
  outline: none;
}
.input-url:focus{ border-color: #a3bffa; box-shadow: 0 0 0 3px rgba(160,174,192,.25); }
.btn-primary{
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: .3s;
  box-shadow: 0 4px 16px rgba(72,187,120,.2);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 8px 24px rgba(72,187,120,.3); }
.btn-primary:disabled{ opacity:.6; transform:none; cursor:not-allowed; }

/* Loading */
.loading{ display:none; text-align:center; margin:2rem 0; }
.spinner{
  width: 40px; height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--brand);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}
.loading-text{ color: var(--text-muted); }
@keyframes spin{ 0%{transform:rotate(0)} 100%{transform:rotate(360deg)} }

/* Results container */
.results{ display:none; background: var(--card-soft); border-radius: 12px; padding: 2rem; margin-top: 2rem; border-left: 4px solid var(--accent); }
.results-headline{ margin-bottom: .5rem; color: var(--text); }

/* Summary card */
.summary-card{
  background: var(--card);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}
.card-title{ margin-bottom: 1rem; color: var(--text); }
.summary-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 1rem;
}

/* Details block (per URL) */
.details-card{
  background: var(--card);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}
.details-title{ margin-bottom: 1rem; color: var(--text); }
.details-meta{ color: var(--text); }

/* Single schema result card */
.result-card{
  background: var(--card-soft);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}
.result-head{ margin-bottom: .5rem; }
.result-text{ color: var(--text); text-align: left; margin: .5rem 0; }
.block-title{ font-weight: 600; color: var(--text); margin-right: .25rem; }

/* Lists inside cards */
.result-list{ margin-top: .5rem; }
.result-card ul{
  list-style: disc;
  list-style-position: inside;   /* Bullets bleiben im hellen Kartenhintergrund */
  margin: .5rem 0 0 0;
  padding-left: .75rem;
}
.result-card li{ margin: .25rem 0; }

/* Categorized evaluation chips/blocks */
.cat{ margin-top: .5rem; }
.cat ul{ margin-top: .25rem; }
.cat-critical{ color: #e53e3e; }      /* red tone for critical */
.cat-recommended{ color: #d69e2e; }   /* amber tone for recommended */
.cat-ignorable{ color: #718096; }     /* gray tone for ignorable */

/* Status badges */
.status-badge{
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  margin-left: .5rem;
}
.status-valid{ background: var(--ok-bg); color: var(--ok-fg); }
.status-warning{ background: var(--warn-bg); color: var(--warn-fg); }
.status-error{ background: var(--err-bg); color: var(--err-fg); }

/* Error box */
.error-box{
  color: var(--err-fg);
  padding: 1rem;
  background: var(--err-bg);
  border-radius: 8px;
  margin-top: 1rem;
}

/* ========= Responsive ========= */
@media (max-width: 768px){
  .container{ padding: 1rem; }
  .header h1{ font-size: 2rem; }
  .services-grid{ grid-template-columns: 1fr; }
  .validator-section{ padding: 2rem; }
  .validator-controls{ flex-direction: column; align-items: center; }
  .input-url{ width: 100%; }
}
