/* Webseiten-Check Landing Page */

/* Minimaler Header */
.check-header {
    background: var(--color-primary);
    padding: 15px 0;
    box-shadow: var(--shadow-md);
}
.check-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.check-header .back-link {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.check-header .back-link:hover { color: white; }

/* Hero */
.check-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 50%, var(--color-accent) 100%);
    color: white;
    padding: 60px 0 50px;
    text-align: center;
}
.check-hero h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.check-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 550px;
    margin: 0 auto;
}

/* Formular-Sektion */
.check-form-section {
    padding: 50px 0 60px;
    background: var(--color-bg-light);
}
.check-form-card {
    background: white;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.check-form-card h2 {
    text-align: center;
    margin-bottom: 8px;
    font-size: 1.5rem;
}
.check-form-card .form-subtitle {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 30px;
}
.check-form-card .form-group { margin-bottom: 20px; }
.check-form-card .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}
.check-form-card .form-group input[type="url"],
.check-form-card .form-group input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.check-form-card .form-group input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(61, 139, 139, 0.15);
}
.check-form-card .form-group input::placeholder {
    color: var(--color-text-muted);
}
.check-form-card .form-hint {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}
.check-form-card .privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
    font-size: 0.9rem;
    color: var(--color-text-light);
}
.check-form-card .privacy-check input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
}
.check-form-card .privacy-check a { color: var(--color-accent); }
.check-form-card .btn-check {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 10px;
}
.check-form-card .form-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: none;
    font-size: 0.95rem;
}

/* Ladeoverlay */
.check-loading {
    display: none;
    text-align: center;
    padding: 60px 20px;
}
.check-loading.active { display: block; }
.check-loading .spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.check-loading h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}
.check-loading p {
    color: var(--color-text-light);
    margin-bottom: 20px;
}
.progress-bar-wrapper {
    max-width: 400px;
    margin: 0 auto;
    background: var(--color-border);
    border-radius: 10px;
    overflow: hidden;
    height: 8px;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 10px;
    width: 0;
    transition: width 0.3s ease;
}

/* Ergebnis-Sektion */
.check-results {
    display: none;
    padding: 60px 0;
}
.check-results.active { display: block; }

/* Score-Kreis */
.score-section {
    text-align: center;
    margin-bottom: 50px;
}
.score-circle-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
}
.score-circle-wrapper svg {
    width: 180px;
    height: 180px;
    transform: rotate(-90deg);
}
.score-circle-bg {
    fill: none;
    stroke: var(--color-border);
    stroke-width: 10;
}
.score-circle-fill {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 502;
    stroke-dashoffset: 502;
    transition: stroke-dashoffset 1.5s ease-out, stroke 0.5s;
}
.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}
.score-value span {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-text-muted);
    margin-top: 4px;
}
.score-label {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.score-label.score-green { color: #16a34a; }
.score-label.score-orange { color: #d97706; }
.score-label.score-red { color: #dc2626; }
.score-description {
    color: var(--color-text-light);
    max-width: 500px;
    margin: 0 auto;
}
.score-url {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    word-break: break-all;
}

/* Check-Karten Grid */
.checks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}
.check-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    border-left: 4px solid transparent;
    transition: box-shadow 0.2s;
}
.check-card:hover { box-shadow: var(--shadow-md); }
.check-card.status-good { border-left-color: #16a34a; }
.check-card.status-warn { border-left-color: #d97706; }
.check-card.status-bad { border-left-color: #dc2626; }
.check-card .status-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    font-weight: 700;
}
.check-card.status-good .status-icon { background: #dcfce7; color: #16a34a; }
.check-card.status-warn .status-icon { background: #fef3c7; color: #d97706; }
.check-card.status-bad .status-icon { background: #fef2f2; color: #dc2626; }
.check-card .check-content { flex: 1; }
.check-card .check-name {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--color-text);
}
.check-card .check-detail {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.5;
}

/* CTA-Box */
.check-cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.check-cta h2 { color: white; margin-bottom: 12px; font-size: 1.5rem; }
.check-cta p { opacity: 0.9; margin-bottom: 24px; }
.check-cta .btn { font-size: 1.05rem; padding: 14px 32px; }

/* Minimaler Footer */
.check-footer {
    background: var(--color-primary);
    color: rgba(255,255,255,0.7);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}
.check-footer a {
    color: rgba(255,255,255,0.8);
    margin: 0 12px;
}
.check-footer a:hover { color: white; }

/* Responsive */
@media (max-width: 768px) {
    .check-hero { padding: 40px 0 35px; }
    .check-hero h1 { font-size: 1.8rem; }
    .check-hero p { font-size: 1.05rem; }
    .check-form-card { padding: 25px 20px; margin: 0 10px; }
    .check-form-section { padding: 30px 0 40px; }
    .checks-grid { grid-template-columns: 1fr; }
    .check-cta { padding: 30px 20px; margin: 0 10px; }
    .check-results { padding: 40px 0; }
    .score-section { margin-bottom: 30px; }
}
@media (max-width: 480px) {
    .check-hero h1 { font-size: 1.5rem; }
    .score-circle-wrapper { width: 150px; height: 150px; }
    .score-circle-wrapper svg { width: 150px; height: 150px; }
    .score-value { font-size: 2.5rem; }
}
