/* Helferplan – Frontend (übernommen aus Helferplan-Plugin 3.3, leicht erweitert) */
.helferplan { max-width: 1500px !important; }

.tv-hp-day { margin: 12px 0 4px; }
.tv-hp-empty { padding: 12px; background: #f6f6f6; border: 1px solid #ddd; }

.hp-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.hp-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    margin-top: 10px;
}

.hp-table th,
.hp-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
    vertical-align: middle;
    min-width: 200px;
}

.hp-table span { padding: 0 .75em; }

/* Fixierte erste Spalte */
.hp-table th:first-child,
.hp-table td:first-child {
    position: sticky;
    left: 0;
    background: #f9f9f9;
    z-index: 2;
    box-shadow: 2px 0 5px -2px rgba(0, 0, 0, 0.2);
    padding: 0 .75em;
}

.hp-table input[type=text] {
    width: 70%;
    margin: 0;
    vertical-align: middle;
    box-sizing: border-box;
}

.hp-table button {
    width: 24px;
    padding: 4px 6px;
    margin: 0;
    line-height: 1.2;
    cursor: pointer;
}

.tv-hp-msg:empty { display: none; }
.hp-msg { background: #e8ffe8; padding: 8px; border: 1px solid #b3e6b3; margin-top: 8px; }
.hp-error { background: #ffecec; padding: 8px; border: 1px solid #f5c6c6; margin-top: 8px; color: #900; }

@media (max-width: 700px) {
    .hp-table th, .hp-table td { font-size: 14px; padding: 6px; }
    .tv-helferplan input[type=text], .tv-helferplan .hp-table button {
        font-size: 16px; padding: 6px; width: 100%; box-sizing: border-box; margin-bottom: 4px;
    }
}

@media print {
    body * { visibility: hidden; }
    .hp-frontend, .hp-frontend * { visibility: visible; }
    .hp-frontend { position: absolute; left: 0; top: 0; width: 100%; }
    .hp-frontend button, .hp-frontend input, .tv-hp-head, .tv-hp-msg { display: none !important; }
}
