/* Shared base styles for die-loesung.eu — used by all pages */

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    background-color: #0f172a;
    color: #e2e8f0;
}

.font-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #1e293b; }
::-webkit-scrollbar-thumb { background: var(--accent, #3b82f6); border-radius: 4px; }

/* Nav */
.glass-panel {
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hero background: page sets --accent-a / --accent-b / --hero-bg */
.hero-gradient {
    background: radial-gradient(circle at top right, var(--accent-a, rgba(59,130,246,0.10)) 0%, transparent 45%),
                radial-gradient(circle at bottom left, var(--accent-b, rgba(16,185,129,0.08)) 0%, transparent 45%),
                var(--hero-bg, #f5f5f7);
}

/* Tech / topic cards */
.tech-card {
    transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), border-color 0.45s ease, box-shadow 0.45s ease;
}
.tech-card:hover {
    transform: translateY(-8px) scale(1.015);
    border-color: var(--accent, #3b82f6);
    box-shadow: 0 24px 48px -20px rgba(0,0,0,0.5);
}

.topic-section { position: relative; overflow: hidden; }
.topic-icon { transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.topic-section:hover .topic-icon { transform: scale(1.08) translateY(-4px); }
.topic-link { transition: gap 0.3s ease, opacity 0.3s ease; }
.topic-link:hover { gap: 0.75rem; opacity: 0.85; }

/* Scroll fade-in */
.fade-target {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.fade-target.in-view { opacity: 1; transform: translateY(0); }

/* Alert / modal (used on maschinendaten.html) */
@keyframes pulse-red-border {
    0%, 100% { border-color: rgba(239, 68, 68, 0.5); background-color: rgba(239, 68, 68, 0.05); }
    50% { border-color: rgba(239, 68, 68, 1); background-color: rgba(239, 68, 68, 0.2); }
}
.alert-blinking {
    animation: pulse-red-border 2s infinite ease-in-out;
    will-change: border-color, background-color;
}
.modal {
    transition: opacity 0.2s ease-in-out;
    opacity: 0;
    pointer-events: none;
}
.modal.active { opacity: 1; pointer-events: auto; }
