/* === Dach Gruß Dashboard === */

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

:root {
    --bg: #0f1117;
    --bg-card: #1a1d28;
    --bg-card-hover: #222639;
    --border: #2a2e3d;
    --text: #e4e4e7;
    --text-muted: #71717a;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --green: #22c55e;
    --yellow: #eab308;
    --red: #ef4444;
    --radius: 12px;
    --transition: 0.2s ease;
}

html { font-size: 16px; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* === Topbar === */
.topbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem;
    height: 60px;
    display: flex;
    align-items: center;
}

.topbar-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-icon { font-size: 1.5rem; }

.brand-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
}

.brand-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-left: 0.75rem;
    border-left: 1px solid var(--border);
}

/* === Dashboard === */
.dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* === Grid === */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

/* === Tile === */
.tile {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.tile:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

.tile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tile-icon {
    font-size: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: 10px;
    flex-shrink: 0;
}

.tile-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.tile-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.tile-body {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* === Tile Info Widgets === */
.tile-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: auto;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.info-label { color: var(--text-muted); }

.info-value {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Status badges */
.status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

.status-active { background: rgba(34,197,94,0.12); color: var(--green); }
.status-planned { background: rgba(234,179,8,0.12); color: var(--yellow); }
.status-offline { background: rgba(239,68,68,0.12); color: var(--red); }

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* === Coming Soon Overlay === */
.tile.coming-soon { opacity: 0.6; cursor: default; }
.tile.coming-soon:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
    background: var(--bg-card);
}

/* === Responsive === */
@media (max-width: 480px) {
    .grid { grid-template-columns: 1fr; }
    .brand-sub { display: none; }
}
