/* =========================================================
   Immuta GmbH — Website Redesign 2026
   Modernes, responsives Stylesheet (kein Framework)
   ========================================================= */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/Inter.woff2") format("woff2");
}

:root {
    /* Markenfarben */
    --navy:        #0a2540;
    --navy-700:    #123a5e;
    --blue:        #0087cd;   /* Markenblau (übernommen) */
    --blue-600:    #0072ad;
    --blue-050:    #e8f4fb;
    --accent:      #f35111;   /* Markenakzent Orange (übernommen) */
    --accent-600:  #d93d00;   /* AA-tauglich auf Weiss (4.5:1) */
    --accent-700:  #b8350a;

    /* Neutrale Töne */
    --ink:         #15233a;
    --body:        #475467;
    --muted:       #5e6b7e;
    --line:        #e3e8ef;
    --bg:          #ffffff;
    --bg-soft:     #f6f9fc;
    --bg-softer:   #eef3f9;

    /* Form */
    --radius:      14px;
    --radius-sm:   10px;
    --shadow-sm:   0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.10);
    --shadow-md:   0 8px 24px rgba(10,37,64,.10);
    --shadow-lg:   0 20px 48px rgba(10,37,64,.16);

    --container:   1180px;
    --ease:        cubic-bezier(.16,.84,.44,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-optical-sizing: auto;
    color: var(--body);
    background: var(--bg);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--accent-600); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1.1em; }
ul { margin: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 64px 0; }
.eyebrow {
    display: inline-block;
    font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--blue-600); margin-bottom: 14px;
}
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.12rem; margin: 0; }
.lead { font-size: 1.18rem; color: var(--body); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .55em;
    font-weight: 600; font-size: 1rem; line-height: 1;
    padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
    cursor: pointer; transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent-600); color: #fff; box-shadow: 0 6px 18px rgba(243,81,17,.32); }
.btn--primary:hover { background: var(--accent-700); color: #fff; box-shadow: 0 10px 26px rgba(243,81,17,.40); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-700); color: #fff; }
.btn--light { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.btn--light:hover { color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.82);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .55em; color: var(--navy); }
.brand-logo { width: 42px; height: 42px; flex: none; }
.brand:hover { color: var(--navy); }
.brand-text { display: flex; flex-direction: column; line-height: 1.02; }
.brand-name { font-size: 1.67rem; font-weight: 800; letter-spacing: -.03em; color: var(--navy); }
.brand-tag { font-size: .56rem; font-weight: 700; letter-spacing: .131em; text-transform: uppercase; color: var(--blue-600); margin-top: 3px; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
    display: block; padding: 9px 14px; border-radius: 8px; font-weight: 500; font-size: .98rem; color: var(--ink);
}
.nav-links a:hover { background: var(--bg-softer); color: var(--navy); }
.nav-links a.active { color: var(--blue); background: var(--blue-050); }
.nav-cta { margin-left: 8px; }
/* CTA-Button im Header: weisser Text (sonst greift .nav-links a -> dunkel) */
.nav-cta .btn--primary, .nav-cta .btn--primary:hover { color: #fff; }
.nav-toggle {
    display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
    background: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s var(--ease);
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg) translateY(-1.5px); }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(0,135,205,.55), transparent 60%),
        radial-gradient(900px 500px at 0% 110%, rgba(243,81,17,.30), transparent 55%),
        linear-gradient(160deg, #0a2540 0%, #0e3358 55%, #0a2540 100%);
}
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 28px 28px; opacity: .6;
}
.hero-inner { position: relative; z-index: 1; padding: 104px 0 112px; max-width: 760px; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.22rem; color: rgba(255,255,255,.82); max-width: 600px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 40px; color: rgba(255,255,255,.7); font-size: .95rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: .5em; }
.hero-badges svg { width: 18px; height: 18px; color: var(--blue); flex: none; }

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

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 32px; box-shadow: var(--shadow-sm);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d4ddec; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }
.card .icon {
    width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
    background: var(--blue-050); color: var(--blue); margin-bottom: 20px;
}
.card .icon svg { width: 26px; height: 26px; }
.card--link { display: block; color: inherit; }
.card--link:hover { color: inherit; }
.card .more { display: inline-flex; align-items: center; gap: .4em; margin-top: 16px; font-weight: 600; color: var(--blue-600); font-size: .96rem; }
.card .more svg { width: 16px; height: 16px; transition: transform .15s var(--ease); }
.card--link:hover .more svg { transform: translateX(4px); }

/* Feature list cards (Leistungen) */
.feature-card .icon { background: #fff5f0; color: var(--accent); }

/* ---------- Split / Content ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--media img, .split--media .brand-figure { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: auto; display: block; }
.prose { max-width: 760px; }
.prose p { color: var(--body); }
.prose h2 { margin-top: 0; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--body); }
.checklist svg { width: 22px; height: 22px; color: var(--blue); flex: none; margin-top: 2px; }
.checklist strong { color: var(--ink); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 2.6rem; color: var(--navy); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stat span { color: var(--muted); font-size: .98rem; }

/* ---------- CTA band ---------- */
.cta {
    border-radius: 22px; padding: 64px 56px; text-align: center; color: #fff; position: relative; overflow: hidden;
    background: radial-gradient(900px 400px at 50% -40%, rgba(0,135,205,.6), transparent 60%), linear-gradient(150deg, #0a2540, #123a5e);
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.82); max-width: 560px; margin: 0 auto 28px; font-size: 1.12rem; }
.cta .hero-actions { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.contact-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--blue-050); color: var(--blue); display: grid; place-items: center; }
.contact-list .icon svg { width: 22px; height: 22px; }
.contact-list .label { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 2px; }
.contact-list .value { color: var(--ink); font-weight: 600; font-size: 1.05rem; }
.contact-list .value a { color: var(--ink); }
.contact-list .value a:hover { color: var(--accent-600); }

/* ---------- Formular ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--accent); }
.field input, .field textarea {
    width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 12px 14px; transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #9aa6b6; }
.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-050);
}
.field textarea { resize: vertical; min-height: 132px; }
.form-note { font-size: .86rem; color: var(--muted); margin: 0; }
.form button[type="submit"] { width: 100%; justify-content: center; }
.form button[disabled] { opacity: .6; cursor: progress; }
/* Honeypot – visuell und fuer Screenreader ausgeblendet, im DOM vorhanden */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--body); line-height: 1.5; }
.form-consent input { margin-top: 3px; flex: none; }
.form-consent a { color: var(--blue-600); }
.cf-turnstile { min-height: 65px; }
.form-status { margin: 0; font-size: .92rem; font-weight: 600; }
.form-status.is-pending { color: var(--muted); }
.form-status.is-success { color: #2e7d52; }
.form-status.is-error { color: var(--accent-600); }

@media (max-width: 540px) {
    .form-row { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); padding: 64px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-tag { color: #6fc6f0; }   /* helleres Blau auf dunklem Footer */
.footer-about p { margin: 16px 0 0; max-width: 320px; color: rgba(255,255,255,.62); font-size: .98rem; }
.footer-col h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.72); font-size: .98rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-top: 24px; font-size: .9rem; color: rgba(255,255,255,.5); }
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Page hero (Unterseiten) ---------- */
.page-hero { background: linear-gradient(160deg, #0a2540, #123a5e); color: #fff; padding: 72px 0 60px; }
.page-hero .eyebrow { color: #6fc6f0; }
.page-hero h1 { color: #fff; margin-bottom: .35em; }
.page-hero p { color: rgba(255,255,255,.8); font-size: 1.15rem; max-width: 640px; margin: 0; }
.breadcrumb { font-size: .9rem; color: rgba(255,255,255,.6); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: #fff; }

/* ---------- Legal / Prose page ---------- */
.legal { max-width: 800px; }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal address { color: var(--body); font-style: normal; }
.legal .note { background: var(--bg-soft); border-left: 3px solid var(--accent); border-radius: 8px; padding: 16px 20px; font-size: .96rem; color: var(--muted); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
/* Skip-Link: visuell versteckt, bei Tastatur-Fokus sichtbar */
.skip { position: absolute; left: 8px; top: -56px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; transition: top .15s var(--ease); }
.skip:focus { top: 8px; color: #fff; outline: 2px solid #fff; outline-offset: 2px; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Tech-Stack (Unsere Technologien) ---------- */
.tech-stack { display: grid; gap: 22px; }
.tech-row { display: grid; grid-template-columns: 52px 1fr; gap: 26px; align-items: start; }
.tech-row .icon { margin-bottom: 0; }
.tech-body h3 { margin-bottom: .35em; }
.tech-body > p { color: var(--muted); margin: 0 0 16px; font-size: 1rem; }
.tech-cert {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 16px 0 0; padding: 8px 14px;
    border: 1px solid var(--line); border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm); background: var(--bg-soft);
    color: var(--body); font-size: .92rem;
}
.tech-cert svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.tech-cert strong { color: var(--ink); font-weight: 700; }
@media (max-width: 720px) {
    .tech-row { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; gap: 36px; }
    .split--media { order: -1; }
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    body { font-size: 16px; }
    .section { padding: 64px 0; }
    .nav-toggle { display: inline-flex; }
    .nav-links {
        position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
        background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px 24px;
        box-shadow: var(--shadow-lg); transform: translateY(-12px); opacity: 0;
        visibility: hidden; pointer-events: none;
        transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s var(--ease);
    }
    /* Geschlossen real aus dem Fokus-/Tab-Fluss nehmen (nicht nur unsichtbar) */
    .nav-links.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
    .nav-links a { padding: 12px 14px; font-size: 1.05rem; }
    .nav-cta { margin: 8px 0 0; }
    .nav-cta .btn { width: 100%; justify-content: center; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr; gap: 20px; }
    .cta { padding: 48px 28px; }
    .hero-inner { padding: 72px 0 80px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important; animation-iteration-count: 1 !important;
        transition-duration: .001ms !important; scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
    .btn:hover, .card:hover { transform: none; }
    .card--link:hover .more svg { transform: none; }
}
