:root {
    --bg: #0B1F33;
    --bg-soft: #112a45;
    --bg-elevated: #1a3556;
    --text: #D6E4F0;
    --text-muted: #93a8c1;
    --highlight: #FF6A00;
    --accent: #3A6EA5;
    --max-content: 760px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--highlight);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 120ms ease, color 120ms ease;
}
a:hover { border-bottom-color: var(--highlight); }

/* ---- Top header ---- */
.site-header {
    max-width: var(--max-content);
    margin: 0 auto;
    padding: 28px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    position: relative;
    z-index: 2;
}
.site-header .brand {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 0;
}
.site-header .brand a { color: var(--text); border: none; display: inline-block; }
.site-header .brand a:hover { color: var(--highlight); }
.site-header .brand img.logo {
    height: 48px;
    width: auto;
    display: block;
    transition: opacity 140ms ease;
}
.site-header .brand a:hover img.logo { opacity: 0.85; }
@media (max-width: 600px) {
    .site-header .brand img.logo { height: 40px; }
}
.site-header nav { font-size: 14px; }
.site-header nav a {
    color: var(--text-muted);
    margin-left: 20px;
}
.site-header nav a:hover { color: var(--highlight); }
.site-header nav .lang-switch {
    margin-left: 24px;
    padding-left: 20px;
    border-left: 1px solid var(--bg-soft);
    color: var(--accent);
    font-weight: 700;
}
.site-header nav .lang-switch:hover { color: var(--highlight); }

/* ---- Hero with full-bleed background image ---- */
.hero {
    position: relative;
    min-height: 70vh;
    background:
        linear-gradient(180deg,
            rgba(11,31,51,0.78) 0%,
            rgba(11,31,51,0.30) 38%,
            rgba(11,31,51,0.85) 100%),
        url('img/hero-sunset.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 100px 24px 80px;
    margin-top: -64px; /* tuck behind header so the photo bleeds upward */
}
.hero-content {
    max-width: var(--max-content);
    margin: 0 auto;
    width: 100%;
    padding-top: 64px; /* compensate the tuck so content stays put */
}
.hero h1 {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.hero .lead {
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.5;
    color: rgba(255,255,255,0.94);
    margin: 0 0 32px;
    max-width: 640px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.hero .cta {
    display: inline-block;
    color: var(--highlight);
    font-size: 18px;
    font-weight: 700;
    border-bottom: 2px solid var(--highlight);
    padding-bottom: 2px;
}

/* ---- Sections ---- */
main { display: block; }
.section {
    max-width: var(--max-content);
    margin: 0 auto;
    padding: 64px 24px;
}
.section.tight { padding: 40px 24px; }
.section.intro {
    padding-top: 56px;
    padding-bottom: 24px;
}
.section.intro h1 {
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    color: var(--text);
}
.section.intro .lead {
    font-size: clamp(17px, 2vw, 20px);
    margin-bottom: 0;
}
.service-block {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--bg-soft);
}
.service-block:first-of-type { border-top: none; padding-top: 0; }
.service-block h2 {
    margin: 0 0 8px;
    color: var(--text);
}
.service-block .tagline {
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 16px;
}
.service-block .meta {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 6px 20px;
    margin: 16px 0 0;
    font-size: 15px;
    padding: 14px 18px;
    background: var(--bg-soft);
    border-radius: 4px;
}
.service-block .meta dt {
    font-weight: 700;
    color: var(--accent);
    margin: 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.service-block .meta dd { margin: 0; color: var(--text-muted); }

/* ---- Platform pillar cards (richer than .card, with sub-list) ---- */
.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 28px;
}
.pillar {
    background: var(--bg-soft);
    border-left: 3px solid var(--highlight);
    padding: 22px 22px 24px;
    border-radius: 4px;
}
.pillar h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.005em;
}
.pillar p {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-muted);
}
.pillar ul {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}
.pillar li {
    padding: 4px 0 4px 16px;
    position: relative;
    font-size: 14px;
    color: var(--text);
    line-height: 1.4;
}
.pillar li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
}

/* Component chips strip (NiFi / WebDB / containers / etc.) */
.components {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}
.components li {
    background: var(--bg-soft);
    color: var(--text);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1.2;
    border: 1px solid var(--bg-elevated);
}
.components li strong { color: var(--highlight); }
.section h2 {
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 700;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
    color: var(--text);
}
.section h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 24px 0 8px;
    color: var(--accent);
}
.section p { margin: 0 0 16px; }
.section .lead {
    font-size: 19px;
    color: var(--text);
    margin-bottom: 24px;
    max-width: 640px;
}

/* ---- Service cards ---- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 28px;
}
.card {
    background: var(--bg-soft);
    border-left: 3px solid var(--accent);
    padding: 22px 22px 24px;
    border-radius: 4px;
}
.card h3 {
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.005em;
}
.card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-muted);
}

/* ---- Why-list (vendor-agnostic / private-AI / built-to-grow) ---- */
.why-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}
.why-list li {
    padding: 14px 0 14px 28px;
    position: relative;
    border-bottom: 1px solid var(--bg-soft);
}
.why-list li:last-child { border-bottom: none; }
.why-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 14px;
    color: var(--highlight);
    font-weight: 700;
}
.why-list li strong { color: var(--text); }

/* ---- Industries (compact 2-column list) ---- */
.industries-list {
    columns: 2;
    column-gap: 32px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}
.industries-list li {
    padding: 6px 0 6px 18px;
    position: relative;
    break-inside: avoid;
    line-height: 1.5;
}
.industries-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* ---- Stats (outcomes) ---- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    margin: 24px 0 0;
}
.stat strong {
    display: block;
    font-size: clamp(40px, 5vw, 52px);
    font-weight: 700;
    color: var(--highlight);
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.stat span {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.4;
    display: block;
}

/* ---- Full-bleed image breaks ---- */
.break {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    background: var(--bg-soft);
}
.break img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 480px;
    object-fit: cover;
}

/* ---- Contact CTA ---- */
.contact-cta {
    text-align: center;
    padding-top: 40px;
    padding-bottom: 64px;
}
.contact-cta p { color: var(--text-muted); margin-bottom: 24px; }
.contact-cta .btn {
    display: inline-block;
    padding: 16px 28px;
    border: 2px solid var(--highlight);
    border-radius: 4px;
    color: var(--highlight);
    font-size: 17px;
    font-weight: 700;
    transition: background 140ms ease, color 140ms ease;
}
.contact-cta .btn:hover {
    background: var(--highlight);
    color: var(--bg);
    border-bottom-color: var(--highlight);
}

/* ---- Legal page styling (used by impressum / datenschutz / cookies) ---- */
.legal {
    max-width: 680px;          /* slightly narrower for legal text readability */
}
.legal .meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: baseline;
    padding: 16px 20px;
    background: var(--bg-soft);
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 32px;
}
.legal .meta-bar strong { color: var(--text); }
.legal h2 {
    margin-top: 48px;
    padding-top: 16px;
    border-top: 1px solid var(--bg-soft);
}
.legal h2:first-of-type { border-top: none; padding-top: 0; }
.legal .section-num {
    color: var(--accent);
    font-weight: 700;
    margin-right: 8px;
}

/* Table-of-contents for the longer legal pages */
.toc {
    background: var(--bg-soft);
    border-left: 3px solid var(--accent);
    padding: 18px 22px;
    margin: 24px 0 32px;
    border-radius: 4px;
}
.toc h3 {
    margin: 0 0 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
}
.toc ol {
    counter-reset: toc;
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 28px;
}
.toc ol li {
    counter-increment: toc;
    padding: 4px 0 4px 28px;
    position: relative;
    line-height: 1.4;
    break-inside: avoid;
    font-size: 15px;
}
.toc ol li::before {
    content: counter(toc);
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--accent);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.toc a {
    color: var(--text-muted);
    border-bottom: 1px solid transparent;
}
.toc a:hover {
    color: var(--highlight);
    border-bottom-color: var(--highlight);
}

/* Address-block / dl styling */
.address-block {
    background: var(--bg-soft);
    border-left: 3px solid var(--accent);
    padding: 18px 22px;
    margin: 20px 0;
    border-radius: 4px;
}
.address-block p { margin: 4px 0; }
.address-block strong { color: var(--text); }

/* Two-column key-value layout for facts (impressum) */
.fact-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px 24px;
    margin: 16px 0;
    font-size: 16px;
}
.fact-grid dt {
    font-weight: 700;
    color: var(--accent);
    margin: 0;
}
.fact-grid dd { margin: 0; }

/* Card-grid for impressum's small facts (Vertretung / Reg / USt-ID) */
.fact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 24px 0;
}
.fact-card {
    background: var(--bg-soft);
    border-left: 3px solid var(--accent);
    padding: 16px 18px;
    border-radius: 4px;
}
.fact-card .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
    margin: 0 0 6px;
}
.fact-card .value {
    font-size: 16px;
    color: var(--text);
    line-height: 1.4;
    margin: 0;
}

/* Inline "back to top" anchors after long legal sections */
.to-top {
    display: inline-block;
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-muted);
}
.to-top:hover { color: var(--highlight); }

.muted { color: var(--text-muted); font-size: 14px; }
.section ul:not(.industries-list):not(.why-list):not(.toc ol):not(.fact-grid),
.section ol:not(.toc ol) {
    padding-left: 24px;
    margin: 0 0 16px;
}
.section li { margin-bottom: 6px; }
.legal dl { margin: 16px 0; }
.legal dl:not(.fact-grid):not(.fact-cards) dt { font-weight: 700; margin-top: 12px; color: var(--accent); }
.legal dl:not(.fact-grid):not(.fact-cards) dd { margin-left: 0; }

/* ---- Footer ---- */
footer {
    max-width: var(--max-content);
    margin: 0 auto;
    padding: 32px 24px 48px;
    border-top: 1px solid var(--bg-soft);
    font-size: 14px;
    color: var(--text-muted);
}
footer nav a {
    color: var(--text-muted);
    margin-right: 20px;
}
footer nav a:hover { color: var(--highlight); }
footer .copyright {
    margin-top: 16px;
    color: var(--text-muted);
}

/* ---- Mobile ---- */
@media (max-width: 600px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-top: 20px;
    }
    .site-header nav a { margin-left: 0; margin-right: 16px; }
    .hero {
        min-height: 60vh;
        padding: 80px 20px 64px;
        margin-top: -56px;
    }
    .hero-content { padding-top: 56px; }
    .section { padding: 48px 20px; }
    .industries-list { columns: 1; }
    .stats { gap: 24px; }
}
