/* ------------------------------------------------------
   LOGIN PAGE
------------------------------------------------------ */

body.login-body {
    font-family: Arial, sans-serif;
    background: #eeefea;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* Login Container */
.login-box {
    background: #fff;
    padding: 25px;
    width: 260px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.login-box h2 {
    margin-top: 0;
    font-size: 20px;
    text-align: center;
}

.login-error {
    color: #c00;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-align: center;
}

/* Formularelemente */
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    box-sizing: border-box;
    border: 1px solid #bbb;
    border-radius: 5px;
}

button {
    width: 100%;
    padding: 10px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 5px;
}

button:hover {
    background: #555;
}


/* ------------------------------------------------------
   GLOBAL LAYOUT (für Portal)
------------------------------------------------------ */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
	    min-height: 100vh; /* Wichtig: Mindesthöhe setzen */
    background: #f5f5f7; /* Apple-Hintergrund */
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
}


/* ------------------------------------------------------
   APPLE-STYLE HEADER
------------------------------------------------------ */

.main-header {
    background: #ffffff;
    padding: 18px 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.header-section {
    display: flex;
    align-items: center;
}

/* linke Spalte */
.header-left {
    justify-content: flex-start;
}

.logo {
    height: 32px;
    width: auto;
}

/* mittlere Spalte */
.header-center {
    justify-content: center;
}

.header-center h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
    color: #1d1d1f;
    letter-spacing: -0.3px;
}

/* rechte Spalte */
.header-right {
    justify-content: flex-end;
    gap: 15px;
}

.logged-user {
    color: #555;
    font-size: 15px;
    font-weight: 500;
}

.logout-btn {
    background: #1d1d1f;
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
}
.logout-btn:hover {
    background: #333;
}


/* ------------------------------------------------------
   APPLE-STYLE NAVIGATION
------------------------------------------------------ */

.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #f5f5f7;
    padding: 12px 40px;
    display: flex;
    justify-content: center;
    gap: 40px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.navbar a {
    font-family: "Inter", -apple-system;
    text-decoration: none;
    color: #1d1d1f;
    font-weight: 500;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.navbar a:hover {
    color: #0066cc; /* Apple Blau */
}

.navbar a.active {
    border-bottom: 2px solid #0066cc;
    color: #0066cc;
}


/* ------------------------------------------------------
   INHALT – APPLE DEVELOPER STYLE
------------------------------------------------------ */

main.main-content {
    flex: 1;
    width: 100%;
    max-width: 1300px;
    padding: 40px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}


/* ------------------------------------------------------
   FOOTER – APPLE STYLE
------------------------------------------------------ */

.main-footer {
    text-align: center;
    padding: 25px 0;
    background: #fafafa;

    color: #86868b;
    border-top: 1px solid rgba(0,0,0,0.05);
}


/* ------------------------------------------------------
   PASSWORT ÄNDERN – STATUS DOT
------------------------------------------------------ */

.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cc0000;
    margin-top: 8px;
}

.status-dot.warn {
    background: #ffcc00;
}
.status-dot.ok {
    background: #00aa00;
}

/* Passwortfeld + Anzeigen-Icon */
.pw-field {
    position: relative;
    margin-bottom: 15px;
}

.pw-field input {
    width: 100%;
    padding-right: 35px;
}

.toggle-pw {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    opacity: 0.6;
}
.toggle-pw:hover {
    opacity: 1;
	

}

/* ------------------------------------------------------
   TABELLEN
------------------------------------------------------ */

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.table th {
    background: #353244;
    color: #fff;
    padding: 10px;
    text-align: left;
}

.table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.table tr:hover {
    background: #f5f5f5;
}

.btn {
    display: inline-block;
    padding: 8px 14px;
    background: #353244;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
}

.btn:hover {
    background: #4b4960;
}


/* ------------------------------------------------------
   FORMULARE (Mitarbeiter, Kunden etc.)
------------------------------------------------------ */

/* Container für zentrierte Formulare */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Einzelne Formulargruppen mit Abstand */
.form-group {
    margin-bottom: 20px;
}

/* Label-Formatierung */
.form-group label {
    font-weight: 500;
    display: block;
    margin-bottom: 6px;
}

/* Pflichtfeld-Markierung */
.form-group label.required::after {
    content: " *";
    color: #c0392b;
}

/* Standardfelder: Text, E-Mail, Passwort, Dropdown */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="telefon"],
.form-group select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

/* Textarea-Feld (z. B. für Beschreibung, Notizen) */
.form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    min-height: 120px;
    resize: vertical;
}

/* Checkboxen & Radios */
.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    margin-right: 8px;
}

/* Fehlerausgabe (z. B. bei Validierung) */
.form-error {
    color: #c0392b;
    font-size: 14px;
    margin-top: 6px;
}

/* Bereich für Buttons (z. B. Speichern / Abbrechen) */
.form-actions {
    margin-top: 25px;
}

/* Button-Design */
.form-actions button,
.form-actions input[type="submit"] {
    background: #353244;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.form-actions button:hover,
.form-actions input[type="submit"]:hover {
    background: #4b4960;
}

/* Optional: responsive Verhalten auf kleinen Bildschirmen */
@media (max-width: 480px) {
    .form-actions button,
    .form-actions input[type="submit"] {
        width: 100%;
        margin-bottom: 10px;
    }
}
label .required {
    color: red;
    margin-left: 4px;
    font-weight: bold;
}


