body {
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: #e5e7eb;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
}

h1, h2 {
    color: #333;
}

a {
    text-decoration: none;
    color: #0077cc;
}

/* Buttons */
.button {
    background: #f97316;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-block;
}


.button:hover {
    background: #ea580c;
}

.button + .button {
    margin-left: 8px;
}

.button.primary {
    background: #f97316;
}

.button.primary:hover {
    background: #ea580c;
}

.progress {
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
    height: 10px;
    margin-top: 8px;
}

.progress-bar {
    background: #4caf50;
    height: 100%;
}

input, select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

button {
    border: none;
    cursor: pointer;
}

.header {
    background: #1f2937;
    color: white;
    padding: 15px 0;
}

.header-content {
    width: 800px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav a {
    color: white;
    margin-left: 15px;
    font-weight: bold;
}

.nav a:hover {
    text-decoration: underline;
}

.actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Layout */
.app {
    display: flex;
    min-height: 100vh;   /* WICHTIG */
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: #0b1220;
    padding: 20px;
    border-right: 1px solid #1f2937;
    flex-shrink: 0;

    min-height: 100vh;   /* statt height */
}

.sidebar h2 {
    color: #f59e0b;
}

.sidebar a {
    display: block;
    color: #9ca3af;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 5px;
}

.sidebar a:hover {
    background: #1f2937;
    color: white;
}

.sidebar a.active {
    background: #f97316;
    color: white;
}

/* Content */
.content {
    flex: 1;
    padding: 30px 40px;   /* vorher 30px */
    box-sizing: border-box;
    padding-bottom: 90px;
}

.content-inner {
    max-width: 100%;
}

/* Cards */
.card {
    background: #1f2937;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.topbar-left h2 {
    margin: 0;
}

.subtitle {
    font-size: 12px;
    color: #9ca3af;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-right form {
    margin: 0;
}

.topbar-right form .search {
    width: 260px;
    min-width: 260px;
}

.topbar-right .search {
    width: 260px !important;
    min-width: 260px;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: #111827;
    color: white;
    box-sizing: border-box;
}

.stats {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
}

.stat-card {
    background: #111827;
    padding: 20px;
    border-radius: 12px;
    flex: 1;
    border: 1px solid #273244;
}

.logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo img {
    width: 120px;
}

/* Mobile Bottom Navigation */
.mobile-nav {
    display: none;
}

.mobile-logo {
    display: none;
}

.mobile-logo img {
    width: 90px;
}

.mobile-nav a.active {
    color: #f97316;
    font-weight: bold;
}

.mobile-nav a.active span {
    color: #f97316;
}

/* LOGIN */

.login-body {
    background: #0f172a;
}

.login-container {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;
}

.login-card {
    background: #111827;

    width: 100%;
    max-width: 400px;

    padding: 35px;
    border-radius: 20px;

    border: 1px solid #1f2937;
}

.login-logo {
    width: 140px;
    display: block;
    margin: 0 auto 20px;
}

.login-card h1 {
    color: white;
    margin-bottom: 5px;
    text-align: center;
}

.login-subtitle {
    text-align: center;
    color: #9ca3af;
    margin-bottom: 30px;
}

.login-card form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-card input {
    background: #1f2937;
    border: 1px solid #273244;
    color: white;

    padding: 12px;
    border-radius: 10px;
}

.login-button {
    width: 100%;
    margin-top: 10px;
}

.login-error {
    margin-top: 15px;
    color: #f87171;
    text-align: center;
}

.form-container {
    display: flex;
    justify-content: center;
}

.form-card {
    background: #111827;
    width: 100%;
    max-width: 700px;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #1f2937;
}

.form-card form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

input,
select,
textarea {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #273244;
    background: #1f2937;
    color: white;
    box-sizing: border-box;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-row input {
    width: auto;
    margin: 0;
}

.form-card h2 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 20px;
    color: white;
}

.search-info {
    background: #1f2937;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #273244;
}

.search {
    display: block !important;

    width: 260px !important;
    min-width: 260px !important;

    background: #111827 !important;
    color: white !important;

    border: 1px solid #273244 !important;
    border-radius: 8px !important;

    padding: 10px !important;
}

.sidebar-version {
    margin-top: auto;
    padding-top: 20px;

    border-top: 1px solid #273244;

    font-size: 12px;
    color: #6b7280;
    text-align: center;
}

@media (max-width: 768px) {

    .app {
        flex-direction: column;
    }

    .sidebar {
        display: none;
    }

    .content {
        padding: 20px;
    }

    .stats {
        flex-direction: column;
    }

    .topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .search {
        width: 100%;
    }

    .button {
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 16px;
    }

    .card {
        padding: 15px;
    }

    .progress {
        height: 12px;
    }

    .stat-card {
        padding: 15px;
        font-size: 14px;
    }

    .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;

    height: 70px;

    background: #111827;
    border-top: 1px solid #1f2937;

    display: flex;
    justify-content: space-around;
    align-items: center;

    z-index: 1000;
    }

    .mobile-nav a {
        color: #9ca3af;
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 12px;
        gap: 4px;
    }

    .mobile-nav a:hover {
        color: white;
    }

    .mobile-logo {
     display: flex;
     justify-content: center;
     margin-bottom: 10px;
    }

    .search {
     display: none;
    }

    .topbar .button {
     display: none;
    }

    .topbar-right {
     flex-direction: row;
     justify-content: flex-end;
    }

    .user {
     color: #e5e7eb;
     font-size: 14px;
    }


    .login-container {
        align-items: flex-start;
        padding-top: 60px;
    }

    .mobile-add {
     position: absolute;

     top: -25px;
     left: 50%;

     transform: translateX(-50%);

     background: #f97316;
     color: white !important;

     width: 60px;
     height: 60px;

     border-radius: 50%;

     display: flex !important;
     justify-content: center;
     align-items: center;

     font-size: 36px;
     font-weight: bold;

     box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }

    .form-card {
        padding: 18px;
    }

    form {
     gap: 12px;
    }

    input,
    select {
        font-size: 12px;
    }
    .header {
     display: none;
    }

}
