/* ==========================================================================
   ETHISCHER KOMPASS – MOAKTOR FARBLEHRE
   Schwan (weiß), Pfau (teal), Krähe (violett), Gold, Nachtblau
   ========================================================================== */

@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
   ========================================================================== */
:root {
    --nacht: #0b1a2f;
    --gold: #d4af37;
    --schwan: #f5f0e8;
    --pfau: #1a8a8a;
    --kraehe: #1a1a2e;
    --text: #e0e0e0;
    --dim: #aaa;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--nacht);
    color: var(--text);
    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(90deg, var(--pfau), var(--gold));
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    margin-bottom: 1rem; line-height: 1.2;
}

h2 {
    font-size: 2rem; margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--pfau), var(--gold));
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    display: inline-block;
}
h2:after {
    content: ''; position: absolute; bottom: -10px; left: 0;
    width: 50px; height: 3px;
    background: linear-gradient(90deg, var(--pfau), var(--gold));
    border-radius: 3px;
}

.section { padding: 80px 0; border-bottom: 1px solid rgba(212,175,55,0.15); }
.section:last-child { border-bottom: none; }

/* ========== BUTTONS ========== */
.btn {
    display: inline-block; 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;
    background: linear-gradient(135deg, var(--pfau), var(--gold));
    color: var(--schwan);
}
.btn:hover, .btn:focus {
    background: linear-gradient(135deg, var(--gold), var(--pfau));
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(26,138,138,0.3);
    outline: 2px solid var(--schwan); outline-offset: 2px;
}

.btn-outline {
    background: transparent; border: 2px solid var(--gold); color: var(--gold);
}
.btn-outline:hover, .btn-outline:focus {
    background: var(--gold); color: var(--nacht);
}

/* ========== SKIP-LINK ========== */
.skip-link {
    position: absolute; top: -100px; left: 0;
    background: var(--gold); color: var(--nacht);
    padding: 8px 16px; z-index: 200; transition: top 0.2s;
    text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ========== HEADER ========== */
header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(11,26,47,0.92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    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: var(--gold); text-decoration: none;
    display: flex; flex-direction: column;
}
.logo span { font-size: 0.75rem; color: var(--dim); font-family: 'Inter', sans-serif; }

/* ========== HERO ========== */
.ekg-hero {
    padding: 100px 0 40px; text-align: center;
    background: radial-gradient(circle at center, #1a2a40 0%, var(--nacht) 80%);
}
.ekg-subtitle { font-size: 1.2rem; opacity: 0.8; max-width: 600px; margin: 0 auto 2rem; color: var(--text); }

/* ========== 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: var(--dim); font-weight: 600; transition: all 0.4s ease;
}
.progress-step.active {
    background: rgba(26,138,138,0.2); /* Pfau */
    border-color: var(--pfau); color: var(--schwan);
    box-shadow: 0 0 15px rgba(26,138,138,0.3);
}
.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: var(--pfau); }

/* ========== AUSWAHLKARTEN ========== */
.selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem; margin: 2rem 0;
}
.value-card {
    background: linear-gradient(135deg, rgba(26,26,46,0.5), rgba(11,26,47,0.5));
    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: linear-gradient(135deg, rgba(26,138,138,0.1), rgba(11,26,47,0.5));
    border-color: var(--pfau); transform: translateY(-3px);
}
.value-card:focus-visible { outline: 2px solid var(--pfau); outline-offset: 2px; }
.value-card.selected {
    background: linear-gradient(135deg, rgba(26,138,138,0.2), rgba(11,26,47,0.5));
    border-color: var(--schwan);
    box-shadow: 0 0 20px rgba(26,138,138,0.3);
}
.value-card i { font-size: 2rem; margin-bottom: 0.5rem; color: var(--schwan); }
.value-card h3 { font-size: 1.1rem; margin: 0; color: var(--schwan); }
.value-card p { font-size: 0.8rem; opacity: 0.7; margin-top: 0.3rem; }

/* SVG-Icons */
.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: var(--schwan); transition: all 0.3s ease; }
.value-card.selected .value-symbol svg { stroke: var(--schwan); filter: drop-shadow(0 0 8px rgba(26,138,138,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;
    background: linear-gradient(135deg, var(--pfau), var(--gold));
    color: var(--schwan);
}
.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; color: var(--schwan); }

/* ========== ERGEBNIS ========== */
.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: linear-gradient(135deg, rgba(26,26,46,0.6), rgba(11,26,47,0.6));
    border: 1px solid var(--pfau);
    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: var(--gold); }
.level-spannung { background: rgba(26,138,138,0.2); color: var(--pfau); }
.level-krise { background: rgba(255,80,80,0.2); color: #ff5050; }

.tool-box {
    background: linear-gradient(135deg, rgba(26,138,138,0.08), rgba(11,26,47,0.4));
    border: 1px solid rgba(26,138,138,0.3);
    border-radius: 16px; padding: 2rem; margin: 2rem 0; text-align: left;
}
.tool-box i { font-size: 2rem; color: var(--schwan); margin-bottom: 0.5rem; display: inline-block; }
.tool-box h3 { font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--schwan); }
.affirmation { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-style: italic; margin: 2rem 0; line-height: 1.4; color: var(--schwan); }
.back-link { display: inline-block; margin-top: 2rem; color: var(--dim); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.back-link:hover { color: var(--pfau); }

/* 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; }

/* ========== INNERER KREIS PROMPT ========== */
.login-prompt { text-align: center; max-width: 600px; margin: 0 auto; }
.login-prompt p { margin-bottom: 1.5rem; }

/* ========== FOOTER ========== */
footer { background: var(--kraehe); padding: 40px 0 20px; margin-top: 40px; }
.copyright { text-align: center; font-size: 0.8rem; color: #777; }

/* ========== 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; }
}

/* ========== NEU: KREIS-HINWEIS ========== */
.kreis-hinweis {
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(26,138,138,0.08), rgba(11,26,47,0.6));
    font-size: 0.95rem;
    color: var(--gold);
    text-align: center;
}