*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    --font-sans: "Segoe UI", "Helvetica Neue", Arial, system-ui, -apple-system, "Noto Sans", "Liberation Sans", sans-serif;

    --bg: #0d1117;
    --surface: #161b22;     /* Karten / Panels / Inputs */
    --text: #e6edf3;
    --muted: #8b949e;       /* Sekundärtext / Placeholder */
    --border: #30363d;
    --accent: #3b82f6;      /* Fokus / Primäraktion (blau) */
    --accent-contrast: #0b1220;

    --type-duration: 1.6s;
    --type-delay: 0.3s;
    --caret-speed: 1s;
    --caret-w:      0.65ch;  /* Breite des Block-Cursors */
    --caret-r:      2px;     /* Abrundung */

}

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);  /* aus deiner vorherigen Definition */
    margin: 0;
    height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    overflow: hidden;
    font-size: 16px;
    line-height: 1.5;
}

/* Form Controls sollen die Schrift erben */
button, input, select, textarea {
    font: inherit;
}

.page {
    height: 100dvh;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 3vw, 2rem);
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}


.brand {
    font-family: var(--font-mono);
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
}

.caret{
    display:inline-block;
    height:1em;             /* an Zeilenhöhe koppeln */
    background: var(--text, currentColor);
    border-radius:2px;
    margin-left: 0;        /* vorher 0.15ch */
    width: 0.6ch;          /* optional: etwas schmaler, wirkt präziser */

    transform: translateY(0.08em);
}

/* Blink-Animation wird per JS erst NACH dem Tippen aktiviert */
.caret.blink{ animation: caret-blink 1s step-end infinite; }

@keyframes caret-blink { 50% { opacity: 0; } }

/* Motion-Preference: Tippen überspringen */
@media (prefers-reduced-motion: reduce){
    .caret.blink{ animation-duration: 1.4s; }
}


form {
    margin: 0;
}

label {
    display: block;
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.input {
    width: 100%;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    outline: none;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.input::placeholder { color: var(--muted); }

.input:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
}

.button {
    width: 100%;
    background: var(--accent);
    color: white;
    border: 1px solid color-mix(in srgb, var(--accent) 70%, black);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 60ms ease, filter 120ms ease;
}

.button:hover { filter: brightness(1.03); }
.button:active { transform: translateY(1px); }
.button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent);
}

.stack > * + * { margin-top: 0.75rem; }
.row { display: grid; gap: 0.75rem; }


