/* GEISSEL CONSULTING GMBH */

:root {
    --bg:          #f5f7fa;
    --bg-2:        #ffffff;
    --accent:      #1a6cf5;
    --accent-glow: rgba(26, 108, 245, 0.07);
    --text:        #0d1b2a;
    --text-muted:  #7a8fa6;
    --border:      rgba(0, 0, 0, 0.09);
    --ease:        cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
    height: 100%;
    overflow: hidden;
    background: var(--bg);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

/* ── Grain overlay ──────────────────────────────────────────────────────── */
.grain {
    position: fixed;
    inset: 0;
    z-index: 500;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
}

/* ── Nav ────────────────────────────────────────────────────────────────── */
.site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    height: 60px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    z-index: 100;
    background: #0a2540;
    border-bottom: none;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.site-nav.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.site-nav a { height: 100%; display: flex; align-items: center; }
.site-nav img { height: 100%; filter: brightness(0) invert(1); }

/* ── Section dots ───────────────────────────────────────────────────────── */
.section-dots {
    position: fixed;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 200;
}

.dot {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: background 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background: var(--accent);
    transform: scale(1.5);
}

/* ── Snap container ─────────────────────────────────────────────────────── */
.snap-container {
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.snap-section {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg);
    position: relative;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 48px;
    width: 100%;
}

/* ── Section tag ────────────────────────────────────────────────────────── */
.section-tag {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 52px;
}

.section-num {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.1em;
}

.section-label {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    text-transform: uppercase;
    position: relative;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--text-muted);
    vertical-align: middle;
    margin-right: 10px;
    opacity: 0.5;
}

/* ── Reveal animation ───────────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

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

/* ── HERO ───────────────────────────────────────────────────────────────── */
.hero-section {
    background:
        radial-gradient(ellipse 60% 80% at 20% 60%, rgba(26, 108, 245, 0.12), transparent),
        #060f1a;
    overflow: hidden;
}

.hero-wordmark {
    display: block;
    user-select: none;
    text-align: center;
}

.clip {
    display: block;
    overflow: hidden;
    line-height: 1;
}

.hero-word {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: clamp(4rem, 11.5vw, 7rem);
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: white;
    transform: translateY(108%);
    transition: transform 1.05s var(--ease);
}

.hero-word.is-up { transform: translateY(0); }
.hero-word--delay { transition-delay: 0.13s; }

.hero-rule {
    display: block;
    height: 3px;
    background: var(--accent);
    margin: 14px 0;
    transform: scaleX(0);
    transform-origin: center center;
    transition: transform 0.9s var(--ease);
    transition-delay: 0.08s;
}

.hero-rule.is-expanded { transform: scaleX(1); }

/* ── Scroll hint ────────────────────────────────────────────────────────── */
.scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 1px;
    height: 52px;
    background: var(--border);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.4), transparent);
    animation: scrollDrop 2.2s ease-in-out infinite;
}

@keyframes scrollDrop {
    0%   { top: -100%; }
    100% { top: 200%; }
}

/* ── PROFIL ─────────────────────────────────────────────────────────────── */
#profil { background: var(--bg-2); }

.profile-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 64px;
    align-items: center;
}

.photo-frame {
    position: relative;
    width: 200px;
}

.photo-frame img {
    display: block;
    width: 200px;
    height: 260px;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(15%);
}

.photo-frame::before {
    content: '';
    position: absolute;
    inset: 10px -10px -10px 10px;
    border: 1px solid var(--accent);
    opacity: 0.25;
    z-index: -1;
}

.profile-right h2 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 8px;
}

.profile-role {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
    opacity: 0.85;
}

.profile-bio {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 28px;
}

.competence-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 5px 12px;
    transition: border-color 0.25s ease, color 0.25s ease;
}

.pill:hover {
    border-color: var(--accent);
    color: var(--text);
}

/* ── KONTAKT ────────────────────────────────────────────────────────────── */
#kontakt { background: var(--bg); }

.contact-block {
    margin-bottom: 64px;
}

.contact-address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 28px;
}

.contact-address span {
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-muted);
}

.contact-address span:first-child {
    font-weight: 500;
    color: var(--text);
    margin-bottom: 2px;
}

.contact-email {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.3rem, 3.2vw, 2.2rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: white;
    text-decoration: none;
    margin-bottom: 40px;
    position: relative;
    transition: color 0.3s ease, transform 0.35s var(--ease);
}

.contact-email::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.4s var(--ease);
}

.contact-email:hover { color: var(--accent); }
.contact-email:hover::after { width: 100%; }

.contact-icons {
    display: flex;
    gap: 24px;
}

.icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 2px;
    color: var(--text-muted);
    font-size: 1rem;
    text-decoration: none;
    transition: border-color 0.25s ease, color 0.25s ease, transform 0.35s var(--ease);
}

.icon-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ── Legal ──────────────────────────────────────────────────────────────── */
.legal-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.legal-links a {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    opacity: 0.45;
    transition: opacity 0.2s ease;
}

.legal-links a:hover { opacity: 0.8; }

.legal-sep {
    display: block;
    width: 1px;
    height: 10px;
    background: var(--text-muted);
    opacity: 0.25;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .container { padding: 0 24px; }

    .profile-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .photo-frame,
    .photo-frame img {
        width: 150px;
        height: 195px;
    }

    .section-dots { display: none; }

    .hero-word { font-size: clamp(1.8rem, 9vw, 5rem); }

    .contact-email { font-size: clamp(1rem, 5vw, 1.6rem); }
}
