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

/* ==========================================================================
   RESET & 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; }
.back-home { color: var(--dim); text-decoration: none; font-size: 0.95rem; display: flex; align-items: center; gap: 6px; transition: color 0.2s; }
.back-home:hover { color: var(--schwan); }

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

/* ========== EINGABEFORMULAR ========== */
.nr-form-container { max-width: 600px; margin: 0 auto; text-align: center; }
.nr-label {
    display: block; font-size: 1.2rem; font-weight: 600; margin-bottom: 1.5rem;
    color: var(--schwan); font-family: 'Playfair Display', serif;
}
.nr-input-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.nr-input {
    flex: 1; min-width: 200px; padding: 14px 20px; border-radius: 40px;
    border: 2px solid rgba(26,138,138,0.4); /* Pfau */
    background: rgba(255,255,255,0.05); color: var(--text);
    font-size: 1.1rem; font-family: 'Inter', sans-serif; outline: none;
    transition: border-color 0.3s;
}
.nr-input:focus { border-color: var(--schwan); box-shadow: 0 0 15px rgba(26,138,138,0.3); }
.nr-input::placeholder { color: #555; }
.nr-submit { display: flex; align-items: center; gap: 8px; }

/* ========== 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 { max-width: 700px; margin: 0 auto; }
.result-header { text-align: center; margin-bottom: 2rem; }
.result-header h2 { font-size: 2.5rem; letter-spacing: 2px; color: var(--schwan); }
.result-frequency { font-size: 1.2rem; opacity: 0.8; margin-top: 0.5rem; color: var(--pfau); }

.result-affirmation {
    text-align: center; font-size: 1.3rem; font-family: 'Playfair Display', serif;
    font-style: italic; margin-bottom: 2rem; padding: 1.5rem;
    border: 1px solid var(--pfau); border-radius: 16px;
    background: linear-gradient(135deg, rgba(26,138,138,0.08), rgba(11,26,47,0.5));
    color: var(--schwan);
}

.result-chars { display: grid; gap: 1rem; }
.char-card {
    display: flex; align-items: center; gap: 1.5rem;
    background: linear-gradient(135deg, rgba(26,26,46,0.5), rgba(11,26,47,0.5));
    border: 1px solid rgba(26,138,138,0.3);
    border-radius: 16px; padding: 1.5rem; transition: all 0.3s ease;
}
.char-card:hover {
    background: linear-gradient(135deg, rgba(26,138,138,0.1), rgba(11,26,47,0.5));
    border-color: var(--pfau);
}
.char-symbol { font-size: 2.5rem; font-weight: 700; color: var(--schwan); font-family: 'Playfair Display', serif; min-width: 60px; text-align: center; }
.char-details h4 { font-size: 1.2rem; color: var(--schwan); font-family: 'Playfair Display', serif; margin-bottom: 0.3rem; }
.char-details p { font-size: 0.95rem; opacity: 0.85; margin-bottom: 0.2rem; }
.char-affirmation { font-style: italic; color: var(--pfau); margin-top: 0.4rem; }
.char-unknown .char-symbol { color: #777; }

.result-hint { text-align: center; margin-top: 2rem; opacity: 0.6; font-size: 0.9rem; }
.result-reset { text-align: center; margin-top: 2rem; }

.back-link {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 2rem; color: var(--dim); text-decoration: none;
    font-size: 0.9rem; transition: color 0.2s;
}
.back-link:hover { color: var(--pfau); }

/* ========== 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) {
    .nr-input-group { flex-direction: column; align-items: center; }
    .nr-input { width: 100%; }
    .char-card { flex-direction: column; text-align: center; }
    .char-symbol { min-width: auto; }
}

/* ========== NEU: KULTURELLE TIEFE & KREIS-HINWEIS ========== */
.char-tiefe {
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(26,138,138,0.3);
    border-radius: 10px;
    background: rgba(26,138,138,0.05);
    font-size: 0.85rem;
    line-height: 1.5;
}
.char-tiefe strong { color: var(--schwan); }

.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;
}