/* Support im Portal-Design */
.sp-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; }
.sp-title { margin: 0; font-size: clamp(30px, 4.4vw, 56px); letter-spacing: -.035em; line-height: 1.02; overflow-wrap: anywhere; }
.sp-title-sm { font-size: clamp(24px, 3vw, 36px); }
.sp-lead { margin: 0; max-width: 62ch; font-size: 16px; }
.sp-status { font-size: 13px; padding: 6px 14px; }

.sp-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.sp-channel { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 16px; align-items: start; }
.sp-channel > :nth-child(n+3) { grid-column: 1 / -1; }
.sp-channel.is-open { box-shadow: inset 0 0 0 2px var(--color-accent); }
.sp-phone { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.02em; color: var(--color-text); text-decoration: none; overflow-wrap: anywhere; }
.sp-phone:hover { color: var(--color-accent); }
.sp-mail { font-size: clamp(18px, 2vw, 24px); }
.sp-live { justify-self: start; font-size: 12px; }
.sp-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-accent) 50%, transparent); animation: sp-pulse 2s infinite; vertical-align: middle; }
.sp-live .sp-dot { background: currentColor; }
@keyframes sp-pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .sp-dot { animation: none; } }
.sp-ab { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, #ffffff 55%, transparent); }

.sp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.sp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sp-file-input { width: auto; max-width: 100%; flex: 1 1 220px; }

/* Verlauf */
.sp-thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sp-msg { padding: 16px 20px; border-radius: 22px; background: color-mix(in srgb, #ffffff 70%, transparent); max-width: 88%; display: flex; flex-direction: column; gap: 8px; }
.sp-msg.is-kunde { align-self: flex-start; }
.sp-msg.is-team { align-self: flex-end; background: var(--color-accent-100); }
.sp-msg.is-internal { background: #fff6d9; box-shadow: inset 0 0 0 1px #f0d98a; }
.sp-msg-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.sp-msg-head time { margin-left: auto; }
.sp-body { font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.sp-file { align-self: flex-start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.sp-sys { align-self: center; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--color-neutral-700); text-align: center; }
@media (max-width: 719.98px) { .sp-msg { max-width: 100%; padding: 14px 16px; } }

/* Team */
.sp-tabs { display: flex; }
.sp-filter .input { width: auto; flex: 1 1 180px; }
.sp-filter input[type=search] { flex: 2 1 260px; }
.sp-detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .sp-detail { grid-template-columns: minmax(0, 1fr); } }
.sp-side .field label { font-size: 13px; }
.sp-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.sp-next { width: auto; }
.sp-mode { display: flex; gap: 8px; flex-wrap: wrap; }
.sp-mode label { cursor: pointer; }
.sp-mode input { position: absolute; opacity: 0; pointer-events: none; }
.sp-mode span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; background: color-mix(in srgb, #ffffff 60%, transparent); }
.sp-mode input:checked + span { background: var(--color-text); color: var(--color-bg); }
.sp-mode input:focus-visible + span { outline: 2px solid var(--color-accent); outline-offset: 2px; }
form.is-internal textarea { background: #fff6d9; }
.sp-days { gap: 6px; }
.sp-day input { position: absolute; opacity: 0; }
.sp-day span { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 40px; border-radius: 12px; font-weight: 700; font-size: 13px; cursor: pointer; background: color-mix(in srgb, #ffffff 60%, transparent); }
.sp-day input:checked + span { background: var(--color-accent); color: #fff; }
.sp-day input:focus-visible + span { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.sp-time { width: auto; }
