:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --ink: #111827;
    --muted: #667085;
    --line: rgba(17, 24, 39, .10);
    --primary: #2367ff;
    --primary-deep: #0d42ba;
    --cyan: #3de0e0;
    --dark: #08111f;
    --radius: 26px;
    --shadow: 0 24px 70px rgba(31, 52, 89, .12);
    --shell: min(1180px, calc(100% - 40px));
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Manrope", sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
h1, h2, h3 { font-family: "Space Grotesk", sans-serif; line-height: 1.05; margin: 0 0 .6em; }
p { margin: 0 0 1.2em; }
.shell { width: var(--shell); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: fixed; left: 20px; top: -80px; z-index: 1000; padding: 12px 16px; background: #fff; border-radius: 8px; }
.skip-link:focus { top: 20px; }

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    padding: 18px 0;
    transition: .3s ease;
}
.site-header.is-scrolled {
    background: rgba(244, 247, 251, .86);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    padding: 10px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; }
.custom-logo { max-height: 52px; width: auto; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    color: white;
    box-shadow: 0 12px 30px rgba(35, 103, 255, .25);
}
.brand-name { font-family: "Space Grotesk", sans-serif; font-size: 1.16rem; }
.site-menu, .footer-menu { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-menu a, .footer-menu a { text-decoration: none; font-weight: 700; font-size: .92rem; }
.site-menu a:hover, .footer-menu a:hover { color: var(--primary); }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; }
.menu-toggle > span:not(.screen-reader-text) { display: block; width: 26px; height: 2px; margin: 6px; background: var(--ink); }

.hero {
    position: relative;
    min-height: 820px;
    display: grid;
    align-items: center;
    overflow: hidden;
    padding: 150px 0 90px;
    background:
        linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px),
        radial-gradient(circle at 10% 10%, rgba(61, 224, 224, .23), transparent 30%),
        linear-gradient(135deg, #edf4ff 0%, #f6f9fc 58%, #e7f7f8 100%);
    background-size: 56px 56px, 56px 56px, auto, auto;
}
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 70px; }
.hero h1 { max-width: 760px; font-size: clamp(3.2rem, 6vw, 6.8rem); letter-spacing: -.065em; }
.hero-copy > p { max-width: 680px; color: var(--muted); font-size: 1.12rem; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: var(--primary);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border: 0;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-deep)); box-shadow: 0 14px 32px rgba(35, 103, 255, .25); }
.button-ghost { border: 1px solid var(--line); background: rgba(255,255,255,.58); }
.button-light { background: white; color: var(--dark); }
.button-disabled { opacity: .55; cursor: not-allowed; background: #e8edf5; }
.hero-visual { position: relative; }
.tech-card {
    position: relative;
    padding: 24px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 32px;
    background: linear-gradient(160deg, rgba(9,18,34,.98), rgba(18,43,79,.94));
    color: white;
    box-shadow: 0 50px 120px rgba(22, 48, 88, .28);
    transform: rotate(2deg);
}
.tech-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -90px;
    top: -90px;
    border-radius: 50%;
    background: var(--cyan);
    filter: blur(80px);
    opacity: .2;
}
.tech-card-top { display: flex; gap: 10px; align-items: center; color: #a9bad2; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 16px var(--cyan); }
.radar { position: relative; width: min(330px, 75vw); aspect-ratio: 1; margin: 28px auto; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: radial-gradient(circle, rgba(61,224,224,.15), transparent 62%); }
.radar span { position: absolute; inset: 14%; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.radar span:nth-child(2) { inset: 28%; }
.radar span:nth-child(3) { inset: 42%; }
.radar::before, .radar::after { content:""; position:absolute; background:rgba(255,255,255,.12); }
.radar::before { left:50%; top:0; bottom:0; width:1px; }
.radar::after { top:50%; left:0; right:0; height:1px; }
.radar i { position: absolute; width: 12px; height: 12px; left: 67%; top: 29%; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 22px var(--cyan); }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.metric-grid div { padding: 16px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); border-radius: 18px; }
.metric-grid strong { display: block; font-size: 1.5rem; }
.metric-grid small { color: #a9bad2; }

.section { padding: 110px 0; }
.section-heading { max-width: 760px; margin-bottom: 50px; }
.section-heading h2, .page-hero h1 { font-size: clamp(2.45rem, 5vw, 5rem); letter-spacing: -.055em; }
.section-heading > p, .page-hero > p { color: var(--muted); font-size: 1.08rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card, .project-card, .content-card, .contact-panel, .info-card, .quote-card, .legal-card, .download-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 14px 50px rgba(28, 47, 81, .055);
}
.service-card { min-height: 265px; padding: 30px; transition: .25s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-card > span { display: block; margin-bottom: 55px; color: var(--primary); font-weight: 800; }
.service-card h3 { font-size: 1.5rem; }
.service-card p { color: var(--muted); }

.section-dark { color: white; background: var(--dark); }
.section-dark .eyebrow { color: var(--cyan); }
.split-section { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; }
.feature-list > div { padding: 26px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.feature-list strong { font-family: "Space Grotesk"; font-size: 1.5rem; }
.feature-list p { margin: 7px 0 0; color: #a9bad2; }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project-card { min-height: 310px; padding: 34px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(145deg, #fff, #edf4ff); }
.project-card:nth-child(2), .project-card:nth-child(3) { background: linear-gradient(145deg, #fff, #ecfbfa); }
.project-card > span { margin-bottom: auto; color: var(--primary); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; }
.project-card h3 { font-size: 2.6rem; }
.project-card p { max-width: 410px; color: var(--muted); }

.cta-section { padding-top: 0; }
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 60px; color: white; background: linear-gradient(135deg, var(--primary-deep), var(--primary) 60%, #22bfc5); border-radius: 34px; box-shadow: var(--shadow); }
.cta-card .eyebrow { color: white; }
.cta-card h2 { max-width: 780px; margin: 0; font-size: clamp(2.3rem, 4vw, 4.4rem); }

.page-main { min-height: 70vh; padding: 145px 0 100px; }
.content-shell { max-width: 950px; }
.content-card { padding: clamp(28px, 5vw, 65px); }
.page-header h1 { font-size: clamp(2.6rem, 6vw, 5.5rem); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content a { color: var(--primary); }
.page-hero { max-width: 850px; padding: 45px 0 60px; }
.intro-content { max-width: 800px; margin: -30px 0 45px; color: var(--muted); }

.download-grid { display: grid; gap: 15px; }
.download-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 25px; }
.download-card h2 { margin: 5px 0; font-size: 1.45rem; }
.download-description p { margin: 0; color: var(--muted); }
.download-icon { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 20px; background: #eaf0ff; color: var(--primary); font-size: 1.8rem; font-weight: 800; }
.download-meta { display: flex; gap: 8px; }
.download-meta span { padding: 5px 9px; border-radius: 8px; background: #eff3f8; color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.empty-state { padding: 50px; text-align: center; border: 1px dashed #b9c4d4; border-radius: var(--radius); }

.contact-layout { display: grid; grid-template-columns: 1.35fr .65fr; gap: 20px; align-items: start; }
.contact-panel, .info-card, .quote-card, .legal-card { padding: clamp(25px, 4vw, 42px); }
.contact-panel h2, .legal-card > h2 { font-size: 2.2rem; }
.contact-sidebar { display: grid; gap: 20px; }
.info-card a { color: var(--primary); font-weight: 800; }
.quote-card { color: white; background: var(--dark); }
.quote-card blockquote { margin: 0 0 18px; font-family: "Space Grotesk"; font-size: 1.35rem; line-height: 1.4; }
.quote-card cite { color: var(--cyan); font-style: normal; }
.contact-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label > span { display: block; margin-bottom: 7px; font-size: .85rem; font-weight: 800; }
.contact-form input:not([type="checkbox"]), .contact-form textarea {
    width: 100%;
    border: 1px solid #d7deea;
    border-radius: 13px;
    background: #f8fafc;
    padding: 14px 15px;
    outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(35,103,255,.1); }
.checkbox-field { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.checkbox-field input { margin-top: 5px; }
.honeypot { position: absolute; left: -9999px; }
.form-notice { margin-bottom: 20px; padding: 14px 16px; border-radius: 12px; font-weight: 700; }
.form-notice.success { background: #e7f8ef; color: #17633c; }
.form-notice.error { background: #fff0f0; color: #a32929; }
.legal-card { margin-top: 20px; }
.legal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.legal-grid > div { padding: 22px; border-radius: 16px; background: #f5f8fc; }
.legal-grid h3 { font-size: 1rem; }
.legal-note { margin-top: 24px; padding: 17px; border-radius: 12px; background: #fff7dc; color: #68520a; }

.site-footer { padding: 75px 0 25px; color: #c6d1df; background: #050b14; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr; gap: 55px; }
.brand-footer { color: white; margin-bottom: 20px; }
.footer-grid p { max-width: 430px; }
.footer-menu { flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-contact strong { color: white; }
.footer-contact a { color: var(--cyan); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 55px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
    .menu-toggle { display: block; position: relative; z-index: 3; }
    .primary-nav {
        position: fixed;
        inset: 0;
        display: grid;
        place-items: center;
        background: rgba(244,247,251,.98);
        opacity: 0;
        pointer-events: none;
        transition: .25s ease;
    }
    .primary-nav.is-open { opacity: 1; pointer-events: auto; }
    .site-menu { flex-direction: column; font-size: 1.4rem; }
    .hero-grid, .split-section, .contact-layout { grid-template-columns: 1fr; }
    .hero { min-height: auto; }
    .hero-visual { max-width: 600px; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
    :root { --shell: min(100% - 28px, 1180px); }
    .hero { padding-top: 120px; }
    .hero h1 { font-size: clamp(2.75rem, 14vw, 4.4rem); }
    .section { padding: 78px 0; }
    .service-grid, .project-grid, .legal-grid, .field-row, .footer-grid { grid-template-columns: 1fr; }
    .service-card { min-height: 220px; }
    .download-card { grid-template-columns: auto 1fr; }
    .download-card .button { grid-column: 1 / -1; }
    .cta-card { align-items: flex-start; flex-direction: column; padding: 35px 25px; }
    .footer-bottom { flex-direction: column; }
}


.download-home {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #edf4ff 0%, #f4f7fb 100%);
}
.download-home::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -180px;
    top: 10px;
    border-radius: 50%;
    background: rgba(61, 224, 224, .18);
    filter: blur(70px);
}
.download-home-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:30px; }
.download-home-heading .section-heading { margin-bottom: 45px; }
.home-download-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:18px; position:relative; }
.home-download-card {
    display:flex;
    min-height:330px;
    padding:28px;
    flex-direction:column;
    border:1px solid rgba(35,103,255,.12);
    border-radius:var(--radius);
    background:rgba(255,255,255,.88);
    box-shadow:0 18px 55px rgba(28,47,81,.07);
    backdrop-filter:blur(12px);
    transition:.25s ease;
}
.home-download-card:hover { transform:translateY(-6px); box-shadow:var(--shadow); }
.home-download-top, .home-download-footer { display:flex; align-items:center; justify-content:space-between; gap:15px; }
.download-file-icon { display:inline-grid; place-items:center; min-width:58px; height:43px; padding:0 12px; border-radius:13px; background:linear-gradient(135deg,var(--primary),var(--primary-deep)); color:#fff; font-size:.68rem; font-weight:800; letter-spacing:.08em; }
.download-updated { color:var(--muted); font-size:.72rem; font-weight:700; }
.home-download-card h3 { margin-top:42px; font-size:1.65rem; }
.home-download-description { color:var(--muted); }
.home-download-description p { margin:0; }
.home-download-footer { margin-top:auto; padding-top:25px; border-top:1px solid var(--line); }
.download-facts { display:flex; gap:7px; flex-wrap:wrap; }
.download-facts span { padding:5px 8px; border-radius:7px; background:#edf2f8; color:var(--muted); font-size:.7rem; font-weight:800; }
.download-circle { display:grid; place-items:center; width:48px; height:48px; border-radius:50%; background:var(--dark); color:#fff; text-decoration:none; font-size:1.45rem; transition:.2s ease; }
.download-circle:hover { transform:translateY(-2px); background:var(--primary); }
.download-placeholder { grid-column:1/-1; display:flex; align-items:center; gap:25px; padding:35px; border:1px dashed rgba(35,103,255,.35); border-radius:var(--radius); background:rgba(255,255,255,.7); }
.download-placeholder h3, .download-placeholder p { margin:0; }
.download-placeholder p { color:var(--muted); }
.download-placeholder .button { margin-left:auto; flex:none; }

@media (max-width: 900px) {
    .home-download-grid { grid-template-columns:1fr 1fr; }
    .download-home-heading { align-items:flex-start; flex-direction:column; }
    .download-home-heading .section-heading { margin-bottom:0; }
}
@media (max-width: 620px) {
    .home-download-grid { grid-template-columns:1fr; }
    .download-placeholder { align-items:flex-start; flex-direction:column; }
    .download-placeholder .button { margin-left:0; width:100%; }
}


/* Version 1.2: fest angeordnete Service-/Rechtsnavigation */
.primary-nav { display: flex; align-items: center; gap: 28px; }
.site-menu-legal { gap: 20px; padding-left: 28px; border-left: 1px solid var(--line); }
.site-menu-legal a { white-space: nowrap; }
@media (min-width: 901px) {
    .service-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .primary-nav { flex-direction: column; gap: 28px; }
    .site-menu-legal { flex-direction: column; padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Download-Zusatzhinweise */
.download-additional-note {
    margin-top: 20px;
    padding: 18px 20px;
    border-left: 4px solid var(--primary);
    border-radius: 0 14px 14px 0;
    background: #f3f7ff;
}
.download-additional-note h3 {
    margin: 0 0 8px;
    font-size: .95rem;
    color: var(--primary-deep);
}
.download-full-content > *:first-child { margin-top: 0; }
.download-full-content > *:last-child { margin-bottom: 0; }
.download-full-content p,
.download-full-content li { color: var(--ink); }
.download-full-content a { color: var(--primary); font-weight: 700; }
.download-full-content ul,
.download-full-content ol { padding-left: 1.35rem; }

@media (max-width: 620px) {
    .download-additional-note { grid-column: 1 / -1; }
}

/* Projekt-besprechen-Unterseite */
.contact-form select {
    width: 100%;
    border: 1px solid #d7deea;
    border-radius: 13px;
    background: #f8fafc;
    padding: 14px 15px;
    color: var(--ink);
    outline: none;
}
.contact-form select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(35,103,255,.1);
}
.project-info-card .contact-actions {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}
.project-info-card .button {
    width: 100%;
}
.text-link {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
.project-contact-page .quote-card p { margin: 0; color: #c6d1df; }

/* Version 1.9: Referenzen */
.references-section { background: #f7f9fc; }
.references-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.reference-card { display:flex; flex-direction:column; min-height:100%; padding:30px; border:1px solid var(--line); border-radius:var(--radius); background:#fff; box-shadow:0 18px 55px rgba(28,47,81,.07); }
.reference-card-head { display:flex; align-items:center; gap:18px; }
.reference-logo { display:grid; place-items:center; flex:0 0 82px; width:82px; height:82px; overflow:hidden; border:1px solid var(--line); border-radius:18px; background:#f7f9fc; color:var(--primary); font-family:"Space Grotesk",sans-serif; font-size:2rem; font-weight:800; }
.reference-logo img { width:100%; height:100%; object-fit:contain; padding:8px; }
.reference-card h2 { margin:0 0 5px; font-size:1.45rem; }
.reference-since { margin:0; color:var(--muted); font-size:.8rem; font-weight:700; }
.reference-description { margin:24px 0 0; color:var(--muted); }
.reference-description > *:first-child { margin-top:0; }
.reference-description > *:last-child { margin-bottom:0; }
.reference-products { margin-top:24px; }
.reference-products h3 { margin:0 0 10px; font-size:.82rem; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); }
.reference-tags { display:flex; flex-wrap:wrap; gap:8px; }
.reference-tags a, .reference-tags span { display:inline-flex; padding:7px 10px; border-radius:9px; background:#edf2ff; color:var(--primary-deep); font-size:.75rem; font-weight:800; text-decoration:none; }
.reference-tags a:hover { background:var(--primary); color:#fff; }
.reference-card blockquote { margin:24px 0 0; padding:18px 20px; border-left:4px solid var(--primary); border-radius:0 14px 14px 0; background:#f3f7ff; color:var(--ink); font-weight:600; }
.reference-footer { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-top:auto; padding-top:24px; }
.reference-footer > span { color:var(--muted); font-size:.82rem; }
.reference-empty { padding:45px; border:1px dashed rgba(35,103,255,.35); border-radius:var(--radius); background:#fff; text-align:center; }
.reference-empty h2 { margin-top:0; }
.reference-empty p { margin-bottom:0; color:var(--muted); }
@media (max-width:800px) { .references-grid { grid-template-columns:1fr; } }
@media (max-width:520px) { .reference-card { padding:22px; } .reference-card-head { align-items:flex-start; } .reference-logo { flex-basis:64px; width:64px; height:64px; } .reference-footer { align-items:flex-start; flex-direction:column; } }

/* Version 1.11: Referenzseite konsequent zentrieren */
.references-page .page-hero .shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.references-page .page-hero p {
    max-width: 760px;
    margin-inline: auto;
}
.references-page .references-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 560px));
    justify-content: center;
}
.references-page .reference-card {
    width: 100%;
}


/* Version 1.12: Referenzseite – einheitlicher, wirklich zentrierter Aufbau */
.references-page {
    padding-top: 104px;
}
.references-page .page-hero {
    width: 100%;
    max-width: none;
    padding: 54px 0 58px;
}
.references-page .page-hero .shell {
    width: var(--shell);
    max-width: 1180px;
    margin-inline: auto;
    display: block;
    text-align: center;
}
.references-page .page-hero .eyebrow {
    justify-content: center;
}
.references-page .page-hero h1 {
    margin-inline: auto;
}
.references-page .page-hero p {
    max-width: 780px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.08rem;
}
.references-page .references-section {
    padding: 64px 0 110px;
}
.references-page .references-section > .shell {
    width: var(--shell);
    max-width: 1180px;
    margin-inline: auto;
}
.references-page .references-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 560px));
    justify-content: center;
    align-items: stretch;
    gap: 24px;
}
.references-page .reference-card {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
}
@media (max-width: 700px) {
    .references-page { padding-top: 82px; }
    .references-page .page-hero { padding: 42px 0 42px; }
    .references-page .references-section { padding: 42px 0 80px; }
}

/* Referenzen: Seitennavigation */
.references-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}
.references-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.references-pagination a,
.references-pagination span {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(28,47,81,.06);
}
.references-pagination a:hover,
.references-pagination a:focus-visible,
.references-pagination .current {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

/* Version 1.14: Kontaktlinks */
.project-info-card .contact-email-button,
.project-info-card .contact-email-button:link,
.project-info-card .contact-email-button:visited,
.project-info-card .contact-email-button:hover,
.project-info-card .contact-email-button:focus-visible {
    color: #fff;
    opacity: 1;
    font-weight: 800;
    text-shadow: none;
}

/* Version 2.0: Short News */
.short-news-home {
    background: linear-gradient(180deg, #fff 0%, #f5f8ff 100%);
    padding-top: 38px;
}
.short-news-heading {
    max-width: 820px;
    margin: 0 auto 34px;
    text-align: center;
}
.short-news-heading h2 {
    font-size: clamp(2.2rem, 4.5vw, 4.4rem);
}
.short-news-grid,
.short-news-archive-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 980px;
    margin-inline: auto;
}
.short-news-card {
    position: relative;
    min-height: 220px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,.96);
    box-shadow: 0 18px 50px rgba(28,47,81,.08);
    overflow: hidden;
}
.short-news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--cyan));
}
.short-news-card time {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--primary-deep);
    font-size: .84rem;
    font-weight: 800;
    letter-spacing: .08em;
}
.short-news-card h3,
.short-news-card h2 {
    margin: 0 0 12px;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    letter-spacing: -.025em;
}
.short-news-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
    overflow-wrap: anywhere;
}
.short-news-more {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}
.short-news-page .page-hero {
    text-align: center;
}
.short-news-page-heading {
    max-width: 850px;
    margin-inline: auto;
}
.short-news-archive-section {
    padding-top: 55px;
}
.short-news-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.short-news-empty {
    max-width: 680px;
    margin-inline: auto;
    padding: 40px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}
@media (max-width: 760px) {
    .short-news-grid,
    .short-news-archive-grid {
        grid-template-columns: 1fr;
    }
    .short-news-card {
        min-height: 0;
        padding: 25px;
    }
}


/* Version 2.1: reliable centering and homepage placement for Short News */
.short-news-home {
    position: relative;
    width: 100%;
    clear: both;
    padding: 84px 0 92px;
    background: linear-gradient(180deg, #f7f9fe 0%, #eef4ff 100%);
}
.short-news-home > .shell,
.short-news-page .page-hero > .shell,
.short-news-archive-section > .shell {
    width: min(1180px, calc(100% - 40px));
    margin-right: auto;
    margin-left: auto;
}
.short-news-heading,
.short-news-page-heading {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 38px;
    padding: 0;
    text-align: center;
}
.short-news-heading .eyebrow,
.short-news-page-heading .eyebrow {
    justify-content: center;
}
.short-news-heading h2,
.short-news-page-heading h1,
.short-news-heading p,
.short-news-page-heading p {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}
.short-news-page .page-hero {
    padding: 92px 0 68px;
}
.short-news-page-heading h1 {
    max-width: 100%;
}
.short-news-grid.is-single,
.short-news-archive-grid.is-single {
    grid-template-columns: minmax(0, 480px);
    justify-content: center;
}
.short-news-grid:not(.is-single),
.short-news-archive-grid:not(.is-single) {
    justify-content: center;
}
.short-news-archive-section {
    padding: 55px 0 100px;
}
@media (max-width: 760px) {
    .short-news-home { padding: 62px 0 70px; }
    .short-news-home > .shell,
    .short-news-page .page-hero > .shell,
    .short-news-archive-section > .shell {
        width: min(100% - 28px, 1180px);
    }
    .short-news-page .page-hero { padding: 70px 0 48px; }
}


/* Version 2.2: Short-News archive full-width centering fix */
.short-news-page .page-hero {
    width: 100%;
    max-width: none;
    margin: 0;
}
.short-news-page .page-hero .short-news-page-heading {
    width: min(900px, calc(100% - 40px));
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}
.short-news-page .page-hero .short-news-page-heading > * {
    margin-right: auto;
    margin-left: auto;
}
.short-news-page .short-news-archive-section {
    width: 100%;
}
.short-news-page .short-news-archive-section > .shell {
    width: min(1180px, calc(100% - 40px));
    margin-right: auto;
    margin-left: auto;
}
.short-news-page .short-news-archive-grid {
    margin-right: auto;
    margin-left: auto;
}
@media (max-width: 760px) {
    .short-news-page .page-hero .short-news-page-heading,
    .short-news-page .short-news-archive-section > .shell {
        width: min(100% - 28px, 1180px);
    }
}

/* Version 2.3: Unsere Lösungen */
.solutions-page {
    padding-top: 90px;
}
.solutions-hero {
    padding: 75px 0 58px;
    background:
        radial-gradient(circle at 20% 20%, rgba(61,224,224,.16), transparent 27%),
        radial-gradient(circle at 85% 0%, rgba(35,103,255,.16), transparent 29%),
        linear-gradient(180deg, #f5f8fe 0%, #eef3fb 100%);
}
.solutions-page-heading {
    max-width: 920px;
    text-align: center;
}
.solutions-page-heading .eyebrow { justify-content: center; }
.solutions-page-heading h1 {
    font-size: clamp(3.2rem, 7vw, 7rem);
    letter-spacing: -.065em;
}
.solutions-page-heading p {
    max-width: 720px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.12rem;
}
.solutions-section { padding: 72px 0 110px; }
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}
.solution-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 100%;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 18px 60px rgba(28,47,81,.08);
}
.solution-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 26px 14px;
}
.solution-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #eaf7f2;
    color: #177452;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.solution-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #21b37d;
    box-shadow: 0 0 0 4px rgba(33,179,125,.12);
}
.solution-number {
    color: #a4afbf;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
}
.solution-visual {
    height: 230px;
    margin: 0 22px;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(135deg, #eaf1ff, #e9fbfa);
}
.solution-visual img { width: 100%; height: 100%; object-fit: cover; }
.solution-placeholder { display: grid; place-items: center; }
.solution-placeholder span {
    font-family: "Space Grotesk", sans-serif;
    font-size: 6rem;
    font-weight: 700;
    color: rgba(35,103,255,.28);
}
.solution-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 30px;
}
.solution-body h2 { font-size: clamp(2rem, 3.2vw, 3rem); margin-bottom: 7px; }
.solution-subtitle { color: var(--primary); font-weight: 800; font-size: 1.08rem; }
.solution-description { color: var(--muted); }
.solution-description p:last-child { margin-bottom: 0; }
.solution-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 9px 12px;
    list-style: none;
    margin: 26px 0 28px;
    padding: 0;
}
.solution-features li {
    position: relative;
    padding-left: 21px;
    font-size: .88rem;
    font-weight: 700;
}
.solution-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
}
.solution-demo { align-self: flex-start; margin-top: auto; }
.solutions-empty {
    max-width: 720px;
    margin: 0 auto;
    padding: 50px;
    text-align: center;
    border: 1px dashed #b9c4d4;
    border-radius: var(--radius);
    background: #fff;
}
@media (max-width: 820px) {
    .solutions-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .solutions-page { padding-top: 75px; }
    .solutions-hero { padding: 55px 0 42px; }
    .solutions-section { padding: 48px 0 78px; }
    .solution-visual { height: 180px; margin: 0 14px; }
    .solution-body { padding: 24px; }
    .solution-features { grid-template-columns: 1fr; }
}
