@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;600;700&family=Share+Tech+Mono&display=swap');

:root {
    --bg: #050810;
    --bg-card: rgba(10, 20, 35, 0.7);
    --border: rgba(0, 243, 255, 0.25);
    --accent: #00f3ff;
    --accent-dim: rgba(0, 243, 255, 0.15);
    --text: #e0f7ff;
    --text-dim: #7a9aa8;
    --danger: #ff4d4d;
    --success: #00ff9d;
}

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

html, body {
    width: 100%;
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    overflow: hidden;
}

body {
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 243, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 100, 255, 0.06) 0%, transparent 40%),
        linear-gradient(180deg, #050810 0%, #0a1423 100%);
}

/* Echo Show 8 Hochformat Optimierung */
body.echo-show .dashboard {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 20px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Login */
.login-screen {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background:
        radial-gradient(circle at center, rgba(0, 243, 255, 0.1) 0%, transparent 60%);
}

.login-box {
    width: 90%;
    max-width: 420px;
    padding: 48px 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.1);
}

.login-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background:
        radial-gradient(circle at center, var(--accent-dim) 0%, transparent 70%);
    box-shadow: 0 0 30px var(--accent);
    position: relative;
}

.login-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.8;
}

.login-box h1 {
    font-family: 'Share Tech Mono', monospace;
    font-size: 32px;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
}

.login-sub {
    color: var(--text-dim);
    font-size: 16px;
    margin-bottom: 32px;
}

.login-form input {
    width: 100%;
    padding: 16px;
    margin-bottom: 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 18px;
    text-align: center;
}

.login-form button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.2), rgba(0, 100, 255, 0.2));
    border: 1px solid var(--accent);
    border-radius: 10px;
    color: var(--accent);
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-form button:hover {
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.4);
}

/* Dashboard Header */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: 'Share Tech Mono', monospace;
    font-size: 24px;
    color: var(--accent);
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.6);
}

.status {
    font-size: 14px;
    color: var(--success);
    font-family: 'Share Tech Mono', monospace;
}

/* Hero: Uhrzeit + Wetter */
.hero {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 16px;
    padding: 12px 0;
}

.time-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#clock {
    font-family: 'Share Tech Mono', monospace;
    font-size: 72px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    text-shadow: 0 0 30px rgba(224, 247, 255, 0.3);
}

#date {
    font-size: 18px;
    color: var(--text-dim);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.weather-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.weather-icon {
    font-size: 52px;
}

.weather-temp {
    font-family: 'Share Tech Mono', monospace;
    font-size: 36px;
    font-weight: 700;
}

.weather-desc {
    font-size: 14px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Metrics */
.metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 14px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    opacity: 0.6;
}

.metric-label {
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.metric-value {
    font-family: 'Share Tech Mono', monospace;
    font-size: 38px;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.metric-sub {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 6px;
}

/* Calendar */
.calendar-section {
    flex: 1;
    min-height: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.calendar-section h2,
.voice-section h2 {
    font-size: 14px;
    color: var(--text-dim);
    letter-spacing: 3px;
    margin-bottom: 14px;
    font-weight: 600;
}

.calendar-list {
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calendar-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 243, 255, 0.05);
    border-radius: 10px;
    border-left: 2px solid var(--accent);
}

.calendar-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 243, 255, 0.1);
    border-radius: 8px;
    padding: 6px;
}

.calendar-day {
    font-family: 'Share Tech Mono', monospace;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

.calendar-month {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
}

.calendar-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.calendar-time {
    font-size: 13px;
    color: var(--text-dim);
    font-family: 'Share Tech Mono', monospace;
}

.calendar-empty {
    color: var(--text-dim);
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

/* Voice */
.voice-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
}

.voice-display {
    min-height: 56px;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px dashed var(--border);
    border-radius: 12px;
    color: var(--text-dim);
    font-size: 16px;
    margin-bottom: 14px;
    line-height: 1.5;
}

.voice-display.active {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.15);
}

.voice-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.15), rgba(0, 80, 255, 0.15));
    border: 2px solid var(--accent);
    border-radius: 14px;
    color: var(--accent);
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.25s ease;
}

.voice-button:hover,
.voice-button.listening {
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.4);
}

.voice-button.listening {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 20px rgba(0, 243, 255, 0.4); }
    50% { box-shadow: 0 0 50px rgba(0, 243, 255, 0.7); }
    100% { box-shadow: 0 0 20px rgba(0, 243, 255, 0.4); }
}

.mic-icon {
    font-size: 26px;
}

/* Footer */
.dashboard-footer {
    text-align: center;
    padding: 8px 0;
}

.dashboard-footer a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
}

.dashboard-footer a:hover {
    color: var(--accent);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 2px;
}

/* Mobile/Tablet allgemein */
@media (max-width: 600px) {
    .metrics {
        grid-template-columns: 1fr;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    #clock {
        font-size: 56px;
    }
}
