/*
 * IT World Typer 1.1.1 – Copyright (C) 2026 IT World GmbH
 * Nur was UIkit nicht bietet: blinkender Cursor und Ausblenden.
 * Keine Farben und Schriften, alles erbt vom Theme.
 */

/* Getippter Text: Leerzeichen beim Tippen erhalten */
.itw-typer-output {
    white-space: pre-wrap;
    transition: opacity 0.3s ease;
}

/* Ausblenden beim Wechsel (Übergang "Ausblenden") */
.itw-typer-output.itw-typer-fading {
    opacity: 0;
}

/* Cursor übernimmt Farbe und Schrift des Textes */
.itw-typer-cursor {
    display: inline-block;
    animation: itw-typer-blink 1s step-end infinite;
}

.itw-typer-cursor-bar::after { content: "|"; }
.itw-typer-cursor-underscore::after { content: "_"; }
.itw-typer-cursor-block::after { content: "\258B"; }

@keyframes itw-typer-blink {
    50% { opacity: 0; }
}

/* Weniger Bewegung gewünscht: kein Blinken, kein Überblenden */
@media (prefers-reduced-motion: reduce) {
    .itw-typer-cursor { animation: none; }
    .itw-typer-output { transition: none; }
}
