/* ============================================================================
   style.css – Grundlayout + Zusatzklassen für bonus_detail.php
   ============================================================================ */

/* 1) Inter-Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

/* 2) Reset & Box-Sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 3) Body-Grundlayout */
body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    background-color: #FFFFFF;
    color: #333333;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 4) Container */
.container {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 10px;
}

/* HEADER */
header {
    background-color: #D20000;
    color: #FFFFFF;
    padding: 10px 0;
}
header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 4px;
}
header p {
    font-size: 15px;
    font-weight: 400;
    color: #FFFFFF;
}

/* ===========================
   Modernes Pill‑Menü (ersetze alte NAV-Regeln)
   =========================== */
.main-nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 12px 30px rgba(31, 38, 135, 0.14);
    z-index: 100;
    padding: 10px 0;
    margin-bottom: 20px;
}
.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
}
.main-nav li {
    display: inline-block;
}
.main-nav a {
    display: inline-block;
    padding: 7px 16px;
    border: 1px solid rgba(210, 0, 0, 0.25);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #B00000;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 6px 16px rgba(210, 0, 0, 0.12);
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s, transform 0.2s, box-shadow 0.2s;
}
.main-nav a:hover {
    background-color: rgba(210, 0, 0, 0.92);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(210, 0, 0, 0.25);
}
.main-nav a.active {
    background: linear-gradient(135deg, #d20000 0%, #b00000 100%);
    color: #FFFFFF;
    box-shadow: 0 12px 24px rgba(210, 0, 0, 0.3);
}
@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: row;
        gap: 8px;
        padding: 0 12px;
    }
    .main-nav a {
        white-space: nowrap;
        text-align: center;
    }
}

/* HAUPTBEREICH */
main {
    margin-bottom: 40px;
}

/* Meldungsbox */
.message {
    background-color: #F5F5F5;
    border-left: 4px solid #D20000;
    padding: 16px;
    margin-bottom: 20px;
    color: #333333;
    font-size: 14px;
}

/* FORMULARE */
form {
    background-color: #F5F5F5;
    padding: 20px;
    border: 1px solid #DDDDDD;
    margin-bottom: 20px;
    border-radius: 6px;
}
form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}
form input[type="text"],
form input[type="password"],
form input[type="number"],
form select,
form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 14px;
}
form button,
.button {
    background-color: #D20000;
    color: #FFFFFF;
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease-in-out;
}
form button:hover,
.button:hover {
    background-color: #B00000;
}

/* TABELLEN */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
}
thead {
    background-color: #F9F9F9;
}
th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #E0E0E0;
    font-size: 14px;
}
th {
    font-weight: 600;
}
tbody tr:hover {
    background-color: #FAFAFA;
}

/* LINKS */
a {
    color: #D20000;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* FOOTER */
footer {
    background-color: #F5F5F5;
    padding: 16px;
    text-align: center;
    color: #777777;
    font-size: 14px;
    border-top: 1px solid #E0E0E0;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    header h1 {
        font-size: 24px;
    }
    form,
    table {
        font-size: 14px;
    }
}

/* =====================================================================
   Erweiterung: Zusätzliche Styles für bonus_detail.php
   ===================================================================== */

/* Übersichtsbereich (Read-only) */
.read-only-fields {
    background-color: #F5F5F5;
    border: 1px solid #DDDDDD;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.read-only-item {
    flex: 1 1 calc(33% - 20px);
}
.read-only-item .label {
    font-weight: 600;
    margin-bottom: 4px;
}
.datensatz-id {
    font-weight: 600;
    font-size: 1.05em;
}

/* Overlay für Sicherheitsabfrage */
.overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    display: none;
    justify-content: center;
    align-items: center;
}
.overlay-content {
    background: #ffffff;
    padding: 24px;
    text-align: center;
    border: 2px solid #444;
    max-width: 300px;
    border-radius: 8px;
}
.overlay-content h3 {
    margin-bottom: 10px;
}
.overlay-content p {
    margin-bottom: 20px;
}
.overlay-content button {
    margin: 0 8px;
}
/* Abstand zwischen Buttons im Bonus-Detail */
.button + .button {
    margin-left: 10px;
}
