/* ==========================================================================
   1. Setup & Globale Stile
   ========================================================================== */

:root {
    --neon-blue: #00f3ff;
    --neon-purple: #6d00ff;
    --bg-dark: #001629;
    --card-bg: rgba(10, 15, 30, 0.6);
}

@font-face {
    font-family: 'Rajdhani';
    src: url('../fonts/Rajdhani-Regular.ttf') format('truetype'); /* Pfad relativ zur CSS-Datei */
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

body {
    background-color: var(--bg-dark);
    font-family: 'Rajdhani', sans-serif;
    color: white;
    overflow-x: hidden;
    margin: 0;
}
/* ==========================================================================
   2. Hintergrund-Animationen
   ========================================================================== */

/* Animated */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background: linear-gradient(120deg, #071027 0%, #001629 40%, #001a3a 60%, #0b1530 100%);
    background-size: 400% 400%;
    mix-blend-mode: screen;
    opacity: 0.6;
    filter: saturate(1.1) blur(10px);
    animation: gradientShift 18s ease-in-out infinite;
}

/* Background Animation */
#animationen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.page-section {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   3. Layout & Seitenstruktur
   ========================================================================== */

/* Blendet alle Sektionen aus, die nicht die 'active' Klasse haben. */
.page-section:not(.active) {
    display: none;
}

.page-section.active {
    display: block; /* Bootstrap Container kümmert sich um Flex */
    animation: fadeIn 0.5s ease;
}

/* Fallback für deaktiviertes JavaScript */
.no-js #page-impressum,
.no-js #page-datenschutz {
    display: block;
}

/* Haupt-Container auf den Seiten */
#card {
    max-width: 520px;
}

.content-card {
    max-width: 800px;
}

#page-datenschutz .content-card,
#page-impressum .content-card {
    overflow-y: auto;
    overflow-x: hidden;
}

/* ==========================================================================
   4. Komponenten
   ========================================================================== */

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 243, 255, 0.2);
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.1);
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.1s ease;
}

.neon-text {
    font-family: 'Orbitron', sans-serif; /* Falls Orbitron nicht da ist, Fallback beachten */
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.divider-neon {
    width: 64px;
    height: 4px;
    background-color: #00d2ff; /* Bootstrap cyan-400 ähnlich */
    border-radius: 50rem;
    box-shadow: 0 0 10px #00f3ff;
}

/* Profile Image */
.profile-img-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
    animation: pulse-border 2s infinite;
}

/* Link-Buttons (Instagram, Discord, etc.) */
.link-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.link-btn .link-icon {
    width: 32px;
}

.link-btn:hover {
    transform: translateY(-2px) scale(1.02);
    letter-spacing: 1px;
    border-color: transparent;
    color: white !important;
}

.link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.link-btn:hover::before {
    left: 100%;
}

.link-btn .arrow-icon,
.link-btn .copy-hint {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.link-btn:hover .arrow-icon,
.link-btn:hover .copy-hint {
    opacity: 1;
}

.link-btn .copy-hint {
    transform: translateY(2px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.link-btn.copied .copy-hint { /* Zustand nach erfolgreichem Kopieren */
    opacity: 1 !important;
    transform: translateY(0);
    color: var(--neon-blue);
    font-weight: 700;
    text-transform: none;
}

.link-btn.copied {
    background: linear-gradient(90deg, var(--neon-blue) 0%, var(--neon-purple) 100%);
    border-color: transparent;
    box-shadow: 0 8px 30px rgba(0, 243, 255, 0.16), 0 0 60px rgba(109, 0, 255, 0.08);
    color: #fff !important;
    transform: translateY(-2px) scale(1.02);
}
.link-btn.copied .bi-discord {
    color: #fff !important;
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.6));
}
.link-btn.copied .label {
    color: #ffffff !important;
}
.link-btn.copied .copy-hint {
    color: #e6ffff !important;
}

/* Schließen-Button (X) für Impressum/Datenschutz */
.close-popup {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(0,0,0,0.35);
    color: #e9faff;
    border: 1px solid rgba(255,255,255,0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    z-index: 40;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
    /* Button beim Scrollen im Container oben bleibt */
    position: sticky;
    float: right;
}

.close-popup:hover {
    transform: translateY(-2px);
    background: linear-gradient(90deg, rgba(0, 243, 255, 0.12), rgba(109, 0, 255, 0.12));
    box-shadow: 0 6px 18px rgba(0,243,255,0.08);
}

/* --- Button-Farbvarianten --- */

/* Instagram Button */
.link-btn.btn-instagram:hover:not(.copied) {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 0 30px rgba(220, 39, 67, 0.5);
}
.btn-instagram .bi-instagram { color: #E1306C; transition: color 0.3s; }
.link-btn.btn-instagram:hover .bi-instagram { color: white; }

/* Discord Button */
.link-btn.btn-discord:hover:not(.copied) {
    background: linear-gradient(45deg, #5865F2, #4752C4);
    box-shadow: 0 0 30px rgba(88, 101, 242, 0.5);
}
.btn-discord .bi-discord { color: #5865F2; transition: color 0.3s; }
.link-btn.btn-discord:hover .bi-discord { color: white; }

/* Discord-Label zentrieren wie bei Instagram/Telegram */
.btn-discord {
    position: relative; /* wichtig für absolute Position des Labels */
    display: flex;
    align-items: center; /* Icon vertikal mittig */
    justify-content: flex-start; /* Icon links */
    padding-left: 12px; /* Abstand links */
}

.btn-discord .label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none; /* Text bleibt klickbar */
}


/* Telegram Button */
.btn-telegram:hover {
    background: linear-gradient(45deg, #2AABEE, #229ED9);
    box-shadow: 0 0 30px rgba(42, 171, 238, 0.5);
}
.btn-telegram .bi-telegram { color: #229ED9; transition: color 0.3s; }
.btn-telegram:hover .bi-telegram { color: white; }

/* Hobbies Titel */
.hobbies-title {
   color: white;
   text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
   font-family: 'Orbitron', sans-serif;
   margin-bottom: 8px;  
}

/* Hobby Tags */
.hobby-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
}

.hobby-tag:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

/* ==========================================================================
   5. Hilfsklassen (Utilities)
   ========================================================================== */

.text-cyan { color: var(--neon-blue) !important; }
.letter-spacing-1 { letter-spacing: 1px; }
.letter-spacing-2 { letter-spacing: 2px; }
.cursor-pointer { cursor: pointer; }

.version-info {
    pointer-events: none; /* Verhindert, dass die Versionsnummer klickbar ist */
    font-size: 0.75rem;
}

.hover-white:hover {
    color: white !important;
    transition: color 0.3s;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ==========================================================================
   6. Animationen (@keyframes)
   ========================================================================== */

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}
@keyframes pulse-border {
    0% { box-shadow: 0 0 15px rgba(0, 243, 255, 0.3); }
    50% { box-shadow: 0 0 30px rgba(0, 243, 255, 0.8); }
    100% { box-shadow: 0 0 15px rgba(0, 243, 255, 0.3); }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}