body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #0f0f14;
    color: #e4e4e4;
}

/* NAVBAR */
.navbar {
    background: #161622;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #d12f2f;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #e4e4e4;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #d12f2f;
}

/* CONTAINER */
.container {
    width: 90%;
    margin: 40px auto;
}

/* BLOG */
.blog-post {
    background: #1a1a28;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.blog-post h2 {
    margin-top: 0;
    color: #d12f2f;
}

.date {
    font-size: 12px;
    opacity: 0.6;
}

/* FORM */
.register-info {
    max-width: 760px;
    margin-bottom: 24px;
    background: #1a1a28;
    border-left: 4px solid #d12f2f;
    border-radius: 6px;
    padding: 18px 20px;
    line-height: 1.55;
}

.register-info h2 {
    margin: 0 0 12px;
    color: #d12f2f;
}

.register-info p {
    margin: 0 0 12px;
}

.register-info p:last-child {
    margin-bottom: 0;
}

.form-box {
    display: flex;
    flex-direction: column;
    width: 300px;
    gap: 10px;
}

.register-form-box{
    margin-left: 30px;
    background: #1a1a28;
    border-radius: 6px;
    padding: 18px 20px;
    line-height: 1.55;
}

.form-box input {
    padding: 10px;
    border: none;
    border-radius: 4px;
}

.form-box input:disabled {
    opacity: 0.55;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    line-height: 1.35;
}

.checkbox-row input {
    margin-top: 3px;
}

.form-box button {
    padding: 10px;
    background: #d12f2f;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 4px;
}

.form-box button:hover {
    background: #a32121;
}

.error {
    color: #ff4c4c;
}

.success {
    color: #65d46e;
}

.success a {
    color: #ffffff;
    font-weight: 700;
    margin-left: 8px;
}



.character-creation {
    background: #1b1b25;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(0,0,0,0.5);
}

.avatar-selection {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.avatar-selection img {
    width: 120px;
    border: 3px solid transparent;
    cursor: pointer;
    border-radius: 6px;
}

.avatar-selection input:checked + img {
    border: 3px solid #c9a227;
}

.stat-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(520px, 100%);
    margin: 10px 0;
    gap: 10px;
}

.stat-row button {
    background: #3a2c1a;
    color: #c9a227;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.stat-label {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.attr-icon {
    width: 28px;
    height: 28px;
    border-radius: 5px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid #4f5964;
}

.attribute-tooltip {
    position: absolute;
    left: 0;
    top: 36px;
    width: min(560px, calc(100vw - 48px));
    max-height: 520px;
    overflow-y: auto;
    background: rgba(8,10,14,0.97);
    border: 1px solid #d4af37;
    border-radius: 7px;
    padding: 12px;
    display: none;
    z-index: 999;
    color: #f5f5f5;
    box-shadow: 0 14px 30px rgba(0,0,0,0.6);
}

.stat-label:hover .attribute-tooltip,
.stat-label:focus-within .attribute-tooltip {
    display: block;
}

.tooltip-title {
    margin-bottom: 6px;
    font-weight: 700;
    color: #d4af37;
}

.milestone-card {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 9px;
    padding: 8px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.attribute-tooltip-summary {
    margin: 8px 0 10px;
    padding: 9px;
    border: 1px solid rgba(159,201,255,0.22);
    border-radius: 6px;
    background: rgba(159,201,255,0.07);
}

.attribute-tooltip-desc {
    color: #d7dde5;
    line-height: 1.35;
    font-size: 12px;
}

.attribute-affects-title {
    margin-top: 8px;
    color: #d4af37;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.attribute-affects-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.attribute-affects-list span {
    padding: 3px 6px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 5px;
    background: rgba(0,0,0,0.28);
    color: #9fc9ff;
    font-size: 11px;
}

.milestone-card:first-of-type {
    border-top: none;
}

.milestone-card img {
    width: 34px;
    height: 34px;
    border-radius: 5px;
    object-fit: cover;
    border: 1px solid #4f5964;
}

.milestone-card.active img {
    border-color: #5fd17a;
    box-shadow: 0 0 10px rgba(95,209,122,0.35);
}

.milestone-card.inactive {
    color: #8b929a;
}

.milestone-card.inactive img {
    filter: grayscale(0.8) brightness(0.65);
}

.milestone-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.milestone-type {
    color: #d4af37;
    font-size: 12px;
}

.milestone-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
    color: #9fc9ff;
    font-size: 12px;
}

.milestone-desc {
    margin-top: 5px;
    line-height: 1.35;
    font-size: 12px;
}

.creation-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.create-btn {
    background: #6b1e1e;
    color: white;
}

.discard-btn {
    background: gray;
    padding: 10px;
    text-decoration: none;
    color: white;
}

.new-char-btn {
    display: inline-block;
    background: #6b1e1e;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    margin-bottom: 20px;
    border-radius: 6px;
}

.character-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.character-card {
    background: #1b1b25;
    padding: 20px;
    display: flex;
    gap: 20px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    align-items: center;
}

.char-avatar {
    width: 120px;
    border-radius: 6px;
}

.char-info {
    flex: 1;
}

.bar {
    height: 15px;
    background: #333;
    border-radius: 5px;
    margin: 5px 0;
    overflow: hidden;
}

.bar div {
    height: 100%;
}

.hp-bar div {
    background: #8b0000;
}

.mana-bar div {
    background: #1e3d8b;
}

.xp-bar div {
    background: #c9a227;
}

.char-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.choose-btn {
    background: #2d6b1e;
    padding: 8px;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
}

.delete-btn {
    background: #5a1a1a;
    padding: 8px;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
}

.character-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(145deg, #1a1a25, #14141c);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
    border: 1px solid #2a2a35;
}

.char-left {
    flex: 0 0 120px;
}

.char-avatar {
    width: 110px;
    border-radius: 8px;
    border: 2px solid #c9a227;
}

.char-middle {
    flex: 1;
    padding: 0 30px;
}

.char-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    opacity: 0.8;
}

.progress-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.progress-label {
    font-size: 12px;
    opacity: 0.7;
}

.progress-bar {
    position: relative;
    height: 18px;
    background: #2a2a35;
    border-radius: 6px;
    overflow: hidden;
    margin: 6px 0;
    border: 1px solid #111;
}

.progress-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.progress-bar.hp .progress-fill {
    background: linear-gradient(90deg, #7a0000, #c00000);
}

.progress-bar.mana .progress-fill {
    background: linear-gradient(90deg, #001f7a, #0044c0);
}

.progress-bar.xp .progress-fill {
    background: linear-gradient(90deg, #7a5a00, #c9a227);
}

.progress-text {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    top: 50%;
    transform: translateY(-50%);
    text-shadow: 0 0 4px #000;
    pointer-events: none;
}


.char-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    text-decoration: none;
    color: white;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    transition: 0.2s;
}

.btn.choose {
    background: #2f6b1e;
}

.btn.choose:hover {
    background: #3d8c25;
}

.btn.delete {
    background: #6b1e1e;
}

.btn.delete:hover {
    background: #8c2525;
}


/** TOOLTIPS **/
.wow-tooltip {
    position: absolute;
    display: none;
    background: linear-gradient(#0f0f17, #1a1a25);
    border: 1px solid #444;
    padding: 10px;
    width: 250px;
    color: #ddd;
    font-size: 13px;
    pointer-events: none;
    z-index: 9999;
    border-radius: 6px;
    margin: -10px;
    padding: 5px;
}

.wow-tooltip .title {
    font-weight: bold;
    margin-bottom: 5px;
}

.tooltip-wrapper{
    border-radius: 5px;
    margin: -5px;
    padding: 5px;
}

.wow-tooltip.tooltip-has-compare {
    width: auto;
}

.tooltip-compare-layout {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.tooltip-compare-current,
.tooltip-compare-equipped {
    width: 250px;
}

.tooltip-compare-equipped {
    border-left: 1px solid #444;
    padding-left: 10px;
}

.tooltip-compare-heading {
    margin: -2px 0 8px;
    color: #d7b46a;
    font-weight: bold;
}

.tooltip-compare-equipped-item + .tooltip-compare-equipped-item {
    margin-top: 14px;
}

.tooltip-sell-price {
    color: #d7b46a;
    margin-top: 6px;
}

.tooltip-req-too-low {
    color: #ff5b5b;
}

.tooltip-beta-info {
    color: #ff5b5b;
    margin-top: 8px;
}




/** TALENTS **/

.talent-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle, #000 30%, #0a0a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.talent-overlay.hidden {
    display: none;
}

.talent-wrapper {
    width: 1000px;
    height: 1000px;
    position: relative;
    color: white;
}

.talent-header {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.talent-arena {
    position: relative;
    width: 900px;
    height: 900px;
    margin: 0 auto;
    overflow: hidden;
    cursor: grab;
}

.talent-arena:active {
    cursor: grabbing;
}

#talent-background,
#talent-lines,
#talent-nodes {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
}

.talent-node {
    position: absolute;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: radial-gradient(circle at 30% 30%, #222, #000);

    border: 1px solid #615a45; /* Gold Kontur */

    overflow: hidden;
    cursor: pointer;
}

.talent-node img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hover Effekt */
.talent-node:hover {
    transform: scale(1.1);
    box-shadow:
        0 0 15px rgba(255,215,0,0.9),
        0 0 30px rgba(255,215,0,0.5);
}

/* Locked Zustand */
.talent-node.locked {
    filter: grayscale(100%) brightness(0.42);
    border-color: #555;
    box-shadow: inset 0 0 12px rgba(0,0,0,0.9);
    cursor: not-allowed;
}

.talent-node.locked::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    pointer-events: none;
}

/* Aktiv gelernt */
.talent-node.active {
    border-color: #00ffcc;
    box-shadow:
        0 0 10px #00ffcc,
        0 0 25px #00ffcc;
}


.talent-header {
    z-index: 10;
    position: relative;
}

#talent-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;  /* WICHTIG */
    z-index: 1;
}

#talent-background {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#talent-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

#talent-nodes {
    position: absolute;
    z-index: 3;
}

.talent-tooltip {
    position: absolute;
    background: rgba(0,0,0,0.9);
    color: white;
    width: 260px;
    padding: 9px 11px;
    border: 1px solid #d4af37;
    border-radius: 6px;
    font-size: 13px;
    pointer-events: none;
    z-index: 6;
    white-space: normal;
    box-shadow: 0 10px 24px rgba(0,0,0,0.55);
}

.talent-tooltip-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.talent-tooltip-head strong:last-child {
    color: #aaa;
}

.talent-tooltip-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
    color: #9fc9ff;
    font-size: 12px;
}

.talent-tooltip-desc {
    margin-top: 8px;
    line-height: 1.35;
}

.talent-tooltip-points {
    margin-top: 8px;
    color: #ddd;
}

.hidden {
    display: none;
}

.lightning-line {
    filter: drop-shadow(0 0 6px #00ffff)
            drop-shadow(0 0 12px #00ffff)
            drop-shadow(0 0 20px #00ffff);
}


.points-overlay {
    position: absolute;
    bottom:0px;
    right: 1px;
    z-index: 3;
    width: 100%;
    text-align: right;
    font-size: 6px;
    letter-spacing: -1px;
    color: white;
    text-shadow: 1px 1px 2px black; /* Damit man es auf jedem Hintergrund lesen kann */
    pointer-events: none; /* Klicks gehen durch den Text hindurch aufs Icon */
}

.lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f5d16b;
    font-size: 13px;
    text-shadow: 0 0 4px #000, 0 0 8px #000;
    pointer-events: none;
    z-index: 2;
}

.talent-locked-text {
    color: #ffcf70;
}





