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

/* ==========================================================================
   RESET & BASIS
   ========================================================================== */
* {
    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;
}

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

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

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

.back-home {
    color: #aaa;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.back-home:hover {
    color: #d4af37;
}

/* ========== HERO ========== */
.nr-hero {
    padding: 100px 0 40px;
    text-align: center;
    background: radial-gradient(circle at center, #1a1f2e 0%, #0a0c14 80%);
}

.nr-hero-icon {
    margin-bottom: 1.5rem;
}

.nr-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 1rem;
}

/* ========== 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: #d4af37;
    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(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s;
}
.nr-input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}
.nr-input::placeholder {
    color: #777;
}

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

.result-frequency {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-top: 0.5rem;
    color: #d4af37;
}

.result-affirmation {
    text-align: center;
    font-size: 1.3rem;
    color: #d4af37;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    background: rgba(212, 175, 55, 0.05);
}

.result-chars {
    display: grid;
    gap: 1rem;
}

.char-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}
.char-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(212, 175, 55, 0.4);
}

.char-symbol {
    font-size: 2.5rem;
    font-weight: 700;
    color: #d4af37;
    font-family: 'Playfair Display', serif;
    min-width: 60px;
    text-align: center;
}

.char-details h4 {
    font-size: 1.2rem;
    color: #d4af37;
    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: #d4af37;
    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 {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.back-link:hover {
    color: #d4af37;
}

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

/* ========== FOOTER ========== */
footer {
    background: #05070c;
    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;
    }
}