/* =========================
   Variables & Reset
   ========================= */
   :root {
    --color-bg: #080808;
    --color-text: #ECECE5;
    --color-accent: #2A2A2A;
    --color-border-light: #333;
    --color-green: #00FF41;
    --color-red: #FF3333; /* NEU: Alarm/Offline Farbe */
    
    --font-display: 'Unbounded', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --padding-safe: 2rem;
    --max-width: 1400px;
    
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-reveal: cubic-bezier(0.2, 1, 0.3, 1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background-color: var(--color-bg);
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    position: relative;
    margin: 0;
}

/* Noise Texture Overlay */
.noise-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48ZmlsdGVyIGlkPSJub2lzZSI+PGZlVHVyYnVsZW5jZSB0eXBlPSJmcmFjdGFsTm9pc2UiIGJhc2VGcmVxdWVuY3k9IjAuNjUiIG51bU9jdGF2ZXM9IjMiIHN0aXRjaFRpbGVzPSJzdGl0Y2giLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWx0ZXI9InVybCgjbm9pc2UpIiBvcGFjaXR5PSIxIi8+PC9zdmc+');
}

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

/* =========================
   Global Typography & Utilities
   ========================= */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    margin: 0;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

.wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
}

.section-padding {
    padding: 6rem var(--padding-safe);
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    font-size: 1rem;
    color: #666;
    margin-bottom: 3rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--color-accent);
    padding-bottom: 1rem;
    display: inline-block;
}

/* =========================
   Background Animation (Infinity Loop)
   ========================= */
.loop-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0; 
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.infinity-svg {
    width: 90vw;
    height: 90vh;
    max-width: 1000px;
    opacity: 0.5;
}

.loop-track {
    fill: none;
    stroke: #2A2A2A;
    stroke-width: 1px;
}

.loop-pulse {
    fill: none;
    stroke: #ECECE5; 
    animation: pulseSystem 4s ease-in-out infinite;
}

@keyframes pulseSystem {
    0%, 100% {
        opacity: 0.1;
        stroke-width: 1px;
        filter: drop-shadow(0 0 0 transparent);
    }
    50% {
        opacity: 0.6;
        stroke-width: 2px;
        filter: drop-shadow(0 0 10px rgba(236, 236, 229, 0.5));
    }
}

.grid-overlay {
    position: absolute; inset: 0;
    background-image: 
        linear-gradient(var(--color-accent) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-accent) 1px, transparent 1px);
    background-size: 100px 100px; opacity: 0.05;
    z-index: -1;
}

/* =========================
   Navigation (Solid Black)
   ========================= */
.glass-nav {
    position: fixed;
    top: -100px;
    left: 0;
    width: 100%;
    z-index: 10000;
    background-color: #080808 !important; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: top 0.5s var(--ease-out-expo);
    padding: 1rem var(--padding-safe);
}

.glass-nav.active { top: 0; }

.nav-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-links { display: none; gap: 2rem; }
.nav-links a { font-size: 0.9rem; color: #999; transition: color 0.3s; }
.nav-links a:hover { color: var(--color-text); }

.nav-cta {
    border: 1px solid var(--color-text);
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: all 0.3s;
}

.nav-cta:hover { background: var(--color-text); color: var(--color-bg); }
@media(min-width: 768px) { .nav-links { display: flex; } }

/* =========================
   Hero Section & STATUS PILL
   ========================= */

.hero-section {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--padding-safe);
    max-width: var(--max-width);
    margin: 0 auto;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
}

.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Wichtig: Oben ausrichten, nicht mittig verzerren */
    padding-top: 1rem;
    gap: 1rem; /* Sicherheitspadding zwischen Logo und Button */
}
.logo-display {
    display: flex;
    flex-direction: column; /* Zwingt EST. 2025 unter LINKLOOPS */
    align-items: flex-start;
    line-height: 1;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
}
.logo-meta {
    font-size: 0.65rem; /* Etwas kleiner für Eleganz */
    color: #666;
    margin-left: 2px; /* Kleiner optischer Ausgleich */
    margin-top: 4px; /* Abstand nach oben zum Logo */
    letter-spacing: 0.05em;
}

.status-pill {
    display: flex; align-items: center; gap: 0.5rem;
    border: 1px solid var(--color-accent);
    padding: 0.5rem 1rem; border-radius: 100px;
}
.status-light {
    width: 6px; height: 6px; background: var(--color-green);
    border-radius: 50%; box-shadow: 0 0 8px var(--color-green);
}
.status-text { font-family: var(--font-display); font-size: 0.7rem; color: var(--color-green); letter-spacing: 0.1em;}

/* NEU: OFFLINE STATUS STYLES (ROT) */
.status-pill.offline {
    border-color: var(--color-red);
}
.status-pill.offline .status-light {
    background: var(--color-red);
    box-shadow: 0 0 8px var(--color-red);
    animation: pulseRed 2s infinite;
}
.status-pill.offline .status-text {
    color: var(--color-red);
}
.p-status.offline {
    background: var(--color-red);
    box-shadow: 0 0 5px var(--color-red);
}

@keyframes pulseRed {
    0% { opacity: 1; box-shadow: 0 0 5px var(--color-red); }
    50% { opacity: 0.5; box-shadow: 0 0 0 var(--color-red); }
    100% { opacity: 1; box-shadow: 0 0 5px var(--color-red); }
}

.hero-center { text-align: center; margin-top: auto; margin-bottom: auto;}
.headline { font-size: clamp(2.5rem, 7vw, 6rem); line-height: 1.1; text-transform: uppercase; font-weight: 600; margin-bottom: 1.5rem;}
.headline .indent { display: block; opacity: 0.7; font-weight: 300; }
.sub-headline { max-width: 500px; margin: 0 auto; color: #999; line-height: 1.6; }
.hero-actions { margin-top: 2.5rem; }

.btn-primary {
    display: inline-block;
    background-color: var(--color-text);
    color: var(--color-bg);
    padding: 1rem 2rem;
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid var(--color-text);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 0.9rem;
}
.btn-primary:hover { background-color: transparent; color: var(--color-text); box-shadow: 0 0 15px rgba(236, 236, 229, 0.1); }

.scroll-indicator {
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
    font-size: 0.7rem; letter-spacing: 0.2em; color: #666;
    margin-bottom: 2rem;
}
.scroll-indicator .line { width: 1px; height: 40px; background: #333; }

/* =========================
   Services (Bento Grid)
   ========================= */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.bento-card {
    background: #000;
    border: 1px solid var(--color-border-light);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.4s ease;
}

.card-bg-grid {
    position: absolute; inset: 0;
    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: 40px 40px;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

.card-content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; }

.bento-card h3 { font-size: 2rem; margin-bottom: 1rem; font-weight: 600; }
.bento-card p { color: #888; font-size: 0.95rem; line-height: 1.5; transition: color 0.4s;}
.card-icon { font-size: 2rem; margin-top: auto; align-self: flex-end; font-family: var(--font-display); }

.bento-card:hover {
    transform: scale(1.02);
    border-color: var(--color-green);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
    z-index: 2;
}
.bento-card:hover .card-bg-grid { opacity: 1; }

@media (min-width: 768px) {
    .bento-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 300px; }
    .bento-card.large { grid-row: span 2; }
}

/* =========================
   Tech Stack (Marquee)
   ========================= */
.marquee-section {
    padding: 4rem 0;
    background: #050505;
    border-top: 1px solid var(--color-accent);
    border-bottom: 1px solid var(--color-accent);
    overflow: hidden;
}

.marquee-track {
    display: flex; width: max-content; 
    gap: 8rem;
    animation: scroll 30s linear infinite;
}

.marquee-content {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    -webkit-text-stroke: 0;
    opacity: 0.8;
    white-space: nowrap;
}

@keyframes scroll { to { transform: translateX(-50%); } }

/* =========================
   Growth (Protocol Grid)
   ========================= */
.protocol-grid {
    display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media(min-width: 768px) { .protocol-grid { grid-template-columns: 1fr 1fr; } }

.protocol-card {
    background: #0A0A0A; border-top: 1px solid var(--color-green);
    padding: 2rem; display: flex; flex-direction: column;
    position: relative; transition: all 0.3s ease;
}
.protocol-card:hover { background: #111; transform: translateY(-5px); }

.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.p-number { font-family: var(--font-display); color: #444; font-size: 1.5rem; }
.p-status {
    width: 6px; height: 6px; background: var(--color-green);
    border-radius: 50%; box-shadow: 0 0 5px var(--color-green);
    opacity: 0; transition: opacity 0.3s;
}
.protocol-card:hover .p-status { opacity: 1; }
.p-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--color-text); }
.p-desc { color: #777; font-size: 0.9rem; margin-bottom: 2rem; }
.p-arrow {
    margin-top: auto; font-family: var(--font-display); color: var(--color-green);
    opacity: 0; transform: translateX(-10px); transition: all 0.3s ease;
}
.protocol-card:hover .p-arrow { opacity: 1; transform: translateX(0); }

/* =========================
   Process (Sidebar + Timeline)
   ========================= */
.blueprint-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media(min-width: 900px) {
    .blueprint-layout { grid-template-columns: 2fr 1fr; }
}

/* Left: Timeline */
.timeline-container {
    position: relative; padding-left: 2rem;
    display: flex; flex-direction: column; gap: 6rem;
}
.timeline-line {
    position: absolute; left: 7px; top: 0; bottom: 0;
    width: 2px; background: #222;
}
.timeline-fill {
    position: absolute; top: 0; left: 0; width: 100%; height: 0%;
    background: var(--color-green); box-shadow: 0 0 10px var(--color-green);
    transition: height 0.1s linear;
}
.timeline-step { position: relative; padding-left: 3rem; }
.step-dot {
    position: absolute; left: -2rem; top: 0.4rem;
    width: 16px; height: 16px; background: var(--color-bg);
    border: 2px solid #444; border-radius: 50%; z-index: 2;
    transition: border-color 0.3s;
}
.timeline-step:hover .step-dot { border-color: var(--color-green); }
.huge-number {
    position: absolute; top: -2.5rem; left: 0;
    font-family: var(--font-display); font-weight: 800; font-size: 8rem;
    color: #111; z-index: 0; line-height: 1; user-select: none; pointer-events: none;
}
.step-content { position: relative; z-index: 1; }
.step-content h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.step-content p { color: #888; font-size: 0.9rem; }

/* Right: Sticky Sidebar */
.sidebar-philosophy {
    display: block; 
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #222;
    position: relative; 
}

@media(min-width: 900px) {
    .sidebar-philosophy { 
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }
    .sticky-wrapper {
        position: sticky;
        top: 150px;
        border-left: 1px solid #222;
        padding-left: 2rem;
    }
}

.sidebar-title { font-size: 1rem; color: #666; letter-spacing: 0.1em; margin-bottom: 1rem; font-weight: 600; }
.sidebar-text { font-size: 1.1rem; line-height: 1.6; color: #888; }

/* =========================
   Contact & Footer
   ========================= */
.contact-section {
    min-height: 100vh; display: flex; flex-direction: column;
    justify-content: space-between; padding: var(--padding-safe);
    max-width: var(--max-width); margin: 0 auto;
}
.contact-grid {
    flex-grow: 1; display: grid; grid-template-columns: 1fr;
    align-items: center; gap: 4rem; padding: 4rem 0;
}
@media(min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-headline { font-size: clamp(3rem, 5vw, 5rem); line-height: 1; margin-bottom: 2rem; }
.contact-sub { color: #666; font-size: 1.1rem; }

/* Brutalist Form */
.minimal-form { display: flex; flex-direction: column; gap: 2rem; }
.form-group input {
    width: 100%; background: transparent; border: none;
    border-bottom: 1px solid #333;
    padding: 0 1rem;
    height: 4rem; 
    color: var(--color-text);
    font-family: var(--font-display);
    font-size: 1.5rem; 
    outline: none; transition: all 0.3s;
}
.form-group input:focus {
    border-bottom: 3px solid var(--color-green);
}
.form-group input::placeholder { color: #333; }

.btn-submit {
    background: transparent; border: 1px solid var(--color-text); color: var(--color-text);
    padding: 1.2rem 2rem; text-transform: uppercase; font-family: var(--font-display);
    cursor: pointer; display: flex; justify-content: space-between;
    transition: all 0.3s; margin-top: 1rem;
}
.btn-submit:hover { background: var(--color-text); color: var(--color-bg); }

/* Expanded Footer */
.site-footer {
    display: grid; grid-template-columns: 1fr; gap: 2rem;
    border-top: 1px solid #333; padding-top: 3rem; padding-bottom: 1rem;
    font-size: 0.9rem; color: #666;
}
@media(min-width: 768px) {
    .site-footer { grid-template-columns: 1fr 1fr 1fr; }
}

.footer-logo { font-family: var(--font-display); font-weight: 700; color: var(--color-text); font-size: 1.2rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.5rem; }
.socials a, .footer-col a { transition: color 0.3s; width: max-content;}
.socials a:hover, .footer-col a:hover { color: var(--color-text); }

/* =========================
   Animation Classes
   ========================= */
.reveal-element {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.8s var(--ease-reveal), transform 0.8s var(--ease-reveal);
}
.reveal-element.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }