/* =========================================================
   Datei: style.css
   Version: 2.0.1
   Beschreibung:
   Globales Design für Gutscheinscript
   + ausgelagerte Styles aus index.php
   ========================================================= */

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

body {
    font-family: Arial, sans-serif;
    color: #ffffff;
    background:
        linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
        url('../img/bg.png') center center / cover no-repeat fixed;
    min-height: 100vh;
}

/* Wichtig: versteckte Panels wirklich ausblenden */
.hidden {
    display: none !important;
}

/* APP LAYOUT */
.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: 290px;
    background: rgba(0, 0, 0, 0.70);
    backdrop-filter: blur(12px);
    border-right: 1px solid rgba(255,255,255,0.08);
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.app-main {
    flex: 1;
    padding: 34px;
}

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

/* SIDEBAR */
.brand-box,
.user-box,
.hero-card,
.dashboard-card {
    background: rgba(0,0,0,0.48);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 20px 40px rgba(0,0,0,0.30);
}

.brand-box,
.user-box {
    border-radius: 18px;
    padding: 18px;
}

.brand-eyebrow {
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.60);
    margin-bottom: 8px;
}

.brand-title {
    font-size: 28px;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 10px;
}

.brand-subtitle {
    color: rgba(255,255,255,0.78);
    font-size: 14px;
    line-height: 1.5;
}

.user-box-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.55);
    margin-bottom: 8px;
}

.user-box strong {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
}

.role-label {
    color: #9fd46a;
    font-size: 14px;
}

.sidebar-nav {
    display: grid;
    gap: 12px;
}

.nav-button {
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
    font-weight: 600;
}

.nav-button:hover,
.nav-button.active {
    background: rgba(95,174,46,0.22);
    border-color: rgba(95,174,46,0.45);
    transform: translateY(-1px);
}

.sidebar-footer {
    margin-top: auto;
}

.logout-link {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.logout-link:hover {
    background: rgba(192,57,43,0.85);
}

/* CARDS */
.hero-card {
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 24px;
}

.hero-title {
    margin: 0 0 6px 0;
    font-size: 34px;
    line-height: 1.1;
}

.hero-text,
.panel-subtitle {
    color: rgba(255,255,255,0.80);
    line-height: 1.6;
}

.dashboard-card {
    border-radius: 22px;
    padding: 24px;
    margin-bottom: 22px;
}

.panel-title {
    margin-bottom: 14px;
}

/* FLASH */
#flashBox {
    margin-bottom: 18px;
}

.notice {
    padding: 16px 18px;
    border-radius: 16px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.20);
    border: 1px solid rgba(255,255,255,0.08);
}

.notice.success {
    background: rgba(95,174,46,0.22);
    color: #effbe2;
}

.notice.danger {
    background: rgba(192,57,43,0.22);
    color: #ffe6e2;
}

.notice.warning {
    background: rgba(201,163,0,0.22);
    color: #fff5cf;
}

/* FORMS */
.inline-form {
    display: grid;
    gap: 12px;
}

.field-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.88);
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
}

input::placeholder,
textarea::placeholder {
    color: #ccc;
}

/* BUTTONS */
.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #5fae2e;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
}

.button:hover,
button:hover {
    background: #4a8c23;
    transform: translateY(-1px);
}

.button.secondary {
    background: rgba(255,255,255,0.10);
}

.button.secondary:hover {
    background: rgba(255,255,255,0.18);
}

/* RESULT */
.code-box {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 18px 20px;
    border-radius: 16px;
    background: rgba(95,174,46,0.18);
    border: 1px solid rgba(95,174,46,0.28);
    color: #f4ffeb;
    margin-bottom: 14px;
    word-break: break-word;
}

.muted-box {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 16px;
}

.meta {
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
}

/* ADMIN */
.admin-grid {
    display: grid;
    gap: 20px;
}

.admin-grid-2 {
    grid-template-columns: 1.1fr 1fr;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.table-wrap {
    overflow-x: auto;
    border-radius: 16px;
}

table {
    min-width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,0.03);
    border-radius: 14px;
    overflow: hidden;
}

table th,
table td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: middle;
    color: rgba(255,255,255,0.90);
    white-space: nowrap;
}

table thead {
    background: rgba(255,255,255,0.08);
}

table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

table tbody tr:hover {
    background: rgba(255,255,255,0.05);
}

th.sortable {
    cursor: pointer;
    user-select: none;
}

th.sortable:hover {
    background: rgba(95,174,46,0.22);
}

.sort-indicator {
    display: inline-block;
    margin-left: 6px;
    color: #9fd46a;
    font-size: 12px;
}

.status-ok {
    color: #b8f08a;
    font-weight: 700;
}

.status-no {
    color: #ffc6c0;
    font-weight: 700;
}

.status-expired {
    color: #ffd36b;
    font-weight: 700;
}

.small {
    color: rgba(255,255,255,0.72);
    font-size: 14px;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 130px;
    padding-right: 28px;
}

.role-select {
    min-width: 155px;
}

.active-select,
.remember-select {
    min-width: 90px;
}

/* ALTE KLASSEN BEIBEHALTEN */
.wrapper {
    display: flex;
    min-height: 100vh;
}

.main {
    flex: 1;
    padding: 30px;
}

.sidebar {
    width: 260px;
    background: rgba(0,0,0,0.85);
    padding: 20px;
}

.card,
.container,
.panel {
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.badge {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
}

.badge-success { background: #5fae2e; }
.badge-warning { background: #c9a300; }
.badge-danger { background: #c0392b; }

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.login-box {
    width: 350px;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .app-shell {
        flex-direction: column;
    }

    .app-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .admin-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .app-main {
        padding: 18px;
    }

    .hero-card,
    .dashboard-card {
        padding: 18px;
        border-radius: 18px;
    }

    .hero-title {
        font-size: 28px;
    }

    .button,
    button {
        width: 100%;
    }
}
/* =========================================================
   Werbeflyer-Aktionslinks
   Version: 1.0
   Beschreibung:
   Grüner Linkstil für Flyer-Aktionen
   ========================================================= */

.action-link {
    color: #8eea3a;
    text-decoration: underline dotted;
    text-underline-offset: 4px;
    transition:
        color 0.18s ease,
        opacity 0.18s ease;
}

.action-link:hover {
    color: #b8ff74;
    opacity: 0.95;
}

.action-link:visited {
    color: #8eea3a;
}
.admin-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.admin-modal-overlay.hidden {
    display: none !important;
}

.admin-modal {
    width: 100%;
    max-width: 460px;
    padding: 28px;
    border-radius: 22px;
    background: rgba(18, 24, 18, 0.94);
    border: 1px solid rgba(160, 255, 120, 0.22);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
    color: #ffffff;
}

.admin-modal h3 {
    margin-bottom: 20px;
}

.admin-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 22px;
}