@charset "utf-8";
/* Startseite: index.php?page=startseite */

/* =========================================================
   STARTSEITE – Bootstrap 3.3.4, Mobile-first Optimierung
========================================================= */
.start-wrap { margin-top: 10px; }

/* Karten */
.start-card {
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    background: #fff;
    padding: 14px 14px 12px 14px;
    margin-bottom: 14px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.start-card-header { position: relative; margin-bottom: 10px; }

.start-title { margin: 0; font-weight: 800; font-size: 18px; }
.start-sub { margin: 4px 0 0 0; color: #555; }
.start-meta {
    position: absolute;
    top: 0;
    right: 0;
    color:#666;
    font-size: 12px;
    white-space: nowrap;
}
.hr-soft { border-top: 1px solid #eee; margin: 10px 0; }

.start-section-title {
    font-size: 12px;
    font-weight: 800;
    color: #475569;
    margin: 10px 0 8px 0;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Soft Badge */
.badge-soft {
    display:inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    border: 1px solid #e2e8f0;
}

/* Quick-Stats */
.quickstats {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e6e6e6;
}
.qb {
    display: inline-block;
    margin: 0 8px 8px 0;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #334155;
    text-decoration: none !important;
    line-height: 1.2;
    max-width: 100%;
}
.qb:hover { background:#f8fafc; }
.qb .glyphicon { margin-right: 6px; opacity: .9; }
.qb-danger { border-color:#fecaca; color:#b91c1c; background:#fff5f5; }
.qb-warning { border-color:#fde68a; color:#92400e; background:#fffbeb; }
.qb-info { border-color:#bfdbfe; color:#1d4ed8; background:#eff6ff; }
.qb-ok { border-color:#bbf7d0; color:#166534; background:#f0fdf4; }

/* Inline-Info unter Quickstats */
.inline-info {
    margin-top: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
}
.inline-info a { text-decoration: underline; }
.inline-info .names {
    margin-top: 6px;
    font-size: 12px;
    color: #7c2d12;
    line-height: 1.4;
}
.inline-info .name-pill{
    display:inline-block;
    padding:2px 8px;
    border-radius:999px;
    border:1px solid #fcd34d;
    background:#fff;
    margin: 2px 6px 0 0;
    white-space: nowrap;
}

/* Tiles */
.tile {
    display:block;
    border-radius: 12px;
    padding: 12px 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    text-decoration:none !important;
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
    transition: box-shadow .08s ease;
    min-height: 86px;
    overflow: hidden;
}
.tile:hover { box-shadow: 0 4px 10px rgba(0,0,0,.06); }
.tile-title {
    font-weight: 800;
    color:#0f172a;
    margin:0 0 4px 0;
    font-size: 14px;
    word-break: break-word;
}
.tile-sub { margin:0; color:#475569; font-size:12px; word-break: break-word; }
.tile-icon { font-size: 18px; margin-right: 6px; vertical-align: -1px; }

.tile-row .col-xs-6 { padding-left: 6px; padding-right: 6px; }
.tile-row { margin-left: -6px; margin-right: -6px; }
.tile-row .tile { margin-bottom: 10px; }

.tile-btn { cursor: pointer; }
.tile-btn .tile-title { margin-bottom: 0; }
.tile-btn .tile-sub { margin-top: 6px; }

.start-main-grid {
    display: flex;
    flex-wrap: wrap;
}
.start-main-grid > [class*="col-"] {
    float: none;
}
.start-main-grid.no-admin-quicklinks .start-profile-col {
    order: 1;
}
.start-main-grid.no-admin-quicklinks .start-quick-col {
    order: 2;
}
.start-main-grid.has-admin-quicklinks .start-quick-col {
    order: 1;
}
.start-main-grid.has-admin-quicklinks .start-profile-col {
    order: 2;
}

.info-text { padding-left: 18px; }
.info-text * { max-width: 100%; }

.badge-neu {
    display:inline-block;
    background:#dc2626;
    color:#fff;
    padding:2px 10px;
    border-radius:999px;
    font-size: 12px;
    margin-right: 6px;
    vertical-align: middle;
}

.alert { border-radius: 12px; }
.alert .close { opacity:.6; }
.alert .close:hover { opacity: 1; }

.blinkendpn {
    border-color: White;
    border-width:3px;
    animation: blinkendpn 1.5s steps(2, start) infinite;
}
@keyframes blinkendpn {
    from { border-color: #ffffffff; }
    to   { border-color: #ff0000ff; }
}

.blinkend {
    background-color: White;
    animation: blinkend 1.5s steps(2, start) infinite;
}
@keyframes blinkend {
    from { background-color: #008080; }
    to   { background-color: #00FF00; }
}

/* =========================================================
   Abwesenheiten / Status-Panel (Urlaub/Krank/Schule)
========================================================= */
.status-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.status-grid { margin: 0 -6px; }
.status-grid > [class*="col-"] { padding: 0 6px; }
.status-box {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 10px 8px 10px;
    background: #fff;
    margin-bottom: 10px;
    min-height: 88px;
}
.status-hd {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom: 8px;
}
.status-title {
    font-weight: 800;
    font-size: 13px;
    color:#0f172a;
    margin:0;
}
.status-count {
    font-size: 12px;
    border: 1px solid #e5e7eb;
    background:#f8fafc;
    color:#334155;
    border-radius: 999px;
    padding: 2px 8px;
    white-space: nowrap;
}
.status-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.status-list li {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding: 6px 0;
    border-top: 1px dashed #eef2f7;
    font-size: 12px;
    color:#334155;
}
.status-list li:first-child { border-top: 0; padding-top: 0; }
.status-name { font-weight: 700; color:#0f172a; }
.status-meta {
    color:#64748b;
    white-space: nowrap;
    font-size: 11px;
}
.status-empty {
    font-size: 12px;
    color:#64748b;
    padding: 2px 0 0 0;
}
.status-pill {
    display:inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    border:1px solid #e5e7eb;
    background:#f8fafc;
    color:#334155;
    font-size: 11px;
    white-space: nowrap;
    text-decoration: none !important;
}
.status-pill:hover { background:#fff; }

.status-urlaub { border-color:#bbf7d0; background:#f0fdf4; }
.status-urlaub .status-count { border-color:#bbf7d0; background:#f0fdf4; color:#166534; }

.status-krank { border-color:#fecaca; background:#fff5f5; }
.status-krank .status-count { border-color:#fecaca; background:#fff5f5; color:#b91c1c; }

.status-schule { border-color:#bfdbfe; background:#eff6ff; }
.status-schule .status-count { border-color:#bfdbfe; background:#eff6ff; color:#1d4ed8; }

.birthday-modal .modal-content {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 55px rgba(15,23,42,.28);
}
.birthday-modal .modal-header {
    background: #fff7ed;
    border-bottom: 1px solid #fed7aa;
    color: #9a3412;
}
.birthday-modal .modal-title {
    font-weight: 800;
}
.birthday-modal .modal-body {
    padding: 18px;
}
.birthday-modal .alert {
    margin-bottom: 0;
}
.birthday-modal .alert .close {
    display: none;
}
.birthday-modal img {
    max-width: 100%;
    height: auto;
    margin-right: 12px;
}

/* Admin: aktuell eingeloggte Nutzer */
.online-users-card {
    margin-top: 18px;
    margin-bottom: 0;
}
.online-users-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.online-users-card .start-section-title {
    margin-top: 0;
    margin-bottom: 2px;
}
.online-users-sub {
    color: #64748b;
    font-size: 12px;
}
.online-users-count {
    min-width: 34px;
    height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-weight: 800;
    text-align: center;
    line-height: 16px;
}
.online-users-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.online-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    padding: 7px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
}
.online-user-pill.is-current {
    border-color: #bfdbfe;
    background: #eff6ff;
}
.online-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 999px;
    background: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, .12);
}
.online-user-name {
    font-weight: 800;
    color: #0f172a;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.online-user-current {
    margin-left: 4px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
}
.online-user-time {
    color: #64748b;
    white-space: nowrap;
}
.online-user-page {
    display: inline-block;
    max-width: 280px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none !important;
}
.online-user-page:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.online-users-empty {
    margin-top: 12px;
    color: #64748b;
    font-size: 12px;
}

.offline-taskbox {
    margin-top: 16px;
    border-color: #bfdbfe;
    background: linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
}
.offline-taskbox.is-offline {
    border-color: #fed7aa;
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
}
.offline-taskbox.has-error {
    border-color: #fecaca;
    background: linear-gradient(135deg, #fff1f2 0%, #ffffff 100%);
}
.offline-taskbox-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.offline-taskbox-sub {
    color: #64748b;
    font-size: 12px;
}
.offline-taskbox-count {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .25);
}
.offline-taskbox-status {
    margin-top: 10px;
    color: #334155;
    font-size: 13px;
}
.offline-taskbox-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 8px;
    margin-top: 12px;
}
.offline-task-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 10px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #fff;
}
.offline-task-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    margin-top: 4px;
    border-radius: 999px;
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, .15);
}
.offline-task-title {
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}
.offline-task-meta {
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
}
.offline-taskbox-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

/* Mobile */
@media (max-width: 767px) {
    .start-main-grid {
        display: block;
    }

    .start-meta { display:none; }

    .start-title { font-size: 16px; }
    .start-sub { font-size: 12px; }
    .hr-soft { margin: 8px 0; }

    .qb {
        display: inline-block;
        margin: 0 6px 8px 0;
        padding: 8px 10px;
        font-size: 12px;
    }

    .tile { min-height: 0; padding: 10px; }
    .tile-title { font-size: 13px; }
    .tile-sub { font-size: 12px; }

    ul { padding-left: 18px; }

    .alert .close { font-size: 24px; line-height: 1; }

    .row { margin-left: -10px; margin-right: -10px; }
    .col-md-6, .col-md-4 { padding-left: 10px; padding-right: 10px; }

    .online-users-head {
        align-items: center;
    }

    .online-users-list {
        display: block;
    }

    .online-user-pill {
        display: flex;
        width: 100%;
        border-radius: 10px;
        margin-bottom: 8px;
    }

    .online-user-time {
        margin-left: auto;
    }

    .online-user-page {
        max-width: 100%;
        margin-left: 22px;
    }

    .offline-taskbox-list {
        display: block;
    }

    .offline-task-item {
        margin-bottom: 8px;
    }
}
@media (max-width: 359px) {
    .tile-row .col-xs-6 { width: 100%; float: none; }
}
@media (min-width: 360px) and (max-width: 767px) {
    .tile-row .col-xs-6 { width: 50%; float: left; }
}
@media (hover: none) {
    .tile:hover { box-shadow: 0 1px 2px rgba(0,0,0,.03); }
}
