/* ==========================================================================
   FONTS – LOKAL GEHOSTET (DATENSCHUTZKONFORM)
   ========================================================================== */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-v20-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-v20-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-v20-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair-display-v40-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair-display-v40-latin-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair-display-v40-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   BASIS-STYLES (abgestimmt auf die Hauptseite)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', sans-serif;
    background: #0a0c14;
    color: #e0e0e0;
    line-height: 1.6;
    scroll-behavior: smooth;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
h1, h2, h3, .logo {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
}
h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: linear-gradient(135deg, #d4af37 0%, #f5e7b2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    line-height: 1.2;
}
h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #d4af37;
    position: relative;
    display: inline-block;
}
h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #d4af37;
    border-radius: 3px;
}
.section {
    padding: 80px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}
.section:last-child {
    border-bottom: none;
}
.btn {
    display: inline-block;
    background: #d4af37;
    color: #0a0c14;
    padding: 12px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}
.btn:hover,
.btn:focus {
    background: #f5d77e;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.btn-outline {
    background: transparent;
    border: 2px solid #d4af37;
    color: #d4af37;
}
.btn-outline:hover,
.btn-outline:focus {
    background: #d4af37;
    color: #0a0c14;
}

/* Header */
header {
    position: sticky;
    top: 0;
    background: rgba(10, 12, 20, 0.92);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding: 16px 0;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #d4af37;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}
.logo span {
    font-size: 0.75rem;
    color: #aaa;
    font-family: 'Inter', sans-serif;
}

/* Footer */
footer {
    background: #05070c;
    padding: 40px 0 20px;
    margin-top: 40px;
}
.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: #777;
}

/* Skip-Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: #d4af37;
    color: #0a0c14;
    padding: 8px 16px;
    z-index: 200;
    transition: top 0.2s;
    text-decoration: none;
    font-weight: 600;
}
.skip-link:focus {
    top: 0;
}

/* ==========================================================================
   EKG-SPEZIFISCHE STYLES
   ========================================================================== */
.ekg-hero {
    min-height: auto;
    padding: 100px 0 40px;
    text-align: center;
    background: radial-gradient(circle at center, #1a1f2e 0%, #0a0c14 80%);
}
.ekg-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Fortschrittsleiste */
.progress-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 3rem;
    flex-wrap: wrap;
}
.progress-step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(212,175,55,0.2);
    color: #aaa;
    font-weight: 600;
    transition: all 0.4s ease;
}
.progress-step.active {
    background: rgba(212,175,55,0.15);
    border-color: #d4af37;
    color: #d4af37;
    box-shadow: 0 0 15px rgba(212,175,55,0.2);
}
.progress-step.completed {
    background: rgba(212,175,55,0.3);
    border-color: #d4af37;
    color: #0a0c14;
}
.progress-connector {
    width: 40px;
    height: 2px;
    background: rgba(212,175,55,0.2);
    align-self: center;
    transition: background 0.4s ease;
}
.progress-connector.active {
    background: #d4af37;
}

/* Auswahlkarten */
.selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}
.value-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    user-select: none;
}
.value-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-3px);
}
.value-card:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}
.value-card.selected {
    background: rgba(212, 175, 55, 0.1);
    border-color: #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}
.value-card i {
    font-size: 2rem;
    color: #d4af37;
    margin-bottom: 0.5rem;
}
.value-card h3 {
    font-size: 1.1rem;
    margin: 0;
}
.value-card p {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.3rem;
}

/* SVG-Icons in den Werte-Karten */
.value-symbol {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.8rem;
    transition: transform 0.3s ease;
}
.value-symbol svg {
    width: 48px;
    height: 48px;
    stroke: #d4af37;
    transition: all 0.3s ease;
}
.value-card.selected .value-symbol svg {
    stroke: #f5d77e;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
}
.value-card:hover .value-symbol {
    transform: scale(1.05);
}

/* Analyse-Button */
.analyze-btn {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 3rem auto 0;
    padding: 16px 32px;
    font-size: 1.2rem;
}
.analyze-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.selected-indicator {
    text-align: center;
    margin: 1.5rem 0;
    font-size: 1rem;
    opacity: 0.85;
    min-height: 1.5rem;
}

/* Ergebnis-Sektion */
.result-section {
    display: none;
    padding: 60px 0;
    animation: fadeInUp 0.6s ease;
}
.result-section.active {
    display: block;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.result-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
}
.conflict-level {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.level-harmonie {
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
}
.level-spannung {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
}
.level-krise {
    background: rgba(255, 80, 80, 0.2);
    color: #ff5050;
}
.tool-box {
    background: rgba(212, 175, 55, 0.08);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: left;
}
.tool-box i {
    font-size: 2rem;
    color: #d4af37;
    margin-bottom: 0.5rem;
    display: inline-block;
}
.tool-box h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.affirmation {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #d4af37;
    font-style: italic;
    margin: 2rem 0;
    line-height: 1.4;
}
.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.back-link:hover {
    color: #d4af37;
}

/* Bridge-Visual */
.bridge-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
}
.bridge-point {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
}

/* Responsive */
@media (max-width: 600px) {
    .selector-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .value-card {
        padding: 1rem 0.5rem;
    }
    .value-card h3 {
        font-size: 0.95rem;
    }
    .tool-box {
        padding: 1.5rem;
    }
}