﻿body{
    margin: 0;
}

/* =====================================================
   LOGIN PAGE – CLEAN & CENTERED
===================================================== */

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #ffffff;
}

/* CENTER AREA */

.login-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* LOGIN BOX */

.login-panel {
    width: 100%;
    max-width: 420px;
    padding: 40px 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* =====================================================
   HEADER
===================================================== */

.login-brand {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: #ffcb05;
    text-align: center;
}

.login-tagline {
    margin: 0 0 10px;
    font-size: 14px;
    opacity: 0.85;
    text-align: center;
}

/* =====================================================
   ERROR
===================================================== */

.login-error {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    background: rgba(255, 0, 0, 0.15);
    color: #ffb3b3;
    text-align: center;
}

/* =====================================================
   FORM
===================================================== */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* FIELD */

.login-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.login-label {
    font-size: 13px;
    opacity: 0.8;
}

/* INPUT */

.login-input {
    padding: 14px 15px;
    font-size: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    transition: 0.2s;
}

    .login-input:focus {
        outline: none;
        border-color: #ffcb05;
    }

/* =====================================================
   BUTTON
===================================================== */

.login-btn {
    margin-top: 8px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    background: #ffcb05;
    color: #222;
    cursor: pointer;
    transition: 0.2s;
}

    .login-btn:hover {
        transform: translateY(-1px);
        opacity: 0.95;
    }

/* =====================================================
   FOOTER FIX
===================================================== */

.login-page .site-footer-public {
    margin-top: auto;
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 500px) {
    .login-panel {
        padding: 30px 24px;
        border-radius: 16px;
    }

    .login-brand {
        font-size: 22px;
    }
}
/* =====================================================
   DASHBOARD PAGE
===================================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
}

@media (max-width: 900px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   MAIN
===================================================== */

.dashboard-main h1 {
    margin: 0 0 24px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* =====================================================
   FORMS (Suche & Hinzufügen)
===================================================== */

.dashboard-main form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 28px;
}

.dashboard-main input {
    padding: 14px 15px;
    font-size: 15px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

    .dashboard-main input:focus {
        outline: none;
        border-color: #4f46e5;
    }

.dashboard-main button {
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 14px;
    border: none;
    background: #4f46e5;
    color: #ffffff;
    cursor: pointer;
}

    .dashboard-main button:hover {
        background: #4338ca;
    }

/* =====================================================
   TABLE
===================================================== */

.table-wrapper {
    margin-top: 10px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    max-height: 520px; /* ~10 Zeilen */
    overflow-y: auto;
}

    /* Scrollbar – dezent */
    .table-wrapper::-webkit-scrollbar {
        width: 8px;
    }

    .table-wrapper::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 4px;
    }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

thead th {
    position: sticky;
    top: 0;
    background: #f8fafc;
    padding: 16px;
    font-weight: 600;
    color: #475569;
    border-bottom: 1px solid #e5e7eb;
}

tbody td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #0f172a;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: #f9fafb;
}

/* Delete Icon */
table a {
    font-size: 16px;
    text-decoration: none;
}

/* =====================================================
   BLUR (Datenschutz)
===================================================== */

.blur {
    filter: blur(3px);
    transition: filter 0.2s ease;
}

    .blur:hover {
        filter: blur(0);
    }

/* =====================================================
   SIDEBAR
===================================================== */

.dashboard-sidebar {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px 22px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

    .dashboard-sidebar h3 {
        margin-top: 0;
        margin-bottom: 18px;
        font-size: 18px;
        font-weight: 600;
    }

/* TEAM LIST */

.team-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .team-list li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 6px;
        font-size: 14px;
        border-bottom: 1px solid #f1f5f9;
    }

        .team-list li:last-child {
            border-bottom: none;
        }

        .team-list li span {
            font-size: 13px;
            color: #64748b;
        }

        /* Rollen */
        .team-list li.administrator {
            font-weight: 600;
        }

/* =====================================================
   MEMBERS PAGE
===================================================== */

.dashboard-main h1 {
    margin: 0 0 28px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.dashboard-main h2 {
    margin: 34px 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
}

/* =====================================================
   FORMS (User erstellen & Aktionen)
===================================================== */

.dashboard-main form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 32px;
}

.dashboard-main input,
.dashboard-main select {
    padding: 14px 15px;
    font-size: 15px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #0f172a;
}

    .dashboard-main input:focus,
    .dashboard-main select:focus {
        outline: none;
        border-color: #4f46e5;
    }

/* BUTTONS */

.dashboard-main button {
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 14px;
    border: none;
    background: #4f46e5;
    color: #ffffff;
    cursor: pointer;
}

    .dashboard-main button:hover {
        background: #4338ca;
    }

/* Inline-Forms in der Tabelle sauber halten */
.dashboard-main td form {
    margin: 0;
}

/* Delete-Button neutral */
.dashboard-main td button[onclick] {
    padding: 10px 12px;
    font-size: 15px;
    background: #f1f5f9;
    color: #0f172a;
}

/* =====================================================
   TABLE (Members)
===================================================== */

.table-wrapper {
    margin-top: 10px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    max-height: 520px; /* ~10 Einträge sichtbar */
    overflow-y: auto;
}

    /* Scrollbar */
    .table-wrapper::-webkit-scrollbar {
        width: 8px;
    }

    .table-wrapper::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 4px;
    }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

thead th {
    position: sticky;
    top: 0;
    background: #f8fafc;
    padding: 16px;
    font-weight: 600;
    color: #475569;
    border-bottom: 1px solid #e5e7eb;
}

tbody td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #0f172a;
    vertical-align: middle;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: #f9fafb;
}

/* Aktionen nebeneinander ruhig */
tbody td:last-child {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* =====================================================
   BACK LINK
===================================================== */

.dashboard-main a {
    font-size: 15px;
    font-weight: 500;
    color: #4f46e5;
    text-decoration: none;
}

    .dashboard-main a:hover {
        text-decoration: underline;
    }

/* =====================================================
   LEGAL PAGE FIX (WICHTIG)
===================================================== */

.legal-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
    color: #ffffff;
    display: flex;
    flex-direction: column;
}


/* CARD */

.legal-card {
    width: 100%;
    max-width: 750px;
    background: rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 40px 36px;
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: left;
    margin: 40px auto;
}

    /* TYPO */

    .legal-card h1 {
        margin: 0 0 24px;
        font-size: 28px;
        font-weight: 800;
        color: #ffcb05;
    }

    .legal-card h2 {
        margin: 30px 0 12px;
        font-size: 18px;
        font-weight: 600;
    }

    .legal-card p {
        margin: 0 0 16px;
        font-size: 15px;
        line-height: 1.6;
        color: rgba(255,255,255,0.9);
    }

    .legal-card strong {
        color: #ffffff;
        font-weight: 600;
    }

/* LINK */

.legal-back {
    display: inline-block;
    margin-top: 30px;
    font-size: 14px;
    font-weight: 600;
    color: #ffcb05;
    text-decoration: none;
}

    .legal-back:hover {
        text-decoration: underline;
    }

/* MOBILE */

@media (max-width: 600px) {
    .legal-card {
        padding: 30px 22px;
        border-radius: 14px;
    }

        .legal-card h1 {
            font-size: 24px;
        }

        .legal-card p {
            font-size: 14px;
        }
}


/* =====================================================
   FOOTER TEXT
===================================================== */

.coming-footer {
    margin-top: 28px;
    font-size: 13px;
    color: #64748b;
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 520px) {
    .coming-card {
        padding: 36px 28px;
        border-radius: 18px;
    }

    .coming-title {
        font-size: 24px;
    }

    .coming-text {
        font-size: 14px;
    }
}
/* =====================================================
   HEADER / TOPBAR
===================================================== */

.topbar {
    height: 64px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

/* LEFT */

.topbar-left {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

/* RIGHT */

.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
}

    /* USER */

    .topbar-right .user {
        color: #64748b;
        white-space: nowrap;
    }

/* BUTTONS */

.admin-btn,
.logout-btn {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    background: #f1f5f9;
    color: #0f172a;
}

/* ADMIN – leicht hervorgehoben */

.admin-btn {
    background: #eef2ff;
    color: #4f46e5;
}

/* MOBILE */

@media (max-width: 720px) {
    .topbar {
        flex-wrap: wrap;
        height: auto;
        gap: 10px;
        padding: 14px 20px;
    }

    .topbar-right {
        width: 100%;
        justify-content: space-between;
    }
}
/* =====================================================
   FOOTER
===================================================== */

.site-footer {
    margin-top: auto;
    padding: 28px 20px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

/* NAV */

.site-footer-nav {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 10px;
}

    .site-footer-nav a {
        font-size: 14px;
        font-weight: 500;
        color: #64748b;
        text-decoration: none;
    }

        .site-footer-nav a:hover {
            text-decoration: underline;
        }

/* COPYRIGHT */

.site-footer-copy {
    font-size: 13px;
    color: #94a3b8;
}

/* MOBILE */

@media (max-width: 480px) {
    .site-footer-nav {
        gap: 18px;
        flex-wrap: wrap;
    }
}





/* =====================================================
   DASHBOARD – MOBILE XXL (Fingerfreundlich)
===================================================== */

@media (max-width: 640px) {

    /* ---------- Container ---------- */

    .container {
        padding: 20px 16px;
    }

    /* ---------- Headline ---------- */

    .dashboard-main h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    /* ---------- Forms ---------- */

    .dashboard-main form {
        gap: 16px;
        margin-bottom: 28px;
    }

    .dashboard-main input,
    .dashboard-main select {
        font-size: 17px;
        padding: 16px 18px;
        border-radius: 18px;
    }

    .dashboard-main button {
        font-size: 17px;
        padding: 16px 18px;
        border-radius: 18px;
    }

    /* ---------- Tabelle ---------- */

    .table-wrapper {
        border-radius: 18px;
    }

    table {
        font-size: 15px;
        min-width: 880px; /* etwas mehr Luft */
    }

    thead th {
        font-size: 14px;
        padding: 16px 14px;
    }

    tbody td {
        font-size: 15px;
        padding: 16px 14px;
    }

    /* Delete-Icon fingerfreundlich */
    table a {
        font-size: 22px;
        padding: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* ---------- Sidebar ---------- */

    .dashboard-sidebar {
        padding: 22px 20px;
        border-radius: 18px;
    }

        .dashboard-sidebar h3 {
            font-size: 18px;
            margin-bottom: 16px;
        }

    .team-list li {
        font-size: 16px;
        padding: 14px 8px;
    }

        .team-list li span {
            font-size: 14px;
        }
}

/* =====================================================
   EXTRA KLEINE HANDYS (≤ 400px)
===================================================== */

@media (max-width: 400px) {

    .dashboard-main h1 {
        font-size: 22px;
    }

    .dashboard-main input,
    .dashboard-main select,
    .dashboard-main button {
        font-size: 16px;
        padding: 15px 16px;
    }

    table {
        min-width: 920px; /* damit nichts quetscht */
    }
}








/* =====================================================
   PUBLIC HEADER (ZENTRIERT & CLEAN)
===================================================== */

.topbar-public {
    width: 100%;
    padding: 16px 20px;
}

.topbar-public-inner {
    max-width: 900px; /* gleiche Breite wie Content */
    margin: 0 auto; /* zentrieren */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */

.topbar-public-left {
    font-size: 20px;
    font-weight: 800;
    color: #ffcb05;
}

/* BUTTON */

.topbar-public-right {
    display: flex;
    align-items: center;
}

/* LOGIN */

.login-btn-public {
    padding: 10px 16px;
    border-radius: 12px;
    background: #ffcb05;
    color: #222;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

    .login-btn-public:hover {
        transform: translateY(-1px);
        opacity: 0.9;
    }

/* LOGOUT */

.logout-btn-public {
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

    .logout-btn-public:hover {
        background: rgba(255,255,255,0.25);
    }

/* =====================================================
   PUBLIC FOOTER (ZENTRIERT & INTEGRIERT)
===================================================== */

.site-footer-public {
    margin-top: 60px;
    padding: 30px 20px;
}

.site-footer-public-inner {
    max-width: 900px; /* gleiche Breite wie Content */
    margin: 0 auto; /* zentrieren */
    text-align: center;
}

/* NAV */

.site-footer-public-nav {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 12px;
}

    .site-footer-public-nav a {
        font-size: 14px;
        color: #ffffff;
        opacity: 0.85;
        text-decoration: none;
        transition: 0.2s;
    }

        .site-footer-public-nav a:hover {
            opacity: 1;
            text-decoration: underline;
        }

/* COPYRIGHT */

.site-footer-public-copy {
    font-size: 13px;
    opacity: 0.6;
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {
    .topbar-public-inner {
        padding: 0 10px;
    }

    .site-footer-public-nav {
        gap: 16px;
        flex-wrap: wrap;
    }
}

/* =====================================================
   PUBLIC HEADER – HERVORHEBUNG
===================================================== */

.topbar-public {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.25); /* dunkle Leiste */
    backdrop-filter: blur(6px); /* leichter Glass-Effekt */
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* =====================================================
   PUBLIC FOOTER – HERVORHEBUNG
===================================================== */

.site-footer-public {
    margin-top: 60px;
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.25); /* gleiche Leiste */
    backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.logo-link {
    color: #ffcb05;
    text-decoration: none;
    font-weight: 800;
}

    .logo-link:hover {
        opacity: 0.9;
    }


/* =====================================================
   COMING PAGE (STARTSEITE)
===================================================== */

.coming-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.coming-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.coming-card {
    max-width: 500px;
    width: 100%;
    padding: 40px;
    text-align: center;
}

.coming-badge {
    display: inline-block;
    margin-bottom: 20px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.15);
    font-size: 13px;
}

.coming-title {
    font-size: 28px;
    margin-bottom: 12px;
}

.coming-text {
    font-size: 15px;
    opacity: 0.85;
}

.coming-loader {
    margin: 20px auto;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: #ffcb05;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
/* =====================================================
   COMING ELEMENTE (einheitlich integriert)
===================================================== */

.coming-badge {
    display: inline-block;
    margin-bottom: 20px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.15);
    font-size: 13px;
}

.coming-loader {
    margin: 25px auto 10px;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: #ffcb05;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* =====================================================
   DEV BANNER
===================================================== */

.dev-banner {
    width: 100%;
    padding: 14px 20px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(90deg, #ffcb05, #ff9900);
    color: #222;
    border-bottom: 2px solid rgba(0,0,0,0.15);
    letter-spacing: 0.3px;
}

/* kleiner Glow Effekt */

.dev-banner {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}


/* =====================================================
   DEV REDIRECT (DASHBOARD STYLE)
===================================================== */

.dev-redirect-box {
    margin-bottom: 24px;
    padding: 22px 20px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    text-align: center;
}

/* Inhalt */

.dev-redirect-content h2 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.dev-redirect-content p {
    margin: 0 0 16px;
    font-size: 14px;
    color: #475569;
}

/* Button */

.dev-redirect-btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 12px;
    background: #4f46e5;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

    .dev-redirect-btn:hover {
        background: #4338ca;
    }