/* Screen-only presentation: printed documents retain their existing styles. */
@media screen {
    :root { --evs-ink: #203b49; --evs-muted: #637886; --evs-border: #dbe6eb; --evs-accent: #216f83; }
    body.evs-app, body.evs-login { background: #f1f5f7 !important; color: var(--evs-ink) !important; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif !important; line-height: 1.5; }
    .evs-app > .container { max-width: 1560px; padding: 24px 28px 0; }
    .app-brand { align-items: center; margin-bottom: 20px !important; }
    .app-brand .logo-ak, .app-brand .logo-bs { width: 18% !important; }
    .app-brand .logo-ak img, .app-brand .logo-bs img { max-height: 80px; width: auto; object-fit: contain; }
    .app-brand .logo-bs { text-align: right; }
    .app-brand .project-lbl { width: 64% !important; padding-top: 0 !important; }
    .app-brand .project-lbl h2 { font-size: clamp(1rem, 2.1vw, 1.85rem); font-weight: 750; letter-spacing: .02em; margin: 0; color: #284d5e; }
    .menu-div.btn-group { display: grid; grid-template-columns: repeat(5, 1fr) auto auto; gap: 7px; padding: 9px; background: white; border: 1px solid var(--evs-border); border-radius: 15px; box-shadow: 0 4px 16px rgba(32, 59, 73, .04); }
    .menu-div.btn-group > .col { width: auto; padding: 0 !important; margin: 0 !important; min-width: 0; }
    .menu-div.btn-group button { background: transparent; color: #496373; border: 0; border-radius: 9px !important; min-height: 44px; padding: 10px 14px; font-size: .9rem; font-weight: 600; transition: background .15s, color .15s; }
    .menu-div.btn-group button:hover { background: #edf5f7; color: #1d6579 !important; }
    .menu-div.btn-group button[aria-current='page'] { color: white; background: var(--evs-accent); box-shadow: 0 3px 8px rgba(33, 111, 131, .16); }
    .menu-div.btn-group button[aria-current='page']:hover { background: #19596b; color: white !important; }
    .menu-div .nav-icon { display: inline-flex; gap: 7px; align-items: center; justify-content: center; }
    .nav-icon img { width: 20px; height: 20px; }
    .evs-app .account-badge { margin-top: 4px; background: white; }
    .evs-app #content { background: white; border: 1px solid var(--evs-border); border-radius: 18px; padding: 22px; margin: 12px 0 24px; min-height: 180px; box-shadow: 0 8px 30px rgba(32, 59, 73, .04); }
    .evs-app .footer-div { position: static; background: transparent; color: #71838e; border: 0; height: auto; padding: 0 10px 22px; font-size: .75rem; }
    .evs-view-heading { width: 100%; margin-bottom: 20px; }
    .evs-view-heading h2 { margin: 0 0 5px; color: var(--evs-ink); font-size: 1.5rem; font-weight: 700; }
    .evs-view-heading p { margin: 0; color: var(--evs-muted); font-size: .88rem; }
    .evs-app #content .btn, .evs-app .modal .btn { border-radius: 8px; min-height: 38px; font-size: .88rem; font-weight: 600; }
    .evs-app #content .btn-info { background: #216f83; border-color: #216f83; color: white; }
    .evs-app #content .btn-success { background: #247a69; border-color: #247a69; }
    .evs-app #content .btn-danger { background: #b64a54; border-color: #b64a54; }
    .evs-app #content .form-control, .evs-app #content .form-select { border: 1px solid #cbdce4; border-radius: 9px; min-height: 44px; color: #2e4c5b; font-family: inherit; font-weight: 400; max-width: 100%; }
    .evs-app #content .form-control:focus, .evs-app #content .form-select:focus { border-color: #448da0; box-shadow: 0 0 0 3px rgba(68, 141, 160, .13); }
    .evs-app #content .form-control:disabled, .evs-app #content .form-select:disabled { background-color: #f3f6f8; color: #5e7380; opacity: 1; }
    .evs-app #content .input-group-text { background: #f3f7f9; border-color: #cbdce4; color: #4d6878; font-size: .84rem; }
    .evs-app #content .form-check-input { width: 1.1em; height: 1.1em; border-color: #a7bfcb; }
    .evs-app #content .form-check-input:checked { background-color: #216f83; border-color: #216f83; }
    .evs-app .booking-form-container { padding: 8px 4px 20px; }
    .evs-app .booking-form-container h3 { font-size: 1.5rem; font-weight: 700; color: var(--evs-ink); }
    .evs-app .booking-form-container h5 { font-size: 1rem; font-weight: 650; margin-top: 16px; margin-bottom: 12px; color: #326476; }
    .evs-app .booking-form-container h6 { color: #637886; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
    .evs-app .booking-form-container .form-check { padding-top: 3px; padding-bottom: 3px; }
    .evs-app #content #form-rows { background: #f9fbfc; border: 1px solid #e3ebef !important; border-radius: 12px; padding: 10px 12px 20px; margin-top: 15px; }
    .evs-app .bookings-container, .evs-app .invoices-container { margin-top: 20px; }
    .evs-app .bookings-container > .row, .evs-app .invoices-container > .row { align-items: center; margin: 0 0 8px; padding: 12px 6px; border: 1px solid #e1eaee; border-radius: 10px; font-size: .88rem; }
    .evs-app .bookings-container > .row:first-child, .evs-app .invoices-container > .row:first-child { background: #edf4f7; border: 0 !important; font-size: .76rem; color: #506d7e; }
    .evs-app .bookings-container > .row:not(:first-child):hover, .evs-app .invoices-container > .row:not(:first-child):hover { background: #f8fbfc; border-color: #bed6e0; }
    .evs-app .bookings-container > .row > div, .evs-app .invoices-container > .row > div { overflow-wrap: anywhere; }
    .evs-app .calender-container { margin-bottom: 12px; }
    .evs-app .calender-container .select-form-group { padding: 0 0 16px; }
    .evs-app #calender > .row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 5px; margin: 0; }
    .evs-app #calender .month-wrapper { width: auto; min-width: 0; border: 1px solid #dce7ec; border-radius: 8px; overflow: hidden; align-self: start; }
    .evs-app .calender-container .month-labels { background: #2d6579; color: white; font-weight: 650; font-size: .82rem; padding: 10px 2px; margin: 0; }
    .evs-app .calender-container .cell { min-height: 45px; font-size: .7rem; border-left: 0; border-color: #e0e9ee; padding: 4px 3px; }
    .evs-app .calender-container .cell a { display: inline-block; border-radius: 4px; padding: 1px 4px; color: #174e6e; font-weight: 600; }
    .evs-app .calender-container .cell a:hover { background: rgba(255,255,255,.7); }
    .evs-app .ui-datepicker { border: 1px solid #ccdde5; border-radius: 10px; box-shadow: 0 10px 30px rgba(32,59,73,.15); padding: 8px; }
    .evs-app .modal { background: rgba(20, 42, 54, .4); backdrop-filter: blur(3px); padding: 24px 12px; }
    .evs-app .modal-dialog { margin: 8vh auto 24px; }
    .evs-app .modal-content { border: 0; border-radius: 16px; box-shadow: 0 16px 60px rgba(20,42,54,.18); overflow: hidden; }
    .evs-app .modal-header, .evs-app .modal-footer { background: #f6f9fb !important; border-color: #e1eaef; padding: 18px 20px; }
    .evs-app .modal-title { color: #254d60 !important; font-size: 1.15rem; font-weight: 700; text-align: left !important; }
    .evs-app .modal-body { padding: 22px; overflow-wrap: anywhere; }
    .evs-app #modalBody h3 { font-size: 1rem; line-height: 1.6; margin: 0; }
    .evs-app .feedback-modal { padding-top: 24px; }
    .evs-app #vertragModal { margin-top: 0 !important; }
    .evs-app #vertragModal .modal-fullscreen { width: min(1440px, 96vw) !important; height: calc(100dvh - 48px) !important; margin: 0 auto; box-shadow: none; }
    .evs-app #modalContent { overflow: auto; }
    .evs-app #modalContent > .container .form-control, .evs-app #modalContent > .container .form-select { border: 1px solid #cbdce4; border-radius: 9px; min-height: 44px; font-family: inherit; }
    .evs-app #modalContent > .container { padding-top: 8px; padding-bottom: 20px; }
    .evs-app #modal { z-index: 1250; }
    .evs-app .modal-delete, .evs-app #userStatusModal { z-index: 1300; }
    .evs-app #wochenplan_container { overflow-x: auto; }
    .evs-app .settings-heading { padding-top: 0; }
    body.evs-login { display: flex; align-items: center; justify-content: center; min-height: 100vh; height: auto !important; padding: 28px 16px; background: radial-gradient(ellipse at top, #e2eef2, #f4f7f9 65%) !important; }
    .evs-login .login-block { width: 100%; max-width: 480px; padding: 30px; margin: 0; border: 1px solid #dce6eb; border-radius: 20px; background: white; box-shadow: 0 16px 60px rgba(32,59,73,.09); }
    .evs-login .login-title span { color: #284d5e; font-size: 1.35rem; font-weight: 750; word-break: normal; line-height: 1.4; }
    .evs-login .login-block .row:first-child > .col { width: 100%; }
    .evs-login .login-block .row:nth-child(2) > .col { width: 45%; padding: 10px 12px; background: white; }
    .evs-login .login-block .row:nth-child(2) img { max-height: 80px; object-fit: contain; }
    .evs-login .login-actions-div { width: 100%; margin-top: 20px; }
    .evs-login .form-control { min-height: 48px; border-radius: 10px; border: 1px solid #ccdce4; background: #f8fafb !important; padding-left: 14px !important; font-size: .95rem; }
    .evs-login .form-control:focus { border-color: #448da0; box-shadow: 0 0 0 3px rgba(68,141,160,.12); }
    .evs-login .login-block button { background: #216f83; color: white; border: 0; border-radius: 10px; min-height: 46px; text-transform: none; font-size: .95rem; font-family: inherit; font-weight: 650; }
    .evs-login .login-block button:hover { background: #19596b; }
    .evs-login .error-message { font-size: .86rem; width: 100%; margin-top: 6px; color: #a63541; line-height: 1.6; }
    .evs-dialog { position: fixed; inset: 0; z-index: 2200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(20,42,54,.45); backdrop-filter: blur(4px); }
    .evs-dialog-card { width: 100%; max-width: 450px; max-height: calc(100dvh - 40px); overflow-y: auto; background: white; border-radius: 18px; padding: 28px; box-shadow: 0 20px 70px rgba(20,42,54,.25); color: #203b49; text-align: left; }
    .evs-dialog-symbol { display: flex; justify-content: center; align-items: center; width: 42px; height: 42px; margin-bottom: 18px; border-radius: 12px; background: #eaf3f6; color: #216f83; font-size: 1.25rem; font-weight: 700; }
    .evs-dialog-card h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 12px; }
    .evs-dialog-card p { color: #5d7280; white-space: pre-line; overflow-wrap: anywhere; margin-bottom: 24px; }
    .evs-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
    .evs-dialog-actions .btn { width: auto !important; border-radius: 9px; min-height: 42px; }
    body.evs-dialog-open { overflow: hidden; }
    :is(.evs-app, .evs-login) button:focus-visible, :is(.evs-app, .evs-login) a:focus-visible { outline: 3px solid #5a9fb5; outline-offset: 3px; }
    @media (max-width: 1199px) {
        .evs-app #calender > .row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
        .evs-app .calender-container .cell { font-size: .8rem; }
        .menu-div.btn-group { grid-template-columns: repeat(5, 1fr); }
        .menu-div.btn-group > .col:nth-last-child(-n+2) { grid-column: span 2; }
    }
    @media (max-width: 767px) {
        .evs-app > .container { padding: 16px 14px 0; }
        .app-brand .logo-ak, .app-brand .logo-bs { width: 24% !important; }
        .app-brand .project-lbl { width: 52% !important; }
        .app-brand .logo-ak img, .app-brand .logo-bs img { max-height: 58px; }
        .menu-div.btn-group { grid-template-columns: repeat(3, 1fr); }
        .menu-div.btn-group > .col:nth-last-child(-n+2) { grid-column: auto; }
        .menu-div.btn-group > .col:last-child { grid-column: span 3; }
        .menu-div.btn-group button { padding: 9px 6px; font-size: .8rem; }
        .evs-app #content { padding: 16px 12px; border-radius: 12px; }
        .evs-app #calender > .row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
        .evs-app .bookings-container > .row:first-child, .evs-app .invoices-container > .row:first-child { display: none; }
        .evs-app .bookings-container > .row:not(:first-child), .evs-app .invoices-container > .row:not(:first-child) { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 10px; }
        .evs-app .bookings-container > .row > div, .evs-app .invoices-container > .row > div { width: auto; padding: 0 4px; }
        [data-evs-label]::before { content: attr(data-evs-label); display: block; font-size: .7rem; font-weight: 600; color: #6b7d87; margin-bottom: 3px; }
        .evs-app .modal-body { padding: 16px; }
        .evs-app #wochenplan_container .single-event { width: 100% !important; margin-left: 0 !important; }
        .evs-app .modal { padding: 12px 6px; }
        .evs-app #vertragModal .modal-fullscreen { height: calc(100dvh - 24px) !important; }
    }
    @media (max-width: 389px) {
        .evs-app #calender > .row { grid-template-columns: 1fr; }
        .evs-login .login-block { padding: 22px 18px; }
        .account-badge-caption { display: none; }
    }
    @media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
}
