:root {
    --bg: #000000;
    /* Schwarz - Haupthintergrund */
    --primary: #00ffcc;
    /* Cyan - Hauptfarbe */
    --secondary: #ff00ff;
    /* Magenta - Zweiter Akzent */
    --accent: #ffff00;
    /* Gelb - Highlights */
    --success: #00ff88;
    /* Grün - Erfolg */
    --warning: #ff8800;
    /* Orange - Warnung */
    --danger: #ff0066;
    /* Rot-Pink - Gefahr/Löschen */
    --text: #ffffff;
    /* Weiß - Haupttext */
    --text-dim: rgba(255, 255, 255, 0.7);
    /* Gedimmter Text */

    /* Hintergründe */
    --bg-dark: #0a0e27;
    /* Dunkelblau */
    --bg-medium: #151931;
    /* Mittelblau */
    --bg-light: rgba(0, 20, 40, 0.6);
    /* Helleres Blau */
    --bg-card: rgba(0, 20, 40, 0.4);
    /* Karten-Hintergrund */

    /* Tab-Farben */
    --tab-aufbau: #00ffcc;
    /* Cyan */
    --tab-bar: #ff8800;
    /* Orange */
    --tab-tuer: #ffff00;
    /* Gelb */
    --tab-aufraeumen: #00ff88;
    /* Grün */
    --tab-buffet: #ff66cc;
    /* Pink */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Orbitron', sans-serif;
    background: transparent;
    color: var(--text);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 255, 204, 0.5);
    margin-bottom: 1rem;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 20px rgba(0, 255, 204, 0.8));
    }

    to {
        filter: drop-shadow(0 0 30px rgba(255, 0, 255, 0.8)) drop-shadow(0 0 40px rgba(255, 255, 0, 0.5));
    }
}

/* User Info Section - Eigene Farbe */
.user-info-section {
    /* background: linear-gradient(135deg, rgba(255, 255, 0, 0.4), rgba(255, 255, 0, 0.4)); */
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.8), rgba(40, 40, 40, 0.9));
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--accent);
    box-shadow: 0 0 30px rgba(255, 255, 0, 0.3);
    margin-bottom: 2rem;
}

.user-info-section h2 {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
    text-shadow: 0 0 15px rgba(255, 255, 0, 0.6);
}

.user-info-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.user-input {
    padding: 0.8rem;
    background: rgba(0, 20, 40, 0.8);
    border: 1px solid var(--accent);
    border-radius: 0.5rem;
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
}

.user-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.4);
    background: rgba(255, 255, 0, 0.05);
}

/* Tabs mit unterschiedlichen Farben */
.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab {
    padding: 0.8rem 2rem;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.tab[data-list="aufbau"] {
    border-color: var(--tab-aufbau);
    color: var(--tab-aufbau);
}

.tab[data-list="bar"] {
    border-color: var(--tab-bar);
    color: var(--tab-bar);
}

.tab[data-list="tuer"] {
    border-color: var(--tab-tuer);
    color: var(--tab-tuer);
}

.tab[data-list="aufraeumen"] {
    border-color: var(--tab-aufraeumen);
    color: var(--tab-aufraeumen);
}

.tab[data-list="buffet"] {
    border-color: var(--tab-buffet);
    color: var(--tab-buffet);
}

.tab:hover {
    transform: translateY(-2px);
}

.tab[data-list="aufbau"]:hover,
.tab[data-list="aufbau"].active {
    background: rgba(0, 255, 204, 0.2);
    box-shadow: 0 0 25px rgba(0, 255, 204, 0.5);
}

.tab[data-list="bar"]:hover,
.tab[data-list="bar"].active {
    background: rgba(255, 136, 0, 0.2);
    box-shadow: 0 0 25px rgba(255, 136, 0, 0.5);
}

.tab[data-list="tuer"]:hover,
.tab[data-list="tuer"].active {
    background: rgba(255, 255, 0, 0.2);
    box-shadow: 0 0 25px rgba(255, 255, 0, 0.5);
}

.tab[data-list="aufraeumen"]:hover,
.tab[data-list="aufraeumen"].active {
    background: rgba(0, 255, 136, 0.2);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.5);
}

.tab[data-list="buffet"]:hover,
.tab[data-list="buffet"].active {
    background: rgba(255, 102, 204, 0.2);
    box-shadow: 0 0 25px rgba(255, 102, 204, 0.5);
}

/* Table Container - Unterschiedliche Akzentfarben */
.table-container {
    padding: 2rem;
    border-radius: 20px;
    display: none;
    margin-bottom: 2rem;
}

.table-container.active {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9), rgba(40, 40, 40, 0.95));
    display: block;
}

#aufbau {
    background: radial-gradient(ellipse at center, rgba(0, 25, 20, 0.95) 100%, transparent 90%);
    border: 3px solid var(--tab-aufbau);
    box-shadow: 0 0 40px rgba(0, 255, 204, 0.3);
}

#bar {
    background: radial-gradient(ellipse at center, rgba(25, 13, 0, 0.98) 100%, transparent 90%);
    border: 3px solid var(--tab-bar);
    box-shadow: 0 0 40px rgba(255, 136, 0, 0.3);
}

#tuer {
    background: radial-gradient(ellipse at center, rgba(25, 25, 0, 0.98) 100%, transparent 90%);
    border: 3px solid var(--tab-tuer);
    box-shadow: 0 0 40px rgba(255, 255, 0, 0.3);
}

#aufraeumen {
    background: radial-gradient(ellipse at center, rgba(0, 25, 13, 0.98) 100%, transparent 90%);
    border: 3px solid var(--tab-aufraeumen);
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.3);
}

#buffet {
    background: radial-gradient(ellipse at center, rgba(25, 10, 20, 0.98) 100%, transparent 90%);
    border: 3px solid var(--tab-buffet);
    box-shadow: 0 0 40px rgba(255, 102, 204, 0.3);
}

/* Überschriften in Containern */
#aufbau h2 {
    color: var(--tab-aufbau);
    text-shadow: 0 0 20px rgba(0, 255, 204, 0.6);
}

#bar h2 {
    color: var(--tab-bar);
    text-shadow: 0 0 20px rgba(255, 136, 0, 0.6);
}

#tuer h2 {
    color: var(--tab-tuer);
    text-shadow: 0 0 20px rgba(255, 255, 0, 0.6);
}

#aufraeumen h2 {
    color: var(--tab-aufraeumen);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
}

#buffet h2 {
    color: var(--tab-buffet);
    text-shadow: 0 0 20px rgba(255, 102, 204, 0.6);
}

/* Eintragungsformular */
.entry-form {
    background: rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.form-select,
.form-input {
    padding: 0.7rem;
    background: rgba(0, 20, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
}

#aufbau .form-select:focus,
#aufbau .form-input:focus {
    border-color: var(--tab-aufbau);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

#bar .form-select:focus,
#bar .form-input:focus {
    border-color: var(--tab-bar);
    box-shadow: 0 0 10px rgba(255, 136, 0, 0.3);
}

#tuer .form-select:focus,
#tuer .form-input:focus {
    border-color: var(--tab-tuer);
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.3);
}

#aufraeumen .form-select:focus,
#aufraeumen .form-input:focus {
    border-color: var(--tab-aufraeumen);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

#buffet .form-select:focus,
#buffet .form-input:focus {
    border-color: var(--tab-buffet);
    box-shadow: 0 0 10px rgba(255, 102, 204, 0.3);
}

/* Submit Buttons - Angepasst an Container-Farbe */
.submit-btn {
    padding: 0.8rem 2rem;
    border: 2px solid;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
    margin-top: 1rem;
    width: 100%;
}

#aufbau .submit-btn {
    background: rgba(0, 255, 204, 0.1);
    border-color: var(--tab-aufbau);
    color: var(--tab-aufbau);
}

#aufbau .submit-btn:hover {
    background: rgba(0, 255, 204, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.5);
}

#bar .submit-btn {
    background: rgba(255, 136, 0, 0.1);
    border-color: var(--tab-bar);
    color: var(--tab-bar);
}

#bar .submit-btn:hover {
    background: rgba(255, 136, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 136, 0, 0.5);
}

#tuer .submit-btn {
    background: rgba(255, 255, 0, 0.1);
    border-color: var(--tab-tuer);
    color: var(--tab-tuer);
}

#tuer .submit-btn:hover {
    background: rgba(255, 255, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.5);
}

#aufraeumen .submit-btn {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--tab-aufraeumen);
    color: var(--tab-aufraeumen);
}

#aufraeumen .submit-btn:hover {
    background: rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

#buffet .submit-btn {
    background: rgba(255, 102, 204, 0.1);
    border-color: var(--tab-buffet);
    color: var(--tab-buffet);
}

#buffet .submit-btn:hover {
    background: rgba(255, 102, 204, 0.3);
    box-shadow: 0 0 20px rgba(255, 102, 204, 0.5);
}

/* Tabellen */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1rem;
    table-layout: fixed;
}

th,
td {
    padding: 0.8rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.4);
    font-family: 'Rajdhani', sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Einheitliche Zellenhöhe für alle Helfer-Tabellen */
#aufbau td, #aufbau th,
#aufraeumen td, #aufraeumen th,
#bar td, #bar th,
#tuer td, #tuer th,
#buffet td, #buffet th {
    height: 2.2rem;
    min-height: 2.2rem;
    vertical-align: middle;
    text-align: center;
}

/* Zeitspalte schmaler, Namensspalte breiter */
#aufbau td:nth-child(2), #aufbau th:nth-child(2),
#aufraeumen td:nth-child(2), #aufraeumen th:nth-child(2),
#buffet td:nth-child(2), #buffet th:nth-child(2) {
    width: 40px;
    min-width: 40px;
    max-width: 50px;
    text-align: center;
    padding: 0.3rem 0.15rem;
}
#aufbau td:nth-child(3), #aufbau th:nth-child(3),
#aufraeumen td:nth-child(3), #aufraeumen th:nth-child(3),
#buffet td:nth-child(3), #buffet th:nth-child(3) {
    width: 70px;
    min-width: 60px;
    text-align: center;
    padding: 0.3rem 0.15rem;
}

/* Buffet: alles mittig */
#buffet td, #buffet th {
    text-align: center;
}

/* Tag-Spalte schmaler machen */
th:first-child,
td:first-child {
    width: 35px;
    padding: 0.6rem 0.2rem;
    text-align: center;
    flex-shrink: 0;
}

td:first-child {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Leere Tag-Zellen (bei mehreren Schichten desselben Tages) */
td:first-child:empty {
    background: rgba(255, 255, 255, 0.03);
    opacity: 0.5;
    border-right: none !important;
    border-top: none !important;
}

/* Zeit-Spalte - schmaler und übereinander */
#bar td:nth-child(2),
#tuer td:nth-child(2) {
    width: 40px;
    padding: 0.4rem 0.15rem;
    text-align: center;
}

#bar th:nth-child(2),
#tuer th:nth-child(2) {
    width: 40px;
    padding: 0.4rem 0.15rem;
}

/* Zeitformat übereinander */
.time-stacked {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    line-height: 1.1;
}

.time-start {
    font-size: 0.7rem;
    font-weight: 600;
}

.time-end {
    font-size: 0.65rem;
    font-weight: 400;
    opacity: 1;
    color: rgba(255, 255, 255, 0.6);
}

.time-minutes {
    font-size: 0.65rem;
    font-weight: 400;
    display: inline;
}

.time-start .time-minutes {
    font-weight: 600;
}

.time-end .time-minutes {
    font-weight: 400;
}

/* Desktop Mode: Zeiten horizontal mit Bindestrich */
@media (min-width: 768px) {
    .time-stacked {
        flex-direction: row;
        gap: 0.3rem;
        white-space: nowrap;
        justify-content: center;
    }
    
    .time-start::after {
        content: ' - ';
        font-weight: 400;
        opacity: 0.6;
    }
    
    .time-start, .time-end {
        font-size: 0.75rem;
    }
    
    /* Zeit-Spalte breiter im Desktop Mode */
    #bar td:nth-child(2),
    #tuer td:nth-child(2),
    #bar th:nth-child(2),
    #tuer th:nth-child(2) {
        width: 90px;
        min-width: 90px;
        text-align: center;
    }
}

/* Namen-Spalten kompakt */
#bar td:nth-child(n+3),
#bar th:nth-child(n+3),
#tuer td:nth-child(n+3),
#tuer th:nth-child(n+3) {
    padding: 0.3rem 0.15rem;
    font-size: 0.65rem;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

#buffet td:nth-child(n+3),
#buffet th:nth-child(n+3) {
    padding: 0.3rem 0.15rem;
    font-size: 0.65rem;
}

th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    color: var(--text);
    text-align: center;
}

#aufbau th {
    background: rgba(0, 255, 204, 0.1);
    color: var(--tab-aufbau);
}

#bar th {
    background: rgba(255, 136, 0, 0.1);
    color: var(--tab-bar);
}

#tuer th {
    background: rgba(255, 255, 0, 0.1);
    color: var(--tab-tuer);
}

#aufraeumen th {
    background: rgba(0, 255, 136, 0.1);
    color: var(--tab-aufraeumen);
}

#buffet th {
    background: rgba(255, 102, 204, 0.1);
    color: var(--tab-buffet);
}

/* Gruppierte Zeilen */
tr.day-group-header td {
    font-weight: bold;
    border-left: 3px solid;
}

/* Entferne vertikale Trennlinien (border-right) in day-group-header Zeilen, aber nur bei Positionen */
#bar tr.day-group-header td:nth-child(n+3),
#tuer tr.day-group-header td:nth-child(n+3),
#aufbau tr.day-group-header td:nth-child(n+3),
#aufraeumen tr.day-group-header td:nth-child(n+3),
#buffet tr.day-group-header td:nth-child(n+3) {
    border-right: none !important;
}

/* Entferne horizontale Linien nur in leeren day-group-header Zellen */
#bar tr.day-group-header td:empty,
#tuer tr.day-group-header td:empty,
#aufbau tr.day-group-header td:empty,
#aufraeumen tr.day-group-header td:empty,
#buffet tr.day-group-header td:empty {
    border-bottom: none !important;
}

#aufbau tr.day-group-header td {
    background: rgba(0, 255, 204, 0.05);
    border-left-color: var(--tab-aufbau);
}

#bar tr.day-group-header td {
    background: rgba(255, 136, 0, 0.05);
    border-left-color: var(--tab-bar);
}

#tuer tr.day-group-header td {
    background: rgba(255, 255, 0, 0.05);
    border-left-color: var(--tab-tuer);
}

#aufraeumen tr.day-group-header td {
    background: rgba(0, 255, 136, 0.05);
    border-left-color: var(--tab-aufraeumen);
}

#buffet tr.day-group-header td {
    background: rgba(255, 102, 204, 0.05);
    border-left-color: var(--tab-buffet);
}

.empty-slot {
    color: transparent;
    font-style: normal;
    min-height: 1rem;
}

.occupied-slot {
    color: var(--text);
    font-weight: 500;
}

/* Lösch-Buttons */
.delete-btn {
    background: rgba(255, 0, 102, 0.2);
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 0.2rem 0.5rem;
    border-radius: 0.3rem;
    cursor: pointer;
    font-size: 0.7rem;
    margin-left: 0.5rem;
    transition: all 0.2s ease;
}

.delete-btn:hover {
    background: rgba(255, 0, 102, 0.4);
    box-shadow: 0 0 10px rgba(255, 0, 102, 0.5);
}

/* Lösch-Button für eigene Einträge */
.delete-own-btn {
    background: rgba(255, 136, 0, 0.2);
    border: 1px solid #ff8800;
    color: #ff8800;
    padding: 0.2rem 0.5rem;
    border-radius: 0.3rem;
    cursor: pointer;
    font-size: 0.7rem;
    margin-left: 0.5rem;
    transition: all 0.2s ease;
}

.delete-own-btn:hover {
    background: rgba(255, 136, 0, 0.4);
    box-shadow: 0 0 10px rgba(255, 136, 0, 0.5);
}

/* Notizen-Bereich */
.notes-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notes-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notes-header h3 {
    font-size: 1.3rem;
    margin: 0;
}

#aufbau .notes-header h3 {
    color: var(--tab-aufbau);
}

#bar .notes-header h3 {
    color: var(--tab-bar);
}

#tuer .notes-header h3 {
    color: var(--tab-tuer);
}

#aufraeumen .notes-header h3 {
    color: var(--tab-aufraeumen);
}

#buffet .notes-header h3 {
    color: var(--tab-buffet);
}

.note-form {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.5rem;
}

.note-input {
    padding: 0.7rem;
    background: rgba(0, 20, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
}

.note-submit {
    padding: 0.7rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.note-submit:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.notes-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.note-item {
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    position: relative;
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.note-author {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.note-time {
    color: var(--text-dim);
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
}

.note-message {
    color: var(--text);
    line-height: 1.6;
    font-family: 'Rajdhani', sans-serif;
}

/* Nachrichten */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 2rem;
    border-radius: 1rem;
    animation: slideInRight 0.3s ease;
    z-index: 1000;
    font-weight: 500;
}

.message.success {
    background: rgba(0, 255, 136, 0.9);
    border: 2px solid var(--success);
    color: #000;
}

.message.error {
    background: rgba(255, 0, 102, 0.9);
    border: 2px solid var(--danger);
    color: #fff;
}

/* Admin Panel */
.admin-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(255, 0, 102, 0.2), rgba(255, 255, 0, 0.2));
    padding: 1rem;
    border-radius: 1rem;
    border: 2px solid var(--warning);
    display: none;
    z-index: 1000;
}

.admin-panel.active {
    display: block;
}

.admin-panel h3 {
    color: var(--warning);
    margin-bottom: 0.5rem;
}

.admin-panel input {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--warning);
    color: var(--text);
    border-radius: 0.5rem;
}

.admin-btn {
    width: 100%;
    padding: 0.5rem 1rem;
    background: rgba(255, 136, 0, 0.2);
    border: 1px solid var(--warning);
    color: var(--warning);
    border-radius: 0.5rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.admin-btn:hover {
    background: rgba(255, 136, 0, 0.4);
    box-shadow: 0 0 15px rgba(255, 136, 0, 0.5);
}

/* Zurück Button */
.back-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--primary);
    border-radius: 2rem;
    color: var(--primary);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.back-btn:hover {
    background: rgba(0, 255, 204, 0.3);
    box-shadow: 0 0 25px rgba(0, 255, 204, 0.5);
    transform: translateY(-2px);
}

/* Verbesserte Tooltip-Styles für Kontaktdaten */
.name-with-contact {
    cursor: help;
    text-decoration: underline dotted rgba(255, 255, 255, 0.3);
    position: relative;
}

.name-with-contact:hover {
    text-decoration: underline dotted rgba(0, 255, 204, 0.5);
}

.name-with-contact::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--accent);
    white-space: nowrap;
    z-index: 1000;
    font-size: 0.9rem;
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.3);
    margin-bottom: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
    max-width: 300px;
    word-wrap: break-word;
    white-space: normal;
}

.name-with-contact:hover::after {
    opacity: 1;
    visibility: visible;
}

/* CSV Export Button Styles */
.csv-export-btn {
    padding: 0.8rem 1.5rem;
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid var(--success);
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    color: var(--success);
    margin-top: 1rem;
    display: none;
    /* Standardmäßig versteckt, nur für Admins */
}

.csv-export-btn:hover {
    background: rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    transform: translateY(-2px);
}

/* Admin-only Elemente */
.admin-only {
    display: none;
}

body.admin-mode .admin-only {
    display: block;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
}

@media (max-width: 768px) {
    .user-info-form {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .note-form {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    th,
    td {
        padding: 0.5rem;
        font-size: 0.75rem;
    }

    /* Responsive Tabellen-Wrapper */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        font-size: 0.75rem;
        display: table;
        width: 100%;
        min-width: auto;
        table-layout: fixed;
    }

    thead {
        display: table-header-group;
        width: 100%;
    }

    tbody {
        display: table-row-group;
        width: 100%;
    }

    tr {
        display: table-row;
        width: 100%;
    }

    /* Für sehr kleine Bildschirme - Card Layout */
    @media (max-width: 480px) {
        body {
            padding: 10px;
        }

        .table-container {
            padding: 1rem;
            overflow-x: auto;
        }

        h1 {
            font-size: 1.5rem;
        }

        th,
        td {
            padding: 0.3rem 0.15rem;
            font-size: 0.65rem;
        }

        table {
            font-size: 0.65rem;
            table-layout: fixed;
        }

        .delete-btn,
        .delete-own-btn {
            padding: 0.1rem 0.3rem;
            font-size: 0.6rem;
            margin-left: 0.2rem;
        }

        .tabs {
            flex-wrap: wrap;
        }

        .tab {
            flex: 1 1 auto;
            min-width: 80px;
            font-size: 0.75rem;
            padding: 0.5rem 0.3rem;
        }

        .submit-btn {
            padding: 0.6rem 1rem;
            font-size: 0.85rem;
            margin-top: 0.8rem;
        }

        .entry-form {
            padding: 1rem;
        }

        .section-header h2 {
            font-size: 1.2rem;
        }

        .note-input {
            font-size: 0.85rem;
            padding: 0.4rem;
        }

        .note-submit {
            padding: 0.4rem 0.8rem;
            font-size: 0.8rem;
        }
    }
}

/* Admin Logout Button */
.admin-logout-btn {
    display: block;
    margin: 3rem auto 2rem;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, rgba(255, 0, 102, 0.2), rgba(255, 136, 0, 0.2));
    border: 2px solid #ff0066;
    color: #ff0066;
    text-shadow: 0 0 10px rgba(255, 0, 102, 0.5);
    padding: 0.9375rem 2rem;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(255, 0, 102, 0.3);
    width: auto;
    min-width: 300px;
}

.admin-logout-btn:hover {
    background: linear-gradient(135deg, rgba(255, 0, 102, 0.3), rgba(255, 136, 0, 0.3));
    transform: translateY(-0.15rem) scale(1.02);
    box-shadow: 0 0 50px rgba(255, 0, 102, 0.5);
    border-color: #ff3366;
}

.admin-logout-btn:active {
    transform: translateY(0) scale(1);
}

/* Mobile styles */
@media (max-width: 768px) {
    .admin-logout-btn {
        min-width: 250px;
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
}
