/* ===== LCARS STARFLEET DESIGN SYSTEM ===== */
:root {
    --lcars-orange: #FF9900;
    --lcars-lila: #CC99FF;
    --lcars-blau: #3366FF;
    --lcars-black: #000000;
    --lcars-white: #FFFFFF;
    --lcars-gray: #444444;
}

/* ===== BASIS-RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--lcars-black);
    color: var(--lcars-white);
    font-family: 'Teko', sans-serif;
    font-size: 1.2em;
    letter-spacing: 1px;
    min-height: 100vh;
}

/* ===== HAUPTCONTAINER ===== */
.lcars-container {
    display: flex;
    min-height: 100vh;
}

/* ===== SEITENLEISTEN ===== */
.lcars-sidebar {
    width: 160px;
    background-color: var(--lcars-black);
    display: flex;
    flex-direction: column;
    padding: 25px 0;
    gap: 15px;
}

.lcars-sidebar.left {
    border-right: 4px solid var(--lcars-orange);
}

.lcars-sidebar.right {
    border-left: 4px solid var(--lcars-orange);
}

/* ===== LCARS ELEMENTE ===== */
.lcars-element {
    padding: 14px 18px;
    text-align: left;
    text-transform: uppercase;
    font-family: 'Teko', sans-serif;
    font-size: 1.3em;
    font-weight: 600;
    border: none;
    display: block;
    transition: all 0.3s ease;
    cursor: pointer;
    color: var(--lcars-black);
    margin: 5px 0;
}

.bar-left {
    border-radius: 0 30px 30px 0;
    margin-right: 15px;
}

.bar-right {
    border-radius: 30px 0 0 30px;
    margin-left: 15px;
    text-align: right;
}

.pill {
    border-radius: 30px;
    margin: 5px 15px;
    text-align: center;
}

.lcars-element:not(.lila):not(.blau) {
    background-color: var(--lcars-orange);
}

.lcars-element.lila {
    background-color: var(--lcars-lila);
}

.lcars-element.blau {
    background-color: var(--lcars-blau);
    color: var(--lcars-white);
}

.lcars-element:hover {
    filter: brightness(1.3);
    transform: translateX(8px);
}

.bar-right:hover {
    transform: translateX(-8px);
}

.header {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.user-info {
    margin-top: auto;
}

/* ===== HAUPTBEREICH ===== */
.lcars-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: var(--lcars-black);
    padding: 30px;
    gap: 30px;
}

/* ===== ALERT BAR ===== */
.lcars-alert {
    background: linear-gradient(90deg, var(--lcars-orange), var(--lcars-lila));
    color: var(--lcars-black);
    padding: 18px 25px;
    border-radius: 15px;
    font-weight: 700;
    text-align: center;
    font-size: 1.3em;
    text-transform: uppercase;
}

/* ===== WILLKOMMENSBEREICH ===== */
.welcome-section {
    text-align: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    border: 2px solid var(--lcars-orange);
}

.lcars-title {
    font-size: 3.5em;
    color: var(--lcars-white);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.highlight {
    color: var(--lcars-orange);
}

.lcars-subtitle {
    font-size: 1.8em;
    color: var(--lcars-lila);
    margin-bottom: 20px;
}

.mission-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.progress-bar {
    width: 400px;
    height: 25px;
    background-color: var(--lcars-gray);
    border-radius: 12px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--lcars-orange), var(--lcars-lila));
    border-radius: 10px;
}

/* ===== SECTION TITLES ===== */
.section-title {
    color: var(--lcars-orange);
    font-size: 2.5em;
    margin-bottom: 25px;
    text-transform: uppercase;
    text-align: center;
}

/* ===== QUICK ACTIONS ===== */
.quick-actions {
    background: rgba(17, 17, 17, 0.9);
    border-radius: 20px;
    padding: 30px;
    border: 2px solid var(--lcars-blau);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.action-card {
    background: linear-gradient(145deg, #222222, #1a1a1a);
    border: 3px solid var(--lcars-orange);
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
}

.action-card:hover {
    transform: translateY(-8px);
    border-color: var(--lcars-lila);
}

.card-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.action-card h3 {
    color: var(--lcars-orange);
    font-size: 1.8em;
    margin-bottom: 15px;
}

.action-card p {
    color: var(--lcars-white);
    opacity: 0.9;
}

/* ===== LIVE FEED ===== */
.live-feed {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--lcars-lila);
    border-radius: 15px;
    padding: 25px;
}

.feed-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feed-item {
    display: flex;
    gap: 20px;
    padding: 15px;
    border-bottom: 1px solid #333;
}

.feed-time {
    color: var(--lcars-lila);
    font-weight: 700;
    min-width: 70px;
}

/* ===== XP SECTION ===== */
.xp-section {
    margin-top: auto;
}

.xp-bar {
    background: linear-gradient(90deg, #111, #222);
    color: var(--lcars-white);
    border: 2px solid var(--lcars-blau);
    border-radius: 15px;
    padding: 20px;
}

.xp-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 700;
}

.progress-bar.xp {
    width: 100%;
    height: 20px;
}

/* ===== LCARS SYSTEM ELEMENTS ===== */
.lcars-system-status {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    background: rgba(0, 0, 0, 0.9);
    padding: 15px 30px;
    border-radius: 20px;
    border: 2px solid var(--lcars-blau);
}

.system-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.indicator-label {
    color: var(--lcars-white);
    font-size: 0.9em;
    text-transform: uppercase;
}

.indicator-bar {
    width: 100px;
    height: 12px;
    background-color: var(--lcars-gray);
    border-radius: 6px;
    overflow: hidden;
}

.indicator-fill {
    height: 100%;
    border-radius: 5px;
}

.warp .indicator-fill {
    background: linear-gradient(90deg, #FF9900, #FF3300);
}

.shields .indicator-fill {
    background: linear-gradient(90deg, #3366FF, #00CCFF);
}

.weapons .indicator-fill {
    background: linear-gradient(90deg, #CC99FF, #FF00FF);
}

/* LCARS Corner Elements */
.lcars-corner {
    position: fixed;
    width: 80px;
    height: 80px;
    border: 8px solid var(--lcars-orange);
    pointer-events: none;
}

.lcars-corner.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
    border-radius: 0 0 40px 0;
}

.lcars-corner.top-right {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
    border-radius: 0 0 0 40px;
}

.lcars-corner.bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
    border-radius: 0 40px 0 0;
}

.lcars-corner.bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
    border-radius: 40px 0 0 0;
}

/* LCARS Grid Background */
.lcars-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 153, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 153, 0, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

/* ===== PAGE STYLES ===== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 3px solid var(--lcars-orange);
    padding-bottom: 15px;
}

.profile-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: var(--lcars-orange);
    margin-bottom: 8px;
}

.lcars-input {
    width: 100%;
    padding: 12px 15px;
    background: var(--lcars-black);
    border: 2px solid var(--lcars-orange);
    border-radius: 10px;
    color: var(--lcars-white);
    font-family: 'Teko', sans-serif;
    font-size: 1.2em;
}

.stats-section {
    background: rgba(68, 68, 68, 0.2);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid var(--lcars-lila);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.user-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

/* Crew Styles */
.crews-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.crew-card {
    background: rgba(68, 68, 68, 0.3);
    border: 2px solid var(--lcars-blau);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.create-crew {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
}

/* ===== DATENBANK STYLES ===== */
.search-section {
    margin-bottom: 30px;
}

.lcars-search-input {
    background: transparent;
    border: none;
    color: var(--lcars-white);
    font-family: 'Teko', sans-serif;
    font-size: 1.4em;
    width: calc(100% - 150px);
    padding: 10px 15px;
    outline: none;
}

.database-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(68, 68, 68, 0.3);
    border: 2px solid var(--lcars-lila);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.stat-card h3 {
    color: var(--lcars-orange);
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--lcars-white);
}

/* Items Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.item-card {
    background: rgba(68, 68, 68, 0.3);
    border: 2px solid var(--lcars-blau);
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.item-card:hover {
    transform: translateY(-5px);
    border-color: var(--lcars-orange);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.item-header h3 {
    color: var(--lcars-orange);
    margin: 0;
}

.item-badge {
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: bold;
}

.item-badge.starfleet {
    background: var(--lcars-blau);
    color: white;
}

/* Detail Views */
.detail-container {
    max-width: 1000px;
    margin: 0 auto;
}

.detail-header {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.detail-image {
    width: 200px;
    height: 250px;
    background: rgba(68, 68, 68, 0.5);
    border: 3px solid var(--lcars-orange);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
}

.detail-info h1 {
    color: var(--lcars-orange);
    font-size: 2.5em;
    margin-bottom: 15px;
}

.detail-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.detail-badge {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
}

.detail-badge.rank {
    background: var(--lcars-orange);
    color: black;
}

.detail-badge.species {
    background: var(--lcars-lila);
    color: black;
}

.detail-badge.affiliation {
    background: var(--lcars-blau);
    color: white;
}

.detail-bio {
    font-size: 1.2em;
    line-height: 1.6;
}

.detail-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.detail-section {
    background: rgba(68, 68, 68, 0.2);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid var(--lcars-lila);
}

.detail-section h2 {
    color: var(--lcars-orange);
    margin-bottom: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #444;
}

.info-item label {
    color: var(--lcars-orange);
    font-weight: bold;
}

/* Quotes */
.quotes-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quote-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.quote-mark {
    font-size: 2em;
    color: var(--lcars-orange);
}

.quote-text {
    font-style: italic;
    font-size: 1.1em;
}

/* Search Results */
.search-results h3 {
    color: var(--lcars-orange);
    margin: 30px 0 15px 0;
}

.no-results {
    text-align: center;
    padding: 50px;
}

/* ===== QUIZ STYLES ===== */
.quiz-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.quiz-difficulty {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
    margin: 10px 0 5px 0;
}

.quiz-difficulty.easy {
    background: #00FF00;
    color: black;
}

.quiz-difficulty.medium {
    background: #FFA500;
    color: black;
}

.quiz-difficulty.hard {
    background: #FF4444;
    color: white;
}

.quiz-difficulty.borg {
    background: #CC00CC;
    color: white;
}

.quiz-xp {
    font-size: 0.9em;
    color: var(--lcars-lila);
    font-weight: bold;
}

/* Quiz Container */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
}

.quiz-progress {
    background: rgba(68, 68, 68, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    border: 2px solid var(--lcars-blau);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: bold;
}

.progress-bar.quiz {
    width: 100%;
    height: 15px;
    background-color: var(--lcars-gray);
    border-radius: 8px;
    overflow: hidden;
}

.progress-fill.quiz {
    background: linear-gradient(90deg, var(--lcars-orange), var(--lcars-lila));
    height: 100%;
}

/* Question Card */
.question-card {
    background: rgba(68, 68, 68, 0.3);
    border-radius: 20px;
    padding: 30px;
    border: 3px solid var(--lcars-orange);
    margin-bottom: 30px;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.difficulty-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
}

.difficulty-badge.easy {
    background: #00FF00;
    color: black;
}

.difficulty-badge.medium {
    background: #FFA500;
    color: black;
}

.difficulty-badge.hard {
    background: #FF4444;
    color: white;
}

.difficulty-badge.borg {
    background: #CC00CC;
    color: white;
}

.xp-value {
    color: var(--lcars-lila);
    font-weight: bold;
}

.question-text {
    color: var(--lcars-white);
    font-size: 1.8em;
    line-height: 1.4;
    margin-bottom: 30px;
    text-align: center;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.option-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 2px solid var(--lcars-blau);
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-card:hover {
    background: rgba(255, 153, 0, 0.2);
    border-color: var(--lcars-orange);
}

.option-letter {
    width: 40px;
    height: 40px;
    background: var(--lcars-orange);
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
}

.option-text {
    color: var(--lcars-white);
    font-size: 1.2em;
}

/* Quiz Navigation */
.quiz-navigation {
    display: flex;
    justify-content: center;
}

/* Feedback Styles */
.feedback-container {
    max-width: 700px;
    margin: 0 auto;
}

.feedback-header {
    text-align: center;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
}

.feedback-header.correct {
    background: linear-gradient(135deg, #00FF00, #00CC00);
    color: black;
}

.feedback-header.incorrect {
    background: linear-gradient(135deg, #FF4444, #CC0000);
    color: white;
}

.feedback-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.feedback-header h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.feedback-xp {
    font-size: 1.5em;
    font-weight: bold;
}

.explanation-card {
    background: rgba(68, 68, 68, 0.3);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid var(--lcars-lila);
    margin-bottom: 30px;
}

.explanation-card h3 {
    color: var(--lcars-orange);
    margin-bottom: 15px;
}

.explanation-card p {
    color: var(--lcars-white);
    font-size: 1.2em;
    line-height: 1.6;
}

.progress-update {
    background: rgba(68, 68, 68, 0.2);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid var(--lcars-blau);
}

.score-display, .xp-display {
    text-align: center;
    font-size: 1.3em;
    margin-bottom: 10px;
}

/* Results Styles */
.results-container {
    max-width: 600px;
    margin: 0 auto;
}

.results-header {
    text-align: center;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
}

.results-header.excellent {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: black;
}

.results-header.good {
    background: linear-gradient(135deg, #00FF00, #00CC00);
    color: black;
}

.results-header.average {
    background: linear-gradient(135deg, #FFA500, #FF7700);
    color: black;
}

.results-header.poor {
    background: linear-gradient(135deg, #FF4444, #CC0000);
    color: white;
}

.results-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.results-header h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.results-percentage {
    font-size: 3em;
    font-weight: bold;
}

.results-stats {
    background: rgba(68, 68, 68, 0.3);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid var(--lcars-lila);
    margin-bottom: 30px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #444;
    font-size: 1.2em;
}

.result-item.total {
    border-top: 2px solid var(--lcars-orange);
    margin-top: 10px;
    padding-top: 15px;
    font-weight: bold;
    font-size: 1.4em;
}

.total-xp {
    color: var(--lcars-lila);
    font-weight: bold;
}

.level-progress {
    margin-bottom: 30px;
}

.results-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .lcars-container {
        flex-direction: column;
    }
    
    .lcars-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding: 15px;
    }
    
    .bar-left, .bar-right {
        border-radius: 20px;
        margin: 0 5px;
        text-align: center;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .lcars-title {
        font-size: 2.2em;
    }
    
    .progress-bar {
        width: 250px;
    }
    
    .profile-container {
        grid-template-columns: 1fr;
    }
    
    .detail-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .question-text {
        font-size: 1.4em;
    }
    
    .results-actions {
        flex-direction: column;
    }
}

.detail-container {
    animation: fadeIn 0.5s ease-in;
}

.detail-header {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    margin-bottom: 30px;
    background: rgba(255, 153, 0, 0.1);
    padding: 20px;
    border-radius: 20px;
    border-left: 10px solid var(--lcars-orange);
}

.detail-image {
    font-size: 100px;
    background: var(--lcars-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    height: 200px;
}

.detail-badges {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.detail-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    color: black;
    font-size: 0.9em;
}

.detail-badge.rank { background: var(--lcars-orange); }
.detail-badge.species { background: var(--lcars-lila); }
.detail-badge.affiliation { background: var(--lcars-blau); color: white; }

.detail-bio {
    line-height: 1.6;
    font-size: 1.2em;
}

.detail-section {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--lcars-orange);
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.detail-image {
    width: 200px;
    height: 250px;
    background: var(--lcars-gray);
    border-radius: 15px;
    overflow: hidden; /* Damit das Bild nicht übersteht */
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--lcars-blau);
}

.lcars-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Bild wird passend zugeschnitten */
    filter: sepia(20%) contrast(110%); /* Optional: Ein leichter "Monitor-Look" */
}

.placeholder-icon {
    font-size: 80px;
}

.subspace-feed {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: 20px;
}

.feed-card {
    width: 100%;
    max-width: 500px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--lcars-blau);
    border-radius: 0 40px 0 40px;
    padding: 15px;
    box-shadow: 0 0 15px rgba(0, 153, 255, 0.2);
}

.feed-img {
    width: 100%;
    border: 1px solid var(--lcars-lila);
    margin: 10px 0;
}

.card-header {
    display: flex;
    justify-content: space-between;
    font-family: 'Teko';
    color: var(--lcars-orange);
    border-bottom: 2px solid var(--lcars-orange);
}

.lcars-pill-btn {
    background: var(--lcars-gray);
    border: none;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Teko';
}

.lcars-pill-btn:hover {
    background: var(--lcars-lila);
}

.log-stream {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.log-entry {
    background: rgba(255, 255, 255, 0.05);
    border-left: 15px solid var(--lcars-blau);
    padding: 10px 15px;
    font-family: 'Teko', sans-serif;
}

.log-entry.alert { border-left-color: var(--lcars-rot); }
.log-entry.success { border-left-color: var(--lcars-gelb); }
.log-entry.info { border-left-color: var(--lcars-blau); }

.log-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: var(--lcars-orange);
    margin-bottom: 5px;
}

.log-text {
    font-size: 1.2em;
    color: #fff;
    letter-spacing: 1px;
}

.log-input-container {
    margin-bottom: 30px;
}

.input-row {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

/* Foren-Container */
.forum-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
}

/* Der Thread-Balken (Einzigartiges LCARS Design) */
.thread-row {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.thread-row:hover {
    transform: translateX(10px);
}

/* Die linke abgerundete Kappe (Farbe nach Kategorie) */
.thread-category-tag {
    width: 100px;
    height: 40px;
    background: var(--lcars-lila);
    border-radius: 20px 0 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: bold;
    font-size: 0.8em;
}

/* Der Hauptteil des Threads */
.thread-main {
    flex-grow: 1;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    margin-left: 5px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: var(--lcars-orange);
    font-size: 1.2em;
    clip-path: polygon(0 0, 100% 0, 98% 100%, 0 100%); /* Schräger Abschluss */
}

/* Die Status-Anzeige rechts */
.thread-status {
    width: 150px;
    height: 40px;
    background: var(--lcars-gray);
    margin-left: 5px;
    border-radius: 0 20px 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    color: #fff;
}

/* Pulsierender Effekt für Priority-Alpha */
.priority-alpha .thread-category-tag {
    background: var(--lcars-rot);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.transmission-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: slideIn 0.4s ease-out;
}

.input-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.lcars-label {
    width: 150px;
    font-family: 'Teko', sans-serif;
    font-size: 1.2em;
    text-transform: uppercase;
}

/* Animation für das Erscheinen */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin-top: 20px;
}

.profile-avatar-frame {
    width: 200px;
    height: 200px;
    border: 4px solid var(--lcars-orange);
    border-radius: 20px;
    overflow: hidden;
    background: #000;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.data-block {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-left: 10px solid var(--lcars-blau);
    margin-bottom: 20px;
}

.data-row {
    margin-bottom: 10px;
    font-size: 1.2em;
    font-family: 'Teko', sans-serif;
}

.data-row .label { color: var(--lcars-orange); margin-right: 10px; }
.data-row .value { color: #fff; }

.rank-display {
    text-align: center;
    margin-top: 15px;
    color: var(--lcars-gelb);
}

/* XP-Balken */
.xp-container {
    flex-grow: 1;
    margin-left: 20px;
}
.xp-bar-bg {
    height: 15px;
    background: #333;
    border-radius: 10px;
    overflow: hidden;
}
.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--lcars-lila), var(--lcars-blau));
    box-shadow: 0 0 10px var(--lcars-blau);
}

/* Avatar-Interaktion */
.avatar-frame {
    position: relative;
    cursor: pointer;
}
.avatar-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(255, 153, 0, 0.8);
    color: #000;
    text-align: center;
    font-weight: bold;
    opacity: 0;
    transition: 0.3s;
}
.avatar-frame:hover .avatar-overlay {
    opacity: 1;
}

/* Medaillen (Ribbons) */
.ribbons {
    display: flex;
    gap: 10px;
    padding: 10px;
}
.ribbon {
    width: 50px;
    height: 15px;
    background: #555;
    border: 1px solid #777;
}
.badge-gold { background: linear-gradient(var(--lcars-gelb), #960); }
.badge-red { background: linear-gradient(var(--lcars-rot), #600); }
.badge-blue { background: linear-gradient(var(--lcars-blau), #006); }
.ribbon.disabled { opacity: 0.2; }

.login-wrapper {
    max-width: 450px;
    margin: 50px auto;
    text-align: center;
}

.login-form input {
    display: block;
    width: 100%;
    margin-bottom: 15px;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #444;
    width: 100%;
    border-radius: 5px;
    padding: 10px;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    cursor: pointer;
    border: none;
    margin-top: 15px;
}

.google-btn img {
    width: 20px;
    margin-right: 10px;
}

.login-divider {
    margin: 20px 0;
    color: var(--lcars-gray);
}

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60vh;
}

.login-form {
    background: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-left: 20px solid var(--lcars-orange);
    border-radius: 40px 0 0 40px;
    max-width: 400px;
    width: 100%;
}

.lcars-input {
    background: #000;
    border: 2px solid var(--lcars-blau);
    color: var(--lcars-white);
    padding: 10px;
    margin: 10px 0;
    width: 100%;
    font-family: 'Teko', sans-serif;
    font-size: 1.2em;
    border-radius: 10px;
}

.lcars-btn-sub {
    background: var(--lcars-gray);
    border: none;
    color: white;
    padding: 5px 15px;
    cursor: pointer;
    margin-top: 10px;
    text-transform: uppercase;
}

.profile-form label {
    display: block;
    color: var(--lcars-lila);
    font-size: 0.8rem;
    margin-bottom: 5px;
    margin-left: 10px;
    text-transform: uppercase;
}

.forum-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.thread-row {
    display: flex;
    align-items: center;
    background: rgba(255, 153, 0, 0.1);
    border-left: 15px solid var(--lcars-orange);
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 0 20px 20px 0;
}

.thread-row:hover {
    background: rgba(255, 153, 0, 0.25);
}

.thread-meta {
    font-size: 0.8rem;
    color: var(--lcars-blau);
    min-width: 150px;
}

.thread-title {
    flex-grow: 1;
    font-weight: bold;
    color: white;
}

.message-bubble {
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--lcars-grau);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 10px;
}

/* Kategorien-Farben */
.cat-allgemein { border-left: 10px solid var(--lcars-orange); }
.cat-technik { border-left: 10px solid var(--lcars-blau); }
.cat-mission { border-left: 10px solid var(--lcars-rot); }

.thread-card {
    background: rgba(0, 0, 0, 0.4);
    margin-bottom: 10px;
    padding: 15px;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 0 15px 15px 0;
}
.thread-card:hover { background: rgba(255, 255, 255, 0.1); }

/* Container für alle Kommentare */
#comment-section {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Einzelner Kommentar-Block */
.comment-block {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 15px 15px 0;
    overflow: hidden;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.comment-body {
    padding: 15px;
    line-height: 1.4;
    color: #ddd;
}

/* Die Antwort-Box */
.reply-form {
    margin-top: 40px;
    border-top: 2px solid var(--lcars-grau);
    padding-top: 20px;
}

#commentText {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    color: var(--lcars-orange);
    border: 1px solid var(--lcars-blau);
    padding: 10px;
    font-family: 'LCARS', sans-serif;
    margin-bottom: 10px;
    resize: vertical;
}

/* LCARS Abteilungsfarben */
.user-command { color: #cc0000; font-weight: bold; text-shadow: 0 0 5px rgba(204,0,0,0.5); } /* Rot */
.user-engineering { color: #ff9900; font-weight: bold; text-shadow: 0 0 5px rgba(255,153,0,0.5); } /* Gelb/Gold */
.user-science { color: #0099ff; font-weight: bold; text-shadow: 0 0 5px rgba(0,153,255,0.5); } /* Blau */

/* Der Red Alert Effekt */
@keyframes red-alert-blink {
    0% { background-color: rgba(255, 0, 0, 0.2); }
    50% { background-color: rgba(255, 0, 0, 0.5); }
    100% { background-color: rgba(255, 0, 0, 0.2); }
}

.red-alert-active {
    animation: red-alert-blink 1s infinite;
    border: 2px solid #ff0000 !important;
}