/**
 * Hörtrainer CPT – Premium Frontend Styles
 * Design-System: EnglischKomet Blau, clean, modern, membership-ready
 */

.htcpt-app,
.htcpt-archive,
.htcpt-single {
    box-sizing: border-box;
}

.htcpt-app *,
.htcpt-archive *,
.htcpt-single * {
    box-sizing: border-box;
}

.htcpt-app,
.htcpt-archive,
.htcpt-single {
    --htcpt-primary: #2B6CB0;
    --htcpt-primary-dark: #1E4E82;
    --htcpt-primary-light: #EBF4FF;
    --htcpt-primary-glow: rgba(43, 108, 176, 0.18);
    --htcpt-secondary: #4299E1;
    --htcpt-success: #38A169;
    --htcpt-success-bg: #48BB78;
    --htcpt-success-light: #F0FFF4;
    --htcpt-error: #E53E3E;
    --htcpt-error-bg: #F56565;
    --htcpt-error-light: #FFF5F5;
    --htcpt-warning: #ECC94B;
    --htcpt-warning-dark: #D69E2E;
    --htcpt-bg: #F7FAFC;
    --htcpt-surface: #FFFFFF;
    --htcpt-text: #2D3748;
    --htcpt-text-muted: #718096;
    --htcpt-border: #E2E8F0;
    --htcpt-radius: 16px;
    --htcpt-radius-sm: 10px;
    --htcpt-shadow-sm: 0 1px 3px rgba(45, 55, 72, 0.08);
    --htcpt-shadow-md: 0 4px 16px rgba(45, 55, 72, 0.1);
    --htcpt-shadow-lg: 0 12px 32px rgba(45, 55, 72, 0.14);
    --htcpt-font: inherit;
    --htcpt-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.htcpt-app {
    font-family: var(--htcpt-font);
    color: var(--htcpt-text);
    max-width: 780px;
    width: 100%;
    margin: 0 auto;
}

/* ============================================================
   APP SHELL
   ============================================================ */
.htcpt-app {
    background: var(--htcpt-surface);
    border-radius: var(--htcpt-radius);
    box-shadow: var(--htcpt-shadow-lg);
    border: 1px solid var(--htcpt-border);
    overflow: hidden;
    position: relative;
}

.htcpt-app::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--htcpt-primary), var(--htcpt-secondary), #90CDF4);
}

.htcpt-app-inner {
    padding: 24px 28px;
}

/* ============================================================
   SKELETON LOADING
   ============================================================ */
.htcpt-skeleton {
    padding: 32px;
}

.htcpt-skeleton-audio {
    height: 84px;
    border-radius: var(--htcpt-radius-sm);
    background: linear-gradient(90deg, #EDF2F7 25%, #F7FAFC 50%, #EDF2F7 75%);
    background-size: 200% 100%;
    animation: htcpt-shimmer 1.4s infinite;
    margin-bottom: 24px;
}

.htcpt-skeleton-line {
    height: 18px;
    border-radius: 8px;
    background: linear-gradient(90deg, #EDF2F7 25%, #F7FAFC 50%, #EDF2F7 75%);
    background-size: 200% 100%;
    animation: htcpt-shimmer 1.4s infinite;
    margin-bottom: 12px;
}

.htcpt-skeleton-line.w60 { width: 60%; }
.htcpt-skeleton-line.w80 { width: 80%; }

.htcpt-skeleton-answers {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.htcpt-skeleton-answer {
    height: 60px;
    border-radius: var(--htcpt-radius-sm);
    background: linear-gradient(90deg, #EDF2F7 25%, #F7FAFC 50%, #EDF2F7 75%);
    background-size: 200% 100%;
    animation: htcpt-shimmer 1.4s infinite;
}

.htcpt-skeleton-answer:nth-child(2) { animation-delay: 0.1s; }
.htcpt-skeleton-answer:nth-child(3) { animation-delay: 0.2s; }
.htcpt-skeleton-answer:nth-child(4) { animation-delay: 0.3s; }

@keyframes htcpt-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.htcpt-app:not(.htcpt-loaded) .htcpt-skeleton { display: block; }
.htcpt-app.htcpt-loaded .htcpt-skeleton { display: none; }

/* Fortschritts-Badges auf Archiv-Karten */
.htcpt-card-done,
.htcpt-card-progress,
.htcpt-card-perfect {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.htcpt-card-progress {
    background: #EBF8FF;
    color: #2B6CB0;
    border: 1px solid #BEE3F8;
}

/* Bestwert-Balken auf Karten (verstehbar: Label + farbige Füllung) */
.htcpt-card-best {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.htcpt-card-best-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--htcpt-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.htcpt-card-best.is-perfect .htcpt-card-best-label {
    color: #92600A;
}

.htcpt-card-best-track {
    flex: 1;
    height: 6px;
    min-width: 40px;
    background: var(--htcpt-bg);
    border-radius: 99px;
    overflow: hidden;
}

.htcpt-card-best-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--htcpt-primary), var(--htcpt-secondary));
    border-radius: 99px;
    transition: width 0.6s var(--htcpt-ease);
}

.htcpt-card-best.is-perfect .htcpt-card-best-fill {
    background: linear-gradient(90deg, #ECC94B, #D69E2E);
}

/* (Bestwert-Anzeige jetzt als .htcpt-best-chip außerhalb des Rings) */

/* ============================================================
   HEADER / PROGRESS
   ============================================================ */
.htcpt-app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 28px;
    background: var(--htcpt-bg);
    border-bottom: 1px solid var(--htcpt-border);
}

.htcpt-progress-wrap {
    flex: 1;
    max-width: 420px;
}

.htcpt-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: var(--htcpt-text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.htcpt-progress-label strong {
    color: var(--htcpt-primary);
    font-variant-numeric: tabular-nums;
}

.htcpt-progress-track {
    height: 8px;
    background: #E2E8F0;
    border-radius: 99px;
    overflow: hidden;
    position: relative;
}

.htcpt-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--htcpt-primary), var(--htcpt-secondary));
    border-radius: 99px;
    transition: width 0.6s var(--htcpt-ease);
    position: relative;
}

.htcpt-progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: htcpt-progress-shine 2.4s infinite;
}

@keyframes htcpt-progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.htcpt-score-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--htcpt-primary-light);
    color: var(--htcpt-primary-dark);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 99px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.htcpt-score-chip svg {
    width: 14px;
    height: 14px;
}

/* Header-Aktionen: Score + Share nebeneinander (auch mobil) */
.htcpt-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Header-Share-Button (dezenter Icon-Button) */
.htcpt-share-icon {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    padding: 0;
    border: 1px solid #BEE3F8;
    border-radius: 10px;
    background: var(--htcpt-primary-light);
    color: var(--htcpt-primary);
    cursor: pointer;
    transition: all 0.2s var(--htcpt-ease);
}

.htcpt-share-icon svg {
    width: 17px;
    height: 17px;
    display: block;
}

.htcpt-share-icon:hover {
    background: var(--htcpt-primary);
    border-color: var(--htcpt-primary);
    color: #fff;
    transform: translateY(-1px);
}

.htcpt-share-icon.copied {
    border-color: var(--htcpt-success);
    color: var(--htcpt-success);
}

/* ============================================================
   AUDIO PLAYER
   ============================================================ */
.htcpt-player {
    position: relative;
    margin: 12px 24px 0;
    background: linear-gradient(135deg, #F0F7FF 0%, #EBF4FF 100%);
    border: 1px solid #BEE3F8;
    border-radius: var(--htcpt-radius);
    padding: 10px 16px;
}

/* Audio-Fehler: Waveform + Speed dimmen */
.htcpt-player.is-error .htcpt-player-main,
.htcpt-player.is-error .htcpt-speed {
    opacity: 0.4;
    pointer-events: none;
}

.htcpt-player-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.htcpt-play-btn {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--htcpt-primary), var(--htcpt-secondary));
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px var(--htcpt-primary-glow);
    transition: transform 0.2s var(--htcpt-ease), box-shadow 0.2s var(--htcpt-ease);
    position: relative;
}

.htcpt-play-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 22px rgba(43, 108, 176, 0.35);
}

.htcpt-play-btn:active {
    transform: scale(0.96);
}

.htcpt-play-btn.playing {
    background: linear-gradient(135deg, var(--htcpt-success), var(--htcpt-success-bg));
    box-shadow: 0 6px 16px rgba(72, 187, 120, 0.35);
}

.htcpt-play-btn.is-error {
    background: linear-gradient(135deg, var(--htcpt-error), var(--htcpt-error-bg));
    box-shadow: 0 6px 16px rgba(229, 62, 62, 0.3);
    cursor: not-allowed;
}

.htcpt-play-btn.is-error:hover {
    transform: none;
    box-shadow: 0 6px 16px rgba(229, 62, 62, 0.3);
}

.htcpt-play-btn svg,
.htcpt-play-btn .htcpt-play-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

/* Equalizer-Animation beim Abspielen */
.htcpt-eq {
    display: none;
    align-items: flex-end;
    gap: 2px;
    height: 16px;
    margin-left: -4px;
}

.htcpt-play-btn.playing .htcpt-eq { display: flex; }
/* Beim Abspielen nur die EQ-Waves zeigen – kein Pause-Icon nötig (Klick pausiert) */
.htcpt-play-btn.playing .htcpt-play-icon { display: none; }
.htcpt-play-btn.playing .htcpt-eq span {
    width: 3px;
    background: #fff;
    border-radius: 2px;
    animation: htcpt-eq 0.9s ease-in-out infinite;
}
.htcpt-play-btn.playing .htcpt-eq span:nth-child(1) { height: 6px; animation-delay: 0s; }
.htcpt-play-btn.playing .htcpt-eq span:nth-child(2) { height: 12px; animation-delay: 0.15s; }
.htcpt-play-btn.playing .htcpt-eq span:nth-child(3) { height: 9px; animation-delay: 0.3s; }
.htcpt-play-btn.playing .htcpt-eq span:nth-child(4) { height: 14px; animation-delay: 0.45s; }

@keyframes htcpt-eq {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1.4); }
}

.htcpt-player-main {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.htcpt-wave-track {
    position: relative;
    height: 32px;
    display: flex;
    align-items: center;
    cursor: pointer;
    border-radius: 8px;
}

.htcpt-wave-bars {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 3px;
    opacity: 0.55;
    pointer-events: none;
}

.htcpt-wave-bars span {
    flex: 1;
    min-width: 3px;
    background: var(--htcpt-secondary);
    border-radius: 2px;
    height: var(--bar-h, 30%);
    transition: background 0.2s;
}

.htcpt-wave-progress {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: rgba(43, 108, 176, 0.12);
    border-radius: 8px 0 0 8px;
    pointer-events: none;
}

.htcpt-wave-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--htcpt-primary);
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(43,108,176,0.4);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.htcpt-wave-track:hover .htcpt-wave-bars { opacity: 0.8; }

.htcpt-player-time {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: var(--htcpt-text-muted);
    font-variant-numeric: tabular-nums;
    margin-top: 4px;
}

.htcpt-speed {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #BEE3F8;
}

.htcpt-speed label {
    font-size: 11px;
    font-weight: 700;
    color: var(--htcpt-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.htcpt-speed input[type="range"] {
    flex: 1;
    min-width: 0;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: #D6E6F7;
    border-radius: 99px;
    outline: none;
    cursor: pointer;
}

.htcpt-speed input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--htcpt-primary);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(43,108,176,0.4);
    cursor: pointer;
    transition: transform 0.15s var(--htcpt-ease);
}

.htcpt-speed input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }

.htcpt-speed input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--htcpt-primary);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(43,108,176,0.4);
    cursor: pointer;
}

.htcpt-speed-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--htcpt-primary);
    min-width: 42px;
    flex-shrink: 0;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Audio-Fehler: kleines Overlay statt großer Box */
.htcpt-player-error {
    display: none;
    position: absolute;
    top: 12px;
    right: 14px;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--htcpt-error-light);
    border: 1px solid #FED7D7;
    border-radius: 99px;
    color: var(--htcpt-error);
    font-size: 12px;
    font-weight: 600;
    box-shadow: var(--htcpt-shadow-sm);
    z-index: 5;
    max-width: calc(100% - 96px);
}

.htcpt-player-error svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.htcpt-player-error.visible { display: inline-flex; }

/* ============================================================
   INLINE PLAYER (Multi-Audio-Modus)
   ============================================================ */
.htcpt-player-inline {
    margin-bottom: 20px;
    animation: htcpt-fade-in 0.35s var(--htcpt-ease);
}

/* ============================================================
   TEXT-TOGGLE (Transkript)
   ============================================================ */
.htcpt-transcript {
    margin-bottom: 20px;
}

.htcpt-text-toggle {
    width: 100%;
    margin-top: 20px;
    padding: 14px 20px;
    background: var(--htcpt-surface);
    border: 1.5px solid var(--htcpt-border);
    border-radius: var(--htcpt-radius-sm);
    color: var(--htcpt-text);
    font-family: var(--htcpt-font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.25s var(--htcpt-ease);
}

.htcpt-text-toggle:hover {
    border-color: var(--htcpt-primary);
    background: var(--htcpt-primary-light);
    color: var(--htcpt-text);
    transform: translateY(-1px);
}

.htcpt-text-toggle .htcpt-toggle-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.htcpt-text-toggle .htcpt-toggle-icon {
    width: 20px;
    height: 20px;
    color: var(--htcpt-primary);
    transition: transform 0.3s var(--htcpt-ease);
}

.htcpt-text-toggle[aria-expanded="true"] .htcpt-toggle-icon {
    transform: rotate(180deg);
}

.htcpt-text-content {
    margin-top: 12px;
    padding: 18px 20px;
    background: #FFFBEB;
    border: 1px solid #FEEBC8;
    border-left: 4px solid var(--htcpt-warning-dark);
    border-radius: var(--htcpt-radius-sm);
    font-size: 15px;
    line-height: 1.7;
    color: #744210;
    animation: htcpt-slide-down 0.35s var(--htcpt-ease);
}

.htcpt-text-content mark {
    background: #FDE68A;
    padding: 0 2px;
    border-radius: 3px;
}

@keyframes htcpt-slide-down {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   QUESTION / ANSWERS
   ============================================================ */
.htcpt-body {
    padding: 20px 28px 24px;
    animation: htcpt-fade-in 0.4s var(--htcpt-ease);
}

@keyframes htcpt-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.htcpt-question-wrap {
    margin-bottom: 10px;
}

.htcpt-question {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--htcpt-text);
    margin-bottom: 8px;
    overflow-wrap: break-word;
}

.htcpt-question-hint {
    font-size: 13px;
    color: var(--htcpt-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.htcpt-answers {
    display: grid;
    gap: 10px;
}

/* True/False-Fragen: gleiche Optik wie MC-Antworten (linksbündig) */
.htcpt-answers-tf .htcpt-answer {
    font-weight: 600;
}

/* Theme-Safety: Button-Styles des Themes dürfen Text/Hintergrund nicht überschreiben */
.htcpt-app .htcpt-answer {
    background: var(--htcpt-surface);
    border-color: var(--htcpt-border);
    color: var(--htcpt-text);
}

.htcpt-answer {
    width: 100%;
    background: var(--htcpt-surface);
    border: 2px solid var(--htcpt-border);
    border-radius: var(--htcpt-radius-sm);
    color: var(--htcpt-text);
    font-family: var(--htcpt-font);
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    overflow-wrap: break-word;
    transition: all 0.22s var(--htcpt-ease);
    position: relative;
    overflow: hidden;
}

.htcpt-answer::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    transition: background 0.22s var(--htcpt-ease);
}

/* Hover: dezenter „interaktiv"-Look, bewusst ANDERS als is-selected
   (kein blauer Fill, Key-Badge nicht gefüllt) → keine Verwechslung mit Auswahl */
.htcpt-answer:hover:not(:disabled):not(.is-locked):not(.is-selected) {
    border-color: var(--htcpt-primary);
    background: var(--htcpt-bg);
    color: var(--htcpt-text);
    transform: translateX(4px);
    box-shadow: var(--htcpt-shadow-sm);
}

.htcpt-answer:hover:not(:disabled):not(.is-locked):not(.is-selected)::before {
    background: var(--htcpt-primary);
}

.htcpt-answer:focus-visible {
    outline: 3px solid var(--htcpt-primary-glow);
    outline-offset: 2px;
}

.htcpt-answer-text {
    min-width: 0;
    overflow-wrap: break-word;
}

.htcpt-answer-key {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--htcpt-bg);
    border: 1.5px solid var(--htcpt-border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--htcpt-text-muted);
    transition: all 0.22s var(--htcpt-ease);
}

.htcpt-answer:hover:not(:disabled):not(.is-locked):not(.is-selected) .htcpt-answer-key {
    background: var(--htcpt-surface);
    border-color: var(--htcpt-primary);
    color: var(--htcpt-primary);
}

.htcpt-answer.is-selected {
    border-color: var(--htcpt-primary);
    background: var(--htcpt-primary-light);
    color: var(--htcpt-text);
    transform: translateX(6px);
    box-shadow: 0 0 0 3px var(--htcpt-primary-glow);
}

.htcpt-answer.is-selected::before { background: var(--htcpt-primary); }

.htcpt-answer.is-selected .htcpt-answer-key {
    background: var(--htcpt-primary);
    border-color: var(--htcpt-primary-dark);
    color: #fff;
}

.htcpt-answer.is-correct {
    border-color: var(--htcpt-success);
    background: var(--htcpt-success-light);
    color: var(--htcpt-success);
    font-weight: 700;
    animation: htcpt-correct-pop 0.45s var(--htcpt-ease);
}

.htcpt-answer.is-correct::before { background: var(--htcpt-success); }
.htcpt-answer.is-correct .htcpt-answer-key {
    background: var(--htcpt-success);
    border-color: var(--htcpt-success);
    color: #fff;
}

.htcpt-answer.is-wrong {
    border-color: var(--htcpt-error);
    background: var(--htcpt-error-light);
    color: var(--htcpt-error);
    font-weight: 700;
    animation: htcpt-wrong-shake 0.4s ease;
}

.htcpt-answer.is-wrong::before { background: var(--htcpt-error); }
.htcpt-answer.is-wrong .htcpt-answer-key {
    background: var(--htcpt-error);
    border-color: var(--htcpt-error);
    color: #fff;
}

.htcpt-answer.is-locked { cursor: default; opacity: 0.85; }
.htcpt-answer.is-dimmed { opacity: 0.5; }

.htcpt-answer-icon {
    margin-left: auto;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: none;
}

.htcpt-answer.is-correct .htcpt-answer-icon.check,
.htcpt-answer.is-wrong .htcpt-answer-icon.cross { display: block; }

@keyframes htcpt-correct-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes htcpt-wrong-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* ============================================================
   TIP BOX
   ============================================================ */
/* ============================================================
   TIP – schwebende Toast-Karte am unteren Bildschirmrand.
   Overlay: nimmt keinen Layout-Platz ein, Antworten bleiben sichtbar.
   ============================================================ */
.htcpt-tip-slot {
    height: 0;
}

.htcpt-tip {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 16px;
    margin: auto 0;
    height: fit-content;
    max-height: 70vh;
    overflow-y: auto;
    width: 340px;
    max-width: calc(100vw - 32px);
    padding: 16px 44px 16px 18px;
    background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
    border: 1px solid #FDE68A;
    border-radius: var(--htcpt-radius-sm);
    box-shadow: var(--htcpt-shadow-md);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    z-index: 99999;
    animation: htcpt-tip-in 0.4s var(--htcpt-ease);
}

@keyframes htcpt-tip-in {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Auf schmalen Bildschirmen: unten als Toast (mehr Platz, nichts überdeckt) */
@media (max-width: 1180px) {
    .htcpt-tip {
        top: auto;
        bottom: 24px;
        left: 0;
        right: 0;
        margin: 0 auto;
        height: auto;
        max-height: none;
        width: calc(100vw - 32px);
        max-width: 620px;
        animation-name: htcpt-toast-in;
    }
}

.htcpt-tip-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--htcpt-warning);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #744210;
}

.htcpt-tip-icon svg { width: 20px; height: 20px; }

.htcpt-tip-content {
    font-size: 14px;
    line-height: 1.6;
    color: #744210;
}

.htcpt-tip-content strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
    color: #92600A;
}

.htcpt-tip-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #FDE68A;
    background: rgba(255, 255, 255, 0.65);
    color: #92600A;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    flex-shrink: 0;
}

.htcpt-tip-close:hover {
    background: #fff;
}

/* ============================================================
   NAVIGATION BUTTONS
   ============================================================ */
.htcpt-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--htcpt-border);
    animation: htcpt-fade-in 0.3s var(--htcpt-ease);
}

.htcpt-nav-hint {
    font-size: 12px;
    color: var(--htcpt-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.htcpt-nav-hint-center {
    margin-top: 16px;
    justify-content: center;
}

.htcpt-keycap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 7px;
    background: var(--htcpt-bg);
    border: 1px solid var(--htcpt-border);
    border-bottom-width: 2.5px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--htcpt-text-muted);
    font-family: var(--htcpt-font);
}

.htcpt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 12px;
    font-family: var(--htcpt-font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.25s var(--htcpt-ease);
    position: relative;
    overflow: hidden;
}

.htcpt-btn svg { width: 18px; height: 18px; }

.htcpt-btn-primary {
    background: linear-gradient(135deg, var(--htcpt-primary), var(--htcpt-secondary));
    color: #fff;
    box-shadow: 0 4px 14px var(--htcpt-primary-glow);
}

.htcpt-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(43, 108, 176, 0.35);
}

.htcpt-btn-primary:active { transform: translateY(0) scale(0.98); }

.htcpt-btn-ghost {
    background: transparent;
    color: var(--htcpt-text-muted);
    border: 1.5px solid var(--htcpt-border);
}

.htcpt-btn-ghost:hover {
    border-color: var(--htcpt-primary);
    color: var(--htcpt-primary);
    background: var(--htcpt-primary-light);
}

.htcpt-btn-success {
    background: linear-gradient(135deg, var(--htcpt-success), var(--htcpt-success-bg));
    color: #fff;
    box-shadow: 0 4px 14px rgba(72, 187, 120, 0.3);
}

.htcpt-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(72, 187, 120, 0.4);
}

.htcpt-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ============================================================
   RESULTS SCREEN
   ============================================================ */
.htcpt-results {
    padding: 32px 24px 28px;
    text-align: center;
    animation: htcpt-results-in 0.6s var(--htcpt-ease);
}

@keyframes htcpt-results-in {
    from { opacity: 0; transform: scale(0.96) translateY(16px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Tier-Farbe zieht sich auf Titel + Ring */
.htcpt-results.tier-gold .htcpt-results-title { color: #92600A; }
.htcpt-results.tier-green .htcpt-results-title { color: var(--htcpt-success); }
.htcpt-results.tier-blue .htcpt-results-title { color: var(--htcpt-primary-dark); }
.htcpt-results.tier-orange .htcpt-results-title { color: #C05621; }
.htcpt-results.tier-red .htcpt-results-title { color: var(--htcpt-error); }

.htcpt-best-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: -8px auto 20px;
    padding: 6px 14px;
    border-radius: 99px;
    background: var(--htcpt-bg);
    border: 1px solid var(--htcpt-border, #E2E8F0);
    font-size: 12px;
    font-weight: 600;
    color: var(--htcpt-text-muted);
}

.htcpt-best-chip svg {
    width: 14px;
    height: 14px;
    color: #D69E2E;
}

.htcpt-best-chip strong {
    color: var(--htcpt-text);
}

.htcpt-retry-note {
    display: inline-block;
    margin: -12px auto 16px;
    padding: 4px 12px;
    border-radius: 99px;
    background: var(--htcpt-primary-light);
    color: var(--htcpt-primary-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.htcpt-results-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

/* Kurs-Navigation: Zurück / Nächste Übung */
.htcpt-course-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 20px auto 8px;
    max-width: 560px;
}

.htcpt-course-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--htcpt-radius-sm);
    background: var(--htcpt-bg);
    border: 1px solid var(--htcpt-border);
    text-decoration: none;
    min-width: 0;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.htcpt-course-link:hover {
    border-color: var(--htcpt-primary);
    background: var(--htcpt-primary-light);
    transform: translateY(-1px);
}

.htcpt-course-link svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--htcpt-primary); }
.htcpt-course-next { justify-content: flex-end; text-align: right; }
.htcpt-course-prev { text-align: left; }

.htcpt-course-dir {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--htcpt-text-muted);
}

.htcpt-course-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--htcpt-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

/* „Nächste Übung" –dezenter Aktions-Link */
.htcpt-btn-next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--htcpt-radius-sm);
    background: var(--htcpt-primary-light);
    color: var(--htcpt-primary-dark);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.2s, transform 0.2s;
    max-width: 100%;
}

.htcpt-btn-next svg { width: 16px; height: 16px; flex-shrink: 0; }
.htcpt-btn-next:hover { background: #DBEAFE; transform: translateY(-1px); }

.htcpt-score-ring {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 24px;
}

.htcpt-score-ring svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.htcpt-score-ring-bg {
    fill: none;
    stroke: #EDF2F7;
    stroke-width: 10;
}

.htcpt-score-ring-fill {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.2s var(--htcpt-ease);
}

.htcpt-score-ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.htcpt-score-number {
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    color: var(--htcpt-text);
    font-variant-numeric: tabular-nums;
}

.htcpt-score-sub {
    font-size: 13px;
    color: var(--htcpt-text-muted);
    font-weight: 600;
    margin-top: 4px;
}

.htcpt-results-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--htcpt-text);
    margin-bottom: 8px;
}

.htcpt-results-msg {
    font-size: 16px;
    color: var(--htcpt-text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

.htcpt-results-stats {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.htcpt-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--htcpt-bg);
    border-radius: var(--htcpt-radius-sm);
    font-size: 14px;
    font-weight: 700;
}

.htcpt-stat .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.htcpt-stat .dot.green { background: var(--htcpt-success); }
.htcpt-stat .dot.red { background: var(--htcpt-error); }
.htcpt-stat .dot.blue { background: var(--htcpt-primary); }

/* Confetti */
.htcpt-confetti {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 99999;
    overflow: hidden;
}

.htcpt-confetti span {
    position: absolute;
    top: -20px;
    width: 10px;
    height: 14px;
    border-radius: 2px;
    animation: htcpt-confetti-fall linear forwards;
}

@keyframes htcpt-confetti-fall {
    to {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0.6;
    }
}

/* ============================================================
   EMPTY / ERROR STATES
   ============================================================ */
.htcpt-empty-state {
    text-align: center;
    padding: 56px 32px;
    background: var(--htcpt-surface);
    border: 2px dashed var(--htcpt-border);
    border-radius: var(--htcpt-radius);
}

.htcpt-empty-icon {
    display: inline-flex;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: var(--htcpt-primary-light);
    color: var(--htcpt-primary);
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.htcpt-empty-icon svg { width: 36px; height: 36px; }

.htcpt-empty-state h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--htcpt-text);
}

.htcpt-empty-state p {
    color: var(--htcpt-text-muted);
    margin-bottom: 24px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.htcpt-error-state {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: var(--htcpt-error-light);
    border: 1px solid #FED7D7;
    border-radius: var(--htcpt-radius-sm);
    color: var(--htcpt-error);
    font-size: 14px;
    font-weight: 600;
}

.htcpt-error-state svg { width: 22px; height: 22px; flex-shrink: 0; }

/* ============================================================
   ARCHIVE / TAXONOMY PAGES
   ============================================================ */
.htcpt-archive-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.htcpt-archive-header {
    margin-bottom: 32px;
}

.htcpt-archive-header-inner {
    background: linear-gradient(135deg, var(--htcpt-primary) 0%, var(--htcpt-secondary) 100%);
    border-radius: var(--htcpt-radius);
    padding: 44px 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.htcpt-archive-header-inner::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 220px;
    height: 220px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.htcpt-archive-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.85;
    margin-bottom: 12px;
}

.htcpt-archive-eyebrow svg { width: 16px; height: 16px; }

.htcpt-archive-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 12px;
    color: #fff;
}

.htcpt-archive-title .htcpt-badge {
    vertical-align: middle;
    margin-right: 10px;
}

.htcpt-archive-subtitle {
    font-size: 17px;
    opacity: 0.9;
    max-width: 560px;
    margin: 0;
    line-height: 1.6;
}

/* Filter Bar */
.htcpt-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    background: var(--htcpt-surface);
    border: 1px solid var(--htcpt-border);
    border-radius: var(--htcpt-radius);
    padding: 18px 20px;
    margin-bottom: 32px;
    box-shadow: var(--htcpt-shadow-sm);
}

.htcpt-filter-group { flex: 1; min-width: 150px; }

/* „Nur Schüler"-Checkbox */
.htcpt-filter-check {
    flex: 0 0 auto;
    min-width: 0;
    display: flex;
    align-items: center;
}

.htcpt-filter-check label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--htcpt-text);
    cursor: pointer;
    white-space: nowrap;
    padding: 10px 14px;
    border: 1.5px solid var(--htcpt-border);
    border-radius: 10px;
    background: var(--htcpt-surface);
    transition: border-color 0.2s, background 0.2s;
}

.htcpt-filter-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--htcpt-primary);
    cursor: pointer;
}

.htcpt-filter-check label:has(input:checked) {
    border-color: var(--htcpt-primary);
    background: var(--htcpt-primary-light);
}

.htcpt-select,
.htcpt-search-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--htcpt-border);
    border-radius: 10px;
    font-family: var(--htcpt-font);
    font-size: 14px;
    font-weight: 500;
    color: var(--htcpt-text);
    background: var(--htcpt-surface);
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.htcpt-search-input {
    background-image: none;
    padding-right: 14px;
}

.htcpt-select:focus,
.htcpt-search-input:focus {
    outline: none;
    border-color: var(--htcpt-primary);
    box-shadow: 0 0 0 3px var(--htcpt-primary-glow);
}

.htcpt-filter-search { flex: 1.4; }

.htcpt-filter-submit svg { width: 16px; height: 16px; }

/* Grid */
.htcpt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}

.htcpt-card {
    background: var(--htcpt-surface);
    border: 1px solid var(--htcpt-border);
    border-radius: var(--htcpt-radius);
    overflow: hidden;
    box-shadow: var(--htcpt-shadow-sm);
    transition: transform 0.3s var(--htcpt-ease), box-shadow 0.3s var(--htcpt-ease);
}

.htcpt-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--htcpt-shadow-lg);
}

.htcpt-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.htcpt-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #EBF4FF, #F0F7FF);
    overflow: hidden;
}

.htcpt-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--htcpt-ease);
}

.htcpt-card:hover .htcpt-card-img { transform: scale(1.05); }

.htcpt-card-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--htcpt-primary);
    opacity: 0.4;
}

.htcpt-card-placeholder svg { width: 56px; height: 56px; }

.htcpt-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.htcpt-card-flag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ECC94B, #D69E2E);
    color: #744210;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 12px;
    border-radius: 99px;
    box-shadow: 0 2px 8px rgba(214, 158, 46, 0.4);
}

/* Kind-Badge: unten links aufs Bild */
.htcpt-card-audience {
    position: absolute;
    bottom: 10px;
    left: 12px;
    z-index: 2;
}

.htcpt-card-featured { border-color: #F6E05E; }

.htcpt-card-body {
    padding: 14px 16px 16px;
}

.htcpt-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 6px;
    color: var(--htcpt-text);
    transition: color 0.2s;
}

.htcpt-card:hover .htcpt-card-title { color: var(--htcpt-primary); }

.htcpt-card-excerpt {
    font-size: 13px;
    color: var(--htcpt-text-muted);
    line-height: 1.5;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.htcpt-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.htcpt-card-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--htcpt-primary);
    background: var(--htcpt-primary-light);
    padding: 5px 12px;
    border-radius: 99px;
}

.htcpt-card-count svg { width: 14px; height: 14px; }

/* Badges */
.htcpt-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.4;
}

.htcpt-badge-level {
    background: var(--htcpt-primary);
    color: #fff;
    box-shadow: 0 2px 6px var(--htcpt-primary-glow);
}

.htcpt-badge-level.htcpt-level-a1,
.htcpt-level-a1 { background: #38A169; }
.htcpt-badge-level.htcpt-level-a2,
.htcpt-level-a2 { background: #4299E1; }
.htcpt-badge-level.htcpt-level-b1,
.htcpt-level-b1 { background: #9F7AEA; }
.htcpt-badge-level.htcpt-level-b2,
.htcpt-level-b2 { background: #DD6B20; }

.htcpt-badge-diff { background: #EDF2F7; color: var(--htcpt-text-muted); }
/* Schwierigkeit: kräftige Farben wie Level-Badges */
.htcpt-diff-easy, .htcpt-badge-diff.htcpt-diff-easy { background: #38A169; color: #fff; box-shadow: 0 2px 6px rgba(56,161,105,0.3); }
.htcpt-diff-medium, .htcpt-badge-diff.htcpt-diff-medium { background: #D69E2E; color: #fff; box-shadow: 0 2px 6px rgba(214,158,46,0.3); }
.htcpt-diff-hard, .htcpt-badge-diff.htcpt-diff-hard { background: #E53E3E; color: #fff; box-shadow: 0 2px 6px rgba(229,62,62,0.3); }

.htcpt-badge-cat {
    background: #EDF2F7;
    color: var(--htcpt-text-muted);
    font-weight: 600;
}

.htcpt-badge-featured {
    background: linear-gradient(135deg, #ECC94B, #D69E2E);
    color: #744210;
}

.htcpt-badge-audience { font-weight: 700; }
.htcpt-aud-adult { background: #EBF8FF; color: #2B6CB0; border: 1px solid #BEE3F8; }
.htcpt-aud-kid   { background: #FAF5FF; color: #6B46C1; border: 1px solid #E9D8FD; }
.htcpt-aud-both  { background: #F0FFF4; color: #276749; border: 1px solid #C6F6D5; }

/* Pagination */
.htcpt-pagination ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 40px 0 0;
}

.htcpt-pagination .htcpt-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    background: var(--htcpt-surface);
    border: 1.5px solid var(--htcpt-border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--htcpt-text);
    text-decoration: none;
    transition: all 0.2s var(--htcpt-ease);
}

.htcpt-pagination .htcpt-page-link:hover {
    border-color: var(--htcpt-primary);
    color: var(--htcpt-primary);
    transform: translateY(-2px);
}

.htcpt-pagination .current .htcpt-page-link,
.htcpt-pagination .htcpt-page-link.current {
    background: var(--htcpt-primary);
    border-color: var(--htcpt-primary);
    color: #fff;
    box-shadow: 0 4px 12px var(--htcpt-primary-glow);
}

/* ============================================================
   SINGLE PAGE
   ============================================================ */
.htcpt-single-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

/* Theme-unabhängig zentrieren: Float-Layouts mancher Themes neutralisieren */
#primary.htcpt-single-wrap,
#primary.htcpt-archive-wrap {
    float: none;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

#primary.htcpt-single-wrap {
    max-width: 860px;
}

.htcpt-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--htcpt-text-muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.htcpt-breadcrumb a {
    color: var(--htcpt-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.htcpt-breadcrumb a:hover { color: var(--htcpt-primary); }
.htcpt-breadcrumb [aria-current] { color: var(--htcpt-text); }

.htcpt-single-header { margin-bottom: 28px; }

.htcpt-single-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.htcpt-single-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 12px;
    color: var(--htcpt-text);
}

.htcpt-single-subtitle {
    font-size: 18px;
    color: var(--htcpt-text-muted);
    line-height: 1.6;
    margin: 0 0 18px;
}

.htcpt-single-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.htcpt-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--htcpt-text-muted);
}

.htcpt-meta-item svg { width: 16px; height: 16px; color: var(--htcpt-primary); }

.htcpt-single-hero {
    border-radius: var(--htcpt-radius);
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: var(--htcpt-shadow-md);
}

.htcpt-single-img { width: 100%; height: auto; display: block; }

.htcpt-single-content { margin-bottom: 32px; }

/* SEO-/Info-Sektion unter dem Trainer */
.htcpt-single-seo {
    margin-bottom: 32px;
}

.htcpt-seo-disclosure {
    background: var(--htcpt-surface);
    border: 1px solid var(--htcpt-border);
    border-radius: var(--htcpt-radius);
    overflow: hidden;
    box-shadow: var(--htcpt-shadow-sm);
}

.htcpt-seo-disclosure summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    cursor: pointer;
    list-style: none;
    transition: background 0.2s var(--htcpt-ease);
}

.htcpt-seo-disclosure summary::-webkit-details-marker { display: none; }
.htcpt-seo-disclosure summary:hover { background: var(--htcpt-bg); }

.htcpt-seo-summary-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--htcpt-primary-light);
    color: var(--htcpt-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.htcpt-seo-summary-icon svg { width: 22px; height: 22px; }

.htcpt-seo-summary-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.htcpt-seo-summary-text strong {
    font-size: 16px;
    font-weight: 700;
    color: var(--htcpt-text);
}

.htcpt-seo-summary-text span {
    font-size: 13px;
    color: var(--htcpt-text-muted);
}

.htcpt-seo-chevron {
    width: 20px;
    height: 20px;
    color: var(--htcpt-text-muted);
    transition: transform 0.3s var(--htcpt-ease);
    flex-shrink: 0;
}

.htcpt-seo-disclosure[open] .htcpt-seo-chevron {
    transform: rotate(180deg);
}

.htcpt-seo-body {
    padding: 24px 28px 28px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--htcpt-text);
    border-top: 1px solid var(--htcpt-border);
    margin-top: 0;
}

.htcpt-seo-body > *:first-child { margin-top: 0; }
.htcpt-seo-body h2, .htcpt-seo-body h3 {
    color: var(--htcpt-text);
    margin-top: 24px;
}
.htcpt-seo-body h2 { font-size: 22px; }
.htcpt-seo-body h3 { font-size: 19px; }
.htcpt-seo-body a { color: var(--htcpt-primary); }
.htcpt-seo-body ul, .htcpt-seo-body ol { padding-left: 24px; }

/* Gutenberg-Modus: Inhalte kommen aus Blöcken im Editor → gleiche Card-Optik */
.htcpt-seo-gutenberg {
    background: var(--htcpt-surface);
    border: 1px solid var(--htcpt-border);
    border-radius: var(--htcpt-radius);
    box-shadow: var(--htcpt-shadow-sm);
    overflow: hidden;
}
.htcpt-seo-gutenberg .htcpt-seo-body { border-top: 0; }
.htcpt-seo-gutenberg .wp-block-image img { border-radius: 8px; }

.htcpt-single-intro {
    background: var(--htcpt-surface);
    border: 1px solid var(--htcpt-border);
    border-radius: var(--htcpt-radius);
    padding: 24px 28px;
    margin-bottom: 28px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--htcpt-text);
}

/* Grammatik & False Friends Box */
.htcpt-grammar-box {
    margin-bottom: 32px;
    background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
    border: 1px solid #FDE68A;
    border-radius: var(--htcpt-radius);
    padding: 22px 26px;
}

.htcpt-grammar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: #92600A;
    margin: 0 0 12px;
}

.htcpt-grammar-title svg { width: 20px; height: 20px; flex-shrink: 0; }

.htcpt-grammar-body {
    font-size: 17px;
    line-height: 1.7;
    color: var(--htcpt-text);
}

.htcpt-grammar-body > *:first-child { margin-top: 0; }
.htcpt-grammar-body h3 { font-size: 18px; color: #92600A; margin-top: 18px; }
.htcpt-grammar-body ul, .htcpt-grammar-body ol { padding-left: 24px; }
.htcpt-grammar-body strong { color: #744210; }

/* Vokabeln & Wendungen Box */
.htcpt-vocab-box {
    margin-bottom: 32px;
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    border: 1px solid #BFDBFE;
    border-radius: var(--htcpt-radius);
    padding: 22px 26px;
}

.htcpt-vocab-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: #1E40AF;
    margin: 0 0 12px;
}

.htcpt-vocab-title svg { width: 20px; height: 20px; flex-shrink: 0; }

.htcpt-vocab-body {
    font-size: 17px;
    line-height: 1.7;
    color: var(--htcpt-text);
}

.htcpt-vocab-body > *:first-child { margin-top: 0; }
.htcpt-vocab-body ul, .htcpt-vocab-body ol { padding-left: 24px; }
.htcpt-vocab-body strong { color: #1E3A8A; }

/* Streak-Chip im Trainer-Header */
.htcpt-streak-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #B45309;
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    border-radius: 999px;
    padding: 3px 10px;
    white-space: nowrap;
}

.htcpt-streak-chip svg { width: 13px; height: 13px; }

/* Ähnliche Übungen */
.htcpt-related { margin-bottom: 32px; }

.htcpt-related-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--htcpt-text);
    margin: 0 0 16px;
}

.htcpt-grid-related {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.htcpt-single-footer { text-align: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .htcpt-app-inner, .htcpt-body { padding: 20px; }
    .htcpt-app-header { padding: 16px 20px; flex-direction: column; align-items: stretch; gap: 10px; }
    .htcpt-progress-wrap { max-width: none; }
    .htcpt-header-actions { justify-content: flex-end; }
    .htcpt-player { margin: 12px 12px 0; padding: 10px 14px; }
    .htcpt-player-row { flex-direction: column; align-items: stretch; gap: 12px; }
    .htcpt-play-btn { width: 48px; height: 48px; align-self: center; }
    /* Waveform an schmale Container anpassen (48 Balken + Gaps) */
    .htcpt-wave-bars { gap: 2px; }
    .htcpt-wave-bars span { min-width: 2px; }
    .htcpt-question { font-size: 18px; }
    .htcpt-answer { font-size: 15px; padding: 14px 16px; }
    .htcpt-archive-header-inner { padding: 32px 24px; }
    .htcpt-archive-title { font-size: 28px; }
    .htcpt-single-title { font-size: 28px; }
    .htcpt-grid { grid-template-columns: 1fr; gap: 18px; }
    .htcpt-filter-bar { flex-direction: column; align-items: stretch; }
    .htcpt-filter-group { min-width: 100%; }
    .htcpt-btn { width: 100%; }
    .htcpt-nav { flex-direction: column; }
    .htcpt-score-ring { width: 150px; height: 150px; }
    .htcpt-score-number { font-size: 36px; }
}

@media (max-width: 480px) {
    .htcpt-archive-wrap { padding: 24px 12px; }
    .htcpt-single-wrap { padding: 20px 12px 48px; }
    .htcpt-app { border-radius: 12px; }
    .htcpt-body, .htcpt-app-inner { padding: 16px; }
    .htcpt-results { padding: 36px 20px; }
    .htcpt-player { margin: 10px 8px 0; padding: 12px 14px; }
    .htcpt-player-row { gap: 10px; }
}

/* Touch-Geräte: keine Tastatur-Hinweise (Enter, 1–4) */
@media (hover: none) and (pointer: coarse) {
    .htcpt-nav-hint { display: none; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .htcpt-app *,
    .htcpt-card,
    .htcpt-answer,
    .htcpt-btn {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.htcpt-app .screen-reader-text,
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   LEVEL-HUB (taxonomy-level.php)
   ============================================================ */
.htcpt-level-desc {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
    max-width: 720px;
}
.htcpt-level-desc p { margin: 0 0 10px; }
.htcpt-level-desc p:last-child { margin-bottom: 0; }
.htcpt-level-desc ul,
.htcpt-level-desc ol { margin: 8px 0 12px; padding-left: 22px; }
.htcpt-level-desc strong { color: #fff; }
.htcpt-level-desc a { color: #fff; text-decoration: underline; }

.htcpt-level-count {
    margin: 14px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}
.htcpt-level-count strong { color: #fff; font-weight: 700; }

.htcpt-level-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 22px;
    padding: 14px 18px;
    background: var(--htcpt-bg);
    border: 1px solid var(--htcpt-border);
    border-radius: var(--htcpt-radius-sm);
}
.htcpt-level-nav-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--htcpt-text-muted);
    margin-right: 4px;
}
.htcpt-level-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1.5px solid var(--htcpt-border);
    background: var(--htcpt-surface);
    color: var(--htcpt-text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.htcpt-level-chip:hover {
    border-color: var(--htcpt-primary);
    color: var(--htcpt-primary);
}
.htcpt-level-chip-active,
.htcpt-level-chip-active:hover {
    background: var(--htcpt-primary);
    border-color: var(--htcpt-primary);
    color: #fff;
}

.htcpt-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--htcpt-text);
    margin: 28px 0 16px;
}
.htcpt-section-title svg { width: 20px; height: 20px; color: var(--htcpt-warning-dark); }
.htcpt-section-title-list { margin-top: 8px; }

.htcpt-featured-section {
    margin: 8px 0 4px;
}
.htcpt-featured-grid {
    max-width: 560px;
}
.htcpt-featured-grid .htcpt-card {
    border-color: var(--htcpt-warning-dark);
    box-shadow: 0 4px 14px rgba(214, 158, 46, 0.18);
}

.htcpt-howto {
    margin-top: 36px;
    padding: 22px 24px;
    background: linear-gradient(135deg, var(--htcpt-primary-light) 0%, var(--htcpt-bg) 100%);
    border: 1px solid #bee3f8;
    border-radius: var(--htcpt-radius);
}
.htcpt-howto-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: htcpt-step;
}
.htcpt-howto-steps li {
    counter-increment: htcpt-step;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    background: var(--htcpt-surface);
    border: 1px solid var(--htcpt-border);
    border-radius: var(--htcpt-radius-sm);
    position: relative;
}
.htcpt-howto-steps li::before {
    content: counter(htcpt-step);
    position: absolute;
    top: -10px;
    left: 14px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--htcpt-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.htcpt-howto-steps strong {
    font-size: 15px;
    color: var(--htcpt-primary-dark);
}
.htcpt-howto-steps span {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--htcpt-text-muted);
}

@media (max-width: 640px) {
    .htcpt-level-nav { padding: 12px 14px; }
    .htcpt-howto { padding: 16px; }
}

/* Verlinkte Badges (Single-Page → Taxonomie-Hubs) */
.htcpt-badge-link {
    display: inline-flex;
    text-decoration: none;
    border-radius: 999px;
    transition: transform 0.2s var(--htcpt-ease), box-shadow 0.2s var(--htcpt-ease);
}
.htcpt-badge-link:hover {
    transform: translateY(-1px);
    box-shadow: var(--htcpt-shadow-md);
}
.htcpt-badge-link:hover .htcpt-badge {
    filter: brightness(1.08);
}

/* AJAX-Live-Filter: dezenter Ladezustand */
.htcpt-archive.htcpt-loading {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

/* ============================================================
   TRANSKRIPT-BLOCK (SEO, indexierbar)
   ============================================================ */
.htcpt-transcripts {
    margin-top: 28px;
}

.htcpt-transcripts-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--htcpt-text);
    margin: 0 0 6px;
}
.htcpt-transcripts-title svg { width: 20px; height: 20px; color: var(--htcpt-primary); }

.htcpt-transcripts-intro {
    font-size: 14px;
    color: var(--htcpt-text-muted);
    margin: 0 0 16px;
}

.htcpt-transcript-item {
    background: var(--htcpt-surface);
    border: 1px solid var(--htcpt-border);
    border-radius: var(--htcpt-radius-sm);
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: var(--htcpt-shadow-sm);
}

.htcpt-transcript-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    cursor: pointer;
    list-style: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--htcpt-text);
    transition: background 0.2s var(--htcpt-ease);
}
.htcpt-transcript-item summary::-webkit-details-marker { display: none; }
.htcpt-transcript-item summary:hover { background: var(--htcpt-bg); }
.htcpt-transcript-item[open] summary { border-bottom: 1px solid var(--htcpt-border); }
.htcpt-transcript-item[open] .htcpt-seo-chevron { transform: rotate(180deg); }
.htcpt-transcript-item .htcpt-seo-chevron { transition: transform 0.3s var(--htcpt-ease); }

.htcpt-transcript-text {
    padding: 16px 20px 20px;
    font-size: 16px;
    line-height: 1.75;
    color: var(--htcpt-text);
    white-space: pre-line;
}

/* ============================================================
   ÜBUNG DES TAGES (Archiv)
   ============================================================ */
.htcpt-daily {
    margin: 0 0 28px;
    padding: 20px 22px;
    background: linear-gradient(135deg, var(--htcpt-primary-light) 0%, var(--htcpt-bg) 100%);
    border: 1px solid #bee3f8;
    border-radius: var(--htcpt-radius);
}

.htcpt-daily-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.htcpt-daily-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--htcpt-primary-dark);
}
.htcpt-daily-label svg { width: 16px; height: 16px; }

.htcpt-daily-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--htcpt-text-muted);
}

.htcpt-daily-card {
    max-width: 560px;
}
.htcpt-daily-card .htcpt-card {
    border-color: var(--htcpt-primary);
    box-shadow: var(--htcpt-shadow-md);
}

/* ============================================================
   TOAST (Link kopiert etc.)
   ============================================================ */
.htcpt-toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translate(-50%, 16px);
    z-index: 99999;
    padding: 11px 20px;
    background: #1a202c;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.htcpt-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}
@media (max-width: 640px) {
    .htcpt-toast { bottom: 20px; font-size: 13px; }
}

/* ============================================================
   ÜBUNG DES TAGES (erste Grid-Kachel)
   ============================================================ */
.htcpt-card-daily {
    border-color: var(--htcpt-primary);
    box-shadow: 0 0 0 1px var(--htcpt-primary), var(--htcpt-shadow-md);
}
.htcpt-card-flag-daily {
    background: var(--htcpt-primary);
    color: #fff;
}

/* Streak-Chip im Trainer-Header entfernt – Banner auf Archiv/Hubs statt isolierter Zahl. */

/* ============================================================
   STREAK-BANNER (Archiv & Hubs) – schräges Band
   ============================================================ */
.htcpt-streak-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 22px;
    padding: 12px 22px;
    background: linear-gradient(135deg, var(--htcpt-primary) 0%, var(--htcpt-primary-dark) 100%);
    color: #fff;
    font-size: 15px;
    transform: skewX(-4deg);
    border-radius: 4px;
    box-shadow: var(--htcpt-shadow-md);
}
.htcpt-streak-banner > * { transform: skewX(4deg); }
.htcpt-streak-banner-tag {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(255, 255, 255, 0.22);
    padding: 3px 10px;
    border-radius: 999px;
}
.htcpt-streak-banner strong { font-size: 17px; }
.htcpt-streak-banner-text { opacity: 0.9; font-size: 13px; }

/* ============================================================
   DAILY-PAGE (/hoeruebung-des-tages/)
   ============================================================ */
.htcpt-daily-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}
.htcpt-daily-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.htcpt-grid-daily-archiv { margin-top: 8px; }
.htcpt-daily-archiv-item { display: flex; flex-direction: column; gap: 6px; }
.htcpt-daily-archiv-date {
    font-size: 12px;
    font-weight: 700;
    color: var(--htcpt-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Streak-Banner ist jetzt ein Link → Text-Dekoration zurücksetzen + Hover */
a.htcpt-streak-banner {
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.15s ease;
}
a.htcpt-streak-banner:hover {
    filter: brightness(1.08);
    transform: skewX(-4deg) translateX(3px);
}
.htcpt-streak-banner-cta {
    margin-left: auto;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.22);
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
}
@media (max-width: 640px) {
    .htcpt-streak-banner-cta { margin-left: 0; width: 100%; text-align: center; }
}

/* ============================================================
   MYSTERY-CARD (Übung des Tages – kein Spoiler)
   ============================================================ */
.htcpt-card-media-mystery {
    background: linear-gradient(135deg, var(--htcpt-primary-light) 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.htcpt-card-media-mystery .htcpt-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.htcpt-card-media-mystery .htcpt-card-placeholder svg {
    width: 44px;
    height: 44px;
    color: var(--htcpt-primary);
    opacity: 0.75;
}
.htcpt-card-mystery .htcpt-card-link:hover .htcpt-card-media-mystery {
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
}

/* ============================================================
   DAILY-BANNER (auf /hoeruebung-des-tages/)
   ============================================================ */
.htcpt-daily-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 18px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--htcpt-primary) 0%, var(--htcpt-primary-dark) 100%);
    color: #fff;
    border-radius: var(--htcpt-radius);
    font-size: 14px;
}
.htcpt-daily-banner-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 12px;
}
.htcpt-daily-banner-tag svg { width: 16px; height: 16px; }
.htcpt-daily-banner-date { opacity: 0.85; font-weight: 600; }
.htcpt-daily-banner-link {
    margin-left: auto;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 999px;
    transition: background 0.15s ease;
}
.htcpt-daily-banner-link:hover { background: rgba(255, 255, 255, 0.32); }

/* ============================================================
   STREAK-BANNER: Meilenstein-Variante (Gold)
   ============================================================ */
.htcpt-streak-banner-milestone {
    background: linear-gradient(135deg, #d69e2e 0%, #b7791f 100%);
    box-shadow: 0 6px 20px rgba(214, 158, 46, 0.35);
}
.htcpt-streak-banner-milestone .htcpt-streak-banner-tag {
    background: rgba(255, 255, 255, 0.28);
}
.htcpt-streak-banner-milestone strong { font-size: 19px; }

/* ============================================================
   FORTSCHRITTSDASHBOARD (Archiv & Hubs, localStorage)
   ============================================================ */
.htcpt-progress-dash {
    margin: 0 0 22px;
    padding: 18px 22px;
    background: var(--htcpt-surface, #fff);
    border: 1px solid var(--htcpt-border, #e2e8f0);
    border-radius: var(--htcpt-radius);
    box-shadow: var(--htcpt-shadow-sm, 0 1px 3px rgba(0,0,0,0.06));
}
.htcpt-progress-dash-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.htcpt-progress-dash-head svg { width: 17px; height: 17px; color: var(--htcpt-primary); }
.htcpt-progress-dash-title { font-weight: 800; font-size: 15px; color: var(--htcpt-text); }
.htcpt-progress-dash-total { margin-left: auto; font-size: 13px; color: var(--htcpt-text-muted); }
.htcpt-progress-dash-total strong { color: var(--htcpt-primary-dark); font-size: 15px; }
.htcpt-progress-dash-track {
    height: 8px;
    background: var(--htcpt-bg, #f1f5f9);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 12px;
}
.htcpt-progress-dash-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--htcpt-primary) 0%, var(--htcpt-primary-dark) 100%);
    border-radius: 999px;
    transition: width 0.4s ease;
}
.htcpt-progress-dash-levels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}
.htcpt-progress-dash-level {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
}
.htcpt-progress-dash-level-name {
    font-weight: 800;
    min-width: 26px;
    color: var(--htcpt-text);
}
.htcpt-progress-dash-level-bar {
    width: 64px;
    height: 6px;
    background: var(--htcpt-bg, #f1f5f9);
    border-radius: 999px;
    overflow: hidden;
    display: inline-block;
}
.htcpt-progress-dash-level-bar span {
    display: block;
    height: 100%;
    background: var(--htcpt-primary);
    border-radius: 999px;
}
.htcpt-progress-dash-level-num {
    color: var(--htcpt-text-muted);
    font-weight: 600;
    white-space: nowrap;
}

/* Fortschritts-Dashboard: <details>-Variante (eingeklappt) */
.htcpt-progress-dash-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.htcpt-progress-dash-summary::-webkit-details-marker { display: none; }
.htcpt-progress-dash-summary svg:first-child { width: 17px; height: 17px; color: var(--htcpt-primary); flex-shrink: 0; }
.htcpt-progress-dash-chevron {
    width: 15px !important;
    height: 15px !important;
    margin-left: auto;
    color: var(--htcpt-text-muted) !important;
    transition: transform 0.2s ease;
}
.htcpt-progress-dash[open] .htcpt-progress-dash-chevron { transform: rotate(180deg); }
.htcpt-progress-dash[open] .htcpt-progress-dash-track { margin-top: 12px; }
.htcpt-progress-dash[open] .htcpt-progress-dash-levels { margin-top: 4px; }

/* Dashboard-Summary: Gesamt-Zahl rechts, Chevron direkt dahinter */
.htcpt-progress-dash-summary .htcpt-progress-dash-total { margin-left: auto; }
.htcpt-progress-dash-summary .htcpt-progress-dash-chevron { margin-left: 8px !important; }

/* ============================================================
   NEWSLETTER-PROMPT (Result-Screen)
   ============================================================ */
.htcpt-newsletter {
    margin-top: 26px;
    border: 1px solid #bee3f8;
    border-radius: var(--htcpt-radius);
    background: linear-gradient(135deg, #eff6ff 0%, var(--htcpt-bg, #f8fafc) 100%);
    overflow: hidden;
}
.htcpt-newsletter-inner { padding: 18px 20px; }
.htcpt-newsletter strong { display: block; font-size: 15px; margin-bottom: 4px; }
.htcpt-nl-text { font-size: 13px; color: var(--htcpt-text-muted); margin: 0 0 12px; }
.htcpt-nl-form { display: flex; flex-direction: column; gap: 10px; }
.htcpt-nl-form input[type="email"] {
    padding: 11px 14px;
    border: 1px solid var(--htcpt-border, #e2e8f0);
    border-radius: var(--htcpt-radius-sm, 8px);
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}
.htcpt-nl-form input[type="email"]:focus {
    outline: none;
    border-color: var(--htcpt-primary);
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
}
.htcpt-nl-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    opacity: 0;
}
.htcpt-nl-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--htcpt-text-muted);
    line-height: 1.4;
    cursor: pointer;
}
.htcpt-nl-consent input { margin-top: 2px; flex-shrink: 0; }
.htcpt-nl-consent a { color: var(--htcpt-primary); }
.htcpt-nl-actions { display: flex; align-items: center; gap: 10px; }
.htcpt-nl-dismiss {
    background: none;
    border: none;
    color: var(--htcpt-text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1;
}
.htcpt-nl-dismiss:hover { color: var(--htcpt-text); background: rgba(0,0,0,0.05); }
.htcpt-nl-msg { font-size: 13px; margin: 8px 0 0; min-height: 1em; }
.htcpt-nl-msg.err { color: #c53030; }
.htcpt-nl-thanks { font-size: 14px; font-weight: 600; color: #2f855a; padding: 6px 0; }

/* ============================================================
   ABOUT / METHODE (/ueber-uns/)
   ============================================================ */
.htcpt-about-content {
    max-width: 760px;
    margin: 0 auto 32px;
    padding: 28px 30px;
    background: var(--htcpt-surface, #fff);
    border: 1px solid var(--htcpt-border, #e2e8f0);
    border-radius: var(--htcpt-radius);
    box-shadow: var(--htcpt-shadow-sm, 0 1px 3px rgba(0,0,0,0.06));
    font-size: 16px;
    line-height: 1.7;
    color: var(--htcpt-text, #2d3748);
}
.htcpt-about-content h2 {
    font-size: 21px;
    margin: 26px 0 10px;
    color: var(--htcpt-primary-dark);
}
.htcpt-about-content h2:first-child { margin-top: 0; }
.htcpt-about-content p { margin: 0 0 14px; }
.htcpt-about-content ul, .htcpt-about-content ol { padding-left: 24px; margin-bottom: 14px; }
.htcpt-about-content li { margin-bottom: 6px; }
.htcpt-about-content a { color: var(--htcpt-primary); font-weight: 600; }
.htcpt-about-content strong { color: var(--htcpt-text); }
