/* ═══════════════════════════════════════════════════════════
   FM-Funknetz Ticketboard v2.0 — CSS
   ═══════════════════════════════════════════════════════════ */

:root {
    --fm-orange:      #FFA500;
    --fm-orange-mid:  #CD8500;
    --fm-orange-hover:#D98E00;
    --fm-orange-dark: #8B5A00;
    --fm-blue:        #072c6a;
    --fm-sidebar-w:   220px;
    --fm-header-h:    80px;
}

* { box-sizing: border-box; }
body {
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* ── Header ─────────────────────────────────────────── */
.fm-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: var(--fm-header-h);
    background-color: var(--fm-orange-mid);
    border-bottom: 2px solid var(--fm-blue);
    color: black;
    text-align: center;
    font-family: Arial, sans-serif !important;
    padding: 10px 150px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fm-header-title strong {
    display: block;
    font-size: 24px;
    font-weight: bold;
    font-style: italic;
    text-shadow: 0 0 10px #FFD700, 0 0 20px #FFD700, 0 0 30px #FFA500;
    line-height: 1.3;
}

.fm-header-title small {
    display: block;
    font-size: 16px;
    font-weight: normal;
    font-style: italic;
    text-shadow: 0 0 10px #FFD700, 0 0 20px #FFD700, 0 0 30px #FFA500;
    line-height: 1.3;
}

.fm-header-btn-left,
.fm-header-btn-right {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%);
    background-color: #FFA500 !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    cursor: pointer !important;
    border-radius: 5px !important;
    text-decoration: none;
    font-style: normal;
    font-weight: normal;
    text-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    width: 110px;
}

.fm-header-btn-left  { left: 20px !important; }
.fm-header-btn-right { right: 20px !important; }

.fm-header-btn-left:hover,
.fm-header-btn-right:hover {
    background-color: #8B5A00 !important;
    color: white !important;
    text-decoration: none;
}

/* ── Wrapper ─────────────────────────────────────────── */
.fm-wrapper {
    display: flex;
    margin-top: var(--fm-header-h);
    min-height: calc(100vh - var(--fm-header-h));
}

/* ── Sidebar (hellgrau) ──────────────────────────────── */
.fm-sidebar {
    width: var(--fm-sidebar-w);
    min-width: var(--fm-sidebar-w);
    background-color: #e8e8e8;
    border-right: 2px solid #cccccc;
    position: fixed;
    top: var(--fm-header-h);
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 900;
    padding-bottom: 20px;
}

.fm-sidebar-user {
    padding: 14px 16px 10px;
    border-bottom: 1px solid #cccccc;
    margin-bottom: 6px;
}

.fm-sidebar-rufzeichen {
    font-size: 1.05rem;
    font-weight: bold;
    color: #000;
}

.fm-sidebar-name {
    font-size: 0.82rem;
    color: #555;
}

.fm-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fm-sidebar-divider {
    height: 1px;
    background: #cccccc;
    margin: 5px 12px;
}

.fm-sidebar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    color: #222;
    text-decoration: none;
    font-size: 0.88rem;
    transition: background 0.15s;
}

.fm-sidebar-link:hover,
.fm-sidebar-link.active {
    background-color: var(--fm-orange-mid);
    color: #000;
    text-decoration: none;
}

.fm-sidebar-icon {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.fm-sidebar-logout {
    color: #8B0000;
    font-weight: bold;
}

.fm-sidebar-logout:hover {
    background-color: #b33a3a !important;
    color: white !important;
}

/* ── Content ─────────────────────────────────────────── */
.fm-content {
    flex: 1;
    margin-left: var(--fm-sidebar-w);
    padding: 28px 32px;
}

body.no-sidebar .fm-wrapper {
    justify-content: center;
}

body.no-sidebar .fm-content {
    margin-left: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 20px;
}

/* ── Login-Box ───────────────────────────────────────── */
.fm-login-box {
    background-color: #fff;
    padding: 20px;
    margin: 50px auto 0;
    width: 300px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    text-align: center;
}

.fm-login-box h2 {
    color: #000;
    margin-bottom: 16px;
}

.fm-login-box input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* ── Tabellen ────────────────────────────────────────── */
.fm-table, .ticket-table {
    background-color: #fff;
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.fm-table th, .fm-table td,
.ticket-table th, .ticket-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

.fm-table th, .ticket-table th {
    background-color: var(--fm-orange-mid);
    color: black;
    font-weight: bold;
}

.fm-table tr:nth-child(even),
.ticket-table tr:nth-child(even) { background-color: #f9f9f9; }

.fm-table tr:hover,
.ticket-table tr:hover { background-color: #f1f1f1; }

/* ── Buttons ─────────────────────────────────────────── */
.btn-fm {
    background-color: var(--fm-orange-mid);
    color: black;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.btn-fm:hover { background-color: var(--fm-orange-hover); color: black; text-decoration: none; }

.back-link {
    display: inline-block;
    background-color: var(--fm-orange-mid);
    color: black;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
}
.back-link:hover { background-color: var(--fm-orange-hover); color: black; }

/* ── Fehler / Erfolg ─────────────────────────────────── */
.error   { color: red;   margin-top: 10px; }
.success { color: green; margin-top: 10px; }

.fm-flash-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; padding: 10px 16px; border-radius: 4px; margin-bottom: 16px; }
.fm-flash-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; padding: 10px 16px; border-radius: 4px; margin-bottom: 16px; }

/* ── Blinker ─────────────────────────────────────────── */
.blink { color: red; animation: blink-anim 1s steps(5, start) infinite; }
@keyframes blink-anim { to { visibility: hidden; } }

/* ── Responsiv ───────────────────────────────────────── */
@media (max-width: 768px) {
    .fm-sidebar { width: 100%; position: relative; top: 0; border-right: none; border-bottom: 2px solid #ccc; }
    .fm-wrapper { flex-direction: column; }
    .fm-content { margin-left: 0; padding: 16px; }
    .fm-header { padding: 10px 120px; }
    .fm-header-btn-left,
    .fm-header-btn-right { width: 80px !important; font-size: 12px !important; }
}

/* ── Nativer <header> Tag (Original) ─────────────────── */
header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 80px;
    background-color: #CD8500;
    border-bottom: 2px solid #072c6a;
    color: black;
    text-align: center;
    font-family: Arial, sans-serif !important;
    font-size: 24px;
    font-weight: bold;
    font-style: italic;
    padding: 10px 0;
    z-index: 1000;
    text-shadow: 0 0 10px #FFD700, 0 0 20px #FFD700, 0 0 30px #FFA500;
}

header small {
    display: block;
    font-size: 16px;
    font-weight: normal;
    text-shadow: 0 0 10px #FFD700, 0 0 20px #FFD700, 0 0 30px #FFA500;
}

.header-placeholder {
    height: 100px;
}

/* ── Login-Container (Original) ──────────────────────── */
.main-container {
    margin-top: 20px auto;
    width: 50%;
    text-align: center;
}

.login-container {
    background-color: #fff;
    padding: 20px;
    margin: 50px auto;
    width: 300px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.login-container input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: block;
}

.login-container button {
    background-color: #CD8500;
    color: black;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.login-container button:hover {
    background-color: #D98E00;
}
