/*
  style.css
  V. 2026.08.24-00:46

  ⚠️ WICHTIG FÜR CLAUDE: Bei JEDER Änderung an dieser Datei muss die
  Versionsnummer oben hier UND die Versionsnummer im Footer von index.php
  (siehe $pageVersion dort) auf das tatsächliche aktuelle Datum/Uhrzeit
  aktualisiert werden (über ein Tool abgleichen, nicht schätzen). Niemals
  überspringen! NUR diese Datei — Version anderer, unberührter Seiten
  (z. B. Umfragen, Forum) NICHT mit anfassen, auch wenn sie verlinkt sind.
*/
/* Modernes CSS für 2026 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Farbpalette 1:1 von der Umfragenseite übernommen */
    --bg: #12131C;
    --surface: #1B1D2B;
    --surface-2: #242739;
    --border: #333650;
    --accent: #7C5CFF;
    --accent-soft: #7C5CFF33;
    --accent-2: #FFB25B;
    --text: #F2F1F8;
    --text-muted: #8D90A6;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    min-height: 100vh;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse 900px 500px at 15% -10%, #7C5CFF22, transparent),
        radial-gradient(ellipse 700px 400px at 100% 0%, #FFB25B18, transparent);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
}

/* Oberer Header-Balken - WICHTIG FÜR CLAUDE: identisch auch in
   umfragen/assets/style.css hinterlegt (Klassen .topbar, .topbar-inner,
   .topbar-brand, .topbar-nav). Bei Änderung hier IMMER dort nachziehen,
   und bei künftigen weiteren Unterseiten ebenfalls 1:1 übernehmen. */
.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 0.4rem;
}

.topbar-brand {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.2px;
}

.topbar-nav {
    display: flex;
    gap: 1.75rem;
}

.topbar-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.topbar-nav a:hover {
    color: var(--text);
}

.topbar-nav a.active {
    color: var(--text);
    font-weight: 600;
}

/* "Spiele"-Dropdown/Flyout-Menü im Header - WICHTIG FÜR CLAUDE: identisch
   auch in umfragen/assets/style.css hinterlegt, bei Änderung hier IMMER
   dort nachziehen. Öffnet NUR auf Geräten mit Maus (hover: hover) per CSS
   :hover. "Spiele" selbst ist ein echter Link (spiele/index.php) - ein
   Klick navigiert auf jedem Gerät sofort dorthin, kein JS nötig. */
.topbar-nav-dropdown {
    position: relative;
}

.topbar-nav-dropdown-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.topbar-nav-dropdown-label:hover {
    color: var(--text);
}

.topbar-nav-dropdown-label.active {
    color: var(--text);
    font-weight: 600;
}

/* Für eingeloggten Admin: Punkt ist per Backend (admin/navigation.php)
   für normale Besucher deaktiviert, wird HIER aber trotzdem angezeigt -
   nur der Admin sieht ihn, deutlich rot markiert als Warnung + kleiner
   "(aus)"-Hinweis. WICHTIG FÜR CLAUDE: identisch auch in
   umfragen/assets/style.css hinterlegt, bei Änderung hier IMMER dort
   nachziehen. */
.topbar-nav a.nav-off-for-users,
.topbar-nav-dropdown-label.nav-off-for-users {
    color: #FF6B6B;
}

.topbar-nav a.nav-off-for-users:hover,
.topbar-nav-dropdown-label.nav-off-for-users:hover {
    color: #FF6B6B;
    opacity: 0.85;
}

.topbar-nav a.nav-off-for-users::after,
.topbar-nav-dropdown-label.nav-off-for-users::after {
    content: " (aus)";
    font-size: 0.75em;
    opacity: 0.85;
}

.topbar-nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    /* Kein margin-top: die Lücke zum Wort "Spiele" MUSS Teil der
       hoverbaren Fläche sein (padding-top statt margin-top), sonst
       verliert :hover beim Rüberfahren die Maus mitten in der Lücke
       und das Menü klappt sofort wieder zu, bevor man es erreicht. */
    padding-top: 0.6rem;
    min-width: 180px;
    z-index: 110;
}

.topbar-nav-dropdown-menu-inner {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    padding: 0.4rem;
}

.topbar-nav-dropdown-menu a {
    display: block;
    padding: 0.5rem 0.7rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.topbar-nav-dropdown-menu a:hover {
    background: var(--surface-2);
    color: var(--text);
}

@media (hover: hover) {
    .topbar-nav-dropdown:hover .topbar-nav-dropdown-menu {
        display: block;
    }
}


/* Admin-Login/Dashboard/Abmelden: bewusst unauffällig, in einer dem
   Header-Hintergrund sehr ähnlichen Farbe gehalten, damit es kaum ins
   Auge fällt. Erst bei Hover etwas deutlicher. Liegt im Markup bewusst
   AUSSERHALB von .topbar-inner (siehe header.php) und ist damit NICHT
   an die 800px-Inhaltsspalte gebunden.
   Ab 960px Fensterbreite: klebt komplett abgesetzt am rechten Rand des
   Browserfensters (vertikal mittig in der Topbar), unabhaengig davon
   wie breit der Bildschirm ist – siehe Media Query weiter unten.
   Unterhalb von 960px (zu wenig Platz neben der 800px-Spalte, sonst
   Ueberlappung mit „Umfragen“): rutscht stattdessen als eigene, ruhige
   Zeile unter die Topbar. */
.topbar-admin {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 0 1.5rem 0.5rem;
}

.topbar-admin a {
    color: var(--border);
    text-decoration: none;
    font-size: 0.75rem;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.topbar-admin a:hover {
    color: var(--text-muted);
}

@media (min-width: 960px) {
    .topbar {
        position: relative;
    }
    .topbar-admin {
        position: absolute;
        top: 50%;
        right: 1.5rem;
        transform: translateY(-50%);
        padding: 0;
    }
}

@media (max-width: 480px) {
    .topbar-inner {
        min-height: 52px;
    }
    .topbar-nav {
        gap: 1.1rem;
    }
    .topbar-nav a {
        font-size: 0.8rem;
    }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Profil Bereich */
.profile {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-out;
}

.profile-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.bio {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* Links Container */
.links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Link Cards */
.link-card {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideUp 0.5s ease-out forwards;
    animation-delay: calc(var(--order) * 0.1s);
    opacity: 0;
}

.link-card:hover {
    background: var(--surface-2);
    transform: translateY(-4px) scale(1.02);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.link-card i:first-child {
    font-size: 1.8rem;
    width: 2.5rem;
    margin-right: 1rem;
}

.link-card span {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 500;
}

.link-card i:last-child {
    font-size: 1.2rem;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.link-card:hover i:last-child {
    transform: translateX(5px);
    opacity: 1;
}

/* Individuelle Farben für die Cards */
.instagram i:first-child { color: #E4405F; }
.tiktok i:first-child { color: #000000; }
.youtube i:first-child { color: #FF0000; }
.twitter i:first-child { color: #1DA1F2; }
.github i:first-child { color: #333333; }
.website i:first-child { color: #4CAF50; }
.discord i:first-child { color: #7289DA; }
.twitch i:first-child { color: #9146FF; }
.facebook i:first-child { color: #1877F2; }
.kick i:first-child { color: #53FC18; }
.patreon i:first-child { color: #FF424D; }

/* Seit-wann-gibt-es-diese-Seite-Anzeige */
.uptime {
    text-align: center;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.uptime-since {
    margin-bottom: 0.2rem;
}
.uptime-counter {
    font-weight: 600;
    color: var(--text);
}

/* Footer (Stil von der Umfragenseite übernommen) */
footer,
.site-footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 20px;
    opacity: 0.6;
    margin-top: 3rem;
}

/* Animationen */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }

    .name {
        font-size: 1.8rem;
    }

    .bio {
        font-size: 1rem;
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    .link-card {
        padding: 0.875rem 1.25rem;
    }

    .link-card i:first-child {
        font-size: 1.5rem;
        width: 2rem;
    }

    .link-card span {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem 0.75rem;
    }

    .profile-image {
        width: 80px;
        height: 80px;
    }

    .name {
        font-size: 1.5rem;
    }
}

/* Touch-Optimierung für mobile Geräte */
@media (hover: none) {
    .link-card:active {
        background: var(--surface-2);
        transform: scale(0.98);
    }
}