/* Grundsetup */
body {
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    background: #0a0a0a;
    color: #eee;
}
a {
    color: #aa00ff;
    text-decoration: none;
}
a:hover {
    color: #ff88ff;
}

/* Header */
header {
    background: transparent;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
header h1 {
    margin: 0 0 10px 0;
}
header img.logo {
    width: 120px;
    max-width: 30vw;
    margin-bottom: 10px;
}

/* Container */
.container {
    max-width: 980px;
    margin: 24px auto;
    padding: 0 16px;
}

/* Karten */
.card {
    background: rgba(50,0,80,0.3);
    border: 1px solid #aa00ff;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    word-wrap: break-word;
    text-align: center;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px #aa00ff88;
    border-color: #ff88ff;
}

/* Buttons */
.button {
    background: #aa00ff;
    color: white;
    border: 0;
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9em;
}
.button:hover {
    background: #ff88ff;
}
.button.secondary {
    background: #5500ff;
}
.button.secondary:hover {
    background: #aa00ff;
}

/* Input, Select, Textarea */
.input, select, textarea {
    width: 100%;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid #5500ff;
    background: rgba(20,0,40,0.3);
    color: #eee;
    font-size: 0.9em;
}

/* Layout */
.row {
    display: flex;
    gap: 12px;
}
.col {
    flex: 1;
}

/* Badges für Status */
.badge {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid #5500ff;
}
.badge.open { background: rgba(20,0,40,0.3); }
.badge.in_progress { background: rgba(50,0,80,0.3); }
.badge.closed { background: rgba(80,0,120,0.3); }

/* Chat */
.chat {
    max-height: 300px;
    overflow-y: auto;
    background: rgba(20,0,40,0.3);
    border-radius: 12px;
    padding: 8px;
    border: 1px solid #5500ff;
}
.message {
    margin-bottom: 8px;
}
.message .by {
    font-size: 11px;
    opacity: 0.8;
}

/* Footer */
footer {
    padding: 16px;
    text-align: center;
    color: #888;
    font-size: 0.9em;
}

/* Divider */
.divider {
    width: 80%;
    border-top: 2px solid #aa00ff;
    margin: 20px auto;
    box-shadow: 0 0 10px #aa00ff55;
}

/* Ticket-Boxen und Chat-Formular */
.ticket-card {
    text-align: left;
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
}

.ticket-info {
    flex: 1;
    min-width: 200px;
}

.ticket-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.inline-form {
    display: flex;
    gap: 4px;
    align-items: center;
}

.ticket-description {
    margin-top: 12px;
}

.ticket-card .input,
.ticket-card select,
.ticket-card textarea {
    max-width: 90%;      /* nicht zu breit */
    margin: 4px auto;    /* horizontal zentriert */
    display: block;      /* nötig für margin auto */
    font-size: 0.9em;
}

.small-text {
    font-size: 12px;
    opacity: 0.8;
}

.chat-form {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.chat-form .input {
    flex: 1;
}

/* --- Neuer Header-Box Stil --- */
.header-box {
    background: rgba(50,0,80,0.6);
    border: 1px solid #aa00ff;
    border-radius: 16px;
    padding: 12px 24px;
    margin: 16px auto;
    max-width: 980px;
    box-shadow: 0 0 20px #aa00ff55;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-box {
    font-size: 1.4em;
    font-weight: bold;
    color: #ff88ff;
    text-decoration: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.user-info {
    font-size: 0.95em;
    opacity: 0.85;
}

/* Responsive */
@media(max-width: 768px){
    .card { font-size: 0.9em; padding: 12px; }
    .project-info { font-size: 0.9em; padding: 0 8px; }
    .input, select, textarea { padding: 6px; font-size: 0.85em; }
    .button { padding: 6px 10px; font-size: 0.85em; }
    .chat { max-height: 250px; padding: 6px; }

    .ticket-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .ticket-actions {
        width: 100%;
        flex-direction: column;
    }
    .inline-form {
        width: 100%;
        flex-direction: column;
    }
    .chat-form {
        flex-direction: column;
    }
    .chat-form .button {
        width: 100%;
    }
}
@media(max-width: 480px){
    .card { font-size: 0.85em; padding: 10px; }
    .project-links a { margin: 3px 4px; font-size: 0.85em; }
    .input, select, textarea { padding: 5px; font-size: 0.8em; }
    .button { padding: 5px 8px; font-size: 0.8em; }
    .chat { max-height: 200px; padding: 5px; }
}
