:root {
    --primary-color: #3b82f6;          /* Hauptfarbe */
    --secondary-color: #1e40af;        /* Sekundärfarbe */
    --error-color: #f59e0b;            /* Fehlerfarbe (Origin Server) */
    --success-color: #10b981;          /* Erfolgsfarbe (Your Connection) */
    --warning-color: #f59e0b;          /* Warnfarbe (Verbindungslinien) */
    --gateway-color: #10b981;          /* Gateway Farbe */
    
    /* HINTERGRUNDFARBEN */
    --gray-color: #6b7280;
    --light-gray: #f3f4f6;
    --dark-bg: #111827;
    --card-bg: #1f2937;
    --border-radius: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: #f9fafb;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.logo-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-badge {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-badge.error {
    background-color: rgba(239, 68, 68, 0.2);
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.connection-status {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    margin-top: 10px;
}

.gateway-status {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--gateway-color);
    margin-top: 10px;
}

.server-status {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    margin-top: 10px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--success-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.error-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

.error-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-code {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 600;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.error-description {
    color: var(--gray-color);
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
}

.connection-diagram {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0;
    position: relative;
}

.connection-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 30%;
    z-index: 1;
}

.step-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

/* DEINE VERBINDUNG*/
.step-1 {
    background-color: var(--success-color);
    color: white;
}

/* NETSERV GATEWAY*/
.step-2 {
    background-color: var(--gateway-color); /* GEÄNDERT ZU GRÜN */
    color: white;
}

/* ORIGIN SERVER*/
.step-3 {
    background-color: #f59e0b;
    color: white;
}

.step-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 18px;
}

.step-description {
    color: var(--gray-color);
    font-size: 14px;
}

/* VERBINDUNGSLINIEN */
.connection-line {
    position: absolute;
    top: 35px;
    left: 15%;
    width: 70%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.connection-line-fill-1 {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    background-color: var(--success-color);
}

.connection-line-fill-2 {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: 50%;
    background-color: var(--error-color);
}

.troubleshooting {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-top: 30px;
    border-left: 4px solid var(--primary-color);
}

.troubleshooting-title {
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.troubleshooting-list {
    list-style-type: none;
}

.troubleshooting-list li {
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
}

.troubleshooting-list li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

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

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.footer {
    text-align: center;
    color: var(--gray-color);
    font-size: 14px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.contact-info {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .connection-diagram {
        flex-direction: column;
        gap: 40px;
    }
    
    .connection-step {
        width: 100%;
    }
    
    .connection-line {
        display: none;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .error-card {
        padding: 30px;
    }
}
