/* Beta: Profil-Menue in der Kopfleiste (kopf.js). Ruhig, ohne Glanz - wie das neue Panel. */

/* Eingeloggt: rechts nur noch der Pinguin. Suche, Sprache, Waehrung und "Dashboard" stecken im Menue. */
nav.nav-v2 .nav-right.phk-an > :not(.phk) { display: none !important; }

/* Variante D (Moritz 11.11.2026): "Dashboard" als schlichter Link wie die Links in der Mitte, Trennstrich,
   dahinter Pinguin + Vorname ohne Rahmen. Die Zahl am Pinguin = ungelesene Mitteilungen. */
.phk { position: relative; display: flex; align-items: center; gap: 4px; }
.phk-dash {
    display: inline-flex; align-items: center; height: 40px; padding: 0 8px; border-radius: 8px;
    color: #d7dfea; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: color 0.15s;
}
.phk-dash:hover { color: #fff; }
.phk-trenn { width: 1px; height: 22px; margin: 0 6px; background: rgba(255, 255, 255, 0.12); }
.phk-knopf {
    display: inline-flex; align-items: center; gap: 9px;
    height: 44px; padding: 0 10px 0 5px; border-radius: 999px;
    border: 1px solid transparent; background: none;
    color: #fff; font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer;
    transition: background 0.15s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.phk-knopf:hover, .phk.offen .phk-knopf { background: rgba(255, 255, 255, 0.06); }
.phk-knopf:active { transform: scale(0.97); }
.phk-bild { position: relative; display: inline-flex; flex: none; }
.phk-bild img { width: 32px; height: 32px; border-radius: 50%; background: #151b27; }
.phk-zahl {
    position: absolute; top: -4px; right: -7px; box-sizing: border-box;
    min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; border: 2px solid #070a0f;
    background: #09e3dc; color: #04121a; font: 700 10px/14px Inter, system-ui, sans-serif; font-style: normal; text-align: center;
    animation: phkZahl 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.phk-zahl[hidden] { display: none; }
@keyframes phkZahl { from { transform: scale(0.4); opacity: 0; } }
.phk-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phk-knopf svg { width: 14px; height: 14px; color: #8593a7; transition: transform 0.2s; }
.phk.offen .phk-knopf svg { transform: rotate(180deg); }
.phk-menue .phk-anzahl {
    margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
    background: rgba(9, 227, 220, 0.14); color: #09e3dc; font-style: normal; font-size: 0.75rem; font-weight: 700; line-height: 20px; text-align: center;
}
.phk-menue .phk-anzahl[hidden] { display: none; }

.phk-menue {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 1200;
    width: 280px; padding: 6px;
    background: #10151f; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    animation: phkRein 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
    max-height: calc(100vh - 90px); overflow-y: auto;
}
@keyframes phkRein { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.phk-menue[hidden] { display: none; }
.phk-kopf { display: flex; align-items: center; gap: 11px; padding: 10px 10px 8px; }
.phk-kopf img { width: 40px; height: 40px; border-radius: 12px; background: #151b27; flex: none; }
.phk-kopf div { min-width: 0; }
.phk-kopf b { display: block; color: #fff; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phk-kopf small { display: block; color: #8593a7; font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phk-trenner { height: 1px; background: rgba(255, 255, 255, 0.08); margin: 6px 4px; }
.phk-menue a, .phk-menue > button {
    display: flex; align-items: center; gap: 11px; width: 100%;
    height: 38px; padding: 0 10px; border-radius: 9px; border: 0; background: none;
    color: #d7dfea; font: inherit; font-size: 0.9rem; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer;
    transition: background 0.12s, color 0.12s;
}
.phk-menue a:hover, .phk-menue > button:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.phk-menue a svg, .phk-menue > button svg { width: 17px; height: 17px; color: #8593a7; flex: none; }
.phk-menue a:hover svg, .phk-menue > button:hover svg { color: #fff; }
.phk-menue .phk-admin, .phk-menue .phk-admin svg { color: #ffc94d; }
.phk-menue .phk-rot, .phk-menue .phk-rot svg { color: #f87171; }
.phk-wahl { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 10px; height: 40px; color: #8593a7; font-size: 0.84rem; }
.phk-seg { display: flex; gap: 2px; padding: 2px; border-radius: 9px; background: #05070d; border: 1px solid rgba(255, 255, 255, 0.08); }
.phk-seg button { height: 28px; padding: 0 10px; border-radius: 7px; border: 0; background: none; color: #8593a7; font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.phk-seg button.an { background: #1a2130; color: #fff; }

/* Handy/Tablet: die rechte Seite steckt im aufgeklappten Burger-Menue (common.css),
   dort wird das Profil-Menue zur ganz normalen Liste statt zum schwebenden Fenster. */
@media (max-width: 1000px) {
    .phk { width: 100%; flex-wrap: wrap; gap: 8px; }
    .phk-trenn { display: none; }
    /* Auf dem Handy wie ausgeloggt: "Dashboard" als heller Knopf, darunter das Profil */
    .phk-dash { width: 100%; height: 44px; justify-content: center; background: #fff; color: #05070d; }
    .phk-dash:hover { color: #05070d; }
    .phk-knopf { width: 100%; height: 48px; border-radius: 12px; justify-content: flex-start; border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.04); }
    .phk-name { max-width: none; }
    .phk-knopf svg { margin-left: auto; }
    .phk-menue { position: static; width: 100%; margin-top: 8px; max-height: none; box-shadow: none; animation: none; }
}
