@font-face { font-family: 'Inter'; font-style: normal; font-weight: 200 600; font-display: optional; src: url('/fonts/inter-latin.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 300 500; font-display: optional; src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2'); }

:root {
    --bg: #060607;
    --fg: #ffffff;
    --dim: #b6b6c0;
    --dimmer: #8b8b93;
    --line: rgba(255, 255, 255, 0.14);
    --accent: #7c8cff;
    --accent-strong: #93a0ff;
    --accent-soft: rgba(124, 140, 255, 0.18);
    --violet: #c084fc;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--fg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.shell { max-width: 760px; margin: 0 auto; padding: 24px 22px 60px; }

/* Kopfzeile */
.top {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 4px 22px; border-bottom: 1px solid var(--line); margin-bottom: 28px;
    flex-wrap: wrap; gap: 12px;
}
.brand { font-size: 1.05rem; font-weight: 500; letter-spacing: -0.01em; }
.brand span { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dimmer); font-weight: 400; margin-left: 10px; }
.top-right { display: flex; align-items: center; gap: 12px; }
.usage { font-family: var(--mono); font-size: 0.72rem; color: var(--dimmer); }

.btn-plain {
    font-family: var(--mono); font-size: 0.8rem; color: var(--dim);
    background: none; border: 1px solid var(--line); border-radius: 8px;
    padding: 10px 16px; cursor: pointer; min-height: 44px;
}
.btn-plain:hover { color: var(--fg); border-color: var(--accent); }

/* Ansichten */
.view { display: none; }
.view.active { display: block; }

/* Anmeldung */
.login-card { text-align: center; padding-top: 6vh; }
.login-card h1 { font-size: 1.7rem; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 14px; }
.login-card p.lede { color: var(--dim); font-size: 1.05rem; line-height: 1.6; margin-bottom: 34px; }
.field { text-align: left; margin-bottom: 18px; }
.field label { display: block; font-family: var(--mono); font-size: 0.78rem; color: var(--dim); margin-bottom: 8px; }
.field input {
    width: 100%; font-size: 1.15rem; font-family: var(--sans);
    background: rgba(255,255,255,0.05); color: var(--fg);
    border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; min-height: 60px;
}
.field input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.btn-big {
    font-family: var(--sans); font-size: 1.15rem; font-weight: 500;
    background: var(--fg); color: var(--bg); border: none; border-radius: 12px;
    padding: 18px 34px; min-height: 64px; cursor: pointer; width: 100%;
}
.btn-big:hover { background: var(--accent-strong); color: #fff; }
.btn-big:disabled { opacity: 0.55; cursor: default; }
.google-note { margin-top: 26px; font-size: 0.92rem; color: var(--dimmer); line-height: 1.6; }
.google-note strong { color: var(--dim); font-weight: 500; }

/* Assistent */
.canvas-wrap { position: relative; width: 220px; height: 220px; margin: 0 auto 26px; }
.canvas-wrap canvas { width: 100%; height: 100%; display: block; }
.canvas-ring { position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 50%; }

.greeting { text-align: center; font-size: 1.35rem; font-weight: 400; line-height: 1.5; margin-bottom: 30px; }

.mic-row { display: flex; justify-content: center; margin-bottom: 18px; }
.mic-btn {
    width: 128px; height: 128px; border-radius: 50%;
    background: var(--fg); color: var(--bg); border: none; cursor: pointer;
    font-family: var(--sans); font-size: 1.05rem; font-weight: 600;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.mic-btn:hover { background: var(--accent-strong); color: #fff; }
.mic-btn.listening { background: var(--accent); color: #fff; animation: pulse 1.6s ease-in-out infinite; }
.mic-btn .mic-label { font-size: 0.78rem; font-family: var(--mono); font-weight: 400; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(124,140,255,0.5);} 50% { box-shadow: 0 0 0 22px rgba(124,140,255,0);} }

.status { text-align: center; font-size: 1.05rem; color: var(--dim); min-height: 30px; margin-bottom: 26px; }

.answer {
    background: rgba(255,255,255,0.045); border: 1px solid var(--line); border-radius: 14px;
    padding: 26px 26px; font-size: 1.3rem; line-height: 1.65; margin-bottom: 22px;
}
.answer:empty { display: none; }

.controls { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 26px; }
.controls .btn-plain { font-size: 0.9rem; padding: 14px 20px; min-height: 54px; }
.controls .btn-plain.on { color: var(--accent-strong); border-color: var(--accent); }

.write-row { display: flex; gap: 12px; margin-bottom: 30px; }
.write-row input {
    flex: 1; font-size: 1.1rem; font-family: var(--sans); color: var(--fg);
    background: rgba(255,255,255,0.05); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; min-height: 58px;
}
.write-row input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.write-row button {
    font-family: var(--sans); font-size: 1.05rem; font-weight: 500; color: var(--bg); background: var(--fg);
    border: none; border-radius: 10px; padding: 14px 22px; min-height: 58px; cursor: pointer;
}
.write-row button:hover { background: var(--accent-strong); color: #fff; }

.feedback { text-align: center; border-top: 1px solid var(--line); padding-top: 24px; }
.feedback .fb-label { font-family: var(--mono); font-size: 0.75rem; color: var(--dimmer); margin-bottom: 14px; }
.feedback .fb-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.error { text-align: center; color: #ffb4b4; border: 1px solid rgba(255,120,120,0.4); border-radius: 10px; padding: 16px; font-size: 1rem; line-height: 1.5; margin-bottom: 22px; }
.error:empty { display: none; }

.foot { text-align: center; font-family: var(--mono); font-size: 0.68rem; color: var(--dimmer); margin-top: 40px; }

@media (max-width: 560px) {
    .shell { padding: 16px 14px 48px; }
    .mic-btn { width: 112px; height: 112px; }
    .answer { font-size: 1.18rem; padding: 20px; }
    .greeting { font-size: 1.2rem; }
}
