/* Mitarbeiterportal Frontend Styles */

:root {
    --mp-primary: #2563eb;
    --mp-primary-hover: #1d4ed8;
    --mp-secondary: #64748b;
    --mp-success: #10b981;
    --mp-danger: #ef4444;
    --mp-warning: #f59e0b;
    --mp-bg: #f8fafc;
    --mp-white: #ffffff;
    --mp-border: #e2e8f0;
    --mp-text: #1e293b;
    --mp-text-muted: #64748b;
    --mp-radius: 8px;
    --mp-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --mp-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Reset */
.mp-login-container *,
.mp-portal * {
    box-sizing: border-box;
}

/* ===== LOGIN ===== */
.mp-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
}

.mp-login-box {
    background: var(--mp-white);
    border-radius: var(--mp-radius);
    box-shadow: var(--mp-shadow-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}

.mp-login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.mp-login-header h2 {
    margin: 0 0 0.5rem;
    color: var(--mp-text);
    font-size: 1.75rem;
}

.mp-login-header p {
    margin: 0;
    color: var(--mp-text-muted);
}

/* Alerts */
.mp-alert {
    padding: 0.875rem 1rem;
    border-radius: var(--mp-radius);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.mp-alert-error {
    background: #fef2f2;
    color: var(--mp-danger);
    border: 1px solid #fecaca;
}

.mp-alert-success {
    background: #ecfdf5;
    color: var(--mp-success);
    border: 1px solid #a7f3d0;
}

/* Form */
.mp-form-group {
    margin-bottom: 1.25rem;
}

.mp-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--mp-text);
     font-size: 1.475rem;
}

.mp-form-group input[type="text"],
.mp-form-group input[type="email"],
.mp-form-group input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
     font-size: 1.475rem;
	 background-color: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mp-form-group input:focus {
    outline: none;
    border-color: var(--mp-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.mp-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mp-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
     font-size: 1.475rem;
}

.mp-checkbox input {
    width: 1rem;
    height: 1rem;
}

.mp-forgot-password {
    font-size: 1.475rem;
    color: #6d6760;
    text-decoration: none;
}

.mp-forgot-password:hover {
    text-decoration: underline;
}

/* Buttons */
.mp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: var(--mp-radius);
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.mp-button:hover {
    transform: translateY(-1px);
}

.mp-button:active {
    transform: translateY(0);
}

.mp-button-primary {
    background: #6d6760;
    color: var(--mp-white);
}

.mp-button-primary:hover {
    background: #6d6761;
}

.mp-button-full {
    width: 100%;
}

.mp-button-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.mp-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== PORTAL ===== */
.mp-portal {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--mp-bg);
    min-height: 50vh;
}

/* Header */
.mp-portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--mp-white);
    border-bottom: 1px solid var(--mp-border);
}

.mp-portal-branding h1 {

}

.mp-portal-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mp-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.mp-user-name {
    font-weight: 500;
    color: var(--mp-text);
}

/* Navigation */
.mp-portal-nav {
    background: var(--mp-white);
    border-bottom: 1px solid var(--mp-border);
    padding: 0 2rem;
}

.mp-portal-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.mp-portal-nav a {
    display: block;
    padding: 1rem 1.25rem;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.mp-portal-nav a:hover,
.mp-portal-nav a.active {
    color: #000;
    border-bottom-color: #000;
}

/* Content */
.mp-portal-content {
    padding: 2rem;
}

.mp-tab-content {
    display: none;
}

.mp-tab-content.active {
    display: block;
}

/* Widgets */
.mp-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.mp-widget {
    background: var(--mp-white);
    border-radius: var(--mp-radius);
    box-shadow: var(--mp-shadow);
    overflow: hidden;
}

.mp-widget-full {
    grid-column: 1 / -1;
}

.mp-widget-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--mp-border);
}

.mp-widget-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--mp-text);
}

.mp-widget-body {
    padding: 1.25rem;
}

/* Quicklinks */
.mp-quicklinks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.mp-quicklink {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem;
    background: var(--mp-bg);
    border-radius: var(--mp-radius);
    text-decoration: none;
    color: var(--mp-text);
    transition: background-color 0.2s, transform 0.1s;
}

.mp-quicklink:hover {
    background: var(--mp-border);
    transform: translateY(-2px);
}

.mp-quicklink .mp-icon {
    font-size: 1.75rem;
}

.mp-quicklink .mp-label {
    font-size: 0.875rem;
    font-weight: 500;
}

/* News List */
.mp-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mp-news-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--mp-border);
}

.mp-news-list li:last-child {
    border-bottom: none;
}

.mp-news-list a {
    color: var(--mp-text);
    text-decoration: none;
    font-weight: 500;
}

.mp-news-list a:hover {
    color: var(--mp-primary);
}

.mp-news-list .mp-date {
    font-size: 0.8rem;
    color: var(--mp-text-muted);
}

/* Profile */
.mp-profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--mp-white);
    border-radius: var(--mp-radius);
    margin-bottom: 1.5rem;
}

.mp-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

.mp-profile-info h2 {
    margin: 0 0 0.5rem;
}

.mp-profile-info p {
    margin: 0;
    color: var(--mp-text-muted);
}

.mp-profile-details {
    background: var(--mp-white);
    border-radius: var(--mp-radius);
    padding: 1.5rem;
}

.mp-profile-details h3 {
    margin: 0 0 1rem;
}

/* Table */
/* ===== Dokumententabelle ===== */

.mp-table {
    width: 80%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    overflow: hidden;
}

.mp-table thead th {
    background: #ececec;
    color: #444;
    font-size: .9rem;
    font-weight: 600;
    padding: 13px 18px;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 2px solid #d7d7d7;
}

.mp-table tbody td {
    padding: 12px 18px;
    color: #444;
    border-bottom: 1px solid #ededed;
    vertical-align: middle;
}

.mp-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.mp-table tbody tr:hover {
    background: #f1f1f1;
}

.mp-table tbody tr:last-child td {
    border-bottom: none;
}

/* Utilities */
.mp-text-muted {
    color: var(--mp-text-muted);
}

/* Footer */
.mp-portal-footer {
    padding: 1.5rem 2rem;
    text-align: center;
    color: var(--mp-text-muted);
    font-size: 0.875rem;
    border-top: 1px solid var(--mp-border);
    background: var(--mp-white);
}

.mp-table td:first-child {
    font-weight: 500;
    color: #222;
}
.mp-table td:nth-child(2) {
    color: #888;
}
.mp-table td:nth-child(3),
.mp-table td:nth-child(4),
.mp-table td:nth-child(5) {
    color: #777;
    white-space: nowrap;
}
.mp-table .mp-button {
    background: #4b4b4b;
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    transition: .2s;
}

.mp-table .mp-button:hover {
    background: #2f2f2f;
}
/* Ordnerüberschrift */

.mp-folder-title {
    margin: 35px 0 12px;
    padding-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #d9d9d9;
}

.mp-folder-title:first-of-type {
    margin-top: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .mp-portal-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .mp-portal-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .mp-portal-content {
        padding: 1rem;
    }
    
    .mp-widgets-grid {
        grid-template-columns: 1fr;
    }
    
    .mp-profile-header {
        flex-direction: column;
        text-align: center;
    }
}/* =======================================================
   Profil
=======================================================*/

.mp-profile-details{

    background:#fff;
    border-radius:10px;
    padding:35px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);

}

.mp-profile-grid{

    display:grid;
    grid-template-columns:repeat(2,minmax(250px,1fr));
    gap:25px;
background-color: #d6d6d6;
border-radius: var(--mp-radius);
  padding: 10px;
}

.mp-profile-buttons{

    margin-top:25px;
    text-align:right;

}

.mp-divider{

    margin:40px 0;
    border:none;
    border-top:1px solid #ddd;

}

.mp-password-form{

    display:grid;
    gap:20px;
    max-width:600px;

}

.mp-password-form .mp-button{

    width:fit-content;

}

@media(max-width:768px){

    .mp-profile-grid{

        grid-template-columns:1fr;

    }

    .mp-profile-buttons{

        text-align:center;

    }

}
/* ==========================
   Passwort-Karte
========================== */

.mp-password-card{

    margin-top:40px;
    background: #d6d6d6;
    border-radius:10px;
    padding:35px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);

}

.mp-password-header{

    margin-bottom:25px;
    padding-bottom:18px;
    border-bottom:1px solid #e5e5e5;

}

.mp-password-header h3{

    margin:0;
    font-size:22px;

}

.mp-password-header p{

    margin:8px 0 0;
    color:#666;

}

.mp-password-form{

    max-width:600px;
    display:grid;
    gap:22px;

}

.mp-password-buttons{

    margin-top:10px;
    text-align:right;

}

.mp-password-form input{

    width:100%;
    padding:12px 14px;
    border:1px solid #d8d8d8;
    border-radius:8px;
    transition:.2s;

}

.mp-password-form input:focus{

    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.15);
    outline:none;

}