/* ═══════════════════════════════════════════════════════════════
   HEUKEN WEBSERVICE – Stylesheet
   ═══════════════════════════════════════════════════════════════ */

:root {
    --navy-950: #050b15;
    --navy-900: #0a1224;
    --navy-800: #0f1b35;
    --navy-700: #162648;
    --blue-600: #1d4ed8;
    --blue-500: #2563eb;
    --blue-400: #3b82f6;
    --green-700: #004d2a;
    --green-600: #006400;
    --green-400: #059669;

    --text-100: #f1f5f9;
    --text-200: #e2e8f0;
    --text-300: #cbd5e1;
    --text-400: #94a3b8;
    --text-500: #64748b;
    --text-600: #475569;

    --border:   rgba(255,255,255,.06);
    --border-h: rgba(255,255,255,.12);

    --surface-1: #0c1526;
    --surface-2: #111d33;
    --surface-3: #162640;

    --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --radius:    10px;
    --radius-lg: 16px;
    --header-h:  68px;
    --ease:      cubic-bezier(.25,.46,.45,.94);
}


/* ── Reset ──────────────────────────────────────────────────── */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:calc(var(--header-h) + 2rem); }
body {
    font-family:var(--font); font-size:16px; line-height:1.75;
    color:var(--text-300); background:var(--navy-950);
    -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
::selection { background:var(--blue-600); color:#fff; }
img { max-width:100%; display:block; }
a { color:var(--blue-400); text-decoration:none; transition:color .2s; }
a:hover { color:var(--green-400); }
h1,h2,h3,h4 { font-weight:600; line-height:1.25; color:var(--text-100); }
h1 { font-size:clamp(2.2rem,5vw,3.6rem); letter-spacing:-.02em; }
h2 { font-size:clamp(1.7rem,3.5vw,2.6rem); letter-spacing:-.015em; }
h3 { font-size:1.15rem; }
.container { max-width:1200px; margin:0 auto; padding:0 2rem; }


/* ═══ HEADER ═══════════════════════════════════════════════════ */
.site-header {
    position:fixed; top:0; left:0; right:0;
    height:var(--header-h); z-index:1000;
    background:transparent; transition:background .3s, box-shadow .3s;
}
.site-header.scrolled {
    background:rgba(5,11,21,.92);
    backdrop-filter:blur(12px);
    box-shadow:0 1px 0 var(--border);
}
.header-inner {
    max-width:1200px; margin:0 auto; padding:0 2rem;
    height:100%; display:flex; align-items:center; gap:2rem;
}

/* Logo */
.logo { display:flex; align-items:center; gap:.6rem; text-decoration:none; flex-shrink:0; }
.logo-mark {
    display:flex; align-items:center; justify-content:center;
    width:36px; height:36px;
    background:linear-gradient(135deg,var(--blue-600),var(--green-600));
    border-radius:8px; overflow:hidden;
}
.logo-mark img { width:28px; height:28px; object-fit:contain; }
.logo-text { font-weight:700; font-size:1.05rem; color:var(--text-100); }
.logo-light { font-weight:400; color:var(--text-400); margin-left:.15em; }

/* Nav */
.main-nav { margin-left:auto; }
.main-nav ul { display:flex; list-style:none; gap:.25rem; }
.main-nav a {
    display:block; padding:.45rem .9rem;
    font-size:.875rem; font-weight:500;
    color:var(--text-400); border-radius:6px;
    transition:color .2s, background .2s; text-decoration:none;
}
.main-nav a:hover, .main-nav a.active {
    color:var(--text-100); background:rgba(255,255,255,.04);
}

/* Header CTA */
.header-cta {
    padding:.5rem 1.2rem;
    background:linear-gradient(135deg,var(--blue-600),var(--green-700));
    color:#fff; font-size:.8rem; font-weight:600;
    font-family:var(--font); border:none; border-radius:7px;
    cursor:pointer; transition:opacity .2s; flex-shrink:0;
}
.header-cta:hover { opacity:.85; }

/* Burger */
.menu-toggle {
    display:none; flex-direction:column; justify-content:center;
    gap:6px; width:36px; height:36px;
    background:none; border:none; cursor:pointer; padding:6px;
}
.menu-toggle span {
    display:block; height:2px; background:var(--text-300);
    border-radius:1px; transition:transform .3s, opacity .2s;
}
.menu-toggle.active span:first-child { transform:translateY(4px) rotate(45deg); }
.menu-toggle.active span:last-child  { transform:translateY(-4px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
    position:fixed; inset:0; top:var(--header-h); z-index:999;
    background:rgba(5,11,21,.97); backdrop-filter:blur(16px);
    display:flex; align-items:flex-start; justify-content:center;
    padding-top:4rem;
    opacity:0; visibility:hidden; transition:opacity .3s, visibility .3s;
}
.mobile-nav.open { opacity:1; visibility:visible; }
.mobile-nav ul { list-style:none; text-align:center; }
.mobile-nav li { margin-bottom:.5rem; }
.mobile-nav a {
    font-size:1.3rem; font-weight:600; color:var(--text-200);
    padding:.6rem 1rem; display:block; text-decoration:none;
}
.mobile-nav a:hover { color:var(--green-400); }


/* ═══ BUTTONS ══════════════════════════════════════════════════ */
.btn {
    display:inline-flex; align-items:center; gap:.5rem;
    padding:.75rem 1.6rem; font-family:var(--font);
    font-size:.9rem; font-weight:600; border-radius:8px;
    border:none; cursor:pointer;
    transition:transform .2s, box-shadow .2s; text-decoration:none;
}
.btn:hover { transform:translateY(-1px); }
.btn-primary {
    background:linear-gradient(135deg,var(--blue-600),var(--green-700));
    color:#fff; box-shadow:0 2px 12px rgba(37,99,235,.2);
}
.btn-primary:hover { box-shadow:0 4px 20px rgba(37,99,235,.3); color:#fff; }
.btn-secondary {
    background:transparent; color:var(--text-200);
    border:1px solid var(--border-h);
}
.btn-secondary:hover { border-color:var(--text-500); color:#fff; }
.btn-lg { padding:1rem 2rem; font-size:1rem; border-radius:var(--radius); }


/* ═══ HERO ═════════════════════════════════════════════════════ */
.hero {
    position:relative; min-height:100vh;
    display:flex; align-items:center;
    padding:calc(var(--header-h) + 4rem) 2rem 6rem;
    max-width:1200px; margin:0 auto;
}
.hero-inner { max-width:700px; }
.hero-label {
    font-family:var(--font-mono); font-size:.8rem; font-weight:500;
    color:var(--green-400); letter-spacing:.06em; margin-bottom:1.5rem;
}
.hero h1 { margin-bottom:1.5rem; }
.hero-accent {
    color:transparent;
    background:linear-gradient(135deg,var(--blue-400),var(--green-400));
    -webkit-background-clip:text; background-clip:text;
}
.hero-description {
    font-size:clamp(1rem,1.8vw,1.15rem); color:var(--text-400);
    max-width:560px; margin-bottom:2.5rem; line-height:1.8;
}
.hero-actions { display:flex; gap:.75rem; flex-wrap:wrap; }
.hero-line {
    position:absolute; bottom:0; left:2rem; right:2rem; height:1px;
    background:linear-gradient(90deg,transparent,var(--border-h),transparent);
}


/* ═══ SECTIONS ═════════════════════════════════════════════════ */
.section { padding:6rem 0; }
.section--alt { background:var(--surface-1); }
.section-head { margin-bottom:3.5rem; }
.section-label {
    font-family:var(--font-mono); font-size:.78rem; font-weight:500;
    color:var(--green-400); letter-spacing:.06em; margin-bottom:.6rem;
}
.section-head h2 { margin-bottom:.6rem; }
.section-intro { color:var(--text-400); max-width:620px; margin-top:.5rem; line-height:1.7; }


/* ═══ CARD GRID ════════════════════════════════════════════════ */
.card-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; }

.card {
    position:relative; background:var(--surface-2);
    border:1px solid var(--border); padding:2.2rem 2rem;
    transition:background .25s, border-color .25s, box-shadow .25s, transform .25s;
}
.card--wide { grid-column:span 2; }

.card::after {
    content:''; position:absolute; inset:0;
    box-shadow:inset 1px 1px 0 rgba(255,255,255,.03),
               inset -1px -1px 0 rgba(0,0,0,.2);
    pointer-events:none;
}
.card:hover {
    background:var(--surface-3); border-color:var(--border-h);
    transform:translateY(-2px);
    box-shadow:0 8px 30px rgba(0,0,0,.3), 0 2px 8px rgba(0,0,0,.15);
    z-index:2;
}

.card:first-child  { border-radius:var(--radius-lg) 0 0 0; }
.card:nth-child(3) { border-radius:0 var(--radius-lg) 0 0; }
.card:last-child   { border-radius:0 0 var(--radius-lg) 0; }

.card-icon {
    width:42px; height:42px;
    display:flex; align-items:center; justify-content:center;
    border-radius:8px; background:rgba(255,255,255,.03);
    border:1px solid var(--border); margin-bottom:1.2rem;
    color:var(--blue-400); font-size:1.05rem;
}
.card:nth-child(even) .card-icon { color:var(--green-400); }
.card h3 { margin-bottom:.6rem; font-size:1.05rem; }
.card p { font-size:.9rem; color:var(--text-400); line-height:1.7; }
.card p a { color:var(--green-400); border-bottom:1px solid transparent; }
.card p a:hover { border-bottom-color:var(--green-400); }


/* ═══ SPLIT ════════════════════════════════════════════════════ */
.split { display:grid; grid-template-columns:1fr 1fr; gap:4rem; align-items:start; }
.split-content h2 { margin-bottom:1.2rem; }
.split-content p { margin-bottom:1rem; color:var(--text-400); }
.split-content p strong { color:var(--text-200); font-weight:600; }

.stats {
    display:flex; gap:2.5rem; margin-top:2.5rem;
    padding-top:2rem; border-top:1px solid var(--border);
}
.stat strong { display:block; font-size:1.6rem; font-weight:700; color:var(--text-100); line-height:1.2; }
.stat span { font-size:.78rem; color:var(--text-500); }

.principles { display:flex; flex-direction:column; }
.principle {
    display:flex; align-items:flex-start; gap:1rem;
    padding:1.5rem 1.6rem; background:var(--surface-2);
    border:1px solid var(--border); margin-bottom:-1px;
    transition:background .2s;
}
.principle:first-child { border-radius:var(--radius-lg) var(--radius-lg) 0 0; }
.principle:last-child  { border-radius:0 0 var(--radius-lg) var(--radius-lg); }
.principle:hover { background:var(--surface-3); }
.principle i { font-size:1.1rem; color:var(--blue-400); margin-top:.15rem; flex-shrink:0; }
.principle:nth-child(even) i { color:var(--green-400); }
.principle strong { display:block; font-size:.9rem; color:var(--text-100); margin-bottom:.15rem; }
.principle span { font-size:.82rem; color:var(--text-500); }


/* ═══ QUOTE ════════════════════════════════════════════════════ */
.quote-block {
    max-width:720px; margin:0 auto; text-align:center;
    padding:3.5rem 3rem; background:var(--surface-2);
    border:1px solid var(--border); border-radius:var(--radius-lg);
    position:relative;
}
.quote-block::before {
    content:'\201C'; position:absolute; top:-.3em; left:50%;
    transform:translateX(-50%); font-size:5rem; color:var(--navy-700);
    line-height:1; font-family:Georgia,serif; pointer-events:none;
}
.quote-block h3 { margin-bottom:.8rem; font-size:1.2rem; }
.quote-block p { color:var(--text-400); line-height:1.8; }
.quote-block p strong { color:var(--text-200); }


/* ═══ PROJEKTE ═════════════════════════════════════════════════ */
.project-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:1px; }
.project {
    display:flex; align-items:center; justify-content:space-between;
    gap:1.5rem; padding:2rem 2.2rem;
    background:var(--surface-2); border:1px solid var(--border);
    text-decoration:none; color:inherit; transition:background .2s, border-color .2s;
}
.project--btn {
    font-family:var(--font); font-size:inherit;
    text-align:left; cursor:pointer; width:100%;
}
.project:first-child  { border-radius:var(--radius-lg) 0 0 0; }
.project:nth-child(2) { border-radius:0 var(--radius-lg) 0 0; }
.project:last-child:nth-child(odd) { border-radius:0 0 var(--radius-lg) var(--radius-lg); grid-column:span 2; }
.project:nth-last-child(2):nth-child(odd) { border-radius:0 0 0 var(--radius-lg); }
.project:last-child:nth-child(even)       { border-radius:0 0 var(--radius-lg) 0; }
.project:hover { background:var(--surface-3); border-color:var(--border-h); }
.project h3 { font-size:1.05rem; color:var(--text-100); margin-bottom:.25rem; }
.project p { font-size:.85rem; color:var(--text-500); margin:0; }
.project-arrow {
    flex-shrink:0; width:36px; height:36px;
    display:flex; align-items:center; justify-content:center;
    border-radius:50%; background:rgba(255,255,255,.03);
    border:1px solid var(--border); color:var(--text-500); font-size:.8rem;
    transition:background .2s, color .2s, transform .2s;
}
.project:hover .project-arrow {
    background:var(--blue-600); border-color:var(--blue-600);
    color:#fff; transform:translateX(2px);
}


/* ═══ CTA ══════════════════════════════════════════════════════ */
.section--cta {
    padding:7rem 0 8rem;
    background:linear-gradient(135deg,rgba(30,52,96,.25),rgba(0,80,50,.15)),var(--navy-950);
}
.cta-block { text-align:center; max-width:600px; margin:0 auto; }
.cta-block h2 { margin-bottom:.8rem; }
.cta-block > p { color:var(--text-400); margin-bottom:2.5rem; font-size:1.05rem; }
.cta-actions { margin-bottom:2rem; }
.cta-meta { display:flex; justify-content:center; gap:2.5rem; flex-wrap:wrap; }
.cta-meta a { display:inline-flex; align-items:center; gap:.45rem; font-size:.9rem; color:var(--text-500); transition:color .2s; }
.cta-meta a:hover { color:var(--text-200); }


/* ═══ FOOTER ═══════════════════════════════════════════════════ */
.site-footer { background:var(--navy-900); border-top:1px solid var(--border); padding-top:4rem; }
.footer-grid { display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:2.5rem; padding-bottom:3rem; }

.logo--footer .logo-mark { width:30px; height:30px; }
.logo--footer .logo-mark img { width:22px; height:22px; }
.logo--footer .logo-text { font-size:.95rem; }
.footer-tagline { margin-top:.6rem; font-size:.85rem; color:var(--text-600); line-height:1.6; }

/* Tiger im Footer */
.footer-tiger {
    display:block; width:70px; height:auto;
    margin-top:1.2rem; opacity:.15;
    filter:grayscale(.2) brightness(1.2);
    user-select:none; pointer-events:none;
}

.footer-col h4 {
    font-size:.75rem; font-weight:600; text-transform:uppercase;
    letter-spacing:.08em; color:var(--text-400); margin-bottom:1rem;
}
.footer-col address { font-style:normal; font-size:.85rem; color:var(--text-600); line-height:1.7; margin-bottom:.6rem; }
.footer-col p { font-size:.85rem; margin-bottom:.25rem; }
.footer-col p a, .footer-col ul a { color:var(--text-600); font-size:.85rem; transition:color .2s; }
.footer-col p a:hover, .footer-col ul a:hover { color:var(--text-200); }
.footer-col ul { list-style:none; }
.footer-col ul li { margin-bottom:.35rem; }

/* Button der wie ein Link aussieht */
.link-btn {
    background:none; border:none; padding:0;
    font-family:var(--font); font-size:.85rem;
    color:var(--text-600); cursor:pointer; transition:color .2s;
    text-align:left; line-height:inherit;
}
.link-btn:hover { color:var(--text-200); }

.footer-bottom {
    display:flex; justify-content:space-between; align-items:center;
    padding:1.5rem 0; border-top:1px solid var(--border);
    flex-wrap:wrap; gap:1rem;
}
.footer-bottom p { font-size:.8rem; color:var(--text-600); }
.footer-legal { display:flex; gap:1.5rem; }
.footer-legal .link-btn { font-size:.8rem; }


/* ═══ SCROLL REVEAL ════════════════════════════════════════════ */
.reveal {
    opacity:0; transform:translateY(12px);
    transition:opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.visible { opacity:1; transform:translateY(0); }

@media (prefers-reduced-motion:reduce) {
    .reveal { opacity:1; transform:none; transition:none; }
}


/* ═══ RESPONSIVE ═══════════════════════════════════════════════ */
@media (max-width:1024px) {
    .main-nav, .header-cta { display:none; }
    .menu-toggle { display:flex; }
    .card-grid { grid-template-columns:repeat(2,1fr); }
    .card--wide { grid-column:span 2; }
    .split { grid-template-columns:1fr; gap:3rem; }
    .footer-grid { grid-template-columns:1fr 1fr; gap:2rem; }
}

@media (max-width:768px) {
    :root { --header-h:60px; }
    .container { padding:0 1.25rem; }
    .section { padding:4.5rem 0; }
    .hero { padding:calc(var(--header-h) + 3rem) 1.25rem 4rem; min-height:auto; }

    .card-grid { grid-template-columns:1fr; }
    .card--wide { grid-column:span 1; }
    .card { border-radius:0 !important; }
    .card:first-child { border-radius:var(--radius-lg) var(--radius-lg) 0 0 !important; }
    .card:last-child  { border-radius:0 0 var(--radius-lg) var(--radius-lg) !important; }

    .project-grid { grid-template-columns:1fr; }
    .project { border-radius:0 !important; }
    .project:first-child { border-radius:var(--radius-lg) var(--radius-lg) 0 0 !important; }
    .project:last-child  { border-radius:0 0 var(--radius-lg) var(--radius-lg) !important; }
    .project:last-child:nth-child(odd) { grid-column:span 1; }

    .stats { gap:1.5rem; }
    .stat strong { font-size:1.3rem; }
    .quote-block { padding:2.5rem 1.8rem; }

    .footer-grid { grid-template-columns:1fr; gap:2rem; }
    .footer-bottom { flex-direction:column; text-align:center; }

    .section--cta { padding:5rem 0; }
}

@media (max-width:480px) {
    .hero-actions { flex-direction:column; }
    .hero-actions .btn { width:100%; justify-content:center; }
    .stats { flex-direction:column; gap:1.2rem; }
    .cta-meta { flex-direction:column; gap:1rem; }
}

@media (min-width:1400px) { .container { max-width:1320px; } }

@media print {
    .site-header, .mobile-nav, .hero-line, #hwOverlay { display:none !important; }
    body { background:#fff; color:#222; }
    .section--alt, .section--cta { background:#f9f9f9 !important; }
    .card, .project, .quote-block, .principle {
        background:#f5f5f5 !important; border-color:#ddd !important; box-shadow:none !important;
    }
    .card::after { display:none; }
    h1,h2,h3,h4,strong { color:#111 !important; }
    .hero-accent { color:#111 !important; -webkit-text-fill-color:#111 !important; }
    a { color:#333 !important; }
    .footer-tiger { opacity:.3 !important; }
}