/* =========================================
   BASIS
========================================= */

body {

    font-family: "Segoe UI", Arial, sans-serif;

    margin: 0;

    background: #f4f6f9;

    color: #1f2937;

}


/* =========================================
   HEADER
========================================= */

.top-header {

    text-align: center;

    padding: 25px 20px;

    background: white;

    border-bottom: 1px solid #e5e7eb;

}

.header-logo {

    height: 80px;
    width: auto;

}


/* =========================================
   NAVIGATION
========================================= */

.main-navigation {
    background: #0f4c97;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.main-navigation .nav-list {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    justify-content: center;
    align-items: center;
}

.main-navigation .nav-list > li {
    position: relative;
}

.main-navigation .nav-list > li > a {
    display: block;
    padding: 17px 24px;

    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;

    transition: 0.2s;
}

.main-navigation .nav-list > li > a:hover {
    background: #083b79;
}

/* Dropdown verstecken */

.dropdown-menu {
    display: none;
    position: absolute;

    top: 100%;
    left: 0;

    min-width: 230px;

    background: #ffffff;
    border: 1px solid #dbe1ea;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);

    padding: 6px 0;
    margin: 0;

    list-style: none;
    z-index: 1000;
}

/* Dropdown anzeigen */

.dropdown:hover .dropdown-menu {
    display: block;
}

/* Dropdown Links */

.dropdown-menu li a {
    display: block;

    padding: 12px 18px;

    color: #1f2937;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;

    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background: #f1f5f9;
    color: #0f4c97;
}


/* =========================================
   CONTENT
========================================= */

.content {

    max-width: 1000px;

    margin: 60px auto;

    padding: 0 20px;

}


/* Titel */

h1 {

    font-size: 32px;

    margin-bottom: 30px;

    font-weight: 600;

}


/* =========================================
   DASHBOARD CARDS
========================================= */

.dashboard-cards {

    display: flex;

    gap: 25px;

    flex-wrap: wrap;

}


/* Einzelne Karte */

.card {

    flex: 1;

    min-width: 240px;

    padding: 35px;

    background: white;

    border-radius: 12px;

    border: 1px solid #e5e7eb;

    text-decoration: none;

    color: #2563eb;

    font-weight: 600;

    text-align: center;

    font-size: 18px;

    transition: 0.2s;

    box-shadow:

        0 2px 6px rgba(0,0,0,0.05);

}


/* Hover-Effekt */

.card:hover {

    transform: translateY(-4px);

    box-shadow:

        0 10px 25px rgba(0,0,0,0.08);

    background: #f9fbff;

}


/* =========================================
   FOOTER
========================================= */

.footer {

    margin-top: 80px;

    text-align: center;

    padding: 25px;

    color: #9ca3af;

    font-size: 14px;

}

/* =========================
   Content Bereich
========================= */

.content {
    max-width: 1000px;
    margin: 30px auto;
}

/* =========================
   Buttons
========================= */

.btn-primary {
    display: inline-block;
    padding: 10px 16px;
    background: #2c7be5;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}

.btn-primary:hover {
    background: #1a68d1;
}

.btn-small {
    padding: 6px 10px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    margin-right: 5px;
}

.btn-small:hover {
    background: #545b62;
}

.btn-success {
    background: #28a745;
}

.btn-success:hover {
    background: #1e7e34;
}

/* =========================
   Tabelle
========================= */

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.table th {
    background: #f4f6f9;
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid #dee2e6;
}

.table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

.table-modern th {
    padding: 14px 16px;
    background: #f4f6f9;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

.table-modern td {
    padding: 14px 16px;   /* DAS ist entscheidend */
    border-bottom: 1px solid #e9ecef;
}

/* =========================
   Status Anzeige
========================= */

.status-aktiv {
    color: #28a745;
    font-weight: 600;
}

.status-inaktiv {
    color: #adb5bd;
}

/* =========================
   Aktionen Spalte
========================= */

.aktionen {
    white-space: nowrap;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #b02a37;
}

/* =========================================
   FIRMEN LOGIN / REGISTRIERUNG
========================================= */

.firma-page {

    height: 100vh;          /* nicht min-height */

    background:
        linear-gradient(
            180deg,
            #0f4c97 0px,
            #0f4c97 140px,
            #f4f6f9 140px,
            #f4f6f9 100%
        );

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;       /* verhindert Scroll */

}


/* LOGIN CARD */

.firma-card {

    background: #ffffff;

    width: 100%;
    max-width: 460px;

    padding: 38px;

    border-radius: 12px;

    box-shadow:
        0 18px 40px rgba(0,0,0,0.08);

    margin: 0 auto;   /* wichtig für exakte Zentrierung */

}


/* LOGO */

.firma-logo {

    display: block;

    margin: 0 auto 18px auto;

    height: 70px;
    width: auto;

}


/* TITEL */

.firma-title {

    text-align: center;

    font-size: 24px;

    font-weight: 600;

    margin-bottom: 10px;

    color: #1f2937;

}


/* BESCHREIBUNG */

.firma-description {

    text-align: center;

    font-size: 15px;

    color: #374151;

    margin-bottom: 20px;

    line-height: 1.6;

}


/* UNTERTEXT */

.firma-subtitle {

    text-align: center;

    font-size: 14px;

    color: #6b7280;

    margin-bottom: 26px;

}


/* FORM */

.form-group {

    margin-bottom: 18px;

}

.form-group label {

    display: block;

    font-size: 14px;

    margin-bottom: 6px;

    color: #374151;

}

.form-group input {

    width: 100%;

    padding: 13px 14px;

    border-radius: 8px;

    border: 1px solid #cfd4dc;

    font-size: 15px;

    background: #f9fafb;

    transition: 0.2s;

}

.form-group input:focus {

    outline: none;

    border-color: #0f4c97;

    background: white;

    box-shadow: 0 0 0 3px rgba(15,76,151,0.12);

}


/* BUTTON LOGIN */

.btn-primary {

    background: #0f4c97;

    color: white;

    padding: 13px;

    border-radius: 8px;

    border: none;

    font-weight: 600;

    font-size: 15px;

    cursor: pointer;

    width: 100%;

    transition: 0.2s;

}

.btn-primary:hover {

    background: #083b79;

}


/* REGISTRIEREN BOX */

.register-box {

    margin-top: 26px;

    text-align: center;

}

.register-text {

    font-size: 14px;

    color: #6b7280;

    margin-bottom: 10px;

}


/* BUTTON REGISTRIEREN */

.btn-secondary {

    display: block;

    width: 100%;

    background: #e5e7eb;

    color: #1f2937;

    padding: 13px;

    border-radius: 8px;

    font-weight: 600;

    text-decoration: none;

    transition: 0.2s;

}

.btn-secondary:hover {

    background: #d1d5db;

}


/* FEHLER */

.alert-error {

    background: #ffe6e6;

    color: #b30000;

    padding: 12px;

    border-radius: 8px;

    margin-bottom: 18px;

    font-size: 14px;

}


/* DATENSCHUTZ */

.datenschutz {

    margin-top: 26px;

    text-align: center;

    font-size: 13px;

}

.datenschutz a {

    color: #6b7280;

    text-decoration: none;

}

.datenschutz a:hover {

    text-decoration: underline;

}

/* gleiche Breite für beide Buttons */

.button-block {

    width: 100%;

    margin-top: 10px;

}

.login-form {

    width: 100%;

}


/* beide Buttons exakt gleich */

.btn-primary,
.btn-secondary {

    display: block;

    width: 100%;

    box-sizing: border-box;

    text-align: center;

}