/* ============================================================
   Hero Section – Modern IT-Company Look
   ============================================================ */

.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #020617;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Animierter Canvas-Hintergrund ── */
.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ── Nebel-Overlays ── */
.hero-nebula {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    filter: blur(80px);
    opacity: 0;
    animation: heroNebulaPulse 8s ease-in-out infinite;
}

.hero-nebula--blue {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.28) 0%, transparent 70%);
    top: -150px;
    left: -100px;
    animation-delay: 0s;
    animation-duration: 10s;
}

.hero-nebula--purple {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.22) 0%, transparent 70%);
    bottom: -100px;
    right: -80px;
    animation-delay: 3s;
    animation-duration: 12s;
}

.hero-nebula--cyan {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, transparent 70%);
    top: 40%;
    left: 60%;
    animation-delay: 6s;
    animation-duration: 9s;
}

@keyframes heroNebulaPulse {
    0% {
        opacity: 0;
        transform: scale(0.92) translate(0px, 0px);
    }

    25% {
        opacity: 1;
        transform: scale(1.05) translate(10px, -8px);
    }

    50% {
        opacity: 0.7;
        transform: scale(0.98) translate(-6px, 12px);
    }

    75% {
        opacity: 1;
        transform: scale(1.08) translate(5px, -5px);
    }

    100% {
        opacity: 0;
        transform: scale(0.92) translate(0px, 0px);
    }
}

/* ── Grid-Overlay (subtiles Raster) ── */
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
    animation: heroGridDrift 20s linear infinite;
}

@keyframes heroGridDrift {
    0% {
        background-position: 0 0, 0 0;
    }

    100% {
        background-position: 60px 60px, 60px 60px;
    }
}

/* ============================================================
   Light Mode – data-theme="light"
   ============================================================ */
[data-theme="light"] .hero-section {
    background: #f8fafc;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .hero-nebula--blue {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.10) 0%, transparent 70%);
}

[data-theme="light"] .hero-nebula--purple {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
}

[data-theme="light"] .hero-nebula--cyan {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.06) 0%, transparent 70%);
}

[data-theme="light"] .hero-grid-overlay {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

[data-theme="light"] .hero-title {
    color: #0f172a;
}

[data-theme="light"] .hero-subtitle {
    color: #475569;
}

[data-theme="light"] .hero-logo {
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.25));
}

[data-theme="light"] .hero-btn-secondary {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #0f172a;
}

[data-theme="light"] .hero-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.15);
    color: #0f172a;
}

[data-theme="light"] .hero-terminal-window {
    background: rgba(248, 250, 252, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .hero-terminal-header {
    background: rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .hero-terminal-body {
    color: #1e293b;
}

[data-theme="light"] .hero-terminal-line .kw {
    color: #2563eb;
}

[data-theme="light"] .hero-terminal-line .tp {
    color: #059669;
}

[data-theme="light"] .hero-terminal-line .str {
    color: #b45309;
}

[data-theme="light"] .hero-terminal-line .cm {
    color: #6b7280;
}

[data-theme="light"] .hero-terminal-line .num {
    color: #7c3aed;
}

[data-theme="light"] .hero-terminal-line .mt {
    color: #d97706;
}

[data-theme="light"] .hero-terminal-line .op {
    color: #1e293b;
}

[data-theme="light"] .hero-terminal-line .out {
    color: #059669;
}

[data-theme="light"] .hero-terminal-cursor {
    background: #2563eb;
}

/* ── Reduced-Motion: Animationen deaktivieren ── */
@media (prefers-reduced-motion: reduce) {

    .hero-nebula,
    .hero-grid-overlay {
        animation: none;
        opacity: 0.5;
    }
}

/* ── Hero Content ── */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-8, 2rem);
    max-width: 900px;
}

.hero-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6, 1.5rem);
    display: block;
    animation: heroFadeInUp 0.6s ease both;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.15));
}

.hero-title {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: var(--tracking-tight, -0.025em);
    color: #f8fafc;
    margin-bottom: var(--space-6, 1.5rem);
    animation: heroFadeInUp 0.6s ease 0.1s both;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #94a3b8;
    max-width: 640px;
    margin: 0 auto var(--space-8, 2rem);
    line-height: var(--leading-relaxed, 1.625);
    animation: heroFadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4, 1rem);
    justify-content: center;
    animation: heroFadeInUp 0.6s ease 0.3s both;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2, 0.5rem);
    padding: var(--space-3, 0.75rem) var(--space-6, 1.5rem);
    border-radius: var(--radius-lg, 0.75rem);
    background: var(--color-accent, #3b82f6);
    color: #fff;
    font-weight: var(--font-semibold, 600);
    font-size: var(--text-base, 1rem);
    text-decoration: none;
    transition: all var(--transition-base, 250ms ease);
    border: none;
    cursor: pointer;
}

.hero-btn-primary:hover {
    background: var(--color-accent-hover, #2563eb);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow, 0 0 20px rgba(59, 130, 246, 0.15));
    color: #fff;
    text-decoration: none;
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2, 0.5rem);
    padding: var(--space-3, 0.75rem) var(--space-6, 1.5rem);
    border-radius: var(--radius-lg, 0.75rem);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    font-weight: var(--font-medium, 500);
    font-size: var(--text-base, 1rem);
    text-decoration: none;
    transition: all var(--transition-base, 250ms ease);
    cursor: pointer;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    color: #f8fafc;
    text-decoration: none;
}

/* ── Typewriter Code Terminal ── */
.hero-terminal {
    position: relative;
    z-index: 2;
    margin-top: var(--space-8, 2rem);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    animation: heroFadeInUp 0.6s ease 0.4s both;
}

.hero-terminal-window {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    text-align: left;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.hero-terminal-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.hero-terminal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.hero-terminal-dot:nth-child(1) {
    background: #ef4444;
}

.hero-terminal-dot:nth-child(2) {
    background: #f59e0b;
}

.hero-terminal-dot:nth-child(3) {
    background: #10b981;
}

.hero-terminal-body {
    padding: 0.75rem 1rem;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    color: #d4d4d4;
    min-height: 100px;
}

.hero-terminal-line {
    white-space: pre;
    min-height: 1.3em;
}

.hero-terminal-line .kw {
    color: #569cd6;
}

.hero-terminal-line .tp {
    color: #4ec9b0;
}

.hero-terminal-line .str {
    color: #ce9178;
}

.hero-terminal-line .cm {
    color: #6a9955;
}

.hero-terminal-line .num {
    color: #b5cea8;
}

.hero-terminal-line .mt {
    color: #dcdcaa;
}

.hero-terminal-line .op {
    color: #d4d4d4;
}

.hero-terminal-line .out {
    color: #4ec9b0;
}

.hero-terminal-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #569cd6;
    margin-left: 2px;
    animation: heroBlink 0.8s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes heroBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
    }

    .hero-logo {
        width: 60px;
        height: 60px;
    }

    .hero-terminal {
        max-width: 100%;
    }

    .hero-terminal-body {
        font-size: 0.7rem;
        padding: 0.6rem 0.75rem;
    }
}