/* Inter Font - Lokal eingebunden (optional, mit Fallback auf System-Fonts) */
/* Fonts werden nur geladen, wenn sie vorhanden sind - sonst Fallback auf System-Fonts */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: optional;
    src: local('Inter Regular'), local('Inter-Regular'), url('fonts/Inter-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: optional;
    src: local('Inter Medium'), local('Inter-Medium'), url('fonts/Inter-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: optional;
    src: local('Inter SemiBold'), local('Inter-SemiBold'), url('fonts/Inter-SemiBold.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: optional;
    src: local('Inter Bold'), local('Inter-Bold'), url('fonts/Inter-Bold.woff2') format('woff2');
}

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

.hidden {
    display: none !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fa;
    background-image: 
        linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    color: #1a202c;
}

.container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    padding: 40px;
    max-width: 1200px;
    width: 100%;
    border: 1px solid #e2e8f0;
}

header {
    text-align: left;
    margin-bottom: 40px;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 25px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e2e8f0;
}

.skip-logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.company-name {
    font-size: 1.6em;
    color: #2f6fa8;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin: 0;
}

header h1 {
    color: #1a202c;
    font-size: 2.8em;
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
}

.subtitle {
    color: #64748b;
    font-size: 1.05em;
    font-weight: 400;
    margin: 0;
}

.quality-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.quality-radial {
    position: relative;
    width: 220px;
    height: 220px;
}

.radial-progress {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.radial-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 15;
}

.radial-progress-bar {
    fill: none;
    stroke: #2f6fa8;
    stroke-width: 15;
    stroke-linecap: round;
    stroke-dasharray: 565.48;
    stroke-dashoffset: 565.48;
    transition: stroke-dashoffset 0.3s ease, stroke 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(47, 111, 168, 0.5));
}

.radial-progress-bar.speedometer {
    stroke: #F7941E;
    filter: drop-shadow(0 0 10px rgba(247, 148, 30, 0.6));
    transition: stroke-dashoffset 0.2s ease;
}

.radial-progress-bar.excellent {
    stroke: #2f6fa8;
    filter: drop-shadow(0 0 8px rgba(47, 111, 168, 0.5));
}

.radial-progress-bar.good {
    stroke: #F7941E;
    filter: drop-shadow(0 0 8px rgba(247, 148, 30, 0.5));
}

.radial-progress-bar.fair {
    stroke: #F7941E;
    filter: drop-shadow(0 0 8px rgba(247, 148, 30, 0.5));
}

.radial-progress-bar.poor {
    stroke: #ff0000;
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.5));
}

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

.quality-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #1a202c;
    margin-bottom: 5px;
}

.quality-label {
    font-size: 0.9em;
    color: #64748b;
    margin-bottom: 5px;
}

.quality-average {
    font-size: 1.1em;
    color: #F7941E;
    font-weight: 600;
}

.test-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.result-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: #2f6fa8;
}

.result-card.testing {
    background: #fff7ed;
    border-color: #F7941E;
    border-width: 2px;
    animation: pulse 1.5s ease-in-out infinite;
}

.result-card.completed {
    background: #f0f9ff;
    border-color: #2f6fa8;
    border-width: 2px;
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-header h2 {
    color: #1a202c;
    font-size: 1.3em;
    font-weight: 600;
}

.unit {
    color: #64748b;
    font-size: 0.9em;
    font-weight: 500;
}

.value {
    font-size: 3em;
    font-weight: bold;
    color: #1a202c;
    margin: 15px 0;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status {
    color: #64748b;
    font-size: 0.9em;
    font-weight: 500;
}

.status.testing {
    color: #F7941E;
    font-weight: 600;
}

.status.completed {
    color: #2f6fa8;
    font-weight: 600;
}

.average-info {
    font-size: 0.85em;
    color: #2f6fa8;
    margin-top: 8px;
    font-weight: 500;
}

.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

button {
    padding: 15px 40px;
    font-size: 1.1em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, #2f6fa8 0%, #1e4d7a 100%);
    color: white;
    border: none;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(47, 111, 168, 0.4);
    background: linear-gradient(135deg, #1e4d7a 0%, #153a5a 100%);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(47, 111, 168, 0.3);
}

.btn-secondary {
    background: rgba(255, 0, 0, 0.9);
    color: white;
    border: 1px solid rgba(255, 0, 0, 0.5);
}

.btn-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
    background: rgba(220, 0, 0, 0.9);
}

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

.progress-container {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2f6fa8 0%, #F7941E 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(47, 111, 168, 0.5);
}

.info {
    text-align: center;
    color: #64748b;
    font-size: 0.95em;
}

#test-info {
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.config-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 4px solid #2f6fa8;
}

.config-panel h3 {
    color: #1a202c;
    margin-bottom: 20px;
    font-size: 1.3em;
    font-weight: 600;
}

.config-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.config-row.flex-row {
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.config-row.flex-row label {
    min-width: 120px;
}

.config-row label {
    color: #475569;
    font-weight: 600;
    font-size: 0.95em;
}

.config-select,
.config-input {
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1em;
    background: #ffffff;
    color: #1a202c;
    transition: all 0.3s ease;
}

.config-select:focus,
.config-input:focus {
    outline: none;
    border-color: #2f6fa8;
    box-shadow: 0 0 0 3px rgba(47, 111, 168, 0.1);
}

.config-select option {
    background: #ffffff;
    color: #1a202c;
}

.config-input {
    width: 100%;
}

.contract-info {
    margin-top: 20px;
    padding: 15px;
    background: #ffffff;
    border-radius: 10px;
    border-left: 4px solid #2f6fa8;
    border: 1px solid #e2e8f0;
}

.contract-info h4 {
    color: #1a202c;
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: 600;
}

.contract-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contract-details div {
    color: #475569;
    font-size: 0.95em;
}

/* ============================================================================
   ZUSAMMENFASSUNG (SUMMARY PANEL)
   ============================================================================ */

.summary-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    border-left: 4px solid #2f6fa8;
}

.summary-panel h3 {
    color: #1a202c;
    margin-bottom: 20px;
    font-size: 1.3em;
    font-weight: 600;
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.summary-values {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.summary-label {
    font-weight: 600;
    color: #475569;
    min-width: 100px;
    font-size: 1em;
}

.summary-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #1a202c;
    min-width: 80px;
}

.summary-unit {
    color: #64748b;
    font-size: 0.9em;
}

.summary-rating {
    margin-left: auto;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 600;
}

.summary-rating.excellent {
    background: rgba(47, 111, 168, 0.2);
    color: #2f6fa8;
    border: 1px solid rgba(47, 111, 168, 0.4);
}

.summary-rating.good {
    background: rgba(47, 111, 168, 0.2);
    color: #2f6fa8;
    border: 1px solid rgba(47, 111, 168, 0.4);
}

.summary-rating.fair {
    background: rgba(247, 148, 30, 0.2);
    color: #F7941E;
    border: 1px solid rgba(247, 148, 30, 0.4);
}

.summary-rating.poor {
    background: rgba(255, 0, 0, 0.2);
    color: #ff0000;
    border: 1px solid rgba(255, 0, 0, 0.4);
}

.summary-quality {
    margin-top: 10px;
}

.quality-assessment {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.assessment-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    flex-shrink: 0;
    background: #2f6fa8;
    color: white;
    box-shadow: 0 4px 12px rgba(47, 111, 168, 0.3);
}

.assessment-icon.good {
    background: #2f6fa8;
    box-shadow: 0 4px 12px rgba(47, 111, 168, 0.3);
}

.assessment-icon.fair {
    background: #F7941E;
    box-shadow: 0 4px 12px rgba(247, 148, 30, 0.3);
}

.assessment-icon.poor {
    background: #ff0000;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.assessment-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.assessment-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #1a202c;
}

.assessment-text {
    font-size: 1em;
    color: #475569;
    line-height: 1.6;
}

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

    header h1 {
        font-size: 2em;
    }

    .test-results {
        grid-template-columns: 1fr;
    }

    .value {
        font-size: 2.5em;
    }

    .controls {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .summary-rating {
        margin-left: 0;
        align-self: flex-end;
    }

    .quality-assessment {
        flex-direction: column;
        text-align: center;
    }

    .assessment-icon {
        align-self: center;
    }
}

