/* ============================================================
   IMS GmbH — Dark Industrial Premium
   Farbschema: Rot #C8252A + Schwarz #0D0D0D (Logo-treu)
   ============================================================ */

:root {
    --red:          #C8252A;
    --red-dark:     #A31E22;
    --red-glow:     rgba(200, 37, 42, 0.12);
    --black:        #0D0D0D;
    --dark:         #111111;
    --dark2:        #181818;
    --dark3:        #222222;
    --white:        #FFFFFF;
    --gray:         #F5F5F5;
    --gray2:        #EBEBEB;
    --ink:          #181818;
    --muted-dark:   #9A9A9A;
    --muted-light:  #5C6470;
    --border-dark:  rgba(255, 255, 255, 0.08);
    --border-dark2: rgba(255, 255, 255, 0.14);
    --border-light: rgba(0, 0, 0, 0.10);
    --shadow:       0 20px 60px rgba(0, 0, 0, 0.10);
    --shadow-dark:  0 20px 60px rgba(0, 0, 0, 0.40);
    --radius:       18px;
    --radius-sm:    10px;
    --radius-lg:    26px;
}

/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, 'Segoe UI', system-ui, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ============ LAYOUT ============ */
.container {
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
}
.section { padding: 100px 0; }
.section-light { background: var(--gray); }
.section-dark  { background: var(--dark); }

/* ============ TYPOGRAPHY ============ */
.eyebrow {
    display: block;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted-dark);
    margin: 0 0 16px;
}
.eyebrow-red { color: var(--red); }

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

h1 {
    font-size: clamp(2.8rem, 6vw, 5.6rem);
    font-weight: 900;
    color: var(--white);
}
h2 {
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 20px;
}
h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header          { max-width: 760px; margin-bottom: 56px; }
.section-header.center   { text-align: center; margin-inline: auto; }
.section-header .lead    { font-size: 1.1rem; color: var(--muted-light); margin-top: 16px; max-width: 580px; }
.section-header.center .lead { margin-inline: auto; }

.section-dark h2      { color: var(--white); }
.section-dark .eyebrow { color: var(--muted-dark); }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.94rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.22s ease;
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.btn:hover { transform: translateY(-2px); }

.btn-red          { background: var(--red);   color: var(--white); border-color: var(--red); }
.btn-red:hover    { background: var(--red-dark); border-color: var(--red-dark); }

.btn-ghost        { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.28); }
.btn-ghost:hover  { border-color: rgba(255,255,255,0.65); }

.btn-white        { background: var(--white); color: var(--red); border-color: var(--white); }
.btn-white:hover  { background: var(--gray); }

.btn-ghost-white       { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.45); }
.btn-ghost-white:hover { border-color: var(--white); }

.btn-outline-dark       { background: transparent; color: var(--ink); border-color: rgba(0,0,0,0.22); }
.btn-outline-dark:hover { border-color: var(--ink); }

/* ============ SCROLL REVEAL ============ */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.delay   { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.30s; }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 13, 13, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-dark);
}
.nav-wrap {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo bekommt weißen Hintergrund damit schwarzer Text auf dunkler Nav sichtbar ist */
.brand {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 14px;
    border-radius: 10px;
    flex-shrink: 0;
    transition: background 0.2s;
}
.brand:hover { background: rgba(255, 255, 255, 1); }
.site-logo { height: 58px; width: auto; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}
.main-nav a {
    font-weight: 600;
    font-size: 0.91rem;
    color: #C0C0C0;
    transition: color 0.2s;
    padding: 4px 0;
}
.main-nav a:hover { color: var(--white); }
.nav-cta {
    background: var(--red) !important;
    color: var(--white) !important;
    padding: 10px 20px !important;
    border-radius: 999px;
    font-size: 0.87rem !important;
    transition: background 0.22s !important;
}
.nav-cta:hover { background: var(--red-dark) !important; color: var(--white) !important; }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
}
.bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: 0.3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: var(--black);
    padding: 96px 0 0;
    position: relative;
    overflow: hidden;
}
/* Subtiler roter Glow oben rechts */
.hero::before {
    content: '';
    position: absolute;
    top: -15%;
    right: -8%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(200, 37, 42, 0.13) 0%, transparent 62%);
    pointer-events: none;
}
.hero .container { position: relative; }

.hero-content {
    max-width: 840px;
    padding-bottom: 64px;
}
.hero .eyebrow { color: var(--red); margin-bottom: 22px; }

h1 em.text-red { font-style: normal; color: var(--red); }

.hero-lead {
    font-size: 1.18rem;
    color: var(--muted-dark);
    max-width: 600px;
    margin: 26px 0 38px;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Stats-Leiste am unteren Rand des Hero */
.hero-stats {
    border-top: 1px solid var(--border-dark);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 0;
}
.stat {
    padding: 30px 32px;
    border-right: 1px solid var(--border-dark);
}
.stat:last-child { border-right: none; }
.stat strong {
    display: block;
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 6px;
}
.stat span {
    font-size: 0.78rem;
    color: var(--muted-dark);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
    background: var(--dark2);
    border-bottom: 1px solid var(--border-dark);
    padding: 22px 0;
}
.trust-bar-inner {
    display: flex;
    align-items: center;
    gap: 36px;
    flex-wrap: wrap;
}
.trust-label {
    font-size: 0.70rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #444;
    white-space: nowrap;
    margin: 0;
    flex-shrink: 0;
}
.trust-logos {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    align-items: center;
}
.trust-logos span {
    font-size: 0.85rem;
    font-weight: 700;
    color: #4A4A4A;
    letter-spacing: 0.06em;
    transition: color 0.2s;
}
.trust-logos span:hover { color: #787878; }

/* ============================================================
   LEISTUNGEN
   ============================================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-top: 3px solid transparent;
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
    transition: border-top-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.card:hover {
    border-top-color: var(--red);
    transform: translateY(-4px);
    box-shadow: 0 28px 70px rgba(0,0,0,0.13);
}
.card-num {
    font-size: 0.72rem;
    font-weight: 900;
    color: var(--red);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.card h3 { font-size: 1.22rem; font-weight: 800; color: var(--ink); margin-bottom: 14px; }
.card p   { color: var(--muted-light); line-height: 1.72; margin: 0; font-size: 0.96rem; }

/* ============================================================
   BRANCHEN
   ============================================================ */
.branchen-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.branche {
    background: var(--dark2);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    padding: 32px 26px;
    transition: border-color 0.25s, background 0.25s;
    cursor: default;
}
.branche:hover {
    border-color: var(--red);
    background: rgba(200, 37, 42, 0.05);
}
.branche-num {
    font-size: 0.72rem;
    font-weight: 900;
    color: var(--red);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.branche h3 { color: var(--white); font-size: 1.12rem; margin-bottom: 12px; }
.branche p  { color: var(--muted-dark); font-size: 0.91rem; line-height: 1.68; margin: 0; }

/* ============================================================
   REFERENZEN
   ============================================================ */
.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.project {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.07);
    transition: box-shadow 0.25s, transform 0.25s;
}
.project:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.14);
    transform: translateY(-3px);
}
.project-image {
    width: 100%;
    height: 228px;
    object-fit: cover;
    display: block;
    transition: transform 0.42s ease;
}
.project:hover .project-image { transform: scale(1.04); }

.project-body { padding: 24px 28px 28px; }

.project-cat {
    display: block;
    font-size: 0.70rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--red);
    margin-bottom: 8px;
}
.project-body h3 { font-size: 1.12rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.project-body p  { color: var(--muted-light); font-size: 0.91rem; margin: 0 0 20px; line-height: 1.6; }

.info-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border: 1.5px solid rgba(0,0,0,0.18);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font-weight: 700;
    font-size: 0.84rem;
    cursor: pointer;
    transition: all 0.22s;
    font-family: inherit;
}
.info-btn:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

/* Breite Zusatz-Karte */
.project-wide {
    grid-column: 1 / -1;
    background: var(--dark);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    padding: 40px 44px;
    overflow: visible;
}
.project-wide:hover { transform: none; box-shadow: 0 8px 32px rgba(0,0,0,0.07); }
.project-wide .project-cat { color: var(--red); margin-bottom: 14px; }
.project-wide p  { color: var(--muted-dark); max-width: 680px; margin: 0 0 22px; font-size: 0.95rem; }
.project-wide h3 {
    font-size: 1.02rem;
    font-weight: 500;
    color: #C8C8C8;
    line-height: 2.0;
    letter-spacing: -0.01em;
}

/* ============================================================
   UNTERNEHMEN
   ============================================================ */
.unternehmen-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 72px;
    align-items: center;
}
.unternehmen-grid .section-header { margin-bottom: 0; max-width: none; }
.unternehmen-grid h2 {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 1.12;
    margin-bottom: 20px;
}
.company-lead {
    font-size: 1.04rem;
    color: var(--muted-light);
    line-height: 1.78;
    margin: 0;
}
.values { display: grid; gap: 16px; }
.value-item {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--red);
    border-radius: var(--radius-sm);
    padding: 22px 24px;
    display: grid;
    gap: 6px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.06);
    transition: box-shadow 0.22s;
}
.value-item:hover { box-shadow: 0 12px 36px rgba(0,0,0,0.10); }
.value-item strong { font-size: 1.03rem; font-weight: 800; color: var(--ink); }
.value-item span   { font-size: 0.91rem; color: var(--muted-light); line-height: 1.6; }

/* ============================================================
   KONTAKT CTA (roter Banner)
   ============================================================ */
.contact-cta { background: var(--red); padding: 80px 0; }
.contact-cta-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
}
.contact-cta .eyebrow { color: rgba(255,255,255,0.65); }
.contact-cta h2 {
    color: var(--white);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    margin-bottom: 12px;
}
.contact-cta p {
    color: rgba(255,255,255,0.82);
    max-width: 500px;
    margin: 0;
    font-size: 1.02rem;
}
.contact-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    min-width: 230px;
}

/* ============================================================
   DUAL SPLIT (Projekt | Karriere)
   ============================================================ */
.dual-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.split-panel { padding: 88px 72px; }
.split-panel-dark  { background: var(--dark); }
.split-panel-light { background: var(--gray); }
.split-content { max-width: 420px; }

.split-panel-dark h3 {
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.12;
}
.split-panel-light h3 {
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    color: var(--ink);
    margin-bottom: 16px;
    line-height: 1.12;
}
.split-panel-dark p  { color: var(--muted-dark);  margin-bottom: 32px; line-height: 1.68; }
.split-panel-light p { color: var(--muted-light); margin-bottom: 32px; line-height: 1.68; }

/* ============================================================
   ANFRAGE FORMULARE
   ============================================================ */
.inquiry-section { background: var(--gray); }

.form-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 52px;
}
.form-panel {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 42px;
    box-shadow: var(--shadow);
}
.form-panel h3    { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; color: var(--ink); }
.form-panel > p   { color: var(--muted-light); margin-bottom: 28px; font-size: 0.94rem; }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.87rem;
    margin-bottom: 8px;
    color: var(--ink);
}
.form-group input,
.form-group textarea {
    width: 100%;
    border: 1.5px solid rgba(0, 0, 0, 0.14);
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    font: inherit;
    font-size: 0.94rem;
    background: var(--white);
    color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(200, 37, 42, 0.10);
}

.privacy-check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.87rem;
    color: var(--muted-light);
    line-height: 1.55;
    margin: 8px 0 24px;
}
.privacy-check input {
    margin-top: 3px;
    min-width: 18px;
    min-height: 18px;
    accent-color: var(--red);
}
.privacy-check a { color: var(--red); font-weight: 700; }

.form-submit { border: none; cursor: pointer; width: 100%; font-size: 1rem; padding: 15px 28px; }

.hp-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--black);
    padding: 42px 0;
    border-top: 1px solid var(--border-dark);
}
.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-grid strong { display: block; color: var(--white); font-size: 0.92rem; margin-bottom: 4px; }
.footer-grid p { color: var(--muted-dark); font-size: 0.82rem; margin: 0; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
    color: var(--muted-dark);
    font-size: 0.84rem;
    font-weight: 500;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

/* ============================================================
   MODAL
   ============================================================ */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.project-modal.active { display: flex; }
.project-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.project-modal-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.45);
}
#modalLocation {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--red);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    font-size: 0.73rem;
}
#modalTitle {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    line-height: 1.2;
}
#modalDetails {
    color: var(--muted-light);
    line-height: 1.88;
    font-size: 0.94rem;
}
.modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    border: none;
    background: transparent;
    font-size: 30px;
    cursor: pointer;
    color: var(--muted-dark);
    transition: color 0.2s;
    line-height: 1;
    font-family: inherit;
}
.modal-close:hover { color: var(--ink); }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(17, 17, 17, 0.97);
    color: var(--white);
    padding: 20px 26px;
    border-radius: 14px;
    z-index: 9998;
    box-shadow: 0 10px 40px rgba(0,0,0,0.55);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-dark);
    animation: slideUp 0.4s ease;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.cookie-content p {
    margin: 0;
    font-size: 0.87rem;
    color: #AAA;
    line-height: 1.55;
}
.cookie-content a { color: #CCC; text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-buttons button {
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.84rem;
    transition: 0.22s;
    font-family: inherit;
}
#accept-cookies       { background: var(--red);  color: var(--white); }
#accept-cookies:hover { background: var(--red-dark); }
#decline-cookies       { background: #333; color: #CCC; }
#decline-cookies:hover { background: #444; }

/* ============================================================
   LEGAL PAGES (Impressum, Datenschutz, Danke)
   ============================================================ */
.legal { padding-top: 80px; }
.narrow { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.04em; }
.notice-box {
    max-width: 760px;
    margin: 90px auto;
    padding: 52px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
}

/* ============================================================
   RESPONSIVE — Tablet (≤ 1060px)
   ============================================================ */
@media (max-width: 1060px) {
    .unternehmen-grid { grid-template-columns: 1fr; gap: 48px; }
    .branchen-grid    { grid-template-columns: repeat(2, 1fr); }
    .dual-split       { grid-template-columns: 1fr; }
    .split-panel      { padding: 64px 48px; }
    .split-content    { max-width: none; }
    .contact-cta-inner { grid-template-columns: 1fr; gap: 32px; }
    .contact-cta-actions { flex-direction: row; flex-wrap: wrap; }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
    /* Nav */
    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 24px 24px;
        background: rgba(13, 13, 13, 0.98);
        border-bottom: 1px solid var(--border-dark);
        gap: 0;
        display: none;
        z-index: 99;
    }
    .main-nav.open { display: flex; }
    .main-nav a {
        width: 100%;
        padding: 13px 0;
        border-bottom: 1px solid var(--border-dark);
        font-size: 1rem;
        color: #C0C0C0;
    }
    .main-nav a:last-child { border-bottom: none; }
    .nav-cta {
        background: transparent !important;
        color: var(--red) !important;
        padding: 13px 0 !important;
        border-radius: 0 !important;
    }

    /* Hero */
    .hero { padding: 64px 0 0; }
    .hero h1 { font-size: clamp(2.4rem, 8vw, 3.8rem); }
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat:nth-child(2) { border-right: none; }
    .stat:nth-child(3) { border-right: 1px solid var(--border-dark); border-top: 1px solid var(--border-dark); }
    .stat:nth-child(4) { border-right: none; border-top: 1px solid var(--border-dark); }

    /* Grids */
    .cards-grid   { grid-template-columns: 1fr; }
    .project-grid { grid-template-columns: 1fr; }
    .form-panels  { grid-template-columns: 1fr; }
    .form-grid    { grid-template-columns: 1fr; }
    .section      { padding: 72px 0; }

    /* Trust bar */
    .trust-bar-inner { flex-direction: column; align-items: flex-start; gap: 16px; }

    /* Project wide */
    .project-wide { padding: 30px 28px; }
}

/* ============================================================
   RESPONSIVE — Klein-Mobile (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {
    .container { width: calc(100% - 32px); }
    .nav-wrap  { height: 72px; }
    .site-logo { height: 50px; }
    .brand     { padding: 4px 10px; }

    .hero { padding: 52px 0 0; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { text-align: center; justify-content: center; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .stat { padding: 20px 18px; }
    .stat strong { font-size: 1.5rem; }

    .branchen-grid { grid-template-columns: 1fr; }
    .split-panel   { padding: 52px 24px; }
    .form-panel    { padding: 28px 22px; }

    .footer-grid  { flex-direction: column; align-items: flex-start; }
    .footer-links { flex-direction: column; gap: 10px; }

    .project-modal-content { padding: 30px 24px; }
    #modalTitle { font-size: 1.4rem; }

    .cookie-content { flex-direction: column; align-items: flex-start; }
}
