/* ========================================
   RESET
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family:
        Inter,
        Segoe UI,
        sans-serif;

    line-height: 1.5;
}

/* ========================================
   LOGIN PAGE
======================================== */

.login-page {

    min-height: 100vh;

    display: flex;

    flex-direction: column;

    background:
        radial-gradient(circle at center,
            #0f172a 0%,
            #020617 100%);

    overflow-x: hidden;

    position: relative;
}

/* ========================================
   GRID
======================================== */

.login-page::before {

    content: '';

    position: absolute;

    inset: 0;

    background-image:

        linear-gradient(rgba(255, 255, 255, .025) 1px,
            transparent 1px),

        linear-gradient(90deg,
            rgba(255, 255, 255, .025) 1px,
            transparent 1px);

    background-size:
        70px 70px;

    pointer-events: none;
}

/* ========================================
   LIGHTS
======================================== */

.login-page::after {

    content: '';

    position: absolute;

    inset: 0;

    background:

        radial-gradient(circle at 50% -10%,
            rgba(59, 130, 246, .18),
            transparent 40%),

        radial-gradient(circle at 80% 50%,
            rgba(139, 92, 246, .10),
            transparent 40%);

    pointer-events: none;
}

/* ========================================
   LOGIN BOX
======================================== */

.login-box {

    width: min(450px, 92%);

    padding: 50px;

    margin: auto;

    position: relative;

    z-index: 5;

    border-radius: 28px;

    background:
        rgba(15, 23, 42, .75);

    border:
        1px solid rgba(255, 255, 255, .08);

    backdrop-filter:
        blur(20px);

    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .04),
        0 25px 50px rgba(0, 0, 0, .55);

    animation:
        fadeIn .8s ease;
}

@keyframes fadeIn {

    from {

        opacity: 0;

        transform:
            translateY(20px);
    }

    to {

        opacity: 1;

        transform:
            translateY(0);
    }
}

/* ========================================
   LOGO
======================================== */

.logo-container {

    text-align: center;

    margin-bottom: 35px;
}

.login-box h1 {

    color: white;

    font-size: 38px;

    font-weight: 800;

    margin-bottom: 10px;

    letter-spacing: -1px;
}

.login-subtitle {

    color:
        rgba(255, 255, 255, .55);

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 3px;
}

/* ========================================
   INPUTS
======================================== */

.login-box input {

    width: 100%;

    padding: 18px;

    margin-bottom: 18px;

    border-radius: 14px;

    border:
        1px solid rgba(255, 255, 255, .08);

    background:
        rgba(255, 255, 255, .03);

    color: white;

    font-size: 15px;

    outline: none;

    transition: .25s;
}

.login-box input::placeholder {

    color:
        rgba(255, 255, 255, .4);
}

.login-box input:focus {

    border-color:
        rgba(59, 130, 246, .6);

    background:
        rgba(255, 255, 255, .05);

    box-shadow:
        0 0 20px rgba(59, 130, 246, .15);
}

/* ========================================
   BUTTON
======================================== */

.login-box button {

    width: 100%;

    padding: 18px;

    border: none;

    border-radius: 14px;

    cursor: pointer;

    color: white;

    font-size: 15px;

    font-weight: 700;

    background:

        linear-gradient(135deg,
            #3b82f6,
            #6366f1);

    transition: .25s;
}

.login-box button:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 12px 30px rgba(59, 130, 246, .25);
}

.login-box button:active {

    transform:
        scale(.98);
}

/* ========================================
   ERROR
======================================== */

.error-box {

    margin-bottom: 18px;

    padding: 14px;

    border-radius: 12px;

    color: #fecaca;

    background:
        rgba(239, 68, 68, .15);

    border:
        1px solid rgba(239, 68, 68, .25);
}

/* ========================================
   MOBILE
======================================== */

@media (max-width:600px) {

    .login-box {

        padding: 35px;
    }

    .login-box h1 {

        font-size: 30px;
    }
}

/*
########################################################
DASHBOARD
########################################################
*/

body:not(.login-page) {

    background:
        #0f172a;

    background-image:

        radial-gradient(circle at top,
            #243244 0%,
            #172235 35%,
            #0f172a 100%);

    background-attachment: fixed;

    color: white;

    min-height: 100vh;
}

/* ========================================
   GRID BACKGROUND
======================================== */

body:not(.login-page)::before {

    content: '';

    position: fixed;

    inset: 0;

    background-image:

        linear-gradient(rgba(255, 255, 255, .025) 1px,
            transparent 1px),

        linear-gradient(90deg,
            rgba(255, 255, 255, .025) 1px,
            transparent 1px);

    background-size:
        70px 70px;

    pointer-events: none;

    z-index: -2;
}

/* ========================================
   LIGHT EFFECTS
======================================== */

body:not(.login-page)::after {

    content: '';

    position: fixed;

    inset: 0;

    background:

        radial-gradient(circle at 15% 10%,
            rgba(59, 130, 246, .08),
            transparent 35%),

        radial-gradient(circle at 85% 15%,
            rgba(99, 102, 241, .08),
            transparent 35%);

    pointer-events: none;

    z-index: -1;
}

/* ========================================
   CONTAINER
======================================== */

.container {

    max-width: 1400px;

    margin: 0 auto;

    padding: 40px 25px;
}

/* ========================================
   HEADER
======================================== */

.dashboard-header {

    margin-bottom: 50px;

    padding: 35px;

    border-radius: 28px;

    background:
        rgba(255, 255, 255, .05);

    border:
        1px solid rgba(255, 255, 255, .08);

    backdrop-filter:
        blur(18px);

    box-shadow:
        0 20px 40px rgba(0, 0, 0, .15);

    text-align: center;
}

.dashboard-header h1 {

    font-size:
        clamp(38px,
            6vw,
            64px);

    font-weight: 800;

    letter-spacing: -2px;

    margin-bottom: 12px;

    color: white;
}

.dashboard-header p {

    color:
        rgba(255, 255, 255, .70);

    font-size: 18px;
}

/* ========================================
   SECTIONS
======================================== */

.dashboard-section {

    margin-bottom: 50px;
}

.dashboard-section h2 {

    font-size: 32px;

    font-weight: 700;

    margin-bottom: 25px;

    color: white;
}

/* ========================================
   GRID
======================================== */

.dashboard-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit,
            minmax(280px, 1fr));

    gap: 24px;
}

/* ========================================
   CARDS
======================================== */

.dashboard-card {

    position: relative;

    overflow: hidden;

    min-height: 180px;

    padding: 30px;

    text-decoration: none;

    color: white;

    border-radius: 24px;

    background:
        rgba(255, 255, 255, .04);

    border:
        1px solid rgba(255, 255, 255, .08);

    backdrop-filter:
        blur(16px);

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    transition:
        all .25s ease;
}

.dashboard-card::before {

    content: '';

    position: absolute;

    inset: 0;

    background:

        linear-gradient(135deg,
            rgba(255, 255, 255, .03),
            transparent);

    pointer-events: none;
}

.dashboard-card:hover {

    transform:
        translateY(-6px);

    background:
        rgba(255, 255, 255, .08);

    border-color:
        rgba(59, 130, 246, .25);

    box-shadow:
        0 15px 35px rgba(59, 130, 246, .15);
}

.dashboard-card span {

    display: flex;

    justify-content: center;

    align-items: center;

    width: 100%;

    font-size: 48px;

    margin-bottom: 20px;
}

.dashboard-card {

    font-size: 17px;

    font-weight: 600;
}

/* ========================================
   ROLLEN FARBEN
======================================== */

.dashboard-section:first-of-type .dashboard-card {

    border-left:
        4px solid rgba(59, 130, 246, .45);
}

.dashboard-section:nth-of-type(2) .dashboard-card {

    border-left:
        4px solid rgba(34, 197, 94, .45);
}

.dashboard-section:nth-of-type(3) .dashboard-card {

    border-left:
        4px solid rgba(168, 85, 247, .45);
}

/* ========================================
   MOBILE
======================================== */

@media (max-width:900px) {

    .container {

        padding: 15px;
    }

    .dashboard-header {

        padding: 25px;
    }

    .dashboard-header h1 {

        font-size: 42px;
    }

    .dashboard-section h2 {

        text-align: center;
    }

    .dashboard-grid {

        grid-template-columns: 1fr;
    }
}

/*
########################################################
USERS
########################################################
*/

/* ========================================
   STANDARD CARD
======================================== */

.card {

    background:
        rgba(255, 255, 255, .04);

    border:
        1px solid rgba(255, 255, 255, .08);

    border-radius: 24px;

    padding: 30px;

    backdrop-filter:
        blur(16px);

    margin-bottom: 30px;
}

/* ========================================
   FORMULAR
======================================== */

.card form {

    display: flex;

    flex-direction: column;

    gap: 15px;
}

.card input,
.card select,
.card textarea {

    width: 100%;

    min-width: 0;

    padding: 16px;

    border-radius: 14px;

    border:
        1px solid rgba(255, 255, 255, .08);

    background:
        rgba(255, 255, 255, .04);

    color: white;

    font-size: 15px;

    outline: none;

    transition: .2s;
}

.card input:focus,
.card select:focus,
.card textarea:focus {

    border-color:
        rgba(59, 130, 246, .5);

    box-shadow:
        0 0 15px rgba(59, 130, 246, .15);
}

.card select option {

    background: #1e293b;

    color: white;
}

/* ========================================
   BUTTONS
======================================== */

.card button {

    padding: 16px;

    border: none;

    border-radius: 14px;

    cursor: pointer;

    font-weight: 700;

    color: white;

    background:

        linear-gradient(135deg,
            #3b82f6,
            #6366f1);

    transition: .25s;
}

.card button:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 10px 25px rgba(59, 130, 246, .25);
}

.edit-btn {

    display: inline-block;

    padding: 12px 18px;

    border-radius: 12px;

    text-decoration: none;

    background:
        rgba(59, 130, 246, .15);

    border:
        1px solid rgba(59, 130, 246, .25);

    color: #60a5fa;

    transition: .25s;
}

.edit-btn:hover {

    background:
        rgba(59, 130, 246, .25);
}

.delete-btn {

    display: inline-block;

    padding: 12px 18px;

    border-radius: 12px;

    text-decoration: none;

    background:
        rgba(239, 68, 68, .15);

    border:
        1px solid rgba(239, 68, 68, .25);

    color: #f87171;

    transition: .25s;
}

.delete-btn:hover {

    background:
        rgba(239, 68, 68, .25);
}

/* ========================================
   MELDUNGEN
======================================== */

.success-box {

    margin-bottom: 25px;

    padding: 16px;

    border-radius: 14px;

    background:
        rgba(34, 197, 94, .12);

    border:
        1px solid rgba(34, 197, 94, .25);

    color: #86efac;

    text-align: center;
}

.error-box {

    margin-bottom: 25px;

    padding: 16px;

    border-radius: 14px;

    background:
        rgba(239, 68, 68, .12);

    border:
        1px solid rgba(239, 68, 68, .25);

    color: #fca5a5;

    text-align: center;
}

/* ========================================
   USER GRID
======================================== */

.user-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit,
            minmax(280px, 1fr));

    gap: 24px;
}

.user-card {

    background:
        rgba(255, 255, 255, .04);

    border:
        1px solid rgba(255, 255, 255, .08);

    border-radius: 24px;

    padding: 30px;

    text-align: center;

    backdrop-filter:
        blur(16px);

    transition: .25s;
}

.user-card:hover {

    transform:
        translateY(-5px);

    border-color:
        rgba(59, 130, 246, .20);

    box-shadow:
        0 15px 35px rgba(59, 130, 246, .10);
}

.user-name {

    font-size: 22px;

    font-weight: 700;

    margin-bottom: 20px;
}

/* ========================================
   ROLLEN
======================================== */

.role-badge {

    display: inline-block;

    padding: 10px 18px;

    border-radius: 999px;

    font-size: 14px;

    font-weight: 700;

    margin-bottom: 25px;
}

.role-administrator {

    background:
        rgba(59, 130, 246, .15);

    color: #60a5fa;

    border:
        1px solid rgba(59, 130, 246, .25);
}

.role-insasse {

    background:
        rgba(34, 197, 94, .15);

    color: #4ade80;

    border:
        1px solid rgba(34, 197, 94, .25);
}

.role-praktikant {

    background:
        rgba(168, 85, 247, .15);

    color: #c084fc;

    border:
        1px solid rgba(168, 85, 247, .25);
}

/* ========================================
   TABELLEN
======================================== */

.user-search {

    width: 100%;

    max-width: 400px;

    margin: 0 auto 20px auto;

    display: block;
}

.user-table {

    width: 100%;

    border-collapse: collapse;

    background:
        rgba(255, 255, 255, .04);

    border:
        1px solid rgba(255, 255, 255, .08);

    border-radius: 24px;

    overflow: hidden;

    backdrop-filter:
        blur(16px);
}

.user-table th {

    padding: 18px;

    text-align: left;

    background:
        rgba(255, 255, 255, .03);

    font-size: 14px;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.user-table td {

    padding: 18px;

    border-top:
        1px solid rgba(255, 255, 255, .05);
}

.user-table tr:hover {

    background:
        rgba(255, 255, 255, .03);
}

.user-table-wrapper {

    max-height: 350px;

    overflow-y: auto;

    border-radius: 20px;
}

/* ========================================
   MOBILE
======================================== */

@media (max-width:768px) {

    .card {

        padding: 22px;
    }

    .user-grid {

        grid-template-columns: 1fr;
    }

    .user-table th,
    .user-table td {

        padding: 12px;
    }



    .edit-btn,
    .delete-btn {

        width: 100%;

        margin: 5px 0;
    }
}

/*
########################################################
HEADER / NAVIGATION
########################################################
*/

.topbar {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    padding: 20px 30px;

    margin-bottom: 30px;

    background:
        rgba(255, 255, 255, .04);

    border:
        1px solid rgba(255, 255, 255, .08);

    border-radius: 24px;

    backdrop-filter:
        blur(16px);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .15);
}

.topbar-left {

    display: flex;

    flex-direction: column;
}

.topbar-title {

    font-size: 24px;

    font-weight: 800;

    color: white;
}

.topbar-subtitle {

    margin-top: 4px;

    font-size: 13px;

    letter-spacing: 1px;

    text-transform: uppercase;

    color:
        rgba(255, 255, 255, .60);
}

.topbar-right {

    display: flex;

    align-items: center;

    gap: 15px;

    flex-wrap: wrap;
}

.user-badge {

    padding: 10px 16px;

    border-radius: 999px;

    background:
        rgba(59, 130, 246, .12);

    border:
        1px solid rgba(59, 130, 246, .20);

    color: #93c5fd;

    font-size: 14px;

    font-weight: 600;
}

.logout-btn {

    padding: 10px 18px;

    border-radius: 12px;

    text-decoration: none;

    color: white;

    background:

        linear-gradient(135deg,
            #3b82f6,
            #6366f1);

    transition: .25s;
}

.logout-btn:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 8px 20px rgba(59, 130, 246, .25);
}

/*
########################################################
PORTAL HEADER
########################################################
*/

.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    margin-bottom: 40px;
    background: rgba( 30, 41, 59, .75 );
    border-radius: 28px;
    border: 1px solid rgba( 255, 255, 255, .08 );
}

.portal-spacer {
    width: 260px;
    flex-shrink: 0;
}

.portal-brand {
    flex: 1;
    text-decoration: none;
    color: inherit;
    text-align: center;
}

.portal-title {
    margin: 0;
    text-align: center;
}

.portal-subtitle {
    text-align: center;
}

.portal-user {
    width: 260px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    flex-shrink: 0;
}

.portal-user-details {
    text-align: right;
}

.portal-user-name {
    font-size: 22px;
    font-weight: 700;
}

.portal-user-role {
    opacity: .7;
    font-size: 14px;
}

.portal-user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient( 135deg, #3b82f6, #6366f1 );
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 20px;
}

.logout-btn {
    background: #ef4444;
    color: white;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    transition: .2s;
}

    .logout-btn:hover {
        opacity: .9;
    }


/*
########################################################
MOBILE
########################################################
*/

@media (max-width:768px) {

    .portal-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 30px 20px;
        gap: 20px;
    }

    .portal-spacer {
        display: none;
    }

    .portal-brand {
        flex: none;
        width: 100%;
    }

    .portal-title {
        font-size: 48px;
        line-height: 1.1;
        margin-bottom: 10px;
    }

    .portal-subtitle {
        font-size: 14px;
        letter-spacing: 2px;
        margin: 0;
    }

    .portal-user {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .portal-user-avatar {
        width: 80px;
        height: 80px;
        font-size: 32px;
        margin: 0;
    }

    .portal-user-details {
        text-align: center;
    }

    .portal-user-name {
        font-size: 26px;
        line-height: 1.2;
    }

    .portal-user-role {
        font-size: 15px;
        margin-top: 5px;
    }

    .logout-btn {
        width: 220px;
        text-align: center;
        margin-top: 10px;
    }
}

/*
########################################################
FOOTER
########################################################
*/

.site-footer {

    margin-top: 60px;

    padding: 30px;

    text-align: center;

    background:
        rgba(255, 255, 255, .04);

    border:
        1px solid rgba(255, 255, 255, .08);

    border-radius: 24px;

    backdrop-filter:
        blur(18px);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .10);
}

.footer-links {

    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 15px;
}

.footer-links a {

    color:
        rgba(255, 255, 255, .80);

    text-decoration: none;

    font-weight: 600;

    transition: .25s;
}

.footer-links a:hover {

    color: #93c5fd;
}

.footer-divider {

    color:
        rgba(255, 255, 255, .30);
}

.footer-copyright {

    margin-top: 15px;

    font-size: 13px;

    color:
        rgba(255, 255, 255, .45);

    letter-spacing: 1px;

    text-transform: uppercase;
}

.login-page .site-footer {

    width: 100%;

    margin-top: 0;
}

@media (max-width:768px) {

    .site-footer {

        padding: 22px;
    }

    .footer-links {

        flex-direction: column;

        gap: 10px;
    }

    .footer-divider {

        display: none;
    }
}

/*
########################################################
IMPRESSUM / DATENSCHUTZ
########################################################
*/

.legal-page {

    min-height: calc(100vh - 250px);

    max-width: 1000px;

    margin: 0 auto;

    display: flex;

    flex-direction: column;

    justify-content: center;
}

.legal-header {

    text-align: center;

    margin-bottom: 40px;

    padding: 40px;

    background:
        rgba(255, 255, 255, .04);

    border:
        1px solid rgba(255, 255, 255, .08);

    border-radius: 24px;

    backdrop-filter:
        blur(18px);
}

.legal-header h1 {

    font-size:
        clamp(36px,
            5vw,
            48px);

    font-weight: 900;

    color: white;

    margin-bottom: 10px;
}

.legal-header p {

    color:
        rgba(255, 255, 255, .60);

    font-size: 15px;
}

.legal-card {

    width: 100%;

    background:
        rgba(255, 255, 255, .04);

    border:
        1px solid rgba(255, 255, 255, .08);

    border-radius: 24px;

    padding: 35px;

    backdrop-filter:
        blur(18px);

    margin-bottom: 25px;

    text-align: center;
}

.legal-card h2 {

    color: white;

    font-size: 24px;

    margin-bottom: 20px;
}

.legal-card h3 {

    color: white;

    font-size: 18px;

    margin-top: 25px;

    margin-bottom: 10px;
}

.legal-card p {

    color:
        rgba(255, 255, 255, .80);

    line-height: 1.8;

    margin-bottom: 15px;
}

.legal-card ul {

    padding-left: 20px;

    color:
        rgba(255, 255, 255, .80);
}

.legal-card li {

    margin-bottom: 10px;

    line-height: 1.7;
}

.legal-card a {

    color: #93c5fd;

    text-decoration: none;
}

.legal-card a:hover {

    text-decoration: underline;
}

@media (max-width:768px) {

    .legal-header {

        padding: 25px;
    }

    .legal-card {

        padding: 25px;
    }

    .legal-header h1 {

        font-size: 34px;
    }

}

/*
########################################################
BEWERTUNGEN
########################################################
*/

/* ========================================
   TABELLE
======================================== */

.bewertung-table {

    width: 100%;

    border-collapse: collapse;

    text-align: center;
}

.bewertung-table th,
.bewertung-table td {

    padding: 14px;

    text-align: center;

    vertical-align: middle;
}

.bewertung-table th {

    font-weight: 700;
}

.bewertung-table tr:hover {

    background:
        rgba(255, 255, 255, .03);
}

.bewertung-table input[type="text"] {

    width: 100%;

    min-width: 250px;
}

.bewertung-table select {

    min-width: 90px;

    text-align: center;
}

/* ========================================
   DESKTOP / MOBILE
======================================== */

.desktop-table {

    display: block;
}

.mobile-only {

    display: none;
}

/* ========================================
   MOBILE KARTEN
======================================== */

.bewertung-mobile-card {

    margin-bottom: 25px;

    padding: 28px;

    border-radius: 24px;

    background:
        rgba(255, 255, 255, .04);

    border:
        1px solid rgba(255, 255, 255, .08);

    backdrop-filter:
        blur(16px);
}

.bewertung-mobile-card form {

    display: flex;

    flex-direction: column;

    gap: 12px;
}

.mobile-title {

    text-align: center;

    font-size: 20px;

    font-weight: 700;

    margin-bottom: 15px;

    opacity: .85;
}

.mobile-type {

    display: table;

    margin:
        0 auto 20px auto;

    padding:
        8px 18px;

    border-radius: 999px;

    background:
        rgba(59, 130, 246, .12);

    border:
        1px solid rgba(59, 130, 246, .30);

    color: #7cb8ff;

    font-size: 13px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.mobile-gericht {

    font-size: 30px;

    font-weight: 800;

    text-align: center;

    line-height: 1.15;

    max-width: 85%;

    margin:
        0 auto 25px auto;

    overflow-wrap: break-word;
}

.mobile-average {

    text-align: center;

    font-size: 32px;

    font-weight: 800;

    margin:
        15px 0 25px;
}

.bewertung-mobile-card input,
.bewertung-mobile-card select {

    background:
        rgba(255, 255, 255, .04);

    border:
        1px solid rgba(255, 255, 255, .08);

    color: white;

    border-radius: 14px;

    padding: 16px;
}

.bewertung-mobile-card .delete-btn {

    width: 100%;

    text-align: center;
}

.bewertung-mobile-card button {

    width: 100%;

    text-align: center;

    padding: 16px;

    border-radius: 12px;

    font-size: 16px;

    font-weight: 700;

    background:
        rgba(59, 130, 246, .15);

    border:
        1px solid rgba(59, 130, 246, .25);

    color: #60a5fa;
}

/* ========================================
   MOBILE
======================================== */

@media (max-width:768px) {

    .desktop-table {

        display: none;
    }

    .mobile-only {

        display: block;
    }

    .mobile-gericht {

        font-size: 28px;
    }

}

/*
########################################################
BEWERTUNG ANSEHEN
########################################################
*/

.bewertung-ansehen-card {

    margin-bottom: 25px;

    padding: 30px;

    border-radius: 24px;

    background:
        rgba(255, 255, 255, .04);

    border:
        1px solid rgba(255, 255, 255, .08);

    backdrop-filter:
        blur(12px);
}

/* ========================================
   HEADER
======================================== */

.bewertung-ansehen-header {

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;
}

.bewertung-ansehen-tag {

    font-size: 15px;

    opacity: .7;

    margin-bottom: 20px;
}

.bewertung-ansehen-typ {

    display: table;

    margin:
        0 auto 20px auto;

    padding:
        8px 16px;

    border-radius: 999px;

    background:
        rgba(59, 130, 246, .12);

    border:
        1px solid rgba(59, 130, 246, .35);

    color: #7cb8ff;

    font-size: 14px;

    font-weight: 700;
}

.bewertung-ansehen-gericht {

    width: 100%;

    max-width: 100%;

    margin: 20px auto;

    text-align: center;

    font-size: 42px;

    font-weight: 800;

    line-height: 1.15;

    white-space: normal;

    word-break: normal;

    overflow-wrap: normal;
}

.bewertung-ansehen-average {

    width: 100%;

    text-align: center;

    font-size: 32px;

    font-weight: 800;

    margin-bottom: 25px;
}

/* ========================================
   REVIEWS
======================================== */

.bewertung-ansehen-review {

    max-width: 650px;

    margin:
        15px auto 0 auto;

    padding: 18px;

    border-radius: 16px;

    background:
        rgba(255, 255, 255, .03);

    border:
        1px solid rgba(255, 255, 255, .08);
}

.bewertung-ansehen-review-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 10px;
}

.bewertung-ansehen-kommentar {

    margin-top: 20px;

    margin-bottom: 18px;

    line-height: 1.6;
}

.bewertung-ansehen-kommentar-label {

    font-size: 12px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1px;

    opacity: .6;

    margin-bottom: 8px;
}

.bewertung-ansehen-review .delete-btn {

    margin-top: 10px;
}

/* ========================================
   MOBILE
======================================== */

@media (max-width:768px) {

    .bewertung-ansehen-card {

        padding: 24px;
    }

    .bewertung-ansehen-tag {

        font-size: 18px;
    }

    .bewertung-ansehen-gericht {

        font-size: 28px;

        max-width: 90%;

        white-space: normal !important;

        overflow-wrap: break-word;

    }

    .bewertung-ansehen-average {

        font-size: 28px;
    }

    .bewertung-ansehen-review-header {

        flex-direction: column;

        align-items: flex-start;

        gap: 6px;
    }

}

/*
########################################################
ESSEN EINTRAGEN
########################################################
*/

/* ========================================
   DESKTOP / MOBILE
======================================== */

.desktop-history {

    display: block;
}

.mobile-history {

    display: none;
}

/* ========================================
   FORMULARE
======================================== */

.card form {

    width: 100%;
}

.card input,
.card select,
.card textarea,
.card input[type="date"] {

    width: 100%;

    max-width: 100%;

    box-sizing: border-box;
}

/* ========================================
   DATUM
======================================== */

.card input[type="date"] {

    min-height: 56px;
}

/* ========================================
   MOBILE KARTEN
======================================== */

.essen-mobile-card {

    margin-bottom: 20px;

    padding: 28px;

    border-radius: 24px;

    text-align: center;

    background:
        rgba(255, 255, 255, .04);

    border:
        1px solid rgba(255, 255, 255, .08);

    backdrop-filter:
        blur(12px);
}

.essen-mobile-date {

    font-size: 18px;

    font-weight: 700;

    line-height: 1.4;

    margin-bottom: 20px;
}

.essen-mobile-badge {

    display: table;

    margin:
        0 auto 18px auto;

    padding:
        8px 18px;

    border-radius: 999px;

    background:
        rgba(59, 130, 246, .12);

    border:
        1px solid rgba(59, 130, 246, .35);

    color: #7cb8ff;

    font-size: 13px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.essen-mobile-gericht {

    font-size: 34px;

    font-weight: 800;

    line-height: 1.15;

    margin-bottom: 24px;

    overflow-wrap: break-word;

    max-width: 90%;

    margin-left: auto;

    margin-right: auto;
}

.essen-mobile-actions {

    margin-top: 10px;
}

.essen-mobile-actions a {

    display: block;

    width: 100%;

    text-align: center;
}

/* ========================================
   SUCHFELD
======================================== */

#gerichtSuche {

    margin-top: 10px;
}

/* ========================================
   MOBILE
======================================== */

@media (max-width:768px) {

    .desktop-history {

        display: none;
    }

    .mobile-history {

        display: block;
    }

    .essen-mobile-gericht {

        font-size: 28px;
    }

}

/*
########################################################
PROGNOSE
########################################################
*/

.prognose-card {

    margin-bottom: 24px;
}

.prognose-card h2 {

    margin-bottom: 24px;

    text-align: center;
}

.prognose-list {

    display: flex;

    flex-direction: column;

    gap: 24px;
}

.prognose-item {

    display: flex;

    flex-direction: column;

    gap: 8px;
}

.prognose-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    font-size: 16px;

    font-weight: 600;
}

.prognose-bar {

    width: 100%;

    height: 18px;

    border-radius: 999px;

    overflow: hidden;

    background:
        rgba(255, 255, 255, .08);

    border:
        1px solid rgba(255, 255, 255, .05);
}

.prognose-fill {

    height: 100%;

    border-radius: 999px;

    background:

        linear-gradient(90deg,
            #3b82f6,
            #60a5fa);
}

.prognose-count {

    opacity: .7;

    font-size: 14px;
}

/* ========================================
   MOBILE
======================================== */

@media (max-width:768px) {

    .prognose-card {

        padding: 24px;
    }

    .prognose-header {

        flex-direction: column;

        align-items: flex-start;

        gap: 4px;
    }

    .prognose-header strong {

        font-size: 20px;
    }

    .prognose-bar {

        height: 22px;
    }

    .prognose-count {

        text-align: center;
    }

}

/*
########################################################
SNACK SUGGESTIONS
########################################################
*/

.snack-suggestions {

    position: relative;

    width: 100%;

    margin-top: 6px;

    z-index: 999;

    border-radius: 12px;

    overflow: hidden;

    background: #1f2937;

    border:
        1px solid rgba(255,
            255,
            255,
            .08);

    max-height: 300px;

    overflow-y: auto;
}

.snack-suggestion {

    padding: 14px;

    cursor: pointer;

    border-bottom:
        1px solid rgba(255,
            255,
            255,
            .05);

    transition: .15s;
}

.snack-suggestion:last-child {

    border-bottom: none;
}

.snack-suggestion:hover {

    background: #374151;
}

@media (max-width:768px) {

    .snack-suggestion {

        padding: 18px;

        font-size: 16px;
    }

}

/*
########################################################
GLOBAL RESPONSIVE
########################################################
*/

/* ========================================
   STANDARD
======================================== */

.desktop-table,
.desktop-history {

    display: block;
}

.mobile-only,
.mobile-history {

    display: none;
}

/* ========================================
   TABLET
======================================== */

@media (max-width:1024px) {

    .container {

        padding: 20px;
    }

    .dashboard-header h1 {

        font-size: 48px;
    }

    .portal-title {

        font-size: 36px;
    }

    .dashboard-grid {

        grid-template-columns:
            repeat(auto-fit,
                minmax(250px, 1fr));
    }
}

/* ========================================
   MOBILE
======================================== */

@media (max-width:768px) {

    .container {

        padding: 15px;
    }

    /* Umschaltung */

    .desktop-table,
    .desktop-history {

        display: none;
    }

    .mobile-only,
    .mobile-history {

        display: block;
    }

    /* Header */

    .dashboard-header {

        padding: 25px;
    }

    .dashboard-header h1 {

        font-size: 38px;
    }

    .dashboard-header p {

        font-size: 16px;
    }

    /* Cards */

    .card {

        padding: 22px;
    }

    /* Tabellen */

    .user-table th,
    .user-table td {

        padding: 12px;
    }

    /* Buttons */

    .edit-btn,
    .delete-btn {

        width: 100%;

        margin: 5px 0;
    }

    /* Bewertungen */

    .mobile-title {

        font-size: 18px;
    }

    .mobile-gericht {

        font-size: 28px;

        max-width: 90%;
    }

    .mobile-average {

        font-size: 28px;
    }

    /* Bewertung ansehen */

    .bewertung-ansehen-tag {

        font-size: 18px;
    }

    .bewertung-ansehen-gericht {

        font-size: 30px;

        max-width: 90%;
    }

    .bewertung-ansehen-average {

        font-size: 28px;
    }

    /* Essen */

    .essen-mobile-gericht {

        font-size: 28px;
    }

    /* Prognose */

    .prognose-header {

        flex-direction: column;

        align-items: flex-start;

        gap: 4px;
    }

    .prognose-header strong {

        font-size: 20px;
    }
}

/* ========================================
   SEHR KLEINE HANDYS
======================================== */

@media (max-width:480px) {

    .dashboard-header h1 {

        font-size: 32px;
    }

    .portal-title {

        font-size: 26px;
    }

    .mobile-gericht,
    .essen-mobile-gericht,
    .bewertung-ansehen-gericht {

        font-size: 24px;
    }

    .mobile-average,
    .bewertung-ansehen-average {

        font-size: 24px;
    }

}























