/* =========================
   Grundlayout
   ========================= */

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.05), rgba(0,0,0,0.35)),
        linear-gradient(135deg, #5b5b5b 0%, #3f3f3f 45%, #1f1f1f 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        repeating-linear-gradient(
            110deg,
            rgba(255,255,255,0.03) 0,
            rgba(255,255,255,0.03) 1px,
            transparent 1px,
            transparent 14px
        );
    pointer-events: none;
    z-index: 0;
}

/* =========================
   Allgemeine Buttons
   ========================= */

.button-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    z-index: 1000;
}

.menu-button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    background: #c7ae62;
    color: #000;
    text-decoration: none;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}

.menu-button:hover {
    background: #d8bf72;
}

.menu-button.active {
    background: #e0c36a;
    color: #111;
    border: 3px solid #f5d97a;
    box-shadow: 0 0 20px rgba(224,195,106,0.7);
}

/* =========================
   Dropdown
   ========================= */

.dropdown {
    position: relative;
    width: 100%;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    background: #c7ae62;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(0,0,0,0.4);
    z-index: 5000;
}

.dropdown-content a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    color: #000;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
}

.dropdown-content a:hover {
    background: #d8bf72;
}

/* =========================
   Benutzerinfo oben rechts
   ========================= */

.user-info {
    position: fixed;
    top: 42px;
    right: 50px;
    z-index: 3000;
    padding: 16px 22px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-align: right;
    backdrop-filter: blur(4px);
}

.user-info span {
    display: block;
    margin-top: 4px;
    color: #c7ae62;
    font-size: 15px;
    font-weight: bold;
}

/* =========================
   Startseite
   ========================= */

.start-wrapper {
    min-height: calc(100vh - 70px);
    padding: 22px 45px 95px 45px;
    box-sizing: border-box;
    position: relative;
    z-index: 5;
}

.start-header {
    text-align: center;
    margin-bottom: 28px;
}

.start-header h1 {
    margin: 0;
    color: #c7ae62;
    font-size: clamp(38px, 3.3vw, 58px);
    font-weight: bold;
    text-shadow: 0 0 16px rgba(0,0,0,0.8);
}

.start-header p {
    margin: 6px 0 0 0;
    color: white;
    font-size: clamp(18px, 1.3vw, 24px);
}

.start-main {
    display: grid;
    grid-template-columns: 260px 1fr 340px;
    gap: 28px;
    align-items: start;
}

.start-menu {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 240px;
    padding-top: 0;
    align-self: start;
}

.start-menu .menu-button {
    width: 240px;
}

.start-center {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -30px;
}

.start-logo img {
    width: 220px;
    height: auto;
    border-radius: 26px;
    opacity: 0.9;
    display: block;
    margin: 0 auto;
    box-shadow:
        0 0 45px rgba(255,255,255,0.15),
        0 0 70px rgba(0,0,0,0.4);
}

.start-cards {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 28px;
}

.dashboard-card {
    width: 130px;
    padding: 16px;
    text-align: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 24px rgba(0,0,0,0.4);
    text-decoration: none;
    color: white;
    transition: all 0.25s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    background: rgba(199,174,98,0.12);
    border-color: rgba(199,174,98,0.4);
    box-shadow: 0 0 32px rgba(199,174,98,0.25);
}

.card-number {
    color: #c7ae62;
    font-size: 34px;
    font-weight: bold;
}

.card-label {
    margin-top: 6px;
    font-size: 14px;
    color: white;
}

.birthday-dashboard-start {
    grid-column: 3;

    width: 340px;
    padding: 22px;

    background: rgba(30,30,30,0.92);

    border-radius: 26px;

    border: 1px solid rgba(255,255,255,0.08);

    box-shadow:
        0 15px 40px rgba(0,0,0,0.55),
        0 0 30px rgba(0,0,0,0.25);

    justify-self: end;

    margin-right: 40px;
    margin-top: 90px;

    backdrop-filter: blur(6px);
}

.birthday-title {
    color: #c7ae62;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 12px;
}

.birthday-entry {
    font-size: 15px;
    margin-top: 8px;
    white-space: nowrap;
}

.birthday-today {
    background: rgba(199,174,98,0.20);
    border: 1px solid #c7ae62;
    padding: 9px;
    border-radius: 8px;
    font-weight: bold;
    color: #ffd76a;
}

/* =========================
   Testung / Unterseiten Layout
   ========================= */

.page-wrapper {
    min-height: calc(100vh - 70px);
    display: flex;
    gap: 35px;
    padding: 40px 50px 120px 50px;
    box-sizing: border-box;
    position: relative;
    z-index: 5;
}

.sidebar {
    width: 190px;
    flex-shrink: 0;
}

.main-content {
    flex: 1;
    max-width: 1300px;
}

.main-content h1 {
    margin-top: 0;
    margin-bottom: 28px;
    font-size: 42px;
    color: white;
    text-shadow: 0 0 14px rgba(0,0,0,0.8);
}

/* =========================
   Eingabe / Bestenliste
   ========================= */

.eingabe-layout {
    display: grid;
    grid-template-columns: 600px 420px;
    gap: 50px;
    align-items: start;
}

.eingabe-box,
.bestenliste-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(199, 174, 98, 0.35);
    border-radius: 18px;
    padding: 28px 32px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.35);
}

.eingabe-box {
    width: 600px;
    box-sizing: border-box;
}

.bestenliste-box {
    width: 420px;
    box-sizing: border-box;
}

.eingabe-box-title {
    color: #c7ae62;
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 22px;
}

.eingabe-form label {
    font-size: 20px;
}

.eingabe-form input,
.eingabe-form select {
    font-size: 16px;
}

.wert-input-wrapper {
    position: relative;
    display: inline-block;
}

.wert-input {
    width: 240px;
    padding-right: 55px;
}

.wert-einheit {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-weight: bold;
    pointer-events: none;
}

.bestenliste-table {
    width: 100%;
    border-collapse: collapse;
    color: white;
    font-size: 18px;
}

.bestenliste-table th {
    color: #c7ae62;
    text-align: left;
    padding: 8px 6px;
    border-bottom: 1px solid rgba(199,174,98,0.35);
}

.bestenliste-table td {
    padding: 10px 6px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.bestenliste-table td:first-child {
    font-weight: bold;
    color: #c7ae62;
    width: 45px;
}

/* =========================
   Hinweise
   ========================= */

.success-message {
    background: #2e7d32;
    color: white;
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-weight: bold;
    width: fit-content;
}

.hinweis-box {
    background: #8a6d1d;
    color: white;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-weight: bold;
    width: fit-content;
    line-height: 1.6;
}

.altersklasse-auswahl {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.altersklasse-button {
    min-width: 65px;
    height: 38px;
    padding: 0 12px;
    border: none;
    border-radius: 10px;
    background: #c7ae62;
    color: #111;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,0,0,0.35);
}

.altersklasse-button:hover {
    background: #e4cb7a;
}

/* =========================
   Testdetails
   ========================= */

.test-details {
    padding: 25px;
    border: 1px solid rgba(199,174,98,0.25);
    border-radius: 18px;
    background: rgba(0,0,0,0.25);
    line-height: 1.7;
    max-width: 1000px;
}

.blocksatz {
    max-width: 1000px;
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
    hyphens: auto;
}

.beschreibung-text {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.8;
    margin-top: 10px;
}

/* =========================
   Tabellen allgemein
   ========================= */

.content {
    position: relative;
    z-index: 5;
    padding: 80px;
}

table {
    border-collapse: collapse;
    margin-top: 20px;
    color: white;
    font-size: 18px;
}

th,
td {
    padding: 10px 20px;
    text-align: left;
}

th {
    font-weight: bold;
}

/* =========================
   Bearbeitung / Aktionen
   ========================= */

.aktionen {
    text-align: center;
    width: 140px;
    white-space: nowrap;
}

.icon-button {
    text-decoration: none;
    font-size: 20px;
    margin: 0 4px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.icon-button:hover {
    transform: scale(1.2);
}

.edit-row td {
    background: rgba(0,0,0,0.25);
    padding: 25px;
}

.edit-row input {
    padding: 10px;
    font-size: 16px;
}

.edit-row input.test-input,
.edit-row input.video-input {
    width: 350px !important;
    max-width: 350px !important;
    display: block;
}

.edit-row textarea {
    width: 90%;
    max-width: 700px;
    height: 90px;
    padding: 10px;
    font-size: 16px;
}

.small-button {
    background: #c7ae62;
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,0,0,0.35);
}

.small-button:hover {
    background: #d8bf72;
}

/* =========================
   Loginbereich
   ========================= */

.login-box {
    position: fixed;
    top: 20vh;
    left: 50vw;
    transform: translateX(-50%);
    text-align: center;
    z-index: 1000;
}

.login-box input {
    width: clamp(14rem, 20vw, 24rem);
    box-sizing: border-box;
    padding: 12px;
    margin-bottom: 12px;
    font-size: 18px;
}

.login-box button {
    padding: 12px 28px;
    font-size: 18px;
    cursor: pointer;
}

/* =========================
   Footer
   ========================= */

.footer-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70px;
    background: #c7ae62;
    z-index: 10;
}

.footer-left {
    position: fixed;
    bottom: 18px;
    left: 60px;
    color: #000;
    font-size: 24px;
    font-weight: bold;
    z-index: 20;
}

.footer-right {
    position: fixed;
    bottom: 18px;
    right: 60px;
    color: #000;
    font-size: 24px;
    font-weight: bold;
    z-index: 20;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 1100px) {
    .start-main {
        grid-template-columns: 1fr;
    }

    .start-menu,
    .start-center,
    .birthday-dashboard-start {
        grid-column: 1;
    }

    .start-menu {
        width: 100%;
        padding-top: 0;
    }

    .start-menu .menu-button {
        width: 100%;
    }

    .birthday-dashboard-start {
        width: 100%;
        box-sizing: border-box;
        margin-top: 20px;
    }

    .eingabe-layout {
        grid-template-columns: 1fr;
    }

    .eingabe-box,
    .bestenliste-box {
        width: 100%;
        max-width: 650px;
    }
}

@media (max-width: 900px) {
    .start-wrapper,
    .page-wrapper {
        padding: 25px 25px 110px 25px;
    }

    .start-cards {
        flex-direction: column;
        align-items: center;
    }

    .page-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .footer-left,
    .footer-right {
        font-size: 16px;
    }
}