/* ===============================
   GRUNDFARBEN
=================================*/
:root {
    --black: #000;
    --yellow: #f5c400;
    --yellow-dark: #d4a800;
    --white: #fff;

    --bg-dark: #151515;
    --bg-card: #222222;
	--bg-table: #5C504B;
	
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
}

body {
    margin: 0;
    font-family: 'TikTok Sans', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
}

h1 {
	margin-left: 0.8em;
}


/* ===============================
   NAVIGATION
=================================*/
.navbar {
    background: var(--black);
    padding: 10px 15px;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.nav-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-title {
    color: var(--yellow);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Burger Button */
.burger {
    display: none; /* wird in Mobile-View eingeblendet */
    background: transparent;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    margin-left: auto;
}

.burger-lines {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Burger Lines (statisch, ohne X-Animation) */
.burger-line {
    width: 24px;
    height: 3px;
    background: var(--yellow);
    margin: 4px 0;
}


/* Linkliste – Desktop: unter dem Titel, nebeneinander */
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    display: block;
    padding: 8px 14px;
    color: var(--yellow);
    text-decoration: none;
    font-weight: bold;
    text-align: left;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
    background: var(--yellow);
    color: var(--black);
}

/* ===============================
   MOBILE NAVIGATION
=================================*/
@media (max-width: 750px) {
    .burger {
        display: block;
        margin-right: 20px; /* etwas Abstand vom rechten Rand */
    }

    /* Links als Dropdown, initial versteckt */
    .nav-links {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--black);
        border-bottom: 2px solid var(--yellow-dark);
        padding: 10px 0;
    	display: none;
    	pointer-events: none;
    }

    .nav-links.open {
    	display: flex;
    	pointer-events: auto;
    }

    .nav-links li {
        width: 100%;
        padding-left: 15px; /* Einrückung links */
    }

    .nav-links a {
        width: 100%;
        padding: 14px 15px;
        border-radius: 0;
    }
}

/* ===============================
   CARDS
=================================*/
.card {
    background: var(--bg-card);
    padding: 20px;
    margin: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.card h2 {
    margin-top: 0;
}
.total-sum {
    margin-top: 8px;
    font-weight: bold;
    color: var(--yellow);
}

/* ===============================
   BUTTONS
=================================*/
.btn {
    background: var(--yellow);
    color: var(--black);
    padding: 10px 15px;
	margin-left: 0.3em;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover {
    background: var(--yellow-dark);
    color: var(--black);
}
.paypal-btn {
    background-color: (--yellow);
    color: #000;
    font-weight: bold;
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
}

.paypal-btn:hover {
    background: var(--yellow-dark);
    color: var(--black);
}

/* ===============================
   INPUTS
=================================*/

input[type="email"],
input[type="password"],
input[type="number"] {
    font-size: 16px; /* verhindert Mobile-Zoom */
}

.input-field {
    width: 15em;
    padding: 10px;
	margin: 2px;
    border-radius: 5px;
    border: 1px solid var(--yellow-dark);
    background: var(--bg-card);
    color: var(--text-primary);
}

/* ===============================
   LOGIN
=================================*/
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90vh;
    background: var(--black);
}

.login-container {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    text-align: center;
}

.login-container h1,
.login-container h2 {
    color: var(--yellow);
}

.error {
    color: #ff5555;
}

/* ===============================
   DESKTOP-TABELLE (>=500px)
=================================*/
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

table thead {
    display: table-header-group; /* wichtig für Desktop */
}

table thead th {
    background: linear-gradient(90deg, var(--yellow), var(--yellow-dark));
    color: var(--black);
    padding: 14px;
    text-align: left;
    font-weight: bold;
    white-space: nowrap;
    font-size: 1rem;
    border-bottom: 2px solid rgba(0,0,0,0.25);
}

table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.95rem;
}

/* Zebra */
table tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.04);
}

/* Hover */
table tbody tr:hover {
    background: rgba(245,196,0,0.15);
    transition: background 0.2s ease;
}


/* ===============================
   MOBILE-TABELLE (<500px)
=================================*/
@media (max-width: 500px) {

    table thead {
        display: none;
    }

    table, table tbody, table tr, table td {
        display: block;
        width: 100%;
    }

    table tr {
        border-radius: 10px;
        padding: 10px 12px;
    }

    /* WICHTIG: alles links, keine zweite Spalte */
    table td {
        padding: 6px 4px;
        text-align: left;
        border-bottom: none;

        /* entfernt die unerwünschte große Lücke */
        display: block;
    }

    /* Label kommt OBEN in Gelb */
    table td::before {
        content: attr(data-label);
        display: block;             /* wichtig! */
        color: var(--yellow);
        font-weight: bold;
        margin-bottom: 2px;         /* kleiner Abstand zum Text */
    }
}
