/* ==== Basistypografie ==== */
body {
    min-height: 100vh;
    background: linear-gradient(130deg, #130e09 0%, #1a140c 80%, #100b06 100%);
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #e2cfa4;
    overflow-x: hidden;
}

h1 { font-size: 2em; color: #e6b13a; }
h2 { font-size: 1.3em; color: #e6b13a; }
h3 { font-size: 1.08em; color: #e6b13a; }

/* ==== Links und Buttons global ==== */
a, a:visited {
    color: #e6b13a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s;
}
a:hover {
    color: #ffe7a4;
    text-decoration: none;
}
.login-links {
    color: #cab98d;
}

.login-links a {
    color: #e6b13a;
    font-weight: bold;
    text-decoration: underline;
}
.login-links a:hover {
    color: #ffe7a4;
}

.admin-btn, .member-btn {
    margin-top: 0.3em;
    padding: 0.5em 0.5em;
    background: linear-gradient(90deg, #634215 0%, #b98a3e 100%);
    border: none;
    border-radius: 8px;
    color: #211400;
    font-size: 1.15em;
    font-weight: bold;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 2px 16px #b98a3e10;
    transition: background 0.16s, box-shadow 0.14s, transform 0.11s;
    text-shadow: 0 1px 5px #0008;
}
.admin-btn:hover, .member-btn:hover {
    background: linear-gradient(90deg, #372910 0%, #a1792f 100%);
    box-shadow: 0 4px 18px #b98a3e22;
    color: #fff9e2;
    transform: translateY(-2px) scale(1.01);
}

/* ==== Topbar für Admin/Member ==== */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #18120a;
    padding: 18px 36px 10px 36px;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    border-bottom: 1px solid #7e5b2633;
    margin-bottom: -15px;
    box-shadow: 0 2px 8px #0006;
}
.topbar-title {
    font-size: 1.8em;
    font-weight: 700;
    color: #e6b13a;
    letter-spacing: 1px;
    text-shadow: 0 1px 12px #0007;
}
.topbar-links {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 1.12em;
}
.topbar-links a {
    color: #cab98d;
    text-decoration: none;
    transition: color 0.15s;
    padding: 0.15em 0.5em;
    border-radius: 4px;
}
.topbar-links a:hover {
    color: #ffe7a4;
    background: #1a140c;
}
.topbar-links span {
    color: #7e5b26;
}

/* ==== Login/Register ==== */
.login-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0;
    background: radial-gradient(circle at 60% 20%, #a6844255 0, transparent 40%),
                radial-gradient(circle at 30% 80%, #291a0e55 0, transparent 55%),
                linear-gradient(120deg, #120d08 0%, #20160c 60%, #100b06 100%);
    filter: blur(10px);
}

.login-container {
    position: relative;
    z-index: 1;
    max-width: 410px;
    margin: 7vh auto;
    background: rgba(27,19,7,0.98);
    border-radius: 18px;
    box-shadow: 0 10px 32px #1a100844, 0 0 0 2px #7e5b2633;
    padding: 2.8em 2.4em 2em 2.4em;
    backdrop-filter: blur(4px);
    text-align: center;
}

.login-logo {
    display: block;
    margin: 0 auto 2.1em auto;
    width: 410px;
    max-width: 65vw;
    filter: drop-shadow(0 8px 42px #e6b13a33) brightness(1.09);
    border-radius: 10px;
    background: none;
    opacity: 0.96;
}
.login-logo:hover {
    transform: scale(1.03) rotate(-0.5deg);
    filter: drop-shadow(0 16px 56px #e6b13a66) brightness(1.13);
    opacity: 1;
    cursor: pointer;
}

.wow-title {
    margin: 0 0 1.6em 0;
    font-size: 1.55em;
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: 0.01em;
    text-align: center;
    color: #e6b13a;
}

.login-container h1 {
    margin: 0 0 1.1em 0;
    font-size: 2em;
    font-weight: 700;
}
.wow-gradient {
    color: #e6b13a;
}

.login-container h2 {
    margin-bottom: 0.5em;
    font-size: 1.5em;
    font-weight: 700;
    color: #e6b13a;
    letter-spacing: 0.03em;
    text-shadow: 0 6px 20px #1c1d1e, 0 2px 4px #0008, 0 1px 0 #fff2;
}

.login-container form {
    display: flex;
    flex-direction: column;
    gap: 1.1em;
    margin-bottom: 1em;
}

.input-group {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    margin-bottom: 1.2em;
}

.input-group input[type="password"],
.input-group input[type="text"] {
    flex: 1 1 auto;
    width: 100%;
    padding-right: 44px; /* Platz für das Icon */
    padding-left: 1em;
    height: 48px;
    font-size: 1em;
    border: 2px solid #e6b13a;
    border-radius: 8px;
    background: #18120a;
    color: #ffe7a4;
    box-sizing: border-box;
    outline: none;
    transition: border 0.17s, box-shadow 0.15s, background 0.14s;
}

.input-group input[type="password"]:focus,
.input-group input[type="text"]:focus {
    border: 2px solid #ffe7a4;
    background: #1a140c;
}

.input-group .pw-toggle {
    position: absolute;
    right: 0.7em;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    height: 28px;
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.83;
    transition: opacity 0.13s;
}
.input-group .pw-toggle:hover {
    opacity: 1;
}
.input-group .pw-toggle img {
    height: 24px;
    width: 24px;
    object-fit: contain;
    filter: brightness(1.2) drop-shadow(0 0 3px #0008);
}


.login-container input[type="text"],
.login-container input[type="password"],
.login-container input[type="email"] {
    padding: 0.9em 1em;
    border-radius: 8px;
    border: 1.6px solid #e6b13a;
    background: #18120a;
    color: #ffe7a4;
    font-size: 1.07em;
    box-shadow: 0 2px 8px #0002;
    outline: none;
    transition: border 0.17s, box-shadow 0.15s, background 0.14s;
}
.login-container input[type="text"]:focus,
.login-container input[type="password"]:focus,
.login-container input[type="email"]:focus {
    border: 1.6px solid #ffe7a4;
    background: #1a140c;
    box-shadow: 0 2px 16px #b98a3e99;
}
.pw-row input[type="password"], .pw-row input[type="text"] {
    flex: 1;
    margin-right: 0;
}

.login-btn {
    margin-top: 0.3em;
    padding: 0.92em 0;
    background: linear-gradient(90deg, #634215 0%, #b98a3e 100%);
    border: none;
    border-radius: 8px;
    color: #211400;
    font-size: 1.15em;
    font-weight: bold;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 2px 12px #b98a3e15;
    transition: background 0.14s, box-shadow 0.11s, transform 0.11s;
    text-shadow: 0 1px 5px #0008;
}
.login-btn:hover, .login-btn:focus {
    background: linear-gradient(90deg, #372910 0%, #a1792f 100%);
    box-shadow: 0 4px 18px #b98a3e25;
    color: #fff9e2;
    transform: translateY(-2px) scale(1.008);
}

/* PW-Row für Login-/Register-Felder */
.pw-row {
    display: flex;
    align-items: center;
    background: #211a13;
    border: 2px solid #e6b13a;
    border-radius: 8px;
    margin-bottom: 1.2em;
}
.pw-row input[type="password"],
.pw-row input[type="text"] {
    flex: 1;
    border: none;
    background: transparent;
    padding: 1em;
    color: #e2cfa4;
    font-size: 1.05em;
    border-radius: 8px 0 0 8px;
}
.pw-toggle {
    background: transparent;
    border: none;
    font-size: 1.15em;
    color: #e6b13a;
    padding: 0 1em;
    cursor: pointer;
}
/* Status-Overlay */
.status-overlay {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 50%;
    top: 40px;
    transform: translateX(-50%) scale(1);
    min-width: 300px;
    max-width: 90vw;
    padding: 1.2em 2em;
    border-radius: 16px;
    background: #21200f;
    color: #ffe690;
    font-size: 1.2em;
    font-weight: 600;
    box-shadow: 0 6px 32px #0007;
    text-align: center;
    letter-spacing: 0.02em;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s, transform 0.36s cubic-bezier(.51,1.8,.49,1.17);
}
.status-overlay.success { color: #212; background: #e6f7d6cc; }
.status-overlay.error   { color: #ffd1d1; background: #6a2727cc; }
.status-overlay.visible {
    display: block;
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
}
.status-overlay.hide {
    opacity: 0;
    transform: translateX(-50%) scale(0.92);
}

.status-widget {
    position: initial; /* oder fixed wenn gewünscht */
    margin-top: 1.5em;
    max-width: 410px;
    min-width: 220px;
    background: linear-gradient(110deg, #2d230f 65%, #8c6d29 100%);
    color: #f0e9c7;
    border-radius: 10px;
    box-shadow: 0 2px 18px #000a, 0 0 0 2px #222 inset;
    padding: 0.7em 1.2em 0.7em 1em;
    display: flex;
    align-items: center;
    font-size: 1.08em;
    z-index: 9001;
    border: 1.5px solid #b59446;
    letter-spacing: 0.01em;
    gap: 0.9em;
    justify-content: space-between;
}

.status-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid #776129;
    background: #4caf50;
    box-shadow: 0 0 8px #4caf50bb;
    margin-right: 0.7em;
    flex-shrink: 0;
}
.status-dot.offline {
    background: #ff5555;
    box-shadow: 0 0 8px #ff5555bb;
}

.status-server {
    flex: 1;
    text-align: center;
    font-weight: 600;
    color: #ffecb3;
    white-space: nowrap;
    font-size: 1.07em;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 1px #000b;
}

.status-value {
    min-width: 60px;
    text-align: right;
    font-weight: bold;
    font-size: 1.05em;
    color: #4caf50;
    text-shadow: 0 1px 1px #000b;
}
.status-value.offline {
    color: #ff5555;
}

@media (max-width: 600px) {
    .status-widget {
        max-width: 100%;
        min-width: 0;
        padding: 0.6em 0.5em;
        font-size: 0.97em;
    }
    .status-server {
        font-size: 0.97em;
    }
    .status-value {
        min-width: 40px;
        font-size: 1em;
    }
}




/* ==== Memberbereich und Panel ==== */
.form-container:not(.login-container) {
    background: #19110a;
    padding: 2.5em 2.5em 2em 2.5em;
    border-radius: 18px;
    box-shadow: 0 8px 32px #0009;
    max-width: 900px;
    margin: 2em auto;
    text-align: left;
}

.panel-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1em;
    gap: 12px;
    flex-wrap: wrap;
}
.panel-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6em;
    font-size: 1em;
}

/* Charakter-Grid */
.char-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2em;
    margin-top: 1.5em;
}
@media (max-width: 700px) {
    .char-list {
        grid-template-columns: 1fr;
        gap: 1em;
    }
}
.char-box {
    background: #211a13;
    border-radius: 16px;
    box-shadow: 0 4px 16px #0007;
    padding: 1.4em 1.2em 1.1em 1.2em;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
}
.char-box:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 10px 28px #b98a3e22;
}
.char-header {
    display: flex;
    align-items: center;
    margin-bottom: 1em;
    background: #1a140c;
    border-radius: 8px 8px 0 0;
    padding: 0.2em 0.5em;
    font-size: 1.08em;
}
.char-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1d170f;
    box-shadow: 0 2px 8px #0007;
    border: 2px solid #b98a3e44;
    object-fit: cover;
}
.faction-icon {
    width: 28px;
    height: 28px;
    margin-left: 0.5em;
    border-radius: 50%;
    background: #1a1e28;
    border: 2px solid #b98a3e44;
    object-fit: cover;
    box-shadow: 0 2px 7px #0007;
}
.char-edit-form {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    margin-left: 0.5em;
}
.char-name {
    font-size: 1.08em;
    border: 1.5px solid #7e5b26;
    border-radius: 5px;
	margin-left: 11px;
    padding: 3.5px 11px;
    background: #18120a;
    color: #ffe7a4;
    font-weight: bold;
    outline: none;
    width: 95%;
    transition: border-color 0.2s;
}
.char-name:focus {
    border-color: #e6b13a;
    background: #23190c;
}
.save-btn {
    background: #b98a3e;
    color: #211400;
    border: none;
    border-radius: 5px;
    padding: 0 10px 4px 9px;
    font-size: 1.18em;
    cursor: pointer;
    margin-left: 3px;
    display: flex;
    align-items: center;
    transition: background 0.17s;
}
.save-btn:hover {
    background: #a1792f;
    color: #fff;
}
.char-info {
    font-size: 0.98em;
    line-height: 1.6em;
    margin-top: 0.2em;
    margin-left: 0.4em;
    color: #cab98d;
}

/* Modal (Overlay für Accountbearbeitung etc.) */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(16,11,4,0.88);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}
.modal-content {
    background: #18120a;
    padding: 2.2em 2.2em 1.7em 2.2em;
    border-radius: 14px;
    min-width: 320px;
    position: relative;
    box-shadow: 0 12px 32px #000a;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.close {
    position: absolute;
    top: 18px;
    right: 22px;
    color: #cab98d;
    font-size: 1.5em;
    cursor: pointer;
    transition: color 0.2s;
}
.close:hover { color: #ffe7a4; }
.modal-content h2 { margin-top: 0; color: #e6b13a; }

.modal-content label {
    color: #cab98d;
    font-weight: 500;
    margin-top: 0.6em;
    display: block;
}
.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="password"] {
    background: #130e09;
    border: 1.5px solid #7e5b26;
    color: #ffe7a4;
    border-radius: 7px;
    padding: 0.7em;
    margin-bottom: 1.2em;
    font-size: 1em;
    width: 100%;
    transition: border-color 0.17s;
    box-sizing: border-box;
}
.modal-content input:focus {
    border-color: #e6b13a;
    background: #1a140c;
}
.modal-content button[type="submit"] {
    background: linear-gradient(90deg, #634215 0%, #b98a3e 100%);
    color: #211400;
    border: none;
    border-radius: 7px;
    padding: 10px 5%;
    font-size: 1.08em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.14s;
    margin: 10px 0 0 0;
}
.modal-content button[type="submit"]:hover {
    background: linear-gradient(90deg, #372910 0%, #a1792f 100%);
    color: #fff9e2;
}

.message {
    background: #1d170f;
    color: #e6b13a;
    padding: 1em 1.5em;
    border-radius: 8px;
    margin: 1.5em auto 0.5em auto;
    text-align: center;
    font-weight: 500;
    max-width: 700px;
    border: 1px solid #7e5b26;
    box-shadow: 0 2px 8px #b98a3e14;
}
.message.error { color: #ff9999; border-color: #8c3e2e; background: #2b1511; }
.message.success { color: #bde57b; border-color: #74a338; background: #1a220f; }

/* == Responsive Anpassung == */
@media (max-width: 500px) {
    .form-container, .login-container {
        max-width: 98vw;
        padding: 1.2em 0.6em;
    }
    .login-bg { filter: blur(12px); }
    .login-container h1 { font-size: 1.3em; }
}
