/* ── Hero: Fullwidth Centered + Gradient Waves ─────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 5% 4rem;
    position: relative;
    overflow: hidden;
    text-align: center;
    background: rgba(3, 5, 16, 0.6);
    isolation: isolate;
}

/* Network canvas — contained inside hero only */
#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

/* ── Hero: Korrektur der Gradient Waves ─────────────────────────────── */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    /* Vergrößert den Radius, damit die Ecken immer außerhalb des Viewports bleiben */
    inset: -100%; 
    /* Entferne den starken border-radius oder setze ihn auf einen Wert, 
       der weit außerhalb liegt */
    border-radius: 45%; 
    animation: waveRotate 18s linear infinite;
    pointer-events: none;
    z-index: -1; /* Hinter den Canvas/Content legen */
}

/* Die Animation anpassen, um zu starkes "Springen" zu vermeiden */
@keyframes waveRotate {
    0%   { transform: rotate(0deg) scale(1); }
    50%  { transform: rotate(180deg) scale(1.1); } /* Scale etwas reduziert */
    100% { transform: rotate(360deg) scale(1); }
}

/* Sicherstellen, dass der Canvas wirklich den kompletten Raum füllt */
#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    /* Verhindert, dass der Canvas durch Rundungen beschnitten wird */
    object-fit: cover; 
}

/* Extra floating orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: orbFloat ease-in-out infinite;
}
.hero-orb-1 {
    width: 500px; height: 500px;
    top: -100px; left: -100px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.1), transparent 70%);
    animation-duration: 12s;
}
.hero-orb-2 {
    width: 400px; height: 400px;
    bottom: -80px; right: -80px;
    background: radial-gradient(circle, rgba(255, 0, 128, 0.08), transparent 70%);
    animation-duration: 16s;
    animation-delay: -4s;
}
.hero-orb-3 {
    width: 300px; height: 300px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 102, 255, 0.07), transparent 70%);
    animation-duration: 20s;
    animation-delay: -8s;
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-30px) scale(1.05); }
}

/* ── Hero Content ────────────────────────────────────────────────────────────── */
.hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.hero-content {
    width: 100%;
    animation: heroFadeUp 1s ease-out both;
    text-align: center;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-label {
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: block;
    letter-spacing: 0.1em;
    opacity: 0.8;
    text-align: center;
}

.hero h1 {
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--light) 30%, var(--gray));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroFadeUp 1s 0.1s ease-out both;
}

.hero-highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5ch; /* Erzeugt einen festen Abstand (1 Leerzeichen) */
    flex-wrap: wrap; /* Verhindert Umbruch-Probleme auf Handy */
}

.static-text {
    flex-shrink: 0; /* Der Text davor darf nicht schrumpfen */
}
/* ── Typing Text ohne Cursor-Strich ────────────────────────────────── */
.typing-text {
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
    
    /* Der Strich (Cursor) wurde hier entfernt */
    border-right: none; 
    padding-right: 0;
    
    /* Falls du die Animation 'cursorBlink' noch im CSS hast, 
       kannst du diese Zeile hier löschen oder auskommentieren: */
    animation: none; 

    /* Behalte deine funktionierenden Stabilitäts-Einstellungen bei: */
    display: inline-block;
    text-align: left;
    vertical-align: bottom;
}

/* Die Keyframes kannst du komplett aus deinem CSS löschen, 
   da sie nicht mehr gebraucht werden */
@keyframes cursorBlink {
    0%, 100% { border-color: var(--primary); }
    50% { border-color: transparent; }
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    justify-content: center;
    animation: heroFadeUp 1s 0.35s ease-out both;
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero h1 { font-size: 4.5rem; }
    .hero-orb-1 { width: 350px; height: 350px; }
    .hero-orb-2 { width: 280px; height: 280px; }
}

@media (max-width: 768px) {
    .hero { padding: 7rem 5% 3rem; min-height: auto; }
    .hero h1 { font-size: 3rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .typing-text { min-width: 180px; }
    .hero-cta { flex-direction: column; gap: 1rem; align-items: center; }
    .btn { width: 100%; max-width: 300px; justify-content: center; }
    .hero-orb-1 { width: 250px; height: 250px; }
    .hero-orb-2 { width: 200px; height: 200px; }
    .hero-orb-3 { display: none; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.4rem; }
    .hero-label { font-size: 0.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .typing-text { min-width: 150px; }
}