/* Pruefen Page Styles */

/* Hero Section */
.pruefen-main {
    min-height: 100vh;
}

.pruefen-hero {
    background: linear-gradient(135deg, #faf8f3 0%, #fff 50%, #fef9e7 100%);
    padding: 4rem 2rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pruefen-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 213, 79, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.pruefen-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 50%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 213, 79, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.pruefen-hero-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.pruefen-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.pruefen-hero-badge svg {
    width: 18px;
    height: 18px;
    color: var(--color-trustpilot);
}

.pruefen-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.highlight-check {
    background: linear-gradient(180deg, transparent 55%, var(--color-primary) 55%);
    padding: 0 6px;
}

.pruefen-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}

/* Upload Section */
.upload-section {
    padding: 0 2rem 4rem;
    margin-top: -1rem;
}

.upload-container {
    max-width: 600px;
    margin: 0 auto;
}

.upload-box {
    background: white;
    border: 2px dashed var(--color-border);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.upload-box:hover,
.upload-box.dragover {
    border-color: var(--color-primary);
    background: #fffdf5;
}

.upload-box.dragover {
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(255, 213, 79, 0.3);
}

.upload-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--color-text);
    opacity: 0.7;
}

.upload-icon svg {
    width: 100%;
    height: 100%;
}

.upload-box h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.upload-box > p {
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.upload-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: var(--font-sans);
}

.upload-btn svg {
    width: 20px;
    height: 20px;
}

.upload-btn-primary {
    background: var(--color-primary);
    color: var(--color-text);
}

.upload-btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
}

.upload-btn-secondary {
    background: white;
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

.upload-btn-secondary:hover {
    border-color: var(--color-text);
    background: #fafafa;
}

.upload-formats {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* Preview Box */
.preview-box {
    background: white;
    border: 2px solid var(--color-primary);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.preview-header h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text);
}

.preview-remove {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--color-text-light);
    transition: color 0.2s;
}

.preview-remove:hover {
    color: #e74c3c;
}

.preview-remove svg {
    width: 20px;
    height: 20px;
}

.preview-content {
    background: #fafafa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    max-height: 400px;
    overflow: hidden;
}

.preview-content img {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    border-radius: 4px;
}

/* Seiten-Info für mehrseitige Dokumente */
.pages-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #166534;
    font-size: 0.9rem;
    font-weight: 500;
}

.pages-info svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Seiten-Navigation */
.pages-navigation {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.pages-nav-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.pages-thumbnails {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.page-thumbnail {
    position: relative;
    width: 80px;
    height: 100px;
    border: 2px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.page-thumbnail:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-thumbnail.active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(255, 213, 79, 0.3);
}

.page-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-number {
    position: absolute;
    bottom: 2px;
    left: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    padding: 2px;
    border-radius: 3px;
}

.remove-page-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-page-btn:hover {
    background: #e74c3c;
    transform: scale(1.1);
}

/* Preview Actions */
.preview-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-analyze,
.btn-add-page {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-analyze svg,
.btn-add-page svg {
    width: 20px;
    height: 20px;
}

.btn-add-page {
    background: white;
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

.btn-add-page:hover {
    border-color: var(--color-primary);
    background: #fffdf5;
}

/* Loading Box */
.loading-box {
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

.spinner-ring:nth-child(2) {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-top-color: var(--color-text);
    animation-duration: 1s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    border-top-color: var(--color-primary-hover);
    animation-duration: 0.8s;
}

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

.loading-box h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.loading-step {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    min-height: 1.5em;
}

.loading-progress {
    background: #f0f0f0;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    max-width: 300px;
    margin: 0 auto;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 3px;
}

/* Results Section */
.results-section {
    padding: 4rem 2rem;
    background: linear-gradient(180deg, #fff 0%, #faf8f3 100%);
}

.results-container {
    max-width: 900px;
    margin: 0 auto;
}

.results-header {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--color-border);
}

.score-circle {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}

.score-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-bg {
    fill: none;
    stroke: #f0f0f0;
    stroke-width: 8;
}

.score-progress {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1.5s ease-out;
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1;
    color: var(--color-text);
    transition: font-size 0.3s ease;
}

.score-label {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.score-info h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    text-align: left;
}

.score-info p {
    color: var(--color-text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* Criteria Grid */
.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.criteria-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
}

.criteria-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.criteria-card.success {
    border-left: 4px solid #27ae60;
}

.criteria-card.warning {
    border-left: 4px solid #f39c12;
}

.criteria-card.error {
    border-left: 4px solid #e74c3c;
}

.criteria-card.info {
    border-left: 4px solid #3498db;
}

.criteria-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.criteria-icon svg {
    width: 18px;
    height: 18px;
}

.criteria-card.success .criteria-icon {
    background: #d5f5e3;
    color: #27ae60;
}

.criteria-card.warning .criteria-icon {
    background: #fef5e7;
    color: #f39c12;
}

.criteria-card.error .criteria-icon {
    background: #fdedec;
    color: #e74c3c;
}

.criteria-card.info .criteria-icon {
    background: #ebf5fb;
    color: #3498db;
}

.criteria-content h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--color-text);
}

.criteria-content p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

/* Criteria Header with Status */
.criteria-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.criteria-header h4 {
    margin-bottom: 0;
    flex: 1;
}

.criteria-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Wichtigkeits-Badges */
.criteria-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.criteria-badge-zwingend {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.criteria-badge-soll {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fcd34d;
}

.criteria-badge-empfohlen {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* Status Labels */
.criteria-status-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 100px;
}

.criteria-status-label.success {
    background: #d1fae5;
    color: #065f46;
}

.criteria-status-label.warning {
    background: #fef3c7;
    color: #92400e;
}

.criteria-status-label.error {
    background: #fee2e2;
    color: #991b1b;
}

.criteria-status-label.info {
    background: #e0e7ff;
    color: #3730a3;
}

/* Evidence/Proof Section */
.criteria-evidence {
    background: #f8f9fa;
    border-left: 3px solid var(--color-border);
    border-radius: 0 6px 6px 0;
    padding: 0.75rem;
    margin: 0.75rem 0;
}

.criteria-evidence-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-light);
    margin-bottom: 0.4rem;
}

.criteria-evidence-label svg {
    width: 12px;
    height: 12px;
    opacity: 0.7;
}

.criteria-evidence-text {
    font-size: 0.8rem;
    color: var(--color-text);
    line-height: 1.5;
    font-style: italic;
}

.criteria-card.success .criteria-evidence {
    border-left-color: #27ae60;
    background: #f0fdf4;
}

.criteria-card.warning .criteria-evidence {
    border-left-color: #f39c12;
    background: #fffbeb;
}

.criteria-card.error .criteria-evidence {
    border-left-color: #e74c3c;
    background: #fef2f2;
}

.criteria-paragraph {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    background: #f5f5f5;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: var(--color-text);
    font-weight: 500;
    transition: all 0.2s ease;
}

.criteria-paragraph-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    margin-top: 0.5rem;
}

.criteria-paragraph-link svg {
    width: 11px;
    height: 11px;
    opacity: 0;
    transform: translateX(-3px);
    transition: all 0.2s ease;
    color: var(--color-text-light);
}

.criteria-paragraph-link:hover .criteria-paragraph {
    background: var(--color-primary);
}

.criteria-paragraph-link:hover svg {
    opacity: 1;
    transform: translateX(0);
}

.criteria-paragraph-link .criteria-paragraph {
    margin-top: 0;
}

/* Detailed Analysis */
.analysis-detail {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.analysis-detail h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.analysis-detail h3 svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary-hover);
}

.analysis-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text);
}

.analysis-content p {
    margin-bottom: 1rem;
}

.analysis-content p:last-child {
    margin-bottom: 0;
}

.analysis-content strong {
    color: var(--color-text);
    font-weight: 600;
}

/* Extracted Text Section */
.extracted-text-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.extracted-text-section h4,
.detail-analysis-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.extracted-text-section h4 svg,
.detail-analysis-section h4 svg {
    width: 18px;
    height: 18px;
    color: var(--color-primary-hover);
}

.extracted-text-box {
    background: #fafafa;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.25rem;
    max-height: 300px;
    overflow-y: auto;
}

.extracted-text-box pre {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text);
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
}

.extracted-text-hint {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: 0.75rem;
    font-style: italic;
}

.detail-analysis-section {
    margin-top: 1.5rem;
}

.detail-analysis-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text);
}

/* Recommendations Box */
.recommendations-box {
    background: #fef9e7;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 213, 79, 0.3);
}

.recommendations-box h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--color-text);
}

.recommendations-box h3 svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary-hover);
}

.recommendations-box ul {
    list-style: none;
}

.recommendations-box li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text);
}

.recommendations-box li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-primary-hover);
    font-weight: 600;
}

.recommendations-box li:last-child {
    margin-bottom: 0;
}

/* Results Actions */
.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.results-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.results-actions .btn svg {
    width: 20px;
    height: 20px;
}

.btn-outline-dark {
    background: transparent;
    border: 2px solid var(--color-text);
    color: var(--color-text);
    padding: 0.875rem 1.75rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-outline-dark:hover {
    background: var(--color-text);
    color: white;
}

/* Info Section */
.pruefen-info {
    padding: 5rem 2rem;
    background: white;
}

.info-container {
    max-width: 1100px;
    margin: 0 auto;
}

.pruefen-info h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    text-align: center;
    margin-bottom: 3rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: #faf8f3;
    border-radius: 12px;
    padding: 1.75rem;
    position: relative;
    transition: all 0.2s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.info-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.info-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-text);
}

.info-card h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.info-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.info-paragraph {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text);
    background: white;
    padding: 0.375rem 0.75rem;
    border-radius: 100px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.info-paragraph-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    text-decoration: none;
    cursor: pointer;
}

.info-paragraph-link svg {
    width: 12px;
    height: 12px;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s ease;
    color: var(--color-text-light);
}

.info-paragraph-link:hover .info-paragraph {
    background: var(--color-primary);
    box-shadow: 0 2px 8px rgba(255, 213, 79, 0.4);
}

.info-paragraph-link:hover svg {
    opacity: 1;
    transform: translateX(0);
}

.info-paragraph-nolink {
    opacity: 0.7;
}

/* Trust Section */
.pruefen-trust {
    background: var(--color-text);
    padding: 3rem 2rem;
}

.trust-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.trust-item svg {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
}

.trust-item h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.trust-item p {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* API Modal */
.api-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
    backdrop-filter: blur(4px);
}

.api-modal-content {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.api-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--color-text-light);
    transition: color 0.2s;
}

.api-modal-close:hover {
    color: var(--color-text);
}

.api-modal-close svg {
    width: 20px;
    height: 20px;
}

.api-modal-icon {
    width: 64px;
    height: 64px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.api-modal-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-text);
}

.api-modal-content h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.api-modal-content > p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.api-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: border-color 0.2s;
    margin-bottom: 0.75rem;
}

.api-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.api-hint {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.api-hint a {
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.api-hint a:hover {
    color: var(--color-text-light);
}

.api-save-btn {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .pruefen-hero {
        padding: 3rem 1.5rem 2rem;
    }
    
    .upload-section {
        padding: 0 1rem 3rem;
    }
    
    .upload-box {
        padding: 2rem 1.5rem;
    }
    
    .upload-buttons {
        flex-direction: column;
    }
    
    .upload-btn {
        width: 100%;
        justify-content: center;
    }
    
    .preview-actions {
        flex-direction: column;
    }
    
    .preview-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .pages-thumbnails {
        gap: 0.5rem;
    }
    
    .page-thumbnail {
        width: 60px;
        height: 75px;
    }
    
    .results-header {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .score-info h2 {
        text-align: center;
    }
    
    .trust-container {
        gap: 2rem;
    }
    
    .trust-item {
        flex-basis: 100%;
        justify-content: center;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .results-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

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

@media (max-width: 480px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .criteria-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .criteria-header-right {
        order: -1;
        flex-wrap: wrap;
    }
}

