/* schimo Informatik GmbH – site styles. Plain CSS, no build step. */

:root {
    --bg: #ffffff;
    --bg-alt: #f5f7f7;
    --text: #1f2426;
    --muted: #5b6366;
    --line: #e2e7e8;
    --accent: #3f7f8a;        /* darker than logo teal for AA contrast on white */
    --accent-strong: #2f6670;
    --accent-soft: #e6f0f1;
    --radius: 10px;
    --wrap: 68rem;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #121517;
        --bg-alt: #181c1e;
        --text: #e7ecec;
        --muted: #a3adb0;
        --line: #2a3033;
        --accent: #7fbcc6;
        --accent-strong: #a5d3da;
        --accent-soft: #1d2a2d;
    }
    .brand img { filter: brightness(0) invert(0.92); }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    font: 400 1.0625rem/1.65 var(--font);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

.skip {
    position: absolute; left: -999px; top: 0;
    background: var(--accent); color: #fff; padding: 0.5rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 5;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; min-height: 4.25rem;
}
.brand img { height: 2.5rem; width: auto; }
.site-header ul {
    display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0;
}
.site-header nav a {
    display: block; padding: 0.45rem 0.75rem; border-radius: 999px;
    color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500;
}
.site-header nav a:hover { color: var(--text); background: var(--bg-alt); }
.site-header nav a.nav-cta { color: var(--accent); }

@media (max-width: 640px) {
    .header-inner { flex-direction: column; align-items: flex-start; gap: 0.25rem; padding-top: 0.75rem; padding-bottom: 0.5rem; }
    .brand img { height: 2rem; }
    .site-header ul { gap: 0; margin-left: -0.55rem; flex-wrap: wrap; }
    .site-header nav a { padding: 0.35rem 0.55rem; font-size: 0.88rem; }
}

/* Hero */
.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem); }
.eyebrow {
    margin: 0 0 1rem; color: var(--accent); font-weight: 600;
    font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.hero h1 {
    font-size: clamp(2rem, 5.2vw, 3.5rem); font-weight: 700; max-width: 21ch;
}
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 40rem; margin: 1.25rem 0 2rem; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
    display: inline-block; padding: 0.75rem 1.25rem; border-radius: 999px;
    font-weight: 600; font-size: 0.98rem; text-decoration: none;
    border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); color: #fff; }
@media (prefers-color-scheme: dark) {
    .btn-primary, .btn-primary:hover { color: #0e1a1c; }
}
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 700; }
.section-intro { color: var(--muted); margin: 0.75rem 0 2.5rem; max-width: 40rem; }
.section-title + .services, .section-title + .pubs { margin-top: 2.25rem; }
section[id] { scroll-margin-top: 5rem; }
@media (max-width: 640px) { section[id] { scroll-margin-top: 6.5rem; } }

/* Services */
.services {
    display: grid; gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
}
.service {
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.75rem; background: var(--bg);
    display: flex; flex-direction: column;
}
.service h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.service p { margin: 0 0 1rem; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.checks li { position: relative; padding-left: 1.5rem; margin-bottom: 0.4rem; }
.checks li::before {
    content: ""; position: absolute; left: 0.1rem; top: 0.62em;
    width: 0.55rem; height: 0.3rem;
    border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}
.service .deliverable {
    margin: auto 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--text);
    font-size: 0.97rem;
}

.service-wide {
    grid-column: 1 / -1; background: var(--bg-alt);
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0.5rem 2rem; align-items: start;
}
.service-wide p { margin-bottom: 0.75rem; }
.service-wide .deliverable-inline { margin: 0; }
.deliverable-inline a { font-weight: 600; text-decoration: none; }
@media (max-width: 720px) { .service-wide { grid-template-columns: 1fr; } }
.section-alt .service-wide { background: var(--bg); }

/* CTA band (replaces the former process steps) */
.cta-band { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta-title { font-size: clamp(1.3rem, 2.6vw, 1.75rem); font-weight: 700; max-width: 32ch; }
.cta-inner p { margin: 0.6rem 0 0; color: var(--muted); max-width: 42rem; }
.cta-inner .btn { flex-shrink: 0; }

/* About */
.about { display: grid; gap: clamp(2.5rem, 5vw, 4rem); grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
.about-name { color: var(--accent); font-weight: 600; margin: 0.35rem 0 1.25rem; }
.about-text > p:not(.about-name) { max-width: 40rem; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

/* Career path: one start, fork into education/work, merge at the end */
.path { --rail: 2px; --dot: 12px; --x: 5px; --pad: 1.75rem; margin-top: 0.5rem; }
.path ol { list-style: none; margin: 0; padding: 0; }
.path-node, .path li { position: relative; padding-left: var(--pad); }
.path-node::before, .path li::before {
    content: ""; position: absolute; left: 0; top: 0.4em; z-index: 1;
    width: var(--dot); height: var(--dot); border-radius: 50%;
    background: var(--bg); border: 2px solid var(--accent);
}
.path-node::before { background: var(--accent); }
.path-start { padding-bottom: 1.5rem; }
.path-start::after {
    content: ""; position: absolute; left: var(--x); top: 0.4em; bottom: 0;
    width: var(--rail); background: var(--line);
}
.path-end { padding-top: 1.5rem; }
.path-end::after {
    content: ""; position: absolute; left: var(--x); top: 0; height: calc(1.5rem + 0.4em);
    width: var(--rail); background: var(--line);
}
.path-end::before { top: calc(1.5rem + 0.4em); }

.path-fork { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.path-fork::before, .path-fork::after {
    content: ""; position: absolute; left: var(--x); width: calc(50% + 1rem); height: var(--rail); background: var(--line);
}
.path-fork::before { top: 0; }
.path-fork::after { bottom: 0; }
.path-col { position: relative; padding: 1.25rem 0; }
.path-col::before {
    content: ""; position: absolute; left: var(--x); top: 0; bottom: 0; width: var(--rail); background: var(--line);
}
.path-label {
    margin: 0 0 0.75rem; padding-left: var(--pad); font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.path li + li { margin-top: 1rem; }
.tl-title { display: block; font-weight: 600; }
.tl-sub { display: block; color: var(--muted); font-size: 0.93rem; line-height: 1.5; }

@media (max-width: 560px) {
    .path-fork { grid-template-columns: 1fr; }
    .path-fork::before, .path-fork::after { display: none; }
    .path-col + .path-col { padding-top: 0.5rem; }
}

/* Publications */
.pubs { list-style: none; padding: 0; margin: 0; }
.pubs li { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.pubs li:last-child { border-bottom: 1px solid var(--line); }
.pub-meta { margin: 0 0 0.35rem; font-size: 0.85rem; color: var(--muted); }
.pubs h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 0.4rem; }
.pubs h3 a { color: var(--text); text-decoration: none; }
.pubs h3 a:hover { color: var(--accent); text-decoration: underline; }
.pubs p:last-child { margin: 0; color: var(--muted); max-width: 46rem; }

/* Contact */
.contact { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; }
.lead-sm { color: var(--muted); margin: 0.75rem 0 1.75rem; max-width: 34rem; }
.contact-reveal { margin: 1rem 0 0; color: var(--muted); min-height: 1.6em; }
address { font-style: normal; color: var(--muted); line-height: 1.7; }
address strong { color: var(--text); }
@media (max-width: 720px) { .contact { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 1.75rem 0; font-size: 0.9rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.footer-inner p { margin: 0; }
.site-footer a { color: var(--muted); }

/* Legal page */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 2rem; }
.legal h2 { font-size: 1.25rem; margin: 2.25rem 0 0.6rem; }
.legal p, .legal ul { max-width: 44rem; color: var(--muted); }
.legal p strong { color: var(--text); }

/* About: bridge from experience to services */
.fit-wrap { grid-column: 1 / -1; }
.about-sub { font-size: 1.3rem; margin: 0 0 1.25rem; }
.fit { margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fit > div { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); }
.fit dt { font-weight: 600; margin-bottom: 0.4rem; }
.fit dt a { color: var(--text); text-decoration: none; }
.fit dt a:hover { color: var(--accent); }
.fit dd { margin: 0; color: var(--muted); }
@media (max-width: 720px) { .fit { grid-template-columns: 1fr; } }


/* Small inline tag, e.g. "auf Anfrage" */
.pubs h3 a.tag, .tag {
    font-size: 0.7rem; font-weight: 700; color: var(--accent); border: 1px solid currentColor;
    border-radius: 4px; padding: 0.05rem 0.35rem; vertical-align: 0.2em; letter-spacing: 0.04em;
    text-decoration: none; white-space: nowrap;
}
.pubs h3 a.tag:hover { color: var(--accent-strong); text-decoration: none; }
