.dashboard-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Titelleiste */
.dashboard-titlebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0077ff;
    color: #fff;
    padding: 14px 20px;
    border-radius: 10px 10px 0 0;
}

.dashboard-titlebar .left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-titlebar img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

/* Logout Button */
.logout-btn {
    background: #ffffff22;
    padding: 8px 16px;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s ease;
}

.logout-btn:hover {
    background: #ffffff44;
}

/* Inhalt */
.dashboard-content {
    background: #fff;
    padding: 24px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.08);
}

/* Karten */
.card,
.card-spacer,
.card-fix,
.card-fix-history {
    background: #f7f9fc;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.card h3, .card h4 {
    margin-bottom: 10px;
}

/* Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.card-grid .card {
    cursor: pointer;
    transition: 0.25s ease;
}

.card-grid .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.card-grid a.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.card-grid a.card {
    display: block;
    text-decoration: none;
    color: inherit;
}
@media (max-width: 600px) {
    .card-spacer {
		display: none;
    }
}

.success-banner {
    background: rgba(0, 180, 0, 0.25);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: 8px;
    color: #0f4d0f;
    margin-top: -10px;
    margin-bottom: 20px;
}

.error-banner {
    background: rgba(255, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: 8px;
    color: #7a1f1f;
    margin-top: -10px;
    margin-bottom: 20px;
	display: flex;
}

.tooltip {
    background: rgba(255, 0, 0, 0.25);
    padding: 8px 16px;
    border-radius: 8px;
    color: #7a1f1f;
    margin-top: -10px;
    margin-bottom: 0px;
}

@media (max-width: 768px) {
    .tooltip {
		font-size: 0.7rem;
    }
}

.form-box {
    background: #fff;
/*
    padding: 1px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
*/
}
.form-box label {
    font-weight: 600;
    color: #333;
}

.form-box input[type="password"],
.form-box input[type="text"],
.form-box input[type="email"] {
    padding: 10px 12px;
    border: 1px solid #d0d7e2;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
    transition: 0.2s ease;
}

.form-box input:focus {
    border-color: #0077ff;
    box-shadow: 0 0 0 3px rgba(0,119,255,0.15);
    outline: none;
}

/* Basis-Styling für Selects */
select.input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    padding: 12px 14px;
    padding-right: 40px; /* Platz für Icon */
    border: 1px solid #d0d7e2;
    border-radius: 6px;
    background: #fff;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    transition: 0.2s ease;
    background-image: url('/theme/images/arrow_down.svg');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

/* Hover */
select.input:hover {
    border-color: #0077ff;
}

/* Fokus */
select.input:focus {
    border-color: #0077ff;
    box-shadow: 0 0 0 3px rgba(0,119,255,0.15);
    outline: none;
}

/* Disabled */
select.input:disabled {
    background-color: #f2f2f2;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-primary {
    background: #0077ff;
    color: #fff;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.25s ease;
}

.btn-primary:hover {
    background: #005fcc;
}

.btn-secondary {
    background: #0077ff;
    color: #fff;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.25s ease;
}
.btn-secondary:hover {
    background: #005fcc;
}

.btn-cancel {
    background: #0077ff;
    color: #fff;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.25s ease;
}
.btn-cancel:hover {
    background: #005fcc;
}

.btn-danger {
    background: #d93025;
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn-danger:hover {
    background: #c5221f;
}

.btn-danger:active {
    background: #b31d1a;
    transform: scale(0.97);
}

.btn-danger:focus {
    outline: 2px solid #ffb3b3;
    outline-offset: 2px;
}

.pw-field {
    position: relative;
    display: flex;
    align-items: center;
}

.pw-field input {
    width: 100%;
    padding-right: 42px;
}

.toggle-pw {
    position: absolute;
    right: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pw-icon {
    width: 22px;
    height: 22px;
    opacity: 0.7;
    transition: 0.2s ease;
}

.toggle-pw:hover .pw-icon {
    opacity: 1;
}

.security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 20px;
}

/* Box-Styling wie deine Form-Box */
.security-box {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Überschriften */
.security-box h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.mfa-toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.mfa-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.mfa-toggle input:checked + .slider {
    background-color: #ff4444;
}

.mfa-toggle input:checked + .slider:before {
    transform: translateX(24px);
}
@media (max-width: 900px) {
    .slider:before {
        left: -3px; /* vorher 3px */
    }

    .mfa-toggle input:checked + .slider:before {
        transform: translateX(26px); /* vorher 24px */
    }
}

.mfa-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.mfa-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 380px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    text-align: center;
}

/* --- MOBILE FIXES --- */
@media (max-width: 900px) {

    /* Grid einkolumnig */
    .security-grid {
        grid-template-columns: 1fr !important;
        gap: 25px;
        width: 100%;
    }

    /* Boxen dürfen nicht breiter als der Bildschirm werden */
    .security-box {
        width: 100% !important;
        box-sizing: border-box;
        padding: 20px !important;
    }

	/* Überschriften */
	.security-box h2 {
		font-size: 0.9rem;
		margin-top: 0;
		margin-bottom: 20px;
	}

    /* DER WICHTIGSTE FIX: form-box darf NICHT 400px bleiben */
/*
    .form-box {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box;
    }
*/
    /* Passwortfelder dürfen nicht überstehen */
    .pw-field input {
        width: 100% !important;
    }

    /* verhindert horizontales Verschieben */
    .dashboard-content {
        overflow-x: hidden;
        box-sizing: border-box;
    }
}

.impressum-box {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    line-height: 1.6;
}

.impressum-box h2 {
    margin-top: 0;
    margin-bottom: 15px;
}

.impressum-box h3 {
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #333;
}

.impressum-box p {
    margin: 0 0 10px 0;
}
@media (max-width: 900px) {
    .impressum-box {
        padding: 18px;
    }

    .impressum-box h2 {
        font-size: 1.2rem;
    }

    .impressum-box h3 {
        font-size: 1rem;
    }
}
.contact-wrapper {
    max-width: 700px;
    margin: 40px auto;
    padding: 0 20px;
}

.contact-wrapper h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: #222;
}

/* Box im Dashboard-Stil */
.contact-box {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Formular */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form label {
    font-weight: 600;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 14px;
    border: 1px solid #d0d7e2;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
    transition: 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #0077ff;
    box-shadow: 0 0 0 3px rgba(0,119,255,0.15);
    outline: none;
}

/* Mobile */
@media (max-width: 600px) {
    .contact-box {
        padding: 20px;
    }

    .contact-wrapper h2 {
        font-size: 1.5rem;
    }
}
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    overflow: hidden;
}
.table-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table th {
    text-align: left;
    padding: 12px;
    background: #f5f7fa;
    font-weight: 600;
    color: #333;
}

.dashboard-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.dashboard-table tr:hover {
    background: #f9fbfd;
}
/* ID */
.dashboard-table td:nth-child(1),
.dashboard-table th:nth-child(1) {
    width: 5px;
    text-align: center;
}

/* Aktion */
.dashboard-table td:nth-child(2),
.dashboard-table th:nth-child(2) {
    width: 80px;
}

/* User-Icon */
.dashboard-table td:nth-child(3),
.dashboard-table th:nth-child(3) {
    width: 5px;
    text-align: center;
}

/* Browser/OS-Icon */
.dashboard-table td:nth-child(4),
.dashboard-table th:nth-child(4) {
    width: 15px;
    text-align: center;
}

/* Datum */
.dashboard-table td:nth-child(5),
.dashboard-table th:nth-child(5) {
    width: 50px;
}

/* Wrapper für horizontales Scrollen auf Mobile */
.table-box {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Sticky Header */
.dashboard-table thead th {
    position: sticky;
    top: 0;
    background: #f5f7fa;
    z-index: 5;
    transition: box-shadow 0.25s ease;
}

/* Schatten, wenn sticky aktiv ist */
.dashboard-table thead.sticky-active th {
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
/* Mobile: Tabelle horizontal scrollbar */
@media (max-width: 768px) {
    .dashboard-table {
        min-width: 500px; /* verhindert Zusammenquetschen */
    }

    .dashboard-table td,
    .dashboard-table th {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .log-badge {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    .log-user-icon {
        width: 16px;
        height: 16px;
    }
}

.log-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    display: inline-block;
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 4px;
    background: #f0f0f0;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
}

.pagination a.active {
    background: #0077ff;
    color: #fff;
}
.log-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
    filter: brightness(0) invert(1); /* Icon wird weiß */
}

.tooltip-log {
    position: relative;
    display: inline-block;
}

.tooltip-log .tooltip-log-text {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s;
    position: absolute;
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
	text-align: left;
}

.tooltip-log:hover .tooltip-log-text {
    visibility: visible;
    opacity: 1;
}

.log-user-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    cursor: help;
/*
    filter: brightness(0) invert(1);
*/
}
.ua-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 4px;
}

/* ============================================
   FORM ELEMENTE – DASHBOARD STYLE (ERWEITERT)
   ============================================ */

/* Einheitliche Labels */
.form label,
.form-box label,
.contact-form label {
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    display: block;
}

/* Einheitliche Inputs */
.form input,
.form textarea,
.form select,
.input-textarea,
.input-date,
.input-time {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d7e2;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
    transition: 0.2s ease;
    box-sizing: border-box;
}

/* Fokus-Effekt (Premium, wie bei deinen anderen Inputs) */
.form input:focus,
.form textarea:focus,
.form select:focus,
.input-textarea:focus,
.input-date:focus,
.input-time:focus {
    border-color: #0077ff;
    box-shadow: 0 0 0 3px rgba(0,119,255,0.15);
    outline: none;
}

/* Textarea */
.input-textarea,
.form textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.5;
}

/* Date & Time Inputs */
.input-date,
.input-time,
.form input[type="date"],
.form input[type="time"] {
    height: 46px;
    line-height: 46px;
    padding-top: 0;
    padding-bottom: 0;
}

/* Buttons (kompatibel mit deinen vorhandenen) */
.btn-primary {
    background: #0077ff;
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.25s ease;
}

.btn-primary:hover {
    background: #005fcc;
}
