/* =========================================================
   1) Globale User-Forms (/user, /user/cfg, Login, Reg, usw.)
   ========================================================= */

.user_form,
.user_cfg_form,
.user_reg_form,
.user_auth_form,
.user_newpassword_form,
.user_emailchecked_form {
    max-width: 720px;
    margin: 20px auto;
    padding: 20px 25px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #dfe6ef;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

/* Abstände zwischen Zeilen */
.user_form p,
.user_cfg_form p {
    margin: 0 0 15px;
}

/* Form Labels */
.user_form p::first-line,
.user_cfg_form p::first-line {
    font-weight: 600;
    color: #333;
}
/* Buttons & Links */
.user_profile a {
    display: inline-block;
    margin: 8px 0;
    padding: 8px 14px;
    background: #4d8cff;
    color: #fff !important;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: 0.3s;
}

.user_profile a:hover {
    background: #3a6ddf;
}

/* Logout Link auffälliger */
.user_profile .p_link_exit a {
    background: #dc2626;
}

.user_profile .p_link_exit a:hover {
    background: #b91c1c;
}
/* Inputs */
.user_form input[type="text"],
.user_form input[type="password"],
.user_form input[type="email"],
.user_form textarea,
.user_form select,
.user_cfg_form input[type="text"],
.user_cfg_form input[type="password"],
.user_cfg_form input[type="email"],
.user_cfg_form textarea,
.user_cfg_form select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccd4e0;
    font-size: 15px;
    background-color: #f8faff;
    transition: all .2s ease;
    box-sizing: border-box;
}

/* Fokus */
.user_form input:focus,
.user_cfg_form input:focus,
.user_form select:focus,
.user_cfg_form select:focus,
.user_form textarea:focus,
.user_cfg_form textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.2);
    background: #ffffff;
    outline: none;
}

/* Checkbox-Zeilen */
.user_form input[type="checkbox"],
.user_cfg_form input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 8px;
    cursor: pointer;
}

.user_reg_form .p_roscomnadzor {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.45;
}

.user_reg_form .p_roscomnadzor input[type="checkbox"] {
    width: 18px;
    min-width: 18px;
    height: 18px;
    margin: 3px 0 0 0;
    transform: none;
    flex: 0 0 18px;
}

.user_reg_form .p_roscomnadzor label {
    display: block;
    margin: 0;
    flex: 1 1 auto;
}

/* CAPTCHA Bild */
.user_form .p_captcha_img img {
    border: 2px solid #d1d5db;
    border-radius: 6px;
    margin-bottom: 6px;
    cursor: pointer;
}

/* Kleinere Hilfe-Texte */
.user_cfg_form small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

/* Nur-Anzeige-Felder (Kundennummer) */
.user_cfg_form input[readonly] {
    background: #f0f0f0 !important;
    cursor: not-allowed;
    color: #666;
}

/* Submit-Buttons in Forms */
.user_form input[type="submit"],
.user_form button,
.user_cfg_form .p_sumit input[type="submit"],
.user_cfg_form .p_sumit button {
    display: inline-block;
    background: #2563eb;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

.user_form input[type="submit"]:hover,
.user_cfg_form .p_sumit input[type="submit"]:hover,
.user_form button:hover,
.user_cfg_form .p_sumit button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(29,78,216,.25);
}

.user_cfg_form .p_sumit input[type="submit"]:active,
.user_cfg_form .p_sumit button:active {
    transform: translateY(1px);
    box-shadow: none;
}

/* Links in Forms */
.user_form a,
.user_cfg_form a {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: 0.2s;
}
.user_form a:hover,
.user_cfg_form a:hover {
    border-bottom: 1px solid #2563eb;
}

/* Checkbox-Zeilen als Flex (Datenschutz / Newsletter / AGB) */
.user_cfg_form .p_datenschutz,
.user_cfg_form .p_newsletter,
.user_cfg_form .p_agb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.user_cfg_form .p_datenschutz input[type="checkbox"],
.user_cfg_form .p_newsletter input[type="checkbox"],
.user_cfg_form .p_agb input[type="checkbox"] {
    width: auto;
    margin: 0 6px 0 0;
}

/* Person (Privat / Gewerblich) – Select */
.user_cfg_form .p_person select {
    max-width: 260px;
}

/* Zurück-Link */
.user_cfg_form .p_link_back {
    margin-top: 10px;
}
.user_cfg_form .p_link_back a {
    font-size: 14px;
    color: #4b5563;
    text-decoration: none;
    border-bottom: 1px dashed #9ca3af;
    padding-bottom: 1px;
}
.user_cfg_form .p_link_back a:hover {
    color: #111827;
    border-bottom-style: solid;
}

/* Globale Info-Texte */
.p_info {
    margin: 4px 0;
    font-size: 13px;
    color: #333;
}

/* =========================================================
   2) User-Profil (/user) – Box + Avatar + Links
   ========================================================= */

.user_profile {
    max-width: 100%;
    margin: 20px auto 40px;
    padding: 20px 24px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e3e6ec;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    box-sizing: border-box;
    font-family: "Roboto", Arial, sans-serif;
}

.user_profile h2 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 600;
    color: #1f2937;
}

/* Avatar */
.user_profile .p_avatar {
    text-align: center;
    margin-bottom: 16px;
}
.user_profile #avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e5e7eb;
    transition: all 0.3s ease;
}
.user_profile #avatar:hover {
    transform: scale(1.05);
    border-color: #4d8cff;
}

/* Infos im Profil */
.user_profile .p_info {
    font-size: 15px;
    color: #4b5563;
    margin: 8px 0;
    padding-left: 5px;
    border-left: 3px solid #4d8cff;
}

/* Links im Profil (Einstellungen / Logout / Admin-Links) */
.user_profile .p_link_cfg a,
.user_profile .p_link_exit a,
.user_profile .p_link_ban_user a,
.user_profile .p_link_ban_ip a {
    display: inline-block;
    margin: 4px 6px 4px 0;
    padding: 8px 14px;
    background: #4d8cff;
    color: #fff !important;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: 0.3s;
}
.user_profile .p_link_cfg a:hover,
.user_profile .p_link_exit a:hover,
.user_profile .p_link_ban_user a:hover,
.user_profile .p_link_ban_ip a:hover {
    background: #3a6ddf;
}

/* Logout-Link auffälliger */
.user_profile .p_link_exit a {
    background: #dc2626;
}
.user_profile .p_link_exit a:hover {
    background: #b91c1c;
}

/* Admin-Aktionen (User / IP sperren) */
.user_profile .p_link_ban_user a,
.user_profile .p_link_ban_ip a {
    background: #f59e0b;
    color: #111 !important;
}
.user_profile .p_link_ban_user a:hover,
.user_profile .p_link_ban_ip a:hover {
    background: #d97706;
}

/* Ban-Hinweis */
.user_ban_info {
    margin-top: 15px;
    font-size: 15px;
    text-align: center;
    padding: 10px;
    background: #ffe5e5;
    border: 1px solid #ff9e9e;
    border-radius: 6px;
    color: #b30000;
}

/* =========================================================
   3) Sicherheitsübersicht + Datenexport + allgemeine Boxen
   ========================================================= */

.user_security_block,
.user_export_block,
.user_orders {
    max-width: 100%;
    margin: 20px auto 30px;
    padding: 20px 24px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #dce3ec;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.5;
}

/* Überschriften */
.user_security_block h2,
.user_export_block h2,
.user_orders h2 {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
}

.user_calendar_section {
    margin-top: 20px;
}

.user_calendar_section p {
    margin: 0 0 14px;
    color: #4b5563;
    font-size: 14px;
}

.user_calendar_section_actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.user_calendar_section_actions a,
.calendar_cta_link {
    display: inline-block;
    padding: 9px 14px;
    border-radius: 8px;
    background: linear-gradient(#4d9bf0, #2f7ed6);
    color: #fff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.user_calendar_section_actions a.secondary,
.user_calendar_page_intro__actions a.secondary,
.calendar_cta_link {
    background: #eef3f8;
    color: #24425e !important;
    border: 1px solid #cfd9e5;
}

.user_calendar_section_actions a:hover,
.user_calendar_page_intro__actions a:hover,
.calendar_cta_link:hover {
    filter: brightness(0.98);
    text-decoration: none;
}

/* Karten-Stil + sanfte Bewegung */
.user_security_block,
.user_export_block,
.user_loyalty_box,
.user_order_card {
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.user_order_card,
.user_loyalty_box {
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.user_order_card:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.user_security_block h3,
.user_export_block h3 {
    margin: 10px 0 6px;
    font-size: 15px;
}

/* Buttons in Security / Export / Orders (nicht Form-Submit) */
.user_security_block button,
.user_export_block button,
.user_orders button,
.user_orders_filter button[type="submit"],
.user_sessions_actions button,
.user_export_buttons button {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #3686e0;
    background: linear-gradient(#4d9bf0, #2f7ed6);
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.12s ease;
}
.user_security_block button:hover,
.user_export_block button:hover,
.user_orders button:hover,
.user_orders_filter button[type="submit"]:hover,
.user_sessions_actions button:hover,
.user_export_buttons button:hover {
    background: linear-gradient(#5aa6f5, #2a73c5);
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

/* Gefahr-Buttons (z. B. Konto löschen) */
.btn-danger,
.user_security_block .btn-danger {
    border-color: #c1373b !important;
    background: linear-gradient(#f05b5f, #d03337) !important;
}
.btn-danger:hover,
.user_security_block .btn-danger:hover {
    background: linear-gradient(#f66b6f, #bf292d) !important;
}

/* Links mit Button-Optik (Filter-Reset, Pager) */
.user_orders_filter a,
.user_orders_pager a {
    color: #2f7ed6;
    text-decoration: none;
}
.user_orders_filter a:hover,
.user_orders_pager a:hover {
    text-decoration: underline;
}

/* ---------- Sicherheits-Tabellen & Sitzungen ---------- */

.user_security_block {
    padding: 14px 16px;
}

.user_logins_table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 6px;
    font-size: 13px;
}
.user_logins_table thead th {
    background: #f5f7fb;
    border-bottom: 1px solid #d5d9e2;
    padding: 6px 8px;
    text-align: left;
    font-weight: 600;
}
.user_logins_table tbody td {
    border-bottom: 1px solid #eceff4;
    padding: 5px 8px;
    vertical-align: top;
}
.user_logins_table tbody tr:nth-child(even) {
    background: #fbfcfe;
}

.user_security_block .p_hint,
.user_security_block .p_small {
    margin-top: 6px;
    font-size: 12px;
    color: #666;
}

/* Geräte-Liste */
.user_sessions_list {
    list-style: none;
    padding: 0;
    margin: 8px 0 4px;
    font-size: 13px;
}
.user_sessions_list li {
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #eceff4;
    background: #fafbff;
    margin-bottom: 4px;
}

/* Sitzungs-Aktionen */
.user_sessions_actions {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed #e0e0e0;
    font-size: 12px;
    color: #666;
}
.user_sessions_actions form {
    display: inline-block;
    margin: 0 0 4px 0;
}
.user_sessions_actions p {
    margin: 4px 0 0;
}

/* ---------- Datenexport-Block ---------- */

.user_export_block {
    padding: 14px 16px;
    margin-top: 20px;
}

.user_export_buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 4px;
}
.user_export_buttons form {
    margin: 0;
}

.user_export_block .p_small {
    margin-top: 4px;
    font-size: 11.5px;
    color: #666;
}

/* =========================================================
   4) Bestellungen (/user/orders)
   ========================================================= */

.user_orders h2 {
    margin-bottom: 18px;
}

/* Info-Texte im Bestellbereich */
.user_orders .p_info {
    margin: 4px 0;
    font-size: 13px;
}

/* Status-Badges */
.order_status {
    display:inline-block;
    padding:2px 6px;
    border-radius:4px;
    font-size:0.85em;
}
.order_status.status-new {
    background:#ffe9e9;
    color:#b80000;
}
.order_status.status-proc {
    background:#e9f7ff;
    color:#005a9c;
}
.order_status.status-done {
    background:#e8f9e8;
    color:#1a7a1a;
}
.order_status.status-cancel {
    background:#f5f5f5;
    color:#777777;
}

/* Filter Jahr / Monat */
.user_orders_filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: flex-end;
    margin-bottom: 12px;
}
.user_orders_filter label {
    font-size: 13px;
    color: #333;
}
.user_orders_filter select {
    margin-top: 2px;
    min-width: 130px;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
    outline: none;
}
.user_orders_filter select:focus {
    border-color: #59a4ff;
    box-shadow: 0 0 0 2px rgba(89,164,255,0.15);
}

/* Treue-Bonus Box */
.user_loyalty_box {
    margin: 12px 0 16px;
    padding: 10px 12px;
    background: #f9fbff;
    border: 1px dashed #cfd8ea;
    font-size: 13px;
    color: #333;
}
.user_loyalty_box strong {
    font-weight: 600;
}
.user_loyalty_box span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #666;
}

/* Bestellkarten-Liste */
.user_orders_list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* einzelne Karte */
.user_order_card {
    padding: 10px 12px;
}

/* Kopf: Nummer + Status */
.uoc_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.uoc_id {
    font-weight: 600;
    font-size: 14px;
}
.uoc_status .order_status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
}

/* Meta (Datum / Summe / ICS) */
.uoc_meta {
    margin-top: 4px;
    font-size: 13px;
    color: #444;
}
.uoc_meta > div {
    margin-top: 2px;
}

/* Aktionen (Details / Storno / Wiederholen) */
.uoc_actions {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Detailbereich */
.user_order_detail {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #ddd;
    font-size: 13px;
}

/* Legende */
.user_orders_legend {
    font-size: 12px;
    color: #555;
    margin-top: 18px;
    margin-bottom: 6px;
}
.user_orders_legend span {
    display: inline-block;
    margin: 2px 0;
}

/* Pagination */
.user_orders_pager {
    margin: 12px 0 0;
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.user_orders_pager span {
    color: #555;
}

/* =========================================================
   5) Responsive Anpassungen
   ========================================================= */

@media (max-width: 700px) {
    .user_profile,
    .user_form,
    .user_cfg_form,
    .user_security_block,
    .user_export_block,
    .user_orders {
        padding: 16px 14px;
        margin: 16px auto;
    }

    .user_orders_filter {
        align-items: flex-start;
    }
    .user_orders_filter label {
        width: 48%;
    }
    .user_orders_filter button[type="submit"] {
        width: 100%;
    }
    .uoc_header {
        flex-direction: column;
        align-items: flex-start;
    }

    .user_profile #avatar {
        width: 95px;
        height: 95px;
    }

    .user_reg_form .p_roscomnadzor {
        gap: 8px;
        font-size: 14px;
    }

    .user_reg_form .p_roscomnadzor input[type="checkbox"] {
        margin-top: 2px;
    }
}

/* =========================================================
   6) Datenschutz- und Sicherheitsausbau
   ========================================================= */

.user_profile_calendar {
    max-width: 100%;
    margin: 20px auto 30px;
    padding: 20px 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border-radius: 14px;
    border: 1px solid #dce3ec;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.user_profile_calendar_top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 14px;
}

.user_profile_calendar_top h2 {
    margin: 0 0 6px;
    text-align: left;
}

.user_profile_calendar_top p {
    margin: 0;
    color: #526174;
}

.user_profile_calendar_nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.user_profile_calendar_nav a,
.user_profile_calendar_nav strong {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    text-decoration: none;
}

.user_profile_calendar_nav a {
    background: #edf4ff;
    color: #1d4ed8;
}

.user_profile_calendar_nav strong {
    background: #1f2937;
    color: #fff;
    font-size: 14px;
}

.user_profile_calendar_legend {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.user_profile_calendar_legend span {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.calendar_legend_order {
    background: #dbeafe;
    color: #1d4ed8;
}

.calendar_legend_appointment {
    background: #dcfce7;
    color: #166534;
}

.user_profile_calendar_grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.user_profile_calendar_head {
    padding: 8px;
    border-radius: 10px;
    background: #e8eef7;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.user_profile_calendar_cell {
    min-height: 136px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid #d9e2ec;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user_profile_calendar_cell.empty {
    background: #f8fafc;
    border-style: dashed;
}

.user_profile_calendar_cell.today {
    border-color: #3b82f6;
    box-shadow: inset 0 0 0 1px #3b82f6;
}

.user_profile_calendar_dayline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    color: #1f2937;
}

.user_profile_calendar_dayline strong {
    font-size: 18px;
}

.user_profile_calendar_dayline span {
    font-size: 12px;
    color: #64748b;
}

.user_profile_calendar_empty {
    color: #94a3b8;
    font-size: 13px;
}

.user_profile_calendar_item {
    padding: 8px 9px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.35;
    border: 1px solid transparent;
}

.user_profile_calendar_item.order {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e3a8a;
}

.user_profile_calendar_item.appointment {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #166534;
}

.calendar_item_time {
    font-weight: 700;
}

.calendar_item_title {
    font-weight: 700;
    margin-top: 2px;
}

.calendar_item_subtitle {
    opacity: 0.9;
}

.calendar_item_detail {
    opacity: 0.75;
}

.user_dashboard_shell {
    display: grid;
    gap: 20px;
}

.user_card {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    border-color: #d8e1eb !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
}

.user_privacy_notice {
    background: linear-gradient(135deg, #eef7ff 0%, #f7fbff 100%) !important;
    border-color: #c5def7 !important;
}

.user_security_page h1,
.user_privacy_page h1,
.user_delete_account_page h2 {
    margin: 0 0 10px;
    color: #0f172a;
}

.user_logins_table th,
.user_logins_table td {
    vertical-align: top;
}

.user_logins_table tr:hover td {
    background: #f8fbff;
}

.user_sessions_list li:last-child,
.user_login_list li:last-child {
    border-bottom: 0 !important;
}

.user_delete_account_form,
.user_logout_others_form {
    max-width: 760px;
}

.user_privacy_page table {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.user_privacy_page button,
.user_security_page button,
.user_delete_account_page button {
    background: #0f766e;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
}

.user_privacy_page button:hover,
.user_security_page button:hover,
.user_delete_account_page button:hover {
    background: #115e59;
}

.user_delete_account_page .p_submit input[type="submit"] {
    background: #b42318;
}

.user_delete_account_page .p_submit input[type="submit"]:hover {
    background: #912018;
}

@media (max-width: 700px) {
    .user_profile_calendar_top {
        flex-direction: column;
        align-items: flex-start;
    }

    .user_profile_calendar_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .user_profile_calendar_head {
        display: none;
    }

    .user_logins_table,
    .user_logins_table thead,
    .user_logins_table tbody,
    .user_logins_table th,
    .user_logins_table td,
    .user_logins_table tr {
        display: block;
        width: 100%;
    }

    .user_logins_table thead {
        display: none;
    }

    .user_logins_table tr {
        margin-bottom: 12px;
        border: 1px solid #dbe3ec;
        border-radius: 8px;
        overflow: hidden;
        background: #fff;
    }

    .user_logins_table td {
        border-bottom: 1px solid #eef2f7 !important;
        padding: 8px 10px !important;
    }

    .user_logins_table td:last-child {
        border-bottom: 0 !important;
    }
}

@media (max-width: 520px) {
    .user_profile_calendar_grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   8) User-Bereich Refresh im Stil der Hauptseite
   ========================================================= */

:root {
    --user-surface: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    --user-border: #d8e4ef;
    --user-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --user-accent: #0f766e;
    --user-accent-dark: #115e59;
    --user-ink: #102033;
    --user-muted: #5f7185;
}

.user_profile,
.user_orders,
.user_profile_calendar,
.user_calendar_page_intro {
    border: 1px solid var(--user-border) !important;
    background: var(--user-surface) !important;
    border-radius: 18px !important;
    box-shadow: var(--user-shadow) !important;
}

.user_profile,
.user_orders,
.user_profile_calendar {
    position: relative;
    overflow: hidden;
}

.user_profile::before,
.user_orders::before,
.user_profile_calendar::before,
.user_calendar_page_intro::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, #0f766e 0%, #d97706 100%);
}

.user_profile h2,
.user_orders h2,
.user_profile_calendar h2,
.user_calendar_page_intro h2 {
    color: var(--user-ink);
}

.user_profile_block,
.user_privacy_block,
.user_selfservice_block,
.user_admin_lookup_block,
.user_loyalty_box,
.user_coupon_box {
    border-radius: 16px !important;
    border: 1px solid #dbe7f1 !important;
    background: rgba(255,255,255,0.92) !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    padding: 18px !important;
}

.user_profile_block h2,
.user_privacy_block h2,
.user_selfservice_block h2,
.user_admin_lookup_block h2 {
    text-align: left;
    margin: 0 0 10px;
    font-size: 20px;
}

.user_profile a,
.user_orders a,
.user_calendar_page_intro a,
.user_profile_calendar_nav a {
    background: linear-gradient(135deg, var(--user-accent) 0%, var(--user-accent-dark) 100%);
    color: #fff !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 10px 16px !important;
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.18);
}

.user_profile a:hover,
.user_orders a:hover,
.user_calendar_page_intro a:hover,
.user_profile_calendar_nav a:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.user_orders_filter {
    padding: 16px;
    border: 1px solid #dbe7f1;
    border-radius: 16px;
    background: rgba(255,255,255,0.9);
}

.user_orders_filter label {
    font-weight: 600;
    color: var(--user-ink);
}

.user_orders_filter select {
    min-height: 42px;
    border-radius: 10px;
    border-color: #c8d6e5;
    background: #fff;
}

.user_order_card {
    border: 1px solid #d7e3ee !important;
    border-radius: 18px !important;
    padding: 18px !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(246,250,255,0.94) 100%) !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07) !important;
}

.uoc_id {
    color: var(--user-ink);
}

.uoc_meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px 16px;
}

.uoc_meta > div {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.82);
    border: 1px solid #e3ebf3;
}

.uoc_actions {
    margin-top: 14px !important;
}

.uoc_actions button,
.user_orders_filter button[type="submit"] {
    background: linear-gradient(135deg, #0f766e 0%, #115e59 100%) !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 10px 16px !important;
}

.user_order_detail {
    background: rgba(255,255,255,0.86);
    border-top-color: #d9e4ee !important;
}

.user_calendar_page_intro {
    margin: 20px auto 30px;
    padding: 28px 26px 22px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
}

.user_calendar_page_intro__eyebrow {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    font-weight: 700;
    color: var(--user-accent);
}

.user_calendar_page_intro__content p:last-child {
    margin-bottom: 0;
    color: var(--user-muted);
}

.user_profile_calendar_item {
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.calendar_item_title {
    font-weight: 700;
}

@media (max-width: 700px) {
    .user_calendar_page_intro {
        flex-direction: column;
        align-items: flex-start;
    }

    .uoc_meta {
        grid-template-columns: 1fr;
    }
}
