/* =====================================================================
   HTQ TEAM – ÖFFENTLICHER, SMARTPHONE-OPTIMIERTER EVENT-WIZARD
===================================================================== */

.htq-team-public-shell {
    width: min(760px, calc(100% - 28px));
}

.htq-team-public-card {
    overflow: visible;
}

.htq-team-public-card .team-public-header {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.htq-team-public-content {
    min-height: 330px;
}

/* Die Startseite bettet genau diese kanonische Ansicht ein. Lediglich der
   öffentliche Rahmen entfällt; Wizard, Übersicht und AJAX bleiben identisch. */
.team-public-body.team-public-embedded {
    min-height: 0;
    overflow-x: hidden;
    background: transparent;
}

.team-public-body.team-public-embedded::before {
    content: none;
    display: none;
    box-shadow: none;
}

.team-public-embedded .team-public-shell,
.team-public-embedded .team-public-card,
.team-public-embedded .htq-team-public-shell,
.team-public-embedded .htq-team-public-card {
    box-shadow: none !important;
}

.team-public-embedded .htq-team-public-shell {
    width: 100%;
    margin: 0;
    padding: 0;
}

.team-public-embedded .htq-team-public-card {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.team-public-embedded .team-public-header,
.team-public-embedded .team-public-footer {
    display: none;
}

.team-public-embedded .htq-team-public-content {
    min-height: 0;
    padding: 0;
}

.team-public-embedded .htq-team-overview-back {
    display: none;
}

.team-public-embedded .htq-team-account-controls {
    display: none;
}

.htq-team-identification h1 {
    max-width: 600px;
    margin: 7px 0 38px;
    font-size: clamp(26px, 5vw, 35px);
    line-height: 1.16;
    letter-spacing: -.035em;
}

.htq-team-mobile-break {
    display: none;
}

.htq-team-event-kicker,
.htq-team-step-kicker {
    display: block;
    color: var(--color-primary);
    font-size: 10px;
    font-weight: var(--font-weight-bold);
    letter-spacing: .11em;
    text-transform: uppercase;
}

/* Namenssuche */

.htq-team-search-panel {
    position: relative;
}

.htq-team-search-label {
    display: block;
    margin-bottom: 9px;
    color: var(--color-text-secondary);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: .075em;
    text-transform: uppercase;
}

.htq-team-search-control {
    position: relative;
    display: flex;
    align-items: center;
}

.htq-team-search-control svg {
    position: absolute;
    left: 19px;
    z-index: 1;
    width: 23px;
    height: 23px;
    fill: none;
    stroke: var(--color-primary);
    stroke-linecap: round;
    stroke-width: 1.8;
    pointer-events: none;
}

.htq-team-search-control input {
    width: 100%;
    height: 64px;
    box-sizing: border-box;
    padding: 0 20px 0 57px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-background);
    color: var(--color-text);
    font: inherit;
    font-size: 18px;
    font-weight: var(--font-weight-medium);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.htq-team-search-control input::placeholder {
    color: #9299a1;
    font-weight: var(--font-weight-normal);
}

.htq-team-search-control input:focus {
    border-color: var(--color-primary);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(18,82,146,.11);
}

.htq-team-search-control input:disabled {
    background: var(--color-background-soft);
}

.htq-team-search-results {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    background: var(--color-background);
    box-shadow: 0 18px 42px rgba(18,29,41,.17);
}

.htq-team-search-results[hidden],
[data-htq-team-search-step][hidden],
.htq-team-wizard[hidden],
.htq-team-complete[hidden],
.htq-team-overview[hidden],
.htq-team-save-celebration[hidden],
.htq-team-request[hidden],
.htq-team-department-days[hidden] {
    display: none !important;
}

.htq-team-subtasks[hidden],
[data-task-event-label][hidden],
[data-task-capacity-chip][hidden],
.htq-team-ice-choice[hidden] {
    display: none !important;
}

/* Freiwillige Pause / ON ICE */

.htq-team-ice-choice {
    display: flex;
    width: 100%;
    min-height: 72px;
    box-sizing: border-box;
    align-items: center;
    gap: 14px;
    margin: 18px 0 0;
    padding: 13px 16px;
    border: 1px solid #d8e7f3;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #f7fbff, #eef7fd);
    color: #35546d;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.htq-team-ice-choice:hover,
.htq-team-ice-choice:focus-visible {
    border-color: #8ebbd9;
    outline: 0;
    box-shadow: 0 9px 24px rgba(63,125,168,.13);
    transform: translateY(-1px);
}

.htq-team-ice-choice:disabled {
    cursor: wait;
    opacity: .72;
    transform: none;
}

.htq-team-ice-choice-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: none;
    place-items: center;
    border-radius: 50%;
    background: #deedf7;
    color: #326889;
    font-size: 23px;
}

.htq-team-ice-choice strong,
.htq-team-ice-choice small {
    display: block;
}

.htq-team-ice-choice strong {
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
}

.htq-team-ice-choice small {
    margin-top: 3px;
    color: #71889a;
    font-size: 11px;
    line-height: 1.35;
}

.team-public-body.htq-team-is-frozen {
    background:
        radial-gradient(circle at 18% 18%, rgba(217,244,255,.95), transparent 35%),
        radial-gradient(circle at 82% 24%, rgba(199,226,248,.78), transparent 38%),
        linear-gradient(135deg, #eff9ff, #dbeefb 48%, #edf7fc);
    background-size: 125% 125%, 140% 140%, 100% 100%;
    animation: htq-team-frozen-background 9s ease-in-out infinite alternate;
}

.htq-team-wizard.is-frozen {
    overflow: hidden;
    border: 1px solid rgba(120,183,220,.58);
    border-radius: var(--radius-lg);
    background: rgba(250,253,255,.88);
    box-shadow: 0 22px 55px rgba(57,116,154,.18);
}

.htq-team-wizard.is-frozen .htq-team-wizard-header {
    align-items: center;
    padding: 18px 20px 16px;
}

.htq-team-wizard.is-frozen .htq-team-progress {
    margin: 0;
    border-radius: 0;
}

.htq-team-wizard.is-frozen .htq-team-progress span {
    background: linear-gradient(90deg, #8ccce9, #d5f5ff, #6aaed5);
}

.htq-team-frozen-panel {
    position: relative;
    min-height: 330px;
    padding: 44px 28px 38px;
    overflow: hidden;
    text-align: center;
}

.htq-team-frozen-panel > *:not(.htq-team-frozen-snow) {
    position: relative;
    z-index: 2;
}

.htq-team-frozen-icon {
    display: grid;
    width: 82px;
    height: 82px;
    margin: 18px auto 15px;
    place-items: center;
    border: 1px solid rgba(112,181,218,.45);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(213,240,252,.92));
    box-shadow: 0 17px 36px rgba(64,139,180,.2), inset 0 1px 0 #fff;
    color: #4b9ac6;
    font-size: 38px;
    animation: htq-team-frozen-icon 3.4s ease-in-out infinite;
}

.htq-team-frozen-panel h2 {
    margin: 0;
    padding-left: 0;
    color: #173d59;
    font-size: clamp(27px, 6vw, 37px);
    letter-spacing: -.035em;
}

.htq-team-frozen-panel p {
    max-width: 470px;
    margin: 19px auto 24px;
    color: #587487;
    font-size: 14px;
    line-height: 1.55;
}

.htq-team-thaw-button {
    display: inline-grid;
    grid-template-columns: auto auto;
    align-items: center;
    column-gap: 9px;
    padding: 12px 19px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #f39b27, #ec7d18);
    box-shadow: 0 10px 24px rgba(225,120,26,.25);
    color: #fff;
    font: inherit;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.htq-team-thaw-button:hover,
.htq-team-thaw-button:focus-visible {
    outline: 0;
    box-shadow: 0 14px 29px rgba(225,120,26,.34);
    transform: translateY(-2px);
}

.htq-team-thaw-button > span {
    grid-row: 1 / 3;
    font-size: 22px;
}

.htq-team-thaw-button strong,
.htq-team-thaw-button small {
    display: block;
    text-align: left;
}

.htq-team-thaw-button strong { font-size: 14px; }
.htq-team-thaw-button small { color: rgba(255,255,255,.82); font-size: 10px; }

.htq-team-frozen-snow span {
    position: absolute;
    z-index: 1;
    top: -30px;
    color: rgba(87,165,205,.34);
    font-size: 18px;
    animation: htq-team-snowfall 6s linear infinite;
}

.htq-team-frozen-snow span:nth-child(1) { left: 8%; animation-delay: -1s; }
.htq-team-frozen-snow span:nth-child(2) { left: 27%; animation-delay: -4s; animation-duration: 7.3s; }
.htq-team-frozen-snow span:nth-child(3) { left: 51%; animation-delay: -2.5s; animation-duration: 5.5s; }
.htq-team-frozen-snow span:nth-child(4) { left: 74%; animation-delay: -.5s; animation-duration: 8s; }
.htq-team-frozen-snow span:nth-child(5) { left: 91%; animation-delay: -5s; animation-duration: 6.8s; }

@keyframes htq-team-frozen-background {
    to { background-position: 8% 6%, 92% 12%, 0 0; }
}

@keyframes htq-team-frozen-icon {
    50% { transform: translateY(-4px) rotate(4deg); }
}

@keyframes htq-team-snowfall {
    0% { opacity: 0; transform: translate3d(0, -15px, 0) rotate(0deg); }
    12% { opacity: 1; }
    88% { opacity: .75; }
    100% { opacity: 0; transform: translate3d(18px, 390px, 0) rotate(270deg); }
}

.htq-team-search-results button {
    display: flex;
    width: 100%;
    min-height: 58px;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 17px;
    border: 0;
    border-bottom: 1px solid var(--color-border-light);
    background: var(--color-background);
    color: var(--color-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.htq-team-search-results button:last-child { border-bottom: 0; }

.htq-team-search-results button:hover,
.htq-team-search-results button:focus-visible,
.htq-team-search-results button.is-active {
    background: #f2f7fc;
    outline: 0;
}

.htq-team-search-results button > span {
    min-width: 0;
}

.htq-team-search-results button strong,
.htq-team-search-results button small {
    display: block;
}

.htq-team-search-results button strong {
    color: var(--color-text);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    overflow-wrap: anywhere;
    white-space: normal;
}

.htq-team-search-results button small {
    max-width: 470px;
    margin-top: 3px;
    color: var(--color-text-muted);
    font-size: 11px;
    font-style: italic;
    font-weight: var(--font-weight-normal);
    line-height: 1.25;
    overflow-wrap: anywhere;
    white-space: normal;
}

.htq-team-search-results button em {
    flex: none;
    color: var(--color-text-muted);
    font-size: 9px;
    font-style: normal;
    font-weight: var(--font-weight-bold);
    letter-spacing: .07em;
    text-transform: uppercase;
}

.htq-team-search-empty {
    padding: 17px;
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

.htq-team-search-results .htq-team-not-found {
    border-top: 1px solid #dbe5ed;
    background: linear-gradient(135deg, #f7fafc, #eef5fb);
    color: var(--color-primary);
}

.htq-team-search-results .htq-team-not-found strong {
    color: var(--color-primary);
    font-size: 13px;
}

.htq-team-search-results .htq-team-not-found small {
    color: #718395;
    font-size: 10px;
    font-style: normal;
}

.htq-team-search-results .htq-team-not-found b {
    font-size: 22px;
    font-weight: var(--font-weight-normal);
}

.htq-team-search-status,
.htq-team-wizard-status {
    min-height: 20px;
    margin: 10px 2px 0 !important;
    color: var(--color-text-muted) !important;
    font-size: var(--font-size-sm);
}

.htq-team-search-status.is-error,
.htq-team-wizard-status.is-error {
    color: var(--color-error) !important;
}

.htq-team-search-missing {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 7px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-text-muted);
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}

.htq-team-search-missing:hover,
.htq-team-search-missing:focus-visible {
    color: var(--color-primary);
    outline: 0;
}

.htq-team-search-missing b {
    font-size: 15px;
    font-weight: var(--font-weight-normal);
}

/* Aufnahme ins HTQ-Team */

.htq-team-request {
    animation: htq-team-step-enter 420ms cubic-bezier(.2,.8,.2,1) both;
}

.htq-team-request h1 {
    margin-bottom: 8px;
}

.htq-team-request > p {
    max-width: 590px;
    margin: 0 0 23px;
}

.htq-team-back-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 25px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-primary);
    font: inherit;
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
}

.htq-team-back-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.htq-team-request-form,
.htq-team-request-form label {
    display: grid;
}

.htq-team-request-form { gap: 14px; }

.htq-team-request-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.htq-team-request-form label { gap: 7px; }

.htq-team-request-form label > span {
    color: var(--color-text-secondary);
    font-size: 10px;
    font-weight: var(--font-weight-bold);
    letter-spacing: .075em;
    text-transform: uppercase;
}

.htq-team-request-form input {
    width: 100%;
    min-height: 49px;
    box-sizing: border-box;
    padding: 10px 13px;
    border: 1px solid #cad4dc;
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--color-text);
    font: inherit;
    font-size: var(--font-size-md);
}

.htq-team-request-form input:focus {
    border-color: var(--color-primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(18,82,146,.09);
}

/* Wizard-Kopf und Fortschritt */

.htq-team-wizard {
    animation: htq-team-step-enter 420ms cubic-bezier(.2,.8,.2,1) both;
}

.htq-team-wizard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.htq-team-wizard-hello {
    display: block;
    margin-bottom: 5px;
    color: var(--color-text);
    font-size: 21px;
    font-weight: var(--font-weight-medium);
    letter-spacing: -.02em;
}

.htq-team-wizard-hello strong {
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
}

.htq-team-wizard-step {
    flex: none;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef4f9;
    color: var(--color-primary);
    font-size: 10px;
    font-weight: var(--font-weight-bold);
    letter-spacing: .055em;
    text-transform: uppercase;
}

.htq-team-progress {
    width: 100%;
    height: 4px;
    margin: 21px 0 31px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8edf1;
}

.htq-team-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--color-primary), #2f80c7, #ee8424);
    transition: width 500ms cubic-bezier(.2,.8,.2,1);
}

.htq-team-step-intro {
    margin-bottom: 22px;
}

.htq-team-step-intro h2 {
    margin: 5px 0 7px;
    height: auto;
    padding-left: 0;
    color: var(--color-text);
    font-size: clamp(23px, 5vw, 30px);
    line-height: 1.18;
    letter-spacing: -.035em;
}

.htq-team-step-intro p {
    max-width: 610px;
    margin: 0;
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.55;
}

/* XXL-Verfügbarkeit */

.htq-team-availability-form {
    display: grid;
    gap: 10px;
}

.htq-team-availability-row {
    display: grid;
    grid-template-columns: 57px minmax(90px, 1fr) minmax(190px, 245px);
    align-items: center;
    gap: 14px;
    min-height: 70px;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    background: #fbfcfd;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.htq-team-availability-row:focus-within {
    border-color: rgba(18,82,146,.42);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(18,82,146,.08);
}

.htq-team-day-badge {
    display: grid;
    width: 50px;
    height: 50px;
    box-sizing: border-box;
    place-content: center;
    border-radius: 13px;
    background: #eaf3fb;
    color: var(--color-primary);
    text-align: center;
}

.htq-team-day-badge strong {
    font-size: 14px;
    line-height: 1;
    letter-spacing: .055em;
}

.htq-team-day-badge small {
    margin-top: 4px;
    color: #5e7890;
    font-size: 9px;
    font-weight: var(--font-weight-semibold);
}

.htq-team-day-name {
    color: var(--color-text);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
}

.htq-team-select-wrap {
    position: relative;
    display: block;
}

.htq-team-select-wrap select {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    appearance: none;
    padding: 9px 42px 9px 13px;
    border: 1px solid #cdd6dd;
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--color-text);
    font: inherit;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}

.htq-team-select-wrap select:focus {
    border-color: var(--color-primary);
    outline: 0;
}

.htq-team-select-wrap svg {
    position: absolute;
    top: 50%;
    right: 13px;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--color-primary);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Departments */

.htq-team-department-list {
    display: grid;
    gap: 11px;
}

.htq-team-department-card {
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    background: #fff;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.htq-team-department-card.is-selected {
    border-color: rgba(18,82,146,.34);
    background: #fbfdff;
    box-shadow: 0 8px 24px rgba(18,82,146,.075);
}

.htq-team-department-main {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 13px;
    min-height: 67px;
    box-sizing: border-box;
    padding: 10px 14px;
    cursor: pointer;
}

.htq-team-department-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: #eef4f9;
    color: var(--color-primary);
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.htq-team-department-card.is-selected .htq-team-department-icon {
    background: var(--color-primary);
    color: #fff;
    transform: scale(1.035);
}

.htq-team-department-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
}

.htq-team-department-label {
    color: var(--color-text);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    line-height: 1.25;
}

.htq-team-department-main input,
.htq-team-event-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.htq-team-checkmark,
.htq-team-event-check {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    border: 2px solid #c8d1d8;
    background: #fff;
    color: transparent;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.htq-team-checkmark {
    width: 29px;
    height: 29px;
    border-radius: 9px;
}

.htq-team-checkmark svg,
.htq-team-event-check svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.7;
}

.htq-team-department-main input:checked + .htq-team-checkmark,
.htq-team-department-main input:indeterminate + .htq-team-checkmark {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
    transform: scale(1.03);
}

.htq-team-department-main input:focus-visible + .htq-team-checkmark,
.htq-team-event-toggle input:focus-visible + .htq-team-event-check {
    outline: 3px solid rgba(18,82,146,.16);
    outline-offset: 2px;
}

.htq-team-department-days {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 12px 12px 69px;
    animation: htq-team-days-open 230ms ease both;
}

.htq-team-event-toggle {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 50px;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #dce4e9;
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
}

.htq-team-event-check {
    width: 23px;
    height: 23px;
    border-radius: 7px;
}

.htq-team-event-toggle input:checked + .htq-team-event-check {
    border-color: #2c72af;
    background: #2c72af;
    color: #fff;
}

.htq-team-event-toggle strong,
.htq-team-event-toggle small {
    display: block;
}

.htq-team-event-toggle strong {
    color: var(--color-text);
    font-size: var(--font-size-sm);
}

.htq-team-event-toggle small {
    margin-top: 2px;
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: var(--font-weight-medium);
}

/* Unteraufgaben eines gewählten Departments */

.htq-team-subtasks {
    margin: 0 12px 12px;
    padding: 13px;
    border: 1px solid #dce7ef;
    border-radius: var(--radius-md);
    background: #f7fafc;
    animation: htq-team-days-open 230ms ease both;
}

.htq-team-subtasks-title {
    display: block;
    margin-bottom: 9px;
    color: var(--color-primary);
    font-size: 9px;
    font-weight: var(--font-weight-bold);
    letter-spacing: .1em;
}

.htq-team-subtasks-list {
    display: grid;
    gap: 7px;
}

.htq-team-subtask-row {
    display: flex;
    min-width: 0;
    min-height: 42px;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border: 1px solid #e1e8ed;
    border-radius: var(--radius-sm);
    background: #fff;
}

.htq-team-subtask-shared {
    display: grid;
    grid-template-columns: 23px minmax(0, 1fr);
    justify-content: initial;
    cursor: pointer;
}

.htq-team-subtask-shared > input,
.htq-team-subtask-events input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.htq-team-subtask-check {
    display: grid;
    width: 23px;
    height: 23px;
    box-sizing: border-box;
    place-items: center;
    border: 1.5px solid #c8d4dc;
    border-radius: 7px;
    background: #fff;
    color: transparent;
}

.htq-team-subtask-check svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.6;
}

.htq-team-subtask-shared > input:checked + .htq-team-subtask-check {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}

.htq-team-subtask-name {
    min-width: 0;
}

.htq-team-subtask-name strong,
.htq-team-subtask-name small {
    display: block;
}

.htq-team-subtask-name strong {
    font-size: 12px;
    line-height: 1.35;
}

.htq-team-subtask-name small {
    margin-top: 2px;
    color: var(--color-text-muted);
    font-size: 10px;
    line-height: 1.4;
}

.htq-team-capacity-chips {
    display: none !important;
}

.htq-team-capacity-chip {
    display: none !important;
}

.htq-team-subtask-events {
    display: flex;
    flex: none;
    gap: 5px;
}

.htq-team-subtask-event-slot {
    display: block;
}

.htq-team-subtask-events label {
    cursor: pointer;
}

.htq-team-subtask-event-slot.is-capacity-full label {
    cursor: not-allowed;
}

.htq-team-subtask-events label span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 62px;
    min-height: 29px;
    box-sizing: border-box;
    place-items: center;
    padding: 5px 7px;
    border: 1px solid #ccd8e0;
    border-radius: 9px;
    background: #fff;
    color: var(--color-text-secondary);
    font-size: 10px;
    font-weight: var(--font-weight-bold);
}

.htq-team-task-day-check {
    width: 16px;
    height: 16px;
    flex: none;
    box-sizing: border-box;
    border: 1.5px solid #c8d4dc;
    border-radius: 4px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.htq-team-task-day-check path {
    opacity: 0;
}

.htq-team-subtask-events input:checked + span .htq-team-task-day-check {
    border-color: currentColor;
}

.htq-team-subtask-events input:checked + span .htq-team-task-day-check path {
    opacity: 1;
}

.htq-team-subtask-events input:checked + span {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}

.htq-team-subtask-event-slot.is-capacity-full label span,
.htq-team-subtask-row.is-capacity-full {
    border-color: #dfe3e6;
    background: #f0f2f3;
    color: #92999f;
}

.htq-team-subtask-row.is-capacity-full {
    box-shadow: none;
    cursor: not-allowed;
}

.htq-team-subtask-row.is-capacity-full .htq-team-subtask-name strong,
.htq-team-subtask-row.is-capacity-full .htq-team-subtask-name small {
    color: #92999f;
}

.htq-team-subtask-shared > input:focus-visible + .htq-team-subtask-check,
.htq-team-subtask-events input:focus-visible + span {
    outline: 3px solid rgba(18,82,146,.16);
    outline-offset: 2px;
}

/* Primäre Aktion */

.htq-team-primary-button {
    display: flex;
    width: 100%;
    min-height: 54px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 19px;
    padding: 13px 20px;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--color-primary);
    box-shadow: 0 9px 22px rgba(18,82,146,.2);
    color: #fff;
    font: inherit;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.htq-team-primary-button:hover {
    background: #0e467d;
    box-shadow: 0 11px 26px rgba(18,82,146,.25);
    transform: translateY(-1px);
}

.htq-team-primary-button:focus-visible {
    outline: 3px solid rgba(18,82,146,.2);
    outline-offset: 3px;
}

.htq-team-primary-button:disabled {
    cursor: wait;
    opacity: .78;
    transform: none;
}

.htq-team-primary-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.htq-team-button-spinner {
    width: 16px;
    height: 16px;
    box-sizing: border-box;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: htq-team-spin .7s linear infinite;
}

/* Fertig */

.htq-team-overview {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 420ms ease, transform 520ms cubic-bezier(.2,.8,.2,1);
}

.htq-team-overview.is-visible {
    opacity: 1;
    transform: none;
}

.htq-team-save-celebration {
    position: relative;
    display: flex;
    min-height: 74px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 14px;
    overflow: hidden;
    margin-bottom: 25px;
    padding: 13px 20px;
    border: 1px solid #cce9d8;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #f2fbf6, #e8f7ef);
}

.htq-team-save-celebration > :not(.htq-team-celebration-words) {
    position: relative;
    z-index: 1;
}

.htq-team-save-celebration .htq-team-celebration-words {
    z-index: 4;
}

.htq-team-save-celebration .htq-team-complete-icon {
    width: 42px;
    height: 42px;
    margin: 0;
    box-shadow: 0 0 0 6px rgba(30,143,79,.06);
}

.htq-team-save-celebration .htq-team-complete-icon svg {
    width: 23px;
    height: 23px;
}

.htq-team-overview-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 25px;
}

.htq-team-overview-header > div { min-width: 0; }

.htq-team-overview-header h1 {
    margin: 7px 0 5px;
}

.htq-team-overview-header p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 15px;
}

.htq-team-account-controls {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
}

.htq-team-logout,
.htq-team-protection-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 7px 9px;
    border: 1px solid #dce5eb;
    border-radius: 9px;
    background: #f8fafb;
    color: var(--color-text-muted);
    font: inherit;
    font-size: 10px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.htq-team-protection-toggle {
    width: 34px;
    height: 32px;
    justify-content: center;
    padding: 0;
}

.htq-team-logout svg,
.htq-team-protection-toggle svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.htq-team-logout:hover,
.htq-team-logout:focus-visible,
.htq-team-protection-toggle:hover,
.htq-team-protection-toggle:focus-visible {
    border-color: #bfd1dd;
    background: #edf4f8;
    color: var(--color-primary);
    outline: 0;
}

.htq-team-protection-toggle.is-disabled {
    border-color: #e5c36c;
    background: #fff8df;
    color: #9a6900;
}

.htq-team-protection-toggle[hidden] { display: none !important; }
.htq-team-logout:disabled,
.htq-team-protection-toggle:disabled { cursor: wait; opacity: .55; }

/* Plausibilitätscheck und gemeinsamer Abbau-Aufruf */

.htq-team-consistency-warning {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 13px;
    margin: 0 0 14px;
    padding: 15px 16px;
    border: 1px solid #e5c45e;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #fff9d9, #fff4bf);
    color: #684b00;
    box-shadow: 0 8px 22px rgba(116,83,0,.07);
}

.htq-team-consistency-warning-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: rgba(235,180,26,.17);
    color: #9a6b00;
}

.htq-team-consistency-warning-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.htq-team-consistency-warning strong {
    display: block;
    margin: 1px 0 6px;
    font-size: 14px;
}

.htq-team-consistency-warning ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.htq-team-consistency-warning li {
    font-size: 13px;
    line-height: 1.55;
}

.htq-team-consistency-warning li + li { margin-top: 5px; }

.htq-team-teardown-prompt {
    margin: 0 0 14px;
    padding: 21px 22px;
    overflow: hidden;
    border: 1px solid #b9dcc6;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 95% 10%, rgba(47,157,91,.13), transparent 31%),
        linear-gradient(135deg, #f5fbf7, #eef8f2);
    box-shadow: 0 10px 27px rgba(25,105,58,.08);
}

.htq-team-teardown-prompt h2 {
    margin: 7px 0 8px;
    color: #1a5632;
    font-size: 21px;
    letter-spacing: -.025em;
    line-height: 1.25;
}

.htq-team-teardown-prompt > p {
    max-width: 680px;
    margin: 0;
    color: #3f5f4b;
    font-size: 14px;
    line-height: 1.6;
}

.htq-team-teardown-prompt > p + p { margin-top: 7px; }

.htq-team-teardown-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 17px;
}

.htq-team-teardown-arrows {
    display: grid;
    width: 28px;
    flex: 0 0 28px;
    justify-items: end;
    color: #218a4b;
    font-size: 14px;
    font-weight: 800;
    line-height: .7;
}

.htq-team-teardown-arrows i {
    font-style: normal;
    animation: htq-team-teardown-arrow 1.25s ease-in-out infinite;
}

.htq-team-teardown-arrows i:nth-child(2) { animation-delay: .12s; }
.htq-team-teardown-arrows i:nth-child(3) { animation-delay: .24s; }

.htq-team-teardown-join,
.htq-team-teardown-decline {
    min-height: 46px;
    box-sizing: border-box;
    padding: 10px 15px;
    border-radius: var(--radius-md);
    font: inherit;
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
}

.htq-team-teardown-join {
    border: 1px solid #19783f;
    background: linear-gradient(135deg, #249851, #17783e);
    color: #fff;
    box-shadow: 0 0 0 0 rgba(31,143,75,.22);
    animation: htq-team-teardown-pulse 2s ease-in-out infinite;
}

.htq-team-teardown-join:hover,
.htq-team-teardown-join:focus-visible {
    outline: 0;
    background: linear-gradient(135deg, #2aa65c, #1b8245);
    transform: translateY(-1px);
}

.htq-team-teardown-decline {
    border: 1px solid #d8dfe3;
    background: #f5f7f8;
    color: #69747b;
}

.htq-team-teardown-decline:hover,
.htq-team-teardown-decline:focus-visible {
    border-color: #bec8ce;
    outline: 0;
    background: #edf1f3;
    color: #46535a;
}

.htq-team-teardown-join:disabled,
.htq-team-teardown-decline:disabled {
    cursor: wait;
    opacity: .67;
    animation: none;
    transform: none;
}

.htq-team-teardown-status {
    min-height: 0;
    margin: 9px 0 0 !important;
    color: #2d6d45 !important;
    font-size: 12px !important;
}

.htq-team-teardown-status:empty { display: none; }
.htq-team-teardown-status.is-error { color: #a1332d !important; }

@keyframes htq-team-teardown-arrow {
    0%, 100% { opacity: .38; transform: translateX(-4px); }
    50% { opacity: 1; transform: translateX(2px); }
}

@keyframes htq-team-teardown-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(31,143,75,.22); }
    50% { box-shadow: 0 0 0 7px rgba(31,143,75,0); }
}

.htq-team-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.htq-team-overview-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dfe6eb;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 8px 24px rgba(22,40,60,.055);
}

.htq-team-overview-card-wide {
    grid-column: 1 / -1;
}

.htq-team-overview-card > header {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 16px 17px;
    border-bottom: 1px solid #e7edf1;
    background: #f7f9fb;
}

.htq-team-overview-card-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 12px;
    background: #e9f2f9;
    color: var(--color-primary);
}

.htq-team-overview-card-icon svg,
.htq-team-overview-department-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.htq-team-overview-card > header div > span,
.htq-team-overview-card > header div > strong {
    display: block;
}

.htq-team-overview-card > header div > span {
    color: var(--color-primary);
    font-size: 10px;
    font-weight: var(--font-weight-bold);
    letter-spacing: .095em;
}

.htq-team-overview-card > header div > strong {
    margin-top: 2px;
    color: var(--color-text);
    font-size: 15px;
}

.htq-team-overview-departments {
    display: grid;
    grid-auto-rows: max-content;
    align-content: start;
    gap: 0;
    flex: 1;
    padding: 5px 16px;
}

.htq-team-overview-department {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 10px 0;
    border-bottom: 1px solid #edf1f4;
}

.htq-team-overview-department:last-child {
    border-bottom: 0;
}

.htq-team-overview-department-icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 9px;
    background: #f0f5f8;
    color: var(--color-primary);
}

.htq-team-overview-department-icon svg {
    width: 17px;
    height: 17px;
}

.htq-team-overview-department strong,
.htq-team-overview-department small {
    display: block;
}

.htq-team-overview-department strong {
    font-size: 14px;
    line-height: 1.35;
}

.htq-team-overview-department small {
    margin-top: 2px;
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: .045em;
}

.htq-team-overview-tasks {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 7px;
}

.htq-team-overview-task {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 7px;
    border-radius: 8px;
    background: #edf4f8;
    color: #31536f;
}

.htq-team-overview-task b {
    font-size: 10px;
    font-weight: var(--font-weight-semibold);
}

.htq-team-overview-task small {
    margin: 0;
    padding-left: 5px;
    border-left: 1px solid #cbd9e2;
    font-size: 8px;
}

.htq-team-overview-tasks em {
    color: var(--color-text-muted);
    font-size: 10px;
    font-style: normal;
}

.htq-team-overview-card > footer {
    margin-top: auto;
    padding: 10px 16px 14px;
}

.htq-team-overview-card > footer button {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border: 1px solid #d7e1e8;
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--color-primary);
    font: inherit;
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
}

.htq-team-overview-card > footer button:hover,
.htq-team-overview-card > footer button:focus-visible {
    border-color: rgba(18,82,146,.4);
    background: #f5f9fc;
    outline: 0;
}

.htq-team-overview-card > footer button small {
    color: var(--color-text-muted);
    font-size: 10px;
}

/* Aufgabenbezogene Dokumentationen */

.htq-team-public-documentation-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 15px 16px;
}

.htq-team-overview-action {
    display: flex;
    min-height: 48px;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #dce5eb;
    border-radius: var(--radius-md);
    background: #fbfcfd;
    color: var(--color-text);
    font: inherit;
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.htq-team-overview-action:hover,
.htq-team-overview-action:focus-visible {
    border-color: #bed4e4;
    background: #edf5fa;
    color: var(--color-primary);
    outline: 0;
}

.htq-team-public-documentation-list svg {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    transition: transform 160ms ease;
}

.htq-team-documentation-page {
    animation: htq-team-step-enter 360ms cubic-bezier(.2,.8,.2,1) both;
}

.htq-team-documentation-page[hidden] { display: none; }

.htq-team-documentation-back.is-top { margin-bottom: 28px; }
.htq-team-documentation-back.is-bottom { margin: 34px 0 0; }

.htq-team-documentation-page-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e3eaf0;
}

.htq-team-documentation-page-header h1 {
    max-width: 830px;
    margin: 7px 0 0;
    color: var(--color-text);
    font-size: clamp(27px, 4vw, 38px);
    line-height: 1.14;
    letter-spacing: -.035em;
}

.htq-team-documentation-content {
    max-width: 880px;
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.htq-team-documentation-content > :first-child { margin-top: 0; }
.htq-team-documentation-content > :last-child { margin-bottom: 0; }
.htq-team-documentation-content p { margin: 0 0 16px; }
.htq-team-documentation-content h2 { margin: 30px 0 12px; color: var(--color-primary); font-size: 23px; line-height: 1.25; letter-spacing: -.025em; }
.htq-team-documentation-content h3 { margin: 25px 0 10px; color: var(--color-text); font-size: 17px; line-height: 1.35; letter-spacing: -.015em; }
.htq-team-documentation-content h4 { margin: 21px 0 9px; color: var(--color-text); font-size: 14px; line-height: 1.4; }
.htq-team-documentation-content ul { margin: 0 0 18px; padding-left: 24px; list-style: disc outside; }
.htq-team-documentation-content ol { margin: 0 0 18px; padding-left: 24px; list-style: decimal outside; }
.htq-team-documentation-content li { padding-left: 3px; }
.htq-team-documentation-content li + li { margin-top: 6px; }
.htq-team-documentation-content li::marker { color: var(--color-primary); }
.htq-team-documentation-content a { color: var(--color-primary); font-weight: var(--font-weight-semibold); text-underline-offset: 2px; }
.htq-team-documentation-content blockquote { margin: 21px 0; padding: 13px 16px; border-left: 4px solid #b8d3e5; background: #f3f8fb; color: var(--color-text-secondary); }
.htq-team-documentation-content hr { margin: 27px 0; border: 0; border-top: 1px solid #dce5eb; }

.htq-team-documentation-content table {
    width: 100%;
    margin: 22px 0;
    border: 1px solid #d3dfe7;
    border-spacing: 0;
    border-radius: var(--radius-md);
    background: #fff;
    font-size: 12px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.htq-team-documentation-content th,
.htq-team-documentation-content td {
    padding: 10px 12px;
    border-right: 1px solid #dce5eb;
    border-bottom: 1px solid #dce5eb;
    text-align: left;
    vertical-align: top;
    font: inherit;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.htq-team-documentation-content th:last-child,
.htq-team-documentation-content td:last-child { border-right: 0; }
.htq-team-documentation-content tbody tr:last-child td { border-bottom: 0; }
.htq-team-documentation-content thead th { background: #eaf3f9; color: var(--color-primary); font-weight: var(--font-weight-bold); }
.htq-team-documentation-content tbody tr:nth-child(even) td { background: #f8fafb; }

@media (max-width: 620px) {
    .htq-team-public-documentation-list { grid-template-columns: 1fr; padding: 13px; }
    .htq-team-documentation-back.is-top { margin-bottom: 23px; }
    .htq-team-documentation-page-header { margin-bottom: 22px; padding-bottom: 17px; }
    .htq-team-documentation-content { font-size: 13px; line-height: 1.7; }
    .htq-team-documentation-content h2 { font-size: 20px; }
    .htq-team-documentation-content h3 { font-size: 16px; }
    .htq-team-documentation-content table { display: block; overflow-x: auto; white-space: nowrap; }
}

.htq-team-overview-placeholder {
    display: grid;
    min-height: 145px;
    flex: 1;
    place-content: center;
    justify-items: center;
    padding: 20px;
    text-align: center;
}

.htq-team-overview-placeholder span {
    padding: 5px 8px;
    border-radius: 999px;
    background: #fff3de;
    color: #b76700;
    font-size: 9px;
    font-weight: var(--font-weight-bold);
    letter-spacing: .09em;
}

.htq-team-overview-placeholder p,
.htq-team-overview-empty {
    margin: 9px 0 0;
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.55;
}

.htq-team-overview-date-list {
    display: grid;
    flex: 1;
    padding: 5px 16px;
}

.htq-team-overview-date {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    min-height: 62px;
    padding: 8px 0;
    border-bottom: 1px solid #edf1f4;
}

.htq-team-overview-date:last-child { border-bottom: 0; }

.htq-team-overview-date.is-event {
    margin: 4px -7px;
    padding: 9px 7px;
    border: 1px solid #f1c58f;
    border-radius: 13px;
    background: linear-gradient(135deg, #fff8ef, #fff3e3);
}

.htq-team-overview-date.is-event .htq-team-overview-date-day {
    border-color: #edaa62;
    background: #ee8424;
    color: #fff;
}

.htq-team-overview-date.is-event .htq-team-overview-date-day small,
.htq-team-overview-date.is-event .htq-team-overview-date-time small {
    color: rgba(255,255,255,.82);
}

.htq-team-overview-date.is-event .htq-team-overview-date-time {
    padding: 5px 8px;
    border-radius: 9px;
    background: #ee8424;
    color: #fff;
}

.htq-team-overview-date.is-event .htq-team-overview-date-main > small span {
    background: #f4d0a8;
    color: #9d5415;
}

.htq-team-overview-date-day {
    display: grid;
    width: 46px;
    height: 46px;
    place-content: center;
    border: 1px solid #d6e4ed;
    border-radius: 12px;
    background: #f2f7fa;
    color: var(--color-primary);
    text-align: center;
}

.htq-team-overview-date-day strong,
.htq-team-overview-date-day small,
.htq-team-overview-date-main > strong,
.htq-team-overview-date-main > small,
.htq-team-overview-date-time strong,
.htq-team-overview-date-time small {
    display: block;
}

.htq-team-overview-date-day strong {
    font-size: 12px;
    letter-spacing: .07em;
}

.htq-team-overview-date-day small {
    margin-top: 1px;
    color: var(--color-text-muted);
    font-size: 9px;
    font-weight: var(--font-weight-semibold);
}

.htq-team-overview-date-main { min-width: 0; }

.htq-team-overview-date-main > strong {
    color: var(--color-text);
    font-size: 13px;
    line-height: 1.35;
}

.htq-team-overview-date-main > small {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
}

.htq-team-overview-date-main > small span {
    padding: 2px 5px;
    border-radius: 6px;
    background: #f0f3f5;
    color: var(--color-text-muted);
    font-size: 8px;
    font-weight: var(--font-weight-semibold);
}

.htq-team-overview-date-main > small span.is-location {
    background: #fff4e8;
    color: #a65b16;
}

.htq-team-overview-date-time {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 3px;
    color: var(--color-text);
    white-space: nowrap;
}

.htq-team-overview-date-time strong { font-size: 14px; }

.htq-team-overview-date-time small {
    color: var(--color-text-muted);
    font-size: 9px;
}

.htq-team-overview-date-empty {
    display: grid;
    min-height: 145px;
    flex: 1;
    place-content: center;
    justify-items: center;
    padding: 20px;
    text-align: center;
}

.htq-team-overview-date-empty > span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #eaf6ec;
    color: #237e3e;
    font-size: 14px;
    font-weight: var(--font-weight-bold);
}

.htq-team-overview-date-empty p {
    max-width: 280px;
    margin: 9px 0 0;
    color: var(--color-text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.htq-team-overview-availability {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 15px 16px 5px;
}

.htq-team-overview-availability-row {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    padding: 9px 10px;
    border: 1px solid #e2e8ed;
    border-radius: var(--radius-md);
    background: #fbfcfd;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.htq-team-overview-availability-row:hover,
.htq-team-overview-availability-row:focus-visible {
    border-color: #a9c9df;
    background: #f1f7fb;
    box-shadow: 0 5px 13px rgba(29,83,122,.08);
    outline: 0;
    transform: translateY(-1px);
}

.htq-team-overview-availability-row > span strong,
.htq-team-overview-availability-row > span small {
    display: block;
}

.htq-team-overview-availability-row > span strong {
    font-size: 12px;
}

.htq-team-overview-availability-row > span small {
    color: var(--color-text-muted);
    font-size: 10px;
}

.htq-team-overview-availability-row b {
    color: #23557f;
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    overflow-wrap: anywhere;
    white-space: normal;
}

.htq-team-overview-availability-row b.is-none {
    color: var(--color-text-muted);
}

.htq-team-overview-back {
    margin: 24px 0 0;
}

.htq-team-complete {
    position: relative;
    display: grid;
    min-height: 330px;
    overflow: hidden;
    place-content: center;
    justify-items: center;
    opacity: 0;
    text-align: center;
    transform: translateY(10px) scale(.985);
    transition: opacity 480ms ease, transform 600ms cubic-bezier(.2,.8,.2,1);
}

.htq-team-complete.is-visible {
    opacity: 1;
    transform: none;
}

.htq-team-complete > :not(.htq-team-celebration-words) {
    position: relative;
    z-index: 1;
}

.htq-team-complete-icon {
    display: grid;
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #e9f7ef, #d9f0e3);
    color: #168044;
    box-shadow: 0 0 0 9px rgba(30,143,79,.07);
}

.htq-team-complete-icon svg {
    width: 37px;
    height: 37px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.htq-team-complete-kicker {
    padding: 7px 11px;
    border-radius: 999px;
    background: #e9f7ef;
    color: #168044;
    font-size: 10px;
    font-weight: var(--font-weight-bold);
    letter-spacing: .12em;
    animation: htq-team-wusch-pulse 1.8s ease-in-out infinite;
}

.htq-team-complete h1 {
    margin: 10px 0 0;
    font-size: clamp(30px, 7vw, 42px);
    letter-spacing: -.04em;
}

.htq-team-complete-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.htq-team-secondary-button,
.htq-team-complete-back {
    display: inline-flex;
    min-height: 43px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 10px 15px;
    border: 1px solid #d7e1e8;
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--color-primary);
    font: inherit;
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.htq-team-secondary-button:hover,
.htq-team-secondary-button:focus-visible,
.htq-team-complete-back:hover,
.htq-team-complete-back:focus-visible {
    border-color: rgba(18,82,146,.35);
    background: #f5f9fc;
    outline: 0;
    transform: translateY(-1px);
}

.htq-team-secondary-button svg,
.htq-team-complete-back svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.htq-team-celebration-words {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.htq-team-celebration-words span {
    position: absolute;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(232,243,252,.9);
    color: var(--color-primary);
    font-size: 9px;
    font-weight: var(--font-weight-bold);
    letter-spacing: .055em;
    opacity: 0;
    animation: htq-team-word-pop 8s ease-in-out infinite;
}

.htq-team-celebration-words span:nth-child(1) { top: 17%; left: 8%; }
.htq-team-celebration-words span:nth-child(2) { top: 25%; right: 8%; animation-delay: 2s; }
.htq-team-celebration-words span:nth-child(3) { bottom: 17%; left: 7%; animation-delay: 4s; }
.htq-team-celebration-words span:nth-child(4) { right: 6%; bottom: 12%; animation-delay: 6s; }

@keyframes htq-team-wusch-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(30,143,79,.08); transform: scale(1); }
    50% { box-shadow: 0 0 0 8px rgba(30,143,79,0); transform: scale(1.025); }
}

@keyframes htq-team-word-pop {
    0%, 21%, 100% { opacity: 0; transform: translateY(7px) scale(.82) rotate(-2deg); }
    4%, 15% { opacity: .9; transform: translateY(0) scale(1) rotate(0); }
}

@keyframes htq-team-step-enter {
    from { opacity: 0; transform: translateY(9px); }
    to { opacity: 1; transform: none; }
}

@keyframes htq-team-days-open {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: none; }
}

@keyframes htq-team-spin { to { transform: rotate(360deg); } }

@media (max-width: 620px) {
    .htq-team-public-shell {
        width: min(100% - 18px, 760px);
        padding-top: 10px;
    }

    .htq-team-public-card {
        border-radius: 15px;
    }

    .htq-team-public-card .team-public-header {
        border-radius: 15px 15px 0 0;
    }

    .htq-team-public-content {
        min-height: 300px;
        padding: 24px 18px 26px;
    }

    .htq-team-wizard.is-frozen .htq-team-wizard-header {
        gap: 12px;
        padding: 16px 15px 14px;
    }

    .htq-team-identification h1 {
        margin-bottom: 40px;
        font-size: 27px;
    }

    .htq-team-overview-header h1 {
        margin: 7px 0 5px;
    }

    .htq-team-mobile-break {
        display: initial;
    }

    .htq-team-search-label {
        display: none;
    }

    .htq-team-search-control input {
        height: 60px;
        padding-right: 14px;
        font-size: var(--font-size-md);
    }

    .htq-team-search-results button em { display: none; }

    .htq-team-search-results button strong,
    .htq-team-search-results button small,
    .htq-team-overview-availability-row b {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }

    .htq-team-search-results button small {
        line-height: 1.4;
    }

    .htq-team-overview-availability-row b {
        max-width: 62%;
        text-align: right;
        line-height: 1.3;
    }

    .htq-team-request-grid { grid-template-columns: 1fr; }

    .htq-team-wizard-header {
        align-items: center;
    }

    .htq-team-wizard-hello { font-size: 19px; }
    .htq-team-wizard-header .htq-team-event-kicker { max-width: 210px; }
    .htq-team-progress { margin: 17px 0 26px; }

    .htq-team-availability-row {
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 10px;
        min-height: 0;
        padding: 10px;
    }

    .htq-team-day-badge {
        grid-row: 1 / span 2;
        width: 47px;
        height: 54px;
    }

    .htq-team-day-name {
        align-self: end;
        font-size: var(--font-size-sm);
    }

    .htq-team-select-wrap {
        grid-column: 2;
    }

    .htq-team-select-wrap select {
        min-height: 42px;
        font-size: 13px;
    }

    .htq-team-department-main {
        grid-template-columns: 41px minmax(0, 1fr) 28px;
        gap: 10px;
        min-height: 64px;
        padding: 9px 11px;
    }

    .htq-team-department-icon {
        width: 40px;
        height: 40px;
    }

    .htq-team-department-label {
        font-size: 14px;
    }

    .htq-team-department-days {
        grid-template-columns: 1fr 1fr;
        padding: 0 10px 10px;
    }

    .htq-team-subtasks {
        margin: 0 10px 10px;
        padding: 10px;
    }

    .htq-team-subtask-row {
        align-items: flex-start;
    }

    .htq-team-subtask-events {
        align-self: center;
    }

    .htq-team-event-toggle {
        grid-template-columns: 21px minmax(0, 1fr);
        gap: 7px;
        min-height: 52px;
        padding: 7px 8px;
    }

    .htq-team-event-check {
        width: 21px;
        height: 21px;
    }

    .htq-team-event-toggle small { font-size: 9px; }

    .htq-team-primary-button {
        min-height: 56px;
        margin-top: 16px;
    }

    .htq-team-complete {
        min-height: 300px;
    }

    .htq-team-overview-grid,
    .htq-team-overview-availability {
        grid-template-columns: 1fr;
    }

    .htq-team-save-celebration {
        min-height: 68px;
        margin-bottom: 21px;
        padding: 12px 14px;
    }

    .htq-team-overview-header {
        margin-bottom: 21px;
    }

    .htq-team-account-controls {
        margin-top: 1px;
    }

    .htq-team-logout {
        padding: 7px 8px;
    }

    .htq-team-consistency-warning {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 10px;
        padding: 13px;
    }

    .htq-team-consistency-warning-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .htq-team-teardown-prompt { padding: 18px 16px; }

    .htq-team-teardown-actions {
        display: grid;
        grid-template-columns: 25px minmax(0, 1fr);
        gap: 9px 7px;
    }

    .htq-team-teardown-arrows { width: 25px; }
    .htq-team-teardown-join { width: 100%; }
    .htq-team-teardown-decline { grid-column: 1 / -1; width: 100%; }

    .htq-team-overview-date-list { padding: 5px 13px; }

    .htq-team-overview-date {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 10px;
    }

    .htq-team-overview-date-time {
        grid-column: 2;
        justify-content: flex-start;
        margin-top: -9px;
    }

    .htq-team-celebration-words span:nth-child(1) { top: 8%; left: 2%; }
    .htq-team-celebration-words span:nth-child(2) { top: 16%; right: 1%; }
    .htq-team-celebration-words span:nth-child(3) { bottom: 9%; left: 1%; }
    .htq-team-celebration-words span:nth-child(4) { right: 1%; bottom: 2%; }

    .htq-team-save-celebration .htq-team-celebration-words {
        z-index: 6;
    }
}

@media (max-width: 390px) {
    .htq-team-wizard-step { padding: 5px 8px; font-size: 9px; }
    .htq-team-wizard-header .htq-team-event-kicker { max-width: 175px; }
    .htq-team-event-toggle strong { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .htq-team-wizard,
    .htq-team-department-days,
    .htq-team-complete,
    .htq-team-overview,
    .htq-team-progress span,
    .htq-team-button-spinner,
    .htq-team-complete-kicker,
    .htq-team-celebration-words span {
        animation: none;
        transition: none;
    }

    .htq-team-teardown-arrows i,
    .htq-team-teardown-join {
        animation: none;
    }

    .htq-team-celebration-words {
        display: none;
    }
}

/* Kontoschutz der öffentlichen Teamseite */
body.htq-team-modal-open { overflow: hidden; }

.htq-team-access-backdrop { z-index: 1300; }

.htq-team-access-modal {
    width: min(500px, 100%);
    border-top: 4px solid var(--color-primary);
}

.htq-team-access-icon,
.htq-team-fake-result-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    place-items: center;
    border-radius: 15px;
    background: #edf5fd;
    color: var(--color-primary);
}

.htq-team-access-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.htq-team-access-icon.is-warning {
    background: #fff4dc;
    color: #b46800;
}

.htq-team-access-icon.is-safe {
    background: #e9f7ee;
    color: #278557;
}

.htq-team-protection-confirm {
    background: #b46800;
    border-color: #b46800;
}

.htq-team-fake-result-icon {
    background: #fff5dc;
    color: #a96800;
    font-size: 24px;
    font-weight: 800;
}

.htq-team-forgot-link {
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-primary);
    font: inherit;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
}

.htq-team-forgot-link:hover { text-decoration: underline; }

.htq-team-password-error {
    margin: 14px 0 0;
    padding: 10px 12px;
    border: 1px solid #efc2bf;
    border-radius: var(--radius-sm);
    background: #fff2f1;
    color: #9f2b24;
    font-size: var(--font-size-sm);
    line-height: 1.45;
}

.htq-team-password-error[hidden] { display: none !important; }

.htq-team-therapy-questions {
    display: grid;
    max-height: min(48vh, 480px);
    gap: 13px;
    overflow-y: auto;
    padding-right: 5px;
}

.htq-team-therapy-questions label {
    display: grid;
    gap: 6px;
    color: var(--color-text);
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    line-height: 1.4;
}

.htq-team-therapy-questions textarea {
    width: 100%;
    min-height: 58px;
    box-sizing: border-box;
    resize: vertical;
    padding: 9px 11px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-background);
    color: var(--color-text);
    font: inherit;
}

.htq-team-therapy-questions textarea:focus {
    border-color: var(--color-primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(18,82,146,.10);
}

.htq-team-therapy-privacy {
    display: block;
    margin-top: 12px;
    color: var(--color-text-secondary);
    font-size: 11px;
}

@media (max-width: 620px) {
    .htq-team-access-backdrop {
        align-items: end;
        padding: 12px;
    }

    .htq-team-access-modal {
        max-height: calc(100dvh - 24px);
        overflow-y: auto;
        border-radius: 18px;
    }
}
