/* ===== GRUNDLAGEN ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(90deg, #1a1a1a 0%, #0a0a0a 20%, #0a0a0a 80%, #1a1a1a 100%);
    font-family: 'Rajdhani', sans-serif;
    min-height: 100vh;
    padding: 40px;
}

/* ===== HAUPTLAYOUT ===== */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
}

.left-column {
    width: 20%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.right-column {
    width: 80%;
}

/* ===== LOGO ===== */
.logo {
    width: 100%;
    margin-bottom: 40px;
}

.logo img {
    width: 100%;
    height: auto;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 30px;
    box-shadow: 0 0 30px #00FF00;
    display: block;
}

/* ===== BUTTONS ===== */
.nav-btn {
    background: transparent;
    border: 2px solid #00FF00;
    color: #00FF00;
    padding: 10px 15px;
    border-radius: 40px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    letter-spacing: 1px;
    text-transform: uppercase;
    width: 100%;
    text-align: center;
    text-decoration: none;  /* ← NEU */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-btn:hover {
    background: cyan;
    color: black;
    border-color: cyan;
    box-shadow: 0 0 25px #00FF00;
    transform: scale(1.02);
}

.nav-btn[data-active="true"] {
    background: cyan;
    color: black;
    border-color: cyan;
    box-shadow: 0 0 25px cyan;
}

/* ===== TRENNLINIEN ===== */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, cyan, transparent);
    margin: 10px 0;
}

/* ===== ÜBERSCHRIFT ===== */
.title {
    text-align: center;
    margin-bottom: 40px;
}

.title h1 {
    font-size: 4rem;
    font-family: 'Orbitron', sans-serif;
    color: cyan;
    text-shadow: 
        0 0 10px #00FF00,
        0 0 20px #00FF00,
        0 0 40px #00FF00,
        0 0 80px #00FF00;
    letter-spacing: 4px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px #00FF00, 0 0 20px #00FF00, 0 0 30px #00FF00; }
    to { text-shadow: 0 0 20px #00FF00, 0 0 40px #00FF00, 0 0 60px #00FF00; }
}

/* ===== CONTENT-BOX ===== */
.content-box {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00FF00;
    border-radius: 16px;
    padding: 40px;
    color: #e0e0e0;
    backdrop-filter: blur(2px);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
    min-height: 400px;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.5px;
}

/* ===== START-TEXT ===== */
.start-text {
    text-align: center;
}

.start-text .content-headline {
    font-size: 2.2rem;
    color: cyan;
    text-shadow: 0 0 10px cyan, 0 0 20px cyan;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.start-text p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 25px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.start-text .closing {
    color: cyan;
    text-shadow: 0 0 10px cyan;
    font-size: 1.5rem;
    margin-top: 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    padding-top: 20px;
}

/* ===== FORMULAR STYLES ===== */
.bewerbungs-form {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #00FF00;
    margin-bottom: 5px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #00FF00;
    border-radius: 4px;
    color: white;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: cyan;
    box-shadow: 0 0 5px cyan;
}

.action-btn {
    background: transparent;
    border: 2px solid #00FF00;
    color: #00FF00;
    padding: 10px 30px;
    border-radius: 40px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    width: 100%;
    margin-top: 20px;
}

.action-btn:hover {
    background: cyan;
    color: black;
    border-color: cyan;
    box-shadow: 0 0 25px #00FF00;
}

/* ===== VORSTELLUNG LAYOUT ===== */
.vorstellung-layout {
    display: flex;
    gap: 30px;
}

.vorstellung-form {
    flex: 1;
    min-width: 300px;
}

.vorstellung-preview {
    flex: 1;
    min-width: 300px;
}

.preview-card-small {
    width: 100%;
    aspect-ratio: 9/5;
    background: #0f1217;
    border: 3px solid #00FF00;
    border-radius: 10px;
    box-shadow: 0 0 20px #00FF00;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Courier New', monospace;
}

/* ===== FARBAUSWAHL ===== */
.color-row {
    display: flex;
    gap: 3px;
    margin: 10px 0 20px;
    flex-wrap: wrap;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.color-dot:hover {
    transform: scale(1.2);
}

.color-dot.selected {
    border-color: white;
    box-shadow: 0 0 8px currentColor;
}

/* ===== HINTERGRUNDAUSWAHL ===== */
.bg-row {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 3px;
    margin: 10px 0;
}

.bg-btn-small {
    padding: 4px 0;
    background: #1a1a1a;
    border: 1px solid #00FF00;
    color: #00FF00;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
    text-align: center;
}

.bg-btn-small:hover {
    background: #00FF00;
    color: black;
}

.bg-btn-small.selected {
    background: #00FF00;
    color: black;
}

/* ===== VORSCHAU BEREICH ===== */
.preview-area {
    margin-top: 20px;
    padding: 15px;
    background: #0f1217;
    border: 1px solid #00FF00;
    border-radius: 4px;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    color: #0ff;
    font-size: 0.9rem;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.status-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
    font-weight: bold;
}

.status-message.success {
    background: #00ff9d20;
    border: 1px solid #00ff9d;
    color: #00ff9d;
}

.status-message.error {
    background: #ff004020;
    border: 1px solid #ff0040;
    color: #ff0040;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
    }
    .left-column, .right-column {
        width: 100%;
    }
    .title h1 {
        font-size: 3rem;
    }
}

@media (max-width: 900px) {
    .vorstellung-layout {
        flex-direction: column;
    }
}
/* ===== VORSCHAU-KARTE (aus der alten Vorstellung) ===== */
.preview-card {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 9/5;
    background: #0f1217;
    border: 3px solid #00FF00;
    border-radius: 20px;
    padding: 15px 20px;
    box-shadow: 0 0 30px #00FF00;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
    background-size: cover;
    background-position: center;
    margin: 20px auto;
}

.preview-header-top {
    text-align: center;
    font-size: 2rem;
    color: inherit;
    text-shadow: 0 0 10px currentColor;
    margin-bottom: 5px;
    opacity: 0.9;
    height: 35px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 35px;
}

.preview-header-name {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: inherit;
    text-shadow: 0 0 15px currentColor;
    margin-bottom: 10px;
    border-bottom: 2px solid currentColor;
    padding-bottom: 5px;
    height: 50px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 50px;
}

.preview-main {
    display: flex;
    flex: 1;
    gap: 20px;
    min-height: 0;
    height: 280px;
    margin-top: 5px;
}

.preview-image {
    width: 280px;
    height: 280px;
    border: 3px solid currentColor;
    border-radius: 30px;
    overflow: hidden;
    flex-shrink: 0;
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    color: white;
    height: 280px;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.5;
    overflow-y: auto;
    height: 260px;
    padding-right: 10px;
    color: white;
    white-space: pre-wrap;
    word-wrap: break-word;
    border-left: 2px solid currentColor;
    padding-left: 15px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 0 8px 8px 0;
}

.twitch-note {
    text-align: center;
    color: inherit;
    font-size: 1.1rem;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px dashed currentColor;
    font-family: 'Courier New', monospace;
    opacity: 0.9;
    height: 30px;
    line-height: 30px;
}
/* ===== FARBEN FÜR INNERE ELEMENTE ===== */
.preview-header-top,
.preview-header-name,
.twitch-note {
    transition: color 0.3s ease;
}

.preview-header-name,
.twitch-note,
.preview-image,
.about-text {
    transition: border-color 0.3s ease;
}
/* ===== FARBAUSWAHL-BUTTONS ===== */
.color-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0 2px;
    display: inline-block;
}

.color-btn:hover {
    transform: scale(1.2);
}

.color-btn.selected {
    border-color: white;
    box-shadow: 0 0 10px currentColor;
}

/* ===== HINTERGRUND-BUTTONS ===== */
.bg-btn {
    padding: 4px 8px;
    background: #1a1a1a;
    border: 1px solid #00FF00;
    color: #00FF00;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    text-align: center;
    display: inline-block;
    margin: 2px;
}

.bg-btn:hover {
    background: #00FF00;
    color: black;
}

.bg-btn.selected {
    background: #00FF00;
    color: black;
}

/* ===== FARBAUSWAHL-CONTAINER ===== */
.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin: 10px 0;
}

/* ===== HINTERGRUND-CONTAINER ===== */
.bg-options {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin: 10px 0;
}
/* ===== FORMULAR-FELDER WIE IN DER ALTEN SEITE ===== */
#streamerForm input,
#streamerForm select,
#streamerForm textarea {
    width: 100%;
    padding: 6px 10px;        /* Von 10px auf 6px */
    margin-bottom: 12px;      /* Weniger Abstand */
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #00FF00;
    border-radius: 4px;
    color: white;
    font-family: 'Rajdhani', sans-serif;
}

#streamerForm textarea {
    min-height: 80px;         /* Etwas kleiner */
    resize: none;
}

#streamerForm label {
    color: #00FF00;
    display: block;
    margin-bottom: 5px;
    font-family: 'Orbitron', sans-serif;
}

#streamerForm button {
    background: transparent;
    border: 2px solid #00FF00;
    color: #00FF00;
    padding: 8px 16px;        /* Von 10px 20px auf 8px 16px */
    border-radius: 40px;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
}

#streamerForm button:hover {
    background: #00FF00;
    color: black;
}

/* ===== ZEICHENZÄHLER ===== */
.char-counter {
    text-align: right;
    color: cyan;
    font-size: 0.9rem;
    margin-top: -10px;
    margin-bottom: 10px;
}
/* ===== BEWERBUNGS-FORMULAR ===== */
.bewerbungs-form {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.bewerbungs-form .content-headline {
    color: cyan;
    text-shadow: 0 0 10px cyan;
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-align: center;
}

.bewerbungs-form .form-hinweis {
    color: #00FF00;
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-align: center;
}

.bewerbungs-form .form-beschreibung {
    margin-bottom: 30px;
    line-height: 1.6;
    color: #e0e0e0;
    text-align: center;
}

.bewerbungs-form .form-group {
    margin-bottom: 25px;
}

.bewerbungs-form label {
    display: block;
    color: #00FF00;
    margin-bottom: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
}

.bewerbungs-form input,
.bewerbungs-form textarea {
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #00FF00;
    border-radius: 8px;
    color: white;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
}

.bewerbungs-form input:focus,
.bewerbungs-form textarea:focus {
    outline: none;
    border-color: cyan;
    box-shadow: 0 0 10px cyan;
}

.bewerbungs-form .form-actions {
    text-align: center;
    margin-top: 30px;
}

.bewerbungs-form .action-btn {
    background: transparent;
    border: 2px solid #00FF00;
    color: #00FF00;
    padding: 12px 40px;
    border-radius: 40px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.bewerbungs-form .action-btn:hover {
    background: cyan;
    color: black;
    border-color: cyan;
    box-shadow: 0 0 25px #00FF00;
    transform: scale(1.02);
}
/* ===== CHANNEL-LISTE ===== */
.channel-info {
    text-align: left;
}

.channel-headline {
    color: cyan;
    text-shadow: 0 0 10px cyan;
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-align: center;
}

.channel-subhead {
    color: #00FF00;
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.channel-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
}

.channel-section:last-child {
    border-bottom: none;
}

.channel-section h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: cyan;
    text-shadow: 0 0 10px cyan;
    font-family: 'Orbitron', sans-serif;
}

.channel-item {
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 2px solid rgba(0, 255, 0, 0.3);
}

.channel-item .highlight {
    display: block;
    font-size: 1.3rem;
    color: #00FF00;
    text-shadow: 0 0 5px #00FF00;
    margin-bottom: 5px;
    font-family: 'Orbitron', sans-serif;
}

.channel-item p {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #e0e0e0;
    margin: 0;
}
/* ===== STERNE-RATING ===== */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 2rem;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #00FF00;
    text-shadow: 0 0 10px #00FF00;
}
/* ===== CALLBACK-SEITE ===== */
.callback-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.callback-container {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.callback-logo {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 30px;
}

.callback-logo img {
    width: 100%;
    height: auto;
}

.status-box {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00FF00;
    border-radius: 16px;
    padding: 30px;
    color: white;
}

.status-box .status-message {
    margin: 15px 0;
    line-height: 1.6;
}

.loader {
    border: 3px solid rgba(0, 255, 0, 0.3);
    border-top: 3px solid #00FF00;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin: 20px auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.login-btn {
    background: transparent;
    border: 2px solid #00FF00;
    color: #00FF00;
    padding: 15px 20px;
    border-radius: 40px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    letter-spacing: 1px;
    text-transform: uppercase;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 10px;
}

.login-btn:hover {
    background: cyan;
    color: black;
    border-color: cyan;
    box-shadow: 0 0 25px #00FF00;
    transform: scale(1.02);
}
/* ===== 403-ZUGRIFF VERWEIGERT ===== */
.denied-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.denied-container {
    max-width: 600px;
    margin: 50px auto;
    text-align: center;
}

.denied-logo {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 30px;
}

.denied-logo img {
    width: 100%;
    height: auto;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 30px;
    box-shadow: 0 0 30px #00FF00;
    display: block;
}

.denied-box {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #ff3333;
    border-radius: 16px;
    padding: 40px;
    color: white;
    backdrop-filter: blur(2px);
    box-shadow: 0 0 30px rgba(255, 51, 51, 0.3);
    animation: pulseRed 2s ease-in-out infinite;
}

.denied-box h2 {
    color: #ff3333;
    text-shadow: 0 0 10px #ff3333;
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.denied-box p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #e0e0e0;
}

.denied-box .back-btn {
    background: transparent;
    border: 2px solid cyan;
    color: cyan;
    padding: 12px 30px;
    border-radius: 40px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    text-decoration: none;
    display: inline-block;
}

.denied-box .back-btn:hover {
    background: cyan;
    color: black;
    box-shadow: 0 0 25px cyan;
    transform: scale(1.02);
}

@keyframes pulseRed {
    0% { box-shadow: 0 0 30px rgba(255, 51, 51, 0.3); }
    50% { box-shadow: 0 0 60px rgba(255, 51, 51, 0.7); }
    100% { box-shadow: 0 0 30px rgba(255, 51, 51, 0.3); }
}
/* ===== ZWEI VORSCHAU-KARTEN ===== */
.visible-preview {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 9/5;
    margin: 20px auto;
}

.render-preview {
    /* Styles bleiben gleich, nur durch left:-9999px unsichtbar */
    background: #0f1217;
    border: 3px solid #00FF00;
    border-radius: 20px;
    padding: 15px 20px;
    box-shadow: 0 0 30px #00FF00;
    display: flex;
    flex-direction: column;
    background-size: cover;
    background-position: center;
}

/* Für kleine Bildschirme */
@media (max-width: 1000px) {
    .visible-preview {
        width: 100%;
        height: auto;
    }
}
.connection-required {
    text-align: center;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    border: 2px dashed cyan;
    margin-top: 20px;
}
.connection-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: cyan;
}
.connection-required h3 {
    color: cyan;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 15px;
}
.connection-required p {
    color: #e0e0e0;
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.twitch-connect-btn {
    background: #9146FF;
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 40px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px #9146FF;
}
.twitch-connect-btn:hover {
    background: #772ce8;
    transform: scale(1.02);
    box-shadow: 0 0 25px #9146FF;
}
.connection-note {
    margin-top: 20px;
    color: #888;
    font-size: 0.9rem;
}
.audio-btn {
    background: transparent;
    border: 1.5px solid cyan;
    color: cyan;
    padding: 8px 25px;
    border-radius: 40px;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}
.audio-btn:hover {
    background: cyan;
    color: black;
}
.audio-btn.playing {
    background: cyan;
    color: black;
}
.play-icon {
    margin-right: 5px;
}
/* ===== VISION BUTTON ===== */
.vision-section {
    margin-bottom: 30px;
    text-align: center;
}
.audio-btn {
    background: transparent;
    border: 2px solid cyan;
    color: cyan;
    padding: 12px 40px;
    border-radius: 40px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px cyan;
}
.audio-btn:hover {
    background: cyan;
    color: black;
}
.audio-btn.playing {
    background: cyan;
    color: black;
}
.play-icon {
    margin-right: 8px;
}
/* ===== BÜRGERPROFIL ===== */

.citizen-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;

    padding-bottom: 30px;
    margin-bottom: 30px;

    border-bottom: 1px solid rgba(0, 255, 255, 0.25);
}


/* ===== PROFIL LINKS ===== */

.citizen-profile-left {
    display: flex;
    align-items: center;
    gap: 25px;
    text-align: left;
}

.citizen-profile-avatar {
    width: 120px;
    height: 120px;

    object-fit: cover;
    border-radius: 50%;

    border: 2px solid cyan;

    box-shadow:
        0 0 8px rgba(0, 255, 255, 0.5),
        0 0 18px rgba(0, 255, 0, 0.15);

    flex-shrink: 0;
}

.citizen-profile-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: cyan;

    margin-bottom: 8px;

    text-shadow:
        0 0 6px rgba(0, 255, 255, 0.4);
}

.citizen-profile-id {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: #00FF00;
    letter-spacing: 1px;
}


/* ===== PROFIL RECHTS ===== */

.citizen-profile-right {
    text-align: left;

    display: flex;
    flex-direction: column;
    gap: 12px;

    font-size: 1.2rem;
}

.citizen-profile-right span {
    color: #888;
    display: inline-block;
    min-width: 150px;
}

.status-active {
    color: #00FF00;
    text-shadow: 0 0 6px rgba(0, 255, 0, 0.4);
}

.status-deported {
    color: #ff5555;
    text-shadow: 0 0 6px rgba(255, 85, 85, 0.4);
}


/* ===== UNTERER PROFILBEREICH ===== */

.citizen-profile-section {
    text-align: left;
}


/* ===== BÜRGERRANG ===== */

.citizen-rank-line {
    display: flex;
    align-items: center;
    gap: 18px;

    margin-bottom: 32px;
}

.citizen-rank-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: cyan;
    white-space: nowrap;
}

.citizen-rank-stars {
    display: flex;
    gap: 5px;

    font-size: 1.8rem;
    line-height: 1;
}

.rank-star {
    color: rgba(255, 255, 255, 0.13);
    text-shadow: none;
}

.rank-star.active {
    color: #ffd54a;

    text-shadow:
        0 0 4px rgba(255, 213, 74, 0.9),
        0 0 9px rgba(255, 213, 74, 0.55),
        0 0 14px rgba(255, 213, 74, 0.25);
}


/* ===== AKTIVITÄT / ATMA ===== */

.citizen-stat {
    margin-bottom: 28px;
}

.citizen-stat-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;

    color: #888;
    text-transform: uppercase;

    letter-spacing: 1px;
    margin-bottom: 3px;
}

.citizen-stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;

    color: cyan;

    text-shadow:
        0 0 6px rgba(0, 255, 255, 0.35);
}

.citizen-stat-sub {
    margin-top: 3px;

    color: #777;
    font-size: 1rem;
}


/* ===== BÜRGERPROFIL RESPONSIVE ===== */

@media (max-width: 800px) {

    .citizen-profile-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .citizen-profile-right {
        padding-left: 0;
    }

    .citizen-rank-line {
        flex-wrap: wrap;
        gap: 10px;
    }

    .citizen-profile-avatar {
        width: 90px;
        height: 90px;
    }

    .citizen-profile-name {
        font-size: 1.4rem;
    }

    .citizen-rank-stars {
        font-size: 1.5rem;
    }
}
/* ===== PROFIL-EDITOR ===== */

.profile-editor {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    text-align: left;
}

.profile-editor-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: cyan;
    margin: 25px 0 18px;
    letter-spacing: 1px;
}

.profile-option-row {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    align-items: start;
    margin-bottom: 18px;
}

.profile-field label,
.profile-design label {
    display: block;
    color: #00FF00;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.profile-field input,
.profile-field textarea,
.profile-field select,
.birthday-fields select {
    width: 100%;
    padding: 9px 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #00FF00;
    border-radius: 6px;
    color: white;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.profile-field textarea {
    min-height: 100px;
    resize: vertical;
}

.profile-field input:focus,
.profile-field textarea:focus,
.profile-field select:focus,
.birthday-fields select:focus {
    outline: none;
    border-color: cyan;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.35);
}

/* ===== TOGGLE ===== */

.profile-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    margin-top: 24px;
}

.profile-toggle input {
    display: none;
}

.profile-toggle span {
    position: absolute;
    inset: 0;
    background: #333;
    border: 1px solid #555;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-toggle span::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 2px;
    left: 2px;
    background: #888;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.profile-toggle input:checked + span {
    background: rgba(0, 255, 255, 0.18);
    border-color: cyan;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.35);
}

.profile-toggle input:checked + span::before {
    transform: translateX(20px);
    background: cyan;
    box-shadow: 0 0 8px cyan;
}

/* ===== DEAKTIVIERTE FELDER ===== */

.profile-field.disabled {
    opacity: 0.35;
}

.profile-field.disabled input,
.profile-field.disabled textarea,
.profile-field.disabled select {
    pointer-events: none;
    filter: grayscale(1);
}

/* ===== GEBURTSTAG ===== */

.birthday-fields {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
}

/* ===== KARTENDESIGN ===== */

.profile-design {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 25px;
}

#backgroundColorOptions,
#accentColorOptions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ===== VORSCHAU ===== */

#citizenCardPreview {
    margin: 25px 0;
    width: 100%;
    overflow-x: auto;
}

/* ===== STATUS ===== */

#profileSaveStatus {
    margin-top: 12px;
    text-align: center;
    font-weight: 600;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 700px) {
    .profile-option-row {
        grid-template-columns: 48px 1fr;
        gap: 10px;
    }

    .profile-design {
        grid-template-columns: 1fr;
    }

    .birthday-fields {
        grid-template-columns: 1fr 1fr;
    }
}
/* ===== PROFIL-FARBAUSWAHL ===== */

.profile-color-option {
    width: 34px;
    height: 34px;

    padding: 0;
    margin: 0;

    border: 2px solid transparent;
    border-radius: 8px;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.profile-color-option:hover {
    transform: scale(1.08);
}

.profile-color-option.selected {
    border-color: white;

    box-shadow:
        0 0 6px rgba(255, 255, 255, 0.65),
        0 0 12px currentColor;

    transform: scale(1.08);
}
/* ===== NAVIGATIONSGRUPPEN ===== */

.nav-group {
    width: 100%;
}

/* Header ist grundsätzlich ein ganz normaler nav-btn */
.nav-group-header {
    position: relative;

    /* exakt wie .nav-btn:
       Form, Schrift, Zentrierung usw. kommen von .nav-btn */

    border-color: var(--group-color) !important;
    color: var(--group-color) !important;

    box-shadow:
        0 0 15px
        color-mix(
            in srgb,
            var(--group-color) 30%,
            transparent
        ) !important;
}

/* Text bleibt EXAKT zentriert */
.nav-group-title {
    display: block;
    width: 100%;
    text-align: center;
}

/* Pfeil separat rechts, beeinflusst Zentrierung NICHT */
.nav-group-arrow {
    position: absolute;

    right: 15px;
    top: 50%;

    transform: translateY(-50%);

    color: var(--group-color);

    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
}

/* Hover wie normaler Button, aber in Gruppenfarbe */
.nav-group-header:hover {
    background: var(--group-color) !important;
    color: black !important;
    border-color: var(--group-color) !important;

    box-shadow:
        0 0 25px
        var(--group-color) !important;
}
.nav-group-header.open {
    background: var(--group-color) !important;
    color: black !important;
    border-color: var(--group-color) !important;

    box-shadow:
        0 0 25px
        var(--group-color) !important;
}

.nav-group-header.open .nav-group-arrow {
    color: black;
}

.nav-group-header:hover .nav-group-arrow {
    color: black;
}


/* ===== AUF / ZU ===== */

.nav-group-content {
    display: none;
}

.nav-group-content.open {
    display: block;
}


/* ===== UNTERPUNKTE ===== */

/* KEIN eigenes Button-Design.
   Das sind normale .nav-btn Buttons. */

.nav-group-content .nav-btn {
    margin-top: 8px;
}


/* Abstand zwischen Kategorien */
.nav-group + .nav-group {
    margin-top: 10px;
}