/* ============================================================
   Yorreck Wagner Solutions — Design System
   ============================================================ */

:root {
    /* Corporate identity — see corporate.typ. Colors are the print palette
       extended only with darker/lighter primary tints needed for hover states
       and dark sections. No accent color: the CI is intentionally restrained. */
    --color-primary: #156082;
    --color-primary-dark: #0f4a63;
    --color-primary-light: #1f7ba3;

    --color-bg: #ffffff;
    --color-bg-alt: #f4f6f8;        /* CI subtle-bg */
    --color-bg-dark: #111418;        /* CI ink as deep section bg */
    --color-bg-darker: #0a0c0f;

    --color-text: #111418;           /* CI ink */
    --color-text-muted: #6b7280;     /* CI muted */
    --color-text-inverse: #f4f6f8;
    --color-text-inverse-muted: #9aa3ad;

    --color-border: #e5e7eb;         /* CI hairline */
    --color-border-strong: #d1d5db;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --shadow-sm: 0 1px 2px rgba(12, 31, 42, 0.04), 0 2px 6px rgba(12, 31, 42, 0.04);
    --shadow-md: 0 4px 12px rgba(12, 31, 42, 0.06), 0 12px 32px rgba(12, 31, 42, 0.06);
    --shadow-lg: 0 12px 28px rgba(12, 31, 42, 0.10), 0 32px 80px rgba(12, 31, 42, 0.10);

    --max-width: 1160px;
    --content-width: 760px;

    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--color-primary-dark); }

h1, h2, h3, h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 0.6em;
    color: var(--color-text);
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

/* ---------- Layout ---------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 96px 0;
    position: relative;
}
section.section-alt { background: var(--color-bg-alt); }
section.section-dark {
    background: var(--color-bg-dark);
    color: var(--color-text-inverse);
}
section.section-dark h1, section.section-dark h2, section.section-dark h3 {
    color: #fff;
}

.section-header { max-width: var(--content-width); margin: 0 auto 64px; text-align: center; }
.section-header.left { text-align: left; margin-left: 0; }

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--color-primary);
    margin-bottom: 16px;
}
.section-dark .eyebrow { color: var(--color-primary-light); }

.lead {
    font-size: 1.18rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}
.section-dark .lead { color: var(--color-text-inverse-muted); }

/* ---------- Navbar ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--color-border);
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--color-text);
    font-size: 1rem;
    letter-spacing: -0.01em;
}
.navbar-brand img { height: 36px; width: auto; }
.navbar-nav {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.navbar-nav a {
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}
.navbar-nav a:hover { color: var(--color-primary); }
.navbar-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-primary);
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background var(--transition), transform var(--transition);
}
.navbar-cta:hover { background: var(--color-primary-dark); transform: translateY(-1px); }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
    color: var(--color-text);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 120px 0 100px;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(21, 96, 130, 0.10), transparent 60%),
                linear-gradient(180deg, #f4f6f8 0%, #ffffff 100%);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(21, 96, 130, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(31, 123, 163, 0.06) 0%, transparent 40%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}
.hero h1 {
    background: linear-gradient(135deg, #0c1f2a 0%, #156082 60%, #1f7ba3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 24px;
}
.hero-tagline {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    color: var(--color-text-muted);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.6;
}
.hero-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    font-weight: 500;
}
.hero-meta .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    transition: all var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border-strong);
}
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-arrow svg { transition: transform var(--transition); }
.btn-arrow:hover svg { transform: translateX(3px); }

/* ---------- Stats strip ---------- */
.stats {
    margin-top: 72px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.stat {
    text-align: center;
    padding: 24px 16px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}
.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    letter-spacing: -0.02em;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 6px;
    font-weight: 500;
}

/* ---------- Cards grid ---------- */
.grid {
    display: grid;
    gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-border-strong);
}
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(21, 96, 130, 0.10), rgba(31, 123, 163, 0.18));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 22px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.card p { color: var(--color-text-muted); font-size: 0.97rem; margin-bottom: 0; }
.card .focus {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--color-border);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}
.card .focus strong { color: var(--color-text); font-weight: 600; }

/* ---------- Approach (numbered steps) ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    counter-reset: step;
}
.step {
    position: relative;
    padding: 40px 28px 32px;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}
.step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: -18px;
    left: 28px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 999px;
    letter-spacing: 0.06em;
}
.step h3 { margin-top: 8px; }
.step p { color: var(--color-text-muted); font-size: 0.97rem; margin-bottom: 0; }

/* ---------- Projects ---------- */
.projects { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); }
.project {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
}
.project:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(31, 123, 163, 0.45);
    transform: translateY(-2px);
}
.project-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 8px;
}
.project-role {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary-light);
    font-weight: 600;
}
.project-period {
    font-size: 0.78rem;
    color: var(--color-text-inverse-muted);
    white-space: nowrap;
    font-weight: 500;
}
.project h3 { color: #fff; font-size: 1.15rem; margin-bottom: 14px; }
.project p { color: var(--color-text-inverse-muted); font-size: 0.93rem; margin-bottom: 18px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tag {
    font-size: 0.72rem;
    padding: 4px 10px;
    background: rgba(31, 123, 163, 0.14);
    color: #8fb9d1;
    border-radius: 999px;
    font-weight: 500;
}

/* ---------- Timeline ---------- */
.timeline {
    max-width: var(--content-width);
    margin: 0 auto;
    position: relative;
    padding-left: 32px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-primary-light), var(--color-primary), transparent);
}
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--color-primary);
    box-shadow: 0 0 0 4px rgba(21, 96, 130, 0.1);
}
.timeline-year {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.timeline-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.timeline-item p { color: var(--color-text-muted); font-size: 0.97rem; margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-card {
    max-width: 720px;
    margin: 0 auto;
    background: linear-gradient(135deg, #0f4a63 0%, #156082 50%, #1f7ba3 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 40%);
    pointer-events: none;
}
.contact-card h2 { color: #fff; position: relative; }
.contact-card p { color: rgba(255, 255, 255, 0.85); position: relative; font-size: 1.05rem; }
.contact-details {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 32px 0;
    align-items: center;
}
.contact-details a { color: #fff; font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, 0.4); padding-bottom: 2px; }
.contact-details a:hover { color: #fff; border-bottom-color: #fff; }
.contact-card .btn-primary {
    position: relative;
    background: #fff;
    color: var(--color-primary);
}
.contact-card .btn-primary:hover { background: var(--color-bg-alt); color: var(--color-primary-dark); }

/* ---------- Footer ---------- */
.site-footer {
    padding: 48px 0 32px;
    background: var(--color-bg-darker);
    color: var(--color-text-inverse-muted);
    font-size: 0.9rem;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--color-text-inverse); font-weight: 600; }
.footer-brand img { height: 32px; }
.footer-links { display: flex; gap: 24px; align-items: center; }
.footer-links a { color: var(--color-text-inverse-muted); }
.footer-links a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.footer-social a:hover { background: var(--color-primary); color: #fff; }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.82rem;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 700ms cubic-bezier(0.4, 0, 0.2, 1), transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Impressum (simple content page) ---------- */
.legal {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 80px 24px;
}
.legal h1 { font-size: 2rem; margin-bottom: 32px; }
.legal h2 { font-size: 1.15rem; margin-top: 32px; margin-bottom: 8px; }
.legal p { color: var(--color-text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    section { padding: 72px 0; }
    .grid-3, .grid-2, .steps, .projects { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .stat { padding: 16px 8px; }
    .stat-value { font-size: 1.5rem; }
}

@media (max-width: 700px) {
    .navbar-nav, .navbar-cta { display: none; }
    .nav-toggle { display: block; }
    .navbar.is-open .navbar-nav {
        display: flex;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #fff;
        padding: 24px;
        gap: 18px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
    }
    .navbar.is-open .navbar-cta { display: inline-flex; margin-top: 8px; }
    .hero { padding: 80px 0 64px; }
    .stats { grid-template-columns: 1fr; }
    .contact-card { padding: 40px 24px; }
    .footer-inner { flex-direction: column; text-align: center; }
}
