:root {
    --bg:        #09090F;
    --bg-alt:    #0D0E18;
    --bg-card:   #0F1020;
    --accent:    #5BFFC0;
    --accent-lo: rgba(91, 255, 192, 0.09);
    --txt:       #EEEEF8;
    --muted:     #6B6B84;
    --border:    rgba(255, 255, 255, 0.055);
    --border-hi: rgba(91, 255, 192, 0.28);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--txt);
    overflow-x: hidden;
    margin: 0;
}

/* Subtle noise grain over everything */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.028;
    pointer-events: none;
    z-index: 9000;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 2px; }

/* ─── NAV ─── */
nav {
    transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
    border-bottom: 1px solid transparent;
}
.nav-transparent { background: transparent; }
.nav-solid {
    background: rgba(9, 9, 15, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom-color: var(--border);
}

.nav-logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
    color: var(--txt) !important;
    text-decoration: none;
}

.nav-link {
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted) !important;
    text-decoration: none;
    transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--accent) !important; }

/* ─── HERO ─── */
.hero-bg { position: relative; overflow: hidden; }
.hero-video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.42) saturate(0.6);
}
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(
        160deg,
        rgba(9,9,15,0.15) 0%,
        rgba(9,9,15,0.55) 50%,
        rgba(9,9,15,0.97) 100%
    );
}
.hero-content { position: relative; z-index: 2; }

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 2.25rem;
}
.hero-eyebrow::before {
    content: ''; display: block;
    width: 36px; height: 1px; background: var(--accent);
}

.hero-headline {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(2.9rem, 8.5vw, 7.5rem);
    line-height: 1.0;
    letter-spacing: -0.04em;
    color: var(--txt);
    min-height: 2em;
    white-space: nowrap;
}
.hero-headline em {
    font-style: normal;
    color: var(--accent);
}

.hero-sub {
    font-weight: 300; font-size: 1.05rem; line-height: 1.75;
    color: rgba(238,238,248,0.52); max-width: 460px;
    margin-top: 1.75rem; margin-bottom: 2.75rem;
}

/* ─── BUTTON ─── */
.btn-accent {
    display: inline-block;
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--bg); background: var(--accent);
    padding: 0.9rem 2.4rem; border-radius: 4px;
    border: none; cursor: pointer; text-decoration: none;
    transition: box-shadow 0.4s ease, opacity 0.2s ease, transform 0.2s ease;
    position: relative;
}
.btn-accent:hover {
    box-shadow:
        0 0  8px  3px rgba(180, 255, 225, 0.50),
        0 0 22px  8px rgba(120, 255, 210, 0.36),
        0 0 55px 15px rgba(91,  255, 192, 0.22);
    opacity: 0.95;
    transform: translateY(-2px);
}

/* Hero CTA variant — larger, glowing, animated */
.btn-accent--hero {
    padding: 1.2rem 3.3rem;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: none;
    color: #0d1a10;
    overflow: hidden;
    box-shadow: 0 0 14px rgba(91, 255, 192, 0.12), 0 4px 20px rgba(0,0,0,0.32);
    animation: hero-btn-pulse 3s ease-in-out infinite;
    transition: box-shadow 0.4s ease, transform 0.2s ease, opacity 0.2s ease;
}
.btn-accent--hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent           0%,
        rgba(255,255,255,0.62) 50%,
        transparent           100%
    );
    transform: translateX(-180%);
    animation: hero-btn-shine 6.5s ease-in-out infinite;
    pointer-events: none;
}
.btn-accent--hero:hover {
    animation: none;
    box-shadow:
        0 0  10px  3px rgba(180, 255, 225, 0.51),
        0 0  35px  9px rgba(120, 255, 210, 0.39),
        0 0  90px 17px rgba(91,  255, 192, 0.26),
        0 0 160px 30px rgba(91,  255, 192, 0.12),
        0 8px 36px      rgba(0,    0,   0, 0.45);
    opacity: 1;
    transform: translateY(-3px);
}
@keyframes hero-btn-pulse {
    0%, 100% { box-shadow: 0 0 14px rgba(91, 255, 192, 0.12), 0 4px 20px rgba(0,0,0,0.32); }
    50%       { box-shadow: 0 0 28px rgba(91, 255, 192, 0.22), 0 4px 20px rgba(0,0,0,0.32); }
}
@keyframes hero-btn-shine {
    0%   { transform: translateX(-180%); }
    40%  { transform: translateX(260%); }
    100% { transform: translateX(260%); }
}

.btn-ghost {
    display: inline-block;
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--txt); background: transparent;
    padding: 0.85rem 2rem;
    border: 1px solid var(--border);
    border-radius: 4px; cursor: pointer; text-decoration: none;
    transition: border-color 0.25s, color 0.25s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ─── SECTION LABELS ─── */
.section-tag {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem; letter-spacing: 0.24em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 1.5rem;
}
.section-tag::after {
    content: ''; display: block;
    width: 36px; height: 1px; background: var(--accent); opacity: 0.5;
}

.section-heading {
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    letter-spacing: -0.025em; line-height: 1.15; color: var(--txt);
}

.h-rule {
    width: 100%; height: 1px;
    background: var(--border); margin-bottom: 3.5rem;
}

/* ─── SERVICE CARDS ─── */
.svc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--border);
}
@media (min-width: 640px) {
    .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .svc-grid { grid-template-columns: repeat(3, 1fr); }
}

.svc-card {
    background: var(--bg-alt);
    padding: 2.75rem 2.5rem;
    position: relative; overflow: hidden;
    transition: background 0.3s, transform 0.35s cubic-bezier(0.23,1,0.32,1);
}
.svc-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: var(--accent);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.23,1,0.32,1);
}
.svc-card:hover { background: var(--bg-card); transform: translateY(-3px); }
.svc-card:hover::before { transform: scaleX(1); }

.svc-num {
    position: absolute; top: 2rem; right: 2rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem; letter-spacing: 0.12em; color: var(--muted);
}

.svc-icon {
    width: 44px; height: 44px; margin-bottom: 1.75rem;
    filter: invert(1); opacity: 0.55;
    transition: opacity 0.3s, filter 0.3s;
    cursor: pointer;
}
.svc-card:hover .svc-icon {
    opacity: 1;
    filter: invert(0.7) sepia(1) saturate(4) hue-rotate(108deg);
}

.svc-title {
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
    font-size: 1.15rem; color: var(--txt); margin-bottom: 0.75rem;
}
.svc-desc {
    font-size: 0.92rem; line-height: 1.75; color: #9A9AB4;
    font-weight: 300; margin-bottom: 1.75rem;
}
.svc-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--muted); text-decoration: none;
    transition: color 0.2s, gap 0.2s;
}
.svc-link::after { content: '→'; }
.svc-link:hover { color: var(--accent); gap: 10px; }

/* ─── PORTFOLIO ─── */
a.pf-card { text-decoration: none; color: inherit; display: block; }
.pf-card--modal { cursor: pointer; }
.pf-card {
    position: relative; overflow: hidden;
    border: 1px solid var(--border); border-radius: 4px;
    transition: transform 0.35s cubic-bezier(0.23,1,0.32,1), border-color 0.3s;
}
.pf-card:hover { transform: translateY(-5px); border-color: var(--border-hi); }

.pf-thumb {
    height: 210px; position: relative; overflow: hidden;
}
.pf-thumb-inner {
    position: absolute; inset: 0;
    transition: transform 0.6s cubic-bezier(0.23,1,0.32,1);
}
.pf-card:hover .pf-thumb-inner { transform: scale(1.04); }
.pf-thumb-inner::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(9,9,15,0.94) 0%, rgba(9,9,15,0.30) 60%, transparent 100%);
}

.pf-cat {
    position: absolute; bottom: 1rem; left: 1.5rem; z-index: 2;
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: rgba(255,255,255,0.38);
}
.pf-info {
    background: var(--bg-alt);
    padding: 1.5rem 1.75rem;
    border-top: 1px solid var(--border);
}
.pf-title {
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
    font-size: 1.05rem; color: var(--txt); margin-bottom: 0.4rem;
}
.pf-desc { font-size: 0.875rem; color: var(--muted); font-weight: 300; }

/* ─── ABOUT ─── */
.stat-item {
    border-left: 2px solid var(--accent);
    padding-left: 1.5rem;
}
.stat-num {
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
    font-size: 2.8rem; line-height: 1; color: var(--txt);
}
.stat-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.62rem; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--muted); margin-top: 0.5rem;
}

.about-img-wrap {
    position: relative;
}
.about-img-wrap img {
    width: 100%; height: 480px;
    object-fit: cover; display: block;
    filter: grayscale(20%) contrast(1.05) brightness(0.9);
}
.corner-tl, .corner-br {
    position: absolute; width: 40px; height: 40px;
}
.corner-tl {
    top: -1px; left: -1px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
}
.corner-br {
    bottom: -1px; right: -1px;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
}

/* ─── CONTACT ─── */
.ctc-item {
    display: flex; align-items: flex-start; gap: 1.75rem;
    padding: 2.25rem 0; border-bottom: 1px solid var(--border);
}
.ctc-item:last-child { border-bottom: none; }
.ctc-icon {
    width: 42px; height: 42px; flex-shrink: 0;
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
}
.ctc-lbl {
    font-family: 'DM Mono', monospace;
    font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 0.5rem;
}
.ctc-val {
    font-size: 1.1rem; font-weight: 300; color: var(--txt);
}

/* ─── SCROLL-TO-TOP ─── */
.scroll-up-btn {
    left: 50%; transform: translateX(-50%);
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.scroll-up-btn.show { opacity: 1; visibility: visible; }

/* ─── MOBILE MENU ─── */
#mobile-menu {
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.23,1,0.32,1);
    background: rgba(9, 9, 15, 0.97);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
}

/* ─── HERO SCROLL INDICATOR ─── */
.scroll-cue {
    position: absolute; bottom: 2.5rem; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    z-index: 2;
}
.scroll-cue-txt {
    font-family: 'DM Mono', monospace;
    font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase;
    color: rgba(238,238,248,0.3);
}
.scroll-cue-line {
    width: 1px; height: 52px;
    background: linear-gradient(to bottom, rgba(91,255,192,0.35), transparent);
}

/* ─── STAGGERED FADE-IN ─── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fu  { animation: fadeUp 0.85s cubic-bezier(0.23,1,0.32,1) both; }
.d1  { animation-delay: 0.1s; }
.d2  { animation-delay: 0.25s; }
.d3  { animation-delay: 0.4s; }
.d4  { animation-delay: 0.55s; }

/* ─── TYPEWRITER CURSOR ─── */
#tw-cursor {
    display: inline-block;
    width: 3px;
    height: 0.82em;
    background: var(--accent);
    margin-left: 3px;
    vertical-align: text-bottom;
    border-radius: 1px;
    animation: twBlink 1.1s step-end infinite;
}
#tw-cursor.typing { animation: none; opacity: 1; }
@keyframes twBlink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}

/* ─── FOOTER ─── */
footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 1.75rem 0;
}
.footer-txt {
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem; letter-spacing: 0.1em; color: var(--muted);
}

/* ─── SERVICE MODAL ─── */
.svc-modal-backdrop {
    position: fixed; inset: 0; z-index: 9100;
    background: rgba(9, 9, 15, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem;
    opacity: 0; visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}
.svc-modal-backdrop.open { opacity: 1; visibility: visible; }

.svc-modal-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    max-width: 560px; width: 100%;
    padding: 2.75rem;
    transform: translateY(18px);
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh; overflow-y: auto;
}
.svc-modal-backdrop.open .svc-modal-panel { transform: translateY(0); }

.svc-modal-back {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--muted); background: none; border: none; cursor: pointer;
    padding: 0; margin-bottom: 2.25rem;
    transition: color 0.2s;
}
.svc-modal-back svg { width: 14px; height: 14px; transition: transform 0.2s; }
.svc-modal-back:hover { color: var(--accent); }
.svc-modal-back:hover svg { transform: translateX(-3px); }

/* Typografie innerhalb des Modal-Inhalts */
#modal-desc p   { margin-bottom: 1rem; line-height: 1.8; color: #9090AA; }
#modal-desc p:last-child { margin-bottom: 0; }
#modal-desc ul  { list-style: none; padding: 0; margin: 0.75rem 0 1rem; }
#modal-desc li  {
    position: relative; padding-left: 1.4rem;
    margin-bottom: 0.55rem;
    font-size: 0.95rem; line-height: 1.75; color: #9090AA;
}
#modal-desc li::before { content: '–'; position: absolute; left: 0; color: var(--accent); }
#modal-desc strong { color: var(--txt); font-weight: 600; }

/* ─── GLOW ORB ─── */
.glow-orb {
    position: absolute; border-radius: 50%;
    filter: blur(90px); pointer-events: none;
}
