/* --- Fonts --- */
@font-face {
    font-family: "JetBrains Mono";
    src: url('../fonts/jetbrains-mono-v24-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url('../fonts/jetbrains-mono-v24-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: "Segoe UI Variable", "Segoe UI", -apple-system, sans-serif;
    background: #0a0a0f;
    color: #e8e8f0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Animated Background --- */
.bg-gradient {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(14, 165, 233, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
    z-index: 0;
    animation: gradientShift 12s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0%   { opacity: 1; transform: scale(1); }
    100% { opacity: 0.7; transform: scale(1.05); }
}

/* --- Layout --- */
.main-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    gap: 1.5rem;
}

/* --- Bento Grid --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1rem;
    width: 100%;
    max-width: 860px;
}

/* --- Bento Cards --- */
.bento-card {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.8rem;
    overflow: hidden;
    transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.bento-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Glow Effekt pro Card */
.card-glow {
    position: absolute;
    top: -40%;
    left: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

/* Hero Card: nimmt 2 Spalten ein */
.bento-hero {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 280px;
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
}

.bento-welcome {
    grid-column: span 1;
}

.bento-topics {
    grid-column: span 2;
}

.bento-status {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
}

/* --- Hero Content --- */
.badge-tag {
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
    padding: 4px 10px;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.hero-title {
    font-family: "JetBrains Mono", monospace;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.accent { color: #818cf8; }

.hero-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

.mascot {
    width: 80px;
    margin-top: 1rem;
    filter: drop-shadow(0 4px 16px rgba(99, 102, 241, 0.4));
    transition: transform 300ms ease;
}

.mascot:hover { transform: scale(1.08) rotate(-3deg); }

/* --- Card Content --- */
.card-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.8rem;
}

.bento-card h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.bento-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
}

/* --- Tags --- */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.8rem;
}

.tag {
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    transition: background 150ms ease;
}

.tag:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
}

/* --- Status Card --- */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px #34d399;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 6px #34d399; }
    50%       { box-shadow: 0 0 14px #34d399; }
}

.status-label {
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    font-weight: 700;
    color: #34d399;
}

.status-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4) !important;
}

/* --- Navigation --- */
.bottom-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.nav-btn {
    font-size: 13px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 100px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    transition: all 150ms ease;
}

.nav-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-btn.active {
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.35);
}

/* --- Footer --- */
.site-footer p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
    text-align: center;
}

/* --- Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-hero,
    .bento-topics,
    .bento-welcome,
    .bento-status {
        grid-column: span 1;
    }
}
/* --- Content Pages (Impressum, Datenschutz etc.) --- */
.content-card {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.content-title {
    font-family: "JetBrains Mono", monospace;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.content-body h2 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #a5b4fc;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 2rem;
    margin-bottom: 0.6rem;
}

.content-body p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.75;
    margin-bottom: 0.8rem;
}

.content-body a {
    color: #818cf8;
    text-decoration: none;
    transition: color 150ms ease;
}

.content-body a:hover {
    color: #a5b4fc;
    text-decoration: underline;
}

.source-link {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.3) !important;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.content-body ol,
.content-body ul {
    padding-left: 1.4rem;
    margin-bottom: 0.8rem;
}

.content-body li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.75;
    margin-bottom: 0.3rem;
}

.content-body h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
/* --- Credit Items --- */
.credit-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.credit-item:last-child {
    border-bottom: none;
}

.credit-label {
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    font-weight: 700;
    color: #a5b4fc;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
    margin-bottom: 0.3rem;
}

.credit-item p {
    margin-bottom: 0 !important;
}
