/* ========================
   VARIABLES & RESET
======================== */
:root {
    --bg:        #09090a;
    --surface:   #101112;
    --surface2:  #161819;
    --border:    #1f2021;
    --border2:   #2a2c2e;
    --accent:    #f5a623;
    --accent2:   #e8891a;
    --accent-dim: rgba(245,166,35,0.12);
    --text:      #ece9e3;
    --muted:     #65635e;
    --muted2:    #4a4845;
    --display:   'Bebas Neue', sans-serif;
    --body:      'DM Sans', sans-serif;
    --max:       1340px;
    --py:        clamp(80px, 10vw, 140px);
    --r:         8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--body);
    background: var(--bg);
    color: var(--text);
    font-size: clamp(15px, 1.4vw, 17px);
    line-height: 1.7;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ========================
   NAV
======================== */
nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 5vw, 70px);
    height: 64px;
    background: transparent;
    transition: background 0.5s, border-color 0.5s;
    border-bottom: 1px solid transparent;
}

nav.scrolled {
    background: rgba(9,9,10,0.9);
    backdrop-filter: blur(20px);
    border-bottom-color: var(--border);
}

.nav-logo {
    font-family: var(--display);
    font-size: 26px;
    letter-spacing: 0.06em;
}

.nav-logo span { color: var(--accent); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width 0.25s;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    background: var(--accent) !important;
    color: #09090a !important;
    padding: 9px 22px !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    transition: background 0.2s !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--accent2) !important; color: #09090a !important; }

.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ========================
   HERO
======================== */
#hero {
    position: relative;
    height: 100dvh;
    min-height: 640px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    overflow: hidden;
}

/* Partikel-Canvas im Hintergrund */
#particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    z-index: 0;
    opacity: 0.35;
}

/* 3D-Canvas rechts */
#hero-canvas {
    position: absolute;
    right: 0; top: 0;
    width: 42%; height: 100%;
    z-index: 1;
}

/* Gradient: rechte Hälfte bleibt sichtbar, links wird weich */
.hero-vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(to right, var(--bg) 18%, rgba(9,9,10,0.7) 42%, rgba(9,9,10,0.1) 62%, transparent 80%),
        linear-gradient(to bottom, rgba(9,9,10,0.6) 0%, transparent 15%, transparent 80%, rgba(9,9,10,0.8) 100%);
}

/* Linker Text-Bereich */
.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 clamp(24px, 6vw, 90px);
    pointer-events: none;
}

.hero-content a, .hero-content button { pointer-events: auto; }

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.6s 0.3s forwards;
}

.hero-eyebrow-line {
    width: 36px; height: 1px;
    background: var(--accent);
}

.hero-eyebrow-text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-title {
    font-family: var(--display);
    font-size: clamp(64px, 8.5vw, 118px);
    line-height: 0.9;
    letter-spacing: 0.01em;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeUp 0.7s 0.5s forwards;
}

.hero-title-line2 {
    color: var(--accent);
    display: block;
    position: relative;
}

/* Typewriter-Cursor */
.hero-title-line2::after {
    content: '|';
    color: var(--accent);
    animation: blink 0.8s step-end infinite;
    margin-left: 2px;
    font-size: 0.7em;
    vertical-align: middle;
}

.hero-title-line2.done::after { display: none; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-sub {
    font-size: clamp(14px, 1.4vw, 16px);
    color: var(--muted);
    font-weight: 300;
    line-height: 1.8;
    max-width: 420px;
    margin-bottom: 44px;
    opacity: 0;
    animation: fadeUp 0.7s 0.75s forwards;
}

.hero-sub strong { color: var(--text); font-weight: 500; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 56px;
    opacity: 0;
    animation: fadeUp 0.7s 0.9s forwards;
}

.btn-primary {
    background: var(--accent);
    color: #09090a;
    padding: 15px 32px;
    border-radius: var(--r);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.05em;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    box-shadow: 0 4px 24px rgba(245,166,35,0.28);
}

.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 8px 36px rgba(245,166,35,0.38); }

.btn-ghost {
    border: 1px solid var(--border2);
    color: var(--text);
    padding: 15px 28px;
    border-radius: var(--r);
    font-size: 14px;
    letter-spacing: 0.04em;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* Hero Stats - vertikal links unten */
.hero-stats {
    display: flex;
    gap: 36px;
    opacity: 0;
    animation: fadeUp 0.7s 1.1s forwards;
}

.stat-item { }

.stat-num {
    font-family: var(--display);
    font-size: clamp(30px, 3vw, 42px);
    letter-spacing: 0.02em;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 4px;
}

/* Scroll-Indikator */
.hero-scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeIn 1s 1.8s forwards;
    pointer-events: none;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--accent));
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-label {
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted2);
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50%       { opacity: 1;   transform: scaleY(1.15); }
}

/* Zoom-Cursor über dem Modell */
#hero-canvas { cursor: grab; }
#hero-canvas:active { cursor: grabbing; }
@media (hover: none) and (pointer: coarse) {
    #hero-canvas { pointer-events: none; }
}

/* ========================
   SECTION SHARED
======================== */
.inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 70px);
}

.s-tag {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.s-tag::before { content: ''; display: block; width: 20px; height: 1px; background: var(--accent); }

.s-title {
    font-family: var(--display);
    font-size: clamp(40px, 5.5vw, 70px);
    letter-spacing: 0.015em;
    line-height: 0.93;
    margin-bottom: 20px;
}

.s-lead { color: var(--muted); font-weight: 300; max-width: 540px; line-height: 1.75; }

/* ========================
   LEISTUNGEN
======================== */
#leistungen {
    padding: var(--py) 0;
    border-top: 1px solid var(--border);
}

.l-header { margin-bottom: 60px; }

.l-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
}

.l-card {
    background: var(--surface);
    padding: 44px 38px;
    position: relative;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
    overflow: hidden;
}

.l-card:nth-child(3n)     { border-right: none; }
.l-card:nth-child(4),
.l-card:nth-child(5),
.l-card:nth-child(6)      { border-bottom: none; }

.l-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;
}

.l-card:hover { background: var(--surface2); }
.l-card:hover::before { transform: scaleX(1); }

.l-num {
    font-family: var(--display);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--accent);
    opacity: 0.4;
    margin-bottom: 24px;
}

.l-title {
    font-family: var(--display);
    font-size: 26px;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.l-card:hover .l-title { color: var(--accent); }
.l-text { font-size: 14px; color: var(--muted); line-height: 1.75; }

/* ========================
   WARUM
======================== */
#warum {
    padding: var(--py) 0;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.w-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }

.w-visual { position: relative; }

.w-img {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    overflow: hidden;
    position: relative;
}

.w-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 60%, rgba(245,166,35,0.07) 0%, transparent 65%);
}

.w-badge {
    position: absolute;
    bottom: -28px; right: -28px;
    background: var(--accent);
    color: #09090a;
    padding: 24px 28px;
    border-radius: var(--r);
    box-shadow: 0 12px 40px rgba(245,166,35,0.28);
}

.w-badge strong { font-family: var(--display); font-size: 40px; display: block; line-height: 1; }
.w-badge span   { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

.w-list { display: flex; flex-direction: column; margin-top: 40px; }

.w-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
}

.w-item:first-child { border-top: 1px solid var(--border); }

.w-icon {
    width: 38px; height: 38px;
    border-radius: 8px;
    background: var(--accent-dim);
    border: 1px solid rgba(245,166,35,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    transition: background 0.2s;
}

.w-item:hover .w-icon { background: rgba(245,166,35,0.2); }
.w-item-title { font-weight: 600; font-size: 15px; margin-bottom: 3px; }
.w-item-text  { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ========================
   REFERENZEN
======================== */
#referenzen { padding: var(--py) 0; border-top: 1px solid var(--border); }

.r-header { margin-bottom: 56px; }

.r-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.r-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.r-card:hover { transform: translateY(-6px); border-color: rgba(245,166,35,0.3); box-shadow: 0 20px 60px rgba(0,0,0,0.45); }

.r-img {
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--surface2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 54px;
    position: relative;
}

.r-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.35) 100%); }

.r-body { padding: 22px 24px 26px; }

.r-tag { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 7px; }

.r-body h3 { font-family: var(--display); font-size: 22px; letter-spacing: 0.02em; margin-bottom: 6px; line-height: 1.1; }
.r-body p  { font-size: 13px; color: var(--muted); }

/* ========================
   BEWERBUNG (Multi-Step)
======================== */
#bewerbung {
    padding: var(--py) 0;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.bew-header { text-align: center; margin-bottom: 60px; }
.bew-header .s-tag { justify-content: center; }
.bew-header .s-tag::before { display: none; }
.bew-header .s-lead { margin: 0 auto; text-align: center; }

.bew-card {
    max-width: 740px;
    margin: 0 auto;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

/* Fortschrittsbalken */
.bew-progress {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.bew-step {
    flex: 1;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--muted2);
    border-right: 1px solid var(--border);
    transition: color 0.3s, background 0.3s;
    position: relative;
}

.bew-step:last-child { border-right: none; }

.bew-step.active { color: var(--text); background: rgba(245,166,35,0.04); }
.bew-step.done   { color: var(--accent); }

.bew-step-num {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 1px solid var(--border2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--display);
    font-size: 14px;
    flex-shrink: 0;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.bew-step.active .bew-step-num { background: var(--accent); border-color: var(--accent); color: #09090a; }
.bew-step.done   .bew-step-num { background: rgba(245,166,35,0.15); border-color: var(--accent); color: var(--accent); }

/* Step-Inhalte */
.bew-body { padding: 44px; }

.bew-panel { display: none; }
.bew-panel.active { display: block; animation: fadeUp 0.4s forwards; }

.bew-panel-title {
    font-family: var(--display);
    font-size: 32px;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

.bew-panel-sub { font-size: 14px; color: var(--muted); margin-bottom: 36px; }

/* Beruf-Cards (Step 1) */
.job-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 36px;
}

.job-card {
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 20px 22px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface);
}

.job-card:hover { border-color: var(--border2); background: var(--surface2); }
.job-card.selected { border-color: var(--accent); background: var(--accent-dim); }

.job-card-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--surface2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    transition: background 0.2s;
}

.job-card.selected .job-card-icon { background: rgba(245,166,35,0.15); }

.job-card-label { font-weight: 500; font-size: 15px; }
.job-card-sub   { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Form-Felder (Step 2 & 3) */
.bew-form { display: flex; flex-direction: column; gap: 16px; }

.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.f-group { display: flex; flex-direction: column; gap: 7px; }

.f-group label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.f-group input,
.f-group select,
.f-group textarea {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 13px 16px;
    color: var(--text);
    font-family: var(--body);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.f-group input:focus,
.f-group select:focus,
.f-group textarea:focus { border-color: var(--accent); background: rgba(245,166,35,0.03); }

.f-group textarea { min-height: 100px; resize: vertical; }
.f-group select option { background: var(--surface); }

/* Chip-Auswahl (Verfügbarkeit) */
.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
    border: 1px solid var(--border2);
    border-radius: 100px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    color: var(--muted);
    user-select: none;
}

.chip:hover  { border-color: var(--border2); color: var(--text); }
.chip.active { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }

/* Nav-Buttons */
.bew-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.btn-back {
    background: none;
    border: 1px solid var(--border2);
    color: var(--muted);
    padding: 12px 24px;
    border-radius: var(--r);
    font-size: 14px;
    cursor: pointer;
    font-family: var(--body);
    transition: color 0.2s, border-color 0.2s;
}

.btn-back:hover { color: var(--text); border-color: var(--text); }

/* Erfolgs-Screen */
.bew-success {
    text-align: center;
    padding: 20px 0 10px;
    display: none;
}

.bew-success-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: rgba(245,166,35,0.12);
    border: 1px solid rgba(245,166,35,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 24px;
}

.bew-success h3 { font-family: var(--display); font-size: 36px; margin-bottom: 10px; }
.bew-success p  { color: var(--muted); max-width: 340px; margin: 0 auto; }

/* ========================
   KONTAKT
======================== */
#kontakt {
    padding: var(--py) 0;
    border-top: 1px solid var(--border);
}

.k-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; }

.k-info { display: flex; flex-direction: column; }
.k-info .s-lead { margin-bottom: 44px; }

.k-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.k-item:first-of-type { border-top: 1px solid var(--border); }

.k-icon {
    width: 38px; height: 38px;
    background: var(--accent-dim);
    border: 1px solid rgba(245,166,35,0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.k-label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.k-val   { font-weight: 500; font-size: 15px; }

.k-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 38px;
}

.k-form .f-group input,
.k-form .f-group select,
.k-form .f-group textarea {
    background: var(--bg);
    border-color: var(--border2);
}

/* ========================
   FOOTER
======================== */
footer {
    border-top: 1px solid var(--border);
    padding: 36px clamp(24px, 5vw, 70px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.f-logo { font-family: var(--display); font-size: 22px; letter-spacing: 0.06em; }
.f-logo span { color: var(--accent); }
.f-links { display: flex; gap: 28px; list-style: none; }
.f-links a { font-size: 13px; color: var(--muted); transition: color 0.2s; }
.f-links a:hover { color: var(--text); }
.f-copy { font-size: 12px; color: var(--muted2); }

/* ========================
   ANIMATIONEN
======================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ========================
   SCROLL-REVEAL
======================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 1100px) {
    #hero { grid-template-columns: 1fr; }
    #hero-canvas { width: 100%; opacity: 0.25; }
    .hero-vignette { background: rgba(9,9,10,0.5); }
    .hero-content { padding-top: 80px; }
    .l-grid { grid-template-columns: repeat(2, 1fr); }
    .l-card:nth-child(3n) { border-right: 1px solid var(--border); }
    .l-card:nth-child(2n) { border-right: none; }
    .l-card:nth-child(5), .l-card:nth-child(6) { border-bottom: none; }
    .l-card:nth-child(4) { border-bottom: 1px solid var(--border); }
    .r-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .w-grid, .k-grid { grid-template-columns: 1fr; gap: 56px; }
    .w-badge { bottom: -20px; right: 16px; }
    .k-form { padding: 28px; }
    .bew-body { padding: 28px; }
}

@media (max-width: 640px) {
    .nav-links { display: none; }
    .nav-burger { display: flex; }
    .l-grid { grid-template-columns: 1fr; }
    .l-card { border-right: none !important; }
    .l-card:last-child { border-bottom: none; }
    .r-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 24px; }
    .f-row { grid-template-columns: 1fr; }
    .job-grid { grid-template-columns: 1fr; }
    .bew-step-label { display: none; }
    .bew-body { padding: 20px; }
    .k-form { padding: 20px; }
}
