/* ---------------------------------------------------------------------------
   Grundgerüst
   --------------------------------------------------------------------------- */
body {
    min-height: 100vh;
    background:
        radial-gradient(1200px 600px at 10% -10%, #dbeafe 0%, transparent 60%),
        radial-gradient(900px 500px at 110% 110%, #e0e7ff 0%, transparent 55%),
        #f5f7fb;
}

.shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
}

.shell-inner {
    width: 100%;
    max-width: 440px;
}

.shell-inner:has(.panel-wide) {
    max-width: 600px;
}

/* Kein Markieren von Text beim Dreifachklick, der die Anmeldung einblendet */
body {
    -webkit-user-select: none;
    user-select: none;
}

input,
textarea,
pre,
.alert {
    -webkit-user-select: text;
    user-select: text;
}

/* Eingabe als Punkte anzeigen, ohne type="password" (verhindert Passwortvorschläge) */
.pw-mask {
    -webkit-text-security: disc;
    text-security: disc;
}

.reveal {
    animation: reveal .25s ease-out;
}

@keyframes reveal {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to   { opacity: 1; transform: none; }
}

.icon {
    width: 1.1em;
    height: 1.1em;
    vertical-align: -0.18em;
    flex-shrink: 0;
}

/* ---------------------------------------------------------------------------
   Karten
   --------------------------------------------------------------------------- */
.panel {
    border: 0;
    border-radius: 1.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 40px rgba(15, 23, 42, .10);
    overflow: hidden;
}

.panel-head {
    padding: .85rem 1.25rem;
    border-bottom: 1px solid var(--bs-border-color-translucent);
    background: rgba(248, 250, 252, .8);
}

.hero-icon {
    width: 4rem;
    height: 4rem;
    margin-inline: auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--bs-primary);
    background: var(--bs-primary-bg-subtle);
}

.hero-icon .icon {
    width: 1.9rem;
    height: 1.9rem;
}

.hero-icon-muted {
    color: var(--bs-secondary-color);
    background: var(--bs-secondary-bg);
}

.hours {
    padding: .5rem 1rem;
    border-radius: 999px;
    background: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
    font-weight: 500;
}

.form-floating > .form-control,
.btn-lg {
    border-radius: .75rem;
}

/* ---------------------------------------------------------------------------
   Sitzungs-Timer
   --------------------------------------------------------------------------- */
.timer {
    font-size: .85rem;
    font-weight: 500;
    padding: .45rem .8rem;
    color: var(--bs-primary-text-emphasis);
    background: var(--bs-primary-bg-subtle);
    font-variant-numeric: tabular-nums;
}

.timer.timer-warn {
    color: var(--bs-warning-text-emphasis);
    background: var(--bs-warning-bg-subtle);
}

/* ---------------------------------------------------------------------------
   Schritte 1-2-3
   --------------------------------------------------------------------------- */
.step {
    position: relative;
    display: flex;
    gap: 1rem;
    padding-bottom: 1.75rem;
}

/* Verbindungslinie zwischen den Schrittnummern */
.step:not(.step-last)::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 2.25rem;
    bottom: .25rem;
    width: 2px;
    transform: translateX(-1px);
    background: var(--bs-border-color);
}

.step-last {
    padding-bottom: 0;
}

.step-num {
    flex: 0 0 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-weight: 600;
    font-size: .9rem;
    color: var(--bs-primary);
    background: var(--bs-primary-bg-subtle);
}

.step-body {
    flex: 1;
    min-width: 0;
}

.step-title {
    font-size: 1rem;
    font-weight: 600;
    margin: .3rem 0 .6rem;
}

.step-hint {
    font-size: .85rem;
    color: var(--bs-secondary-color);
    margin: .4rem 0 0;
}

.pw-display {
    font-size: 1.05rem;
    letter-spacing: .04em;
}

/* ---------------------------------------------------------------------------
   Upload-Bereich
   --------------------------------------------------------------------------- */
.drop-zone {
    text-align: center;
    padding: 1.75rem 1rem;
    border: 2px dashed var(--bs-border-color);
    border-radius: 1rem;
    background: var(--bs-tertiary-bg);
    transition: background-color .15s, border-color .15s, transform .15s;
}

.drop-zone.drop-active {
    border-color: var(--bs-primary);
    background: var(--bs-primary-bg-subtle);
    transform: scale(1.01);
}

.drop-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto .75rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--bs-primary);
    background: var(--bs-body-bg);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
}

.drop-icon .icon {
    width: 1.5rem;
    height: 1.5rem;
}

.progress {
    height: 1.4rem;
    border-radius: 999px;
}

/* ---------------------------------------------------------------------------
   Zwischenablage
   --------------------------------------------------------------------------- */
.clip-icon {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--bs-primary);
    background: var(--bs-primary-bg-subtle);
}

.clip-input {
    border-radius: .75rem;
    font-size: .9rem;
    resize: vertical;
}

.clip-history > summary {
    cursor: pointer;
    font-weight: 600;
    font-size: .95rem;
    list-style: none;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem .9rem;
    border-radius: .75rem;
    background: var(--bs-tertiary-bg);
}

.clip-scope {
    font-weight: 400;
    font-size: .8rem;
    color: var(--bs-secondary-color);
}

.clip-history > summary::-webkit-details-marker {
    display: none;
}

.clip-history > summary::after {
    content: "";
    margin-left: auto;
    width: .5rem;
    height: .5rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.clip-history[open] > summary::after {
    transform: rotate(-135deg);
}

.clip-item + .clip-item {
    margin-top: .75rem;
}

.clip-item {
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: .75rem;
    overflow: hidden;
}

.clip-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .4rem .5rem .4rem .9rem;
    font-size: .8rem;
    color: var(--bs-secondary-color);
    background: var(--bs-tertiary-bg);
}

.clip-actions {
    display: flex;
    gap: .35rem;
    flex-shrink: 0;
}

.clip-counter {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.clip-counter.clip-counter-full {
    color: var(--bs-danger) !important;
}

.clip-text {
    margin: 0;
    padding: .7rem .9rem;
    max-height: 12rem;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: .85rem;
}

.clip-empty {
    font-size: .9rem;
    color: var(--bs-secondary-color);
}

@media (max-width: 575.98px) {
    .step {
        gap: .75rem;
    }

    .pw-display {
        font-size: .9rem;
        letter-spacing: 0;
    }
}
