/* ============================================================================
   VEM Safety – Startseite (Design v2)
   Nur auf index.html geladen, nach style.min.css.
   ============================================================================ */

body.vs-page {
    background: var(--vs-bg);
    color: var(--vs-text);
    font-family: var(--vs-font);
    font-size: 16px;
    line-height: 1.6;
}
body.vs-page main { padding-top: 0; margin-top: 0; }

/* Typografie (nur neue Bereiche) */
.vs-page .home-eyebrow {
    margin: 0 0 1rem;
    color: var(--vs-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.vs-page .home-h2 {
    margin: 0;
    color: var(--vs-text);
    font-family: var(--vs-font);
    font-size: clamp(1.75rem, 2.6vw, 2.25rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: manual;
    text-wrap: balance;
}
.vs-page .home-lead {
    margin: 1rem 0 0;
    max-width: 42rem;
    color: var(--vs-muted);
    font-size: 1.0625rem;
    line-height: 1.65;
}

/* Abschnitte */
.home-section { padding: clamp(4rem, 8vw, 6.5rem) 0; background: var(--vs-bg); }
.home-section--alt { background: var(--vs-subtle); border-top: 1px solid var(--vs-border); border-bottom: 1px solid var(--vs-border); }
.home-section__head { margin-bottom: clamp(2.5rem, 4vw, 3.5rem); }

/* ---------- Hero ---------- */
.home-hero { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3.5rem, 6vw, 5rem); background: var(--vs-bg); }
.home-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
    justify-items: center;
}
.home-hero__content {
    min-width: 0;
}
.vs-page .home-hero__title {
    margin: 0;
    color: var(--vs-text);
    font-family: var(--vs-font);
    font-size: clamp(2.25rem, 4.2vw, 3.25rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.025em;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: manual;
    text-wrap: balance;
}
.vs-page .home-hero__lead {
    margin: 1.5rem auto 0;
    max-width: 38rem;
    color: var(--vs-muted);
    font-size: 1.125rem;
    line-height: 1.65;
    text-wrap: pretty;
}
.home-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }
.vs-page .home-hero__note { margin: 1.25rem 0 0; color: var(--vs-faint); font-size: 0.875rem; }

.home-window {
    margin: 2rem auto 0;
    max-width: 960px;
    overflow: hidden;
    border: 1px solid var(--vs-border);
    border-radius: var(--vs-radius-lg);
    background: var(--vs-surface);
    box-shadow: var(--vs-shadow-lg);
}
.home-window__bar {
    display: flex;
    gap: 6px;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    border-bottom: 1px solid var(--vs-border);
    background: var(--vs-subtle);
}
.home-window__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--vs-border-strong); }
.home-window__img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}

/* ---------- Normen-Leiste ---------- */
.home-trust { padding: 1.75rem 0; background: var(--vs-bg); border-top: 1px solid var(--vs-border); border-bottom: 1px solid var(--vs-border); }
.home-trust__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2.5rem; }
.vs-page .home-trust__label { margin: 0; color: var(--vs-faint); font-size: 0.8125rem; font-weight: 500; }
.home-trust__list { display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; margin: 0; padding: 0; list-style: none; }
.home-trust__list li { color: var(--vs-muted); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.01em; }

/* ---------- Lösungs-Karten ---------- */
.home-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.home-card {
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    border: 1px solid var(--vs-border);
    border-radius: var(--vs-radius);
    background: var(--vs-surface);
    color: var(--vs-text);
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.home-card:hover { border-color: var(--vs-border-strong); box-shadow: var(--vs-shadow); color: var(--vs-text); }
.home-card:focus-visible { outline: 2px solid var(--vs-accent); outline-offset: 2px; }
.home-card__icon { width: 28px; height: 28px; margin-bottom: 1.5rem; color: var(--vs-text); }
.home-card__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.vs-page .home-card h3 { margin: 0 0 0.5rem; color: var(--vs-text); font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.vs-page .home-card p { margin: 0 0 1.5rem; color: var(--vs-muted); font-size: 0.9375rem; line-height: 1.6; }
.home-card__more { margin-top: auto; color: var(--vs-text); font-size: 0.9375rem; font-weight: 600; }
.home-card__more::after { content: ' →'; transition: margin 0.15s ease; }
.home-card:hover .home-card__more::after { margin-left: 3px; }

/* ---------- Warum VEM Safety ---------- */
.home-why { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.home-why__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 2.5rem; margin: 0; padding: 0; list-style: none; }
.home-why__list li { padding-top: 1.25rem; border-top: 1px solid var(--vs-border-strong); }
.vs-page .home-why__list h3 { margin: 0 0 0.5rem; color: var(--vs-text); font-size: 1.0625rem; font-weight: 600; }
.vs-page .home-why__list p { margin: 0; color: var(--vs-muted); font-size: 0.9375rem; line-height: 1.6; }

/* ---------- Blog ---------- */
.home-blog__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.5rem; }
.home-blog__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.home-post {
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    border: 1px solid var(--vs-border);
    border-radius: var(--vs-radius);
    background: var(--vs-surface);
    color: var(--vs-text);
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.home-post:hover { border-color: var(--vs-border-strong); box-shadow: var(--vs-shadow); color: var(--vs-text); }
.home-post__meta { display: flex; gap: 0.75rem; margin-bottom: 1rem; color: var(--vs-faint); font-size: 0.8125rem; }
.home-post__meta span { color: var(--vs-muted); font-weight: 600; }
.vs-page .home-post h3 { margin: 0 0 0.75rem; color: var(--vs-text); font-size: 1.125rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.vs-page .home-post p { margin: 0 0 1.5rem; color: var(--vs-muted); font-size: 0.9375rem; line-height: 1.6; }
.home-post .home-card__more { font-size: 0.875rem; }

/* ---------- Kontakt ---------- */
.home-contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.home-contact__facts { margin: 2rem 0 0; padding: 0; list-style: none; }
.home-contact__facts li { display: flex; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--vs-border); color: var(--vs-muted); font-size: 0.9375rem; }
.home-contact__facts li:last-child { border-bottom: 1px solid var(--vs-border); }
.home-contact__facts strong { min-width: 5.5rem; color: var(--vs-text); font-weight: 600; }
.home-contact__facts a { color: var(--vs-text); text-decoration: none; }
.home-contact__facts a:hover { text-decoration: underline; }

.vs-page .contact-form.home-form {
    margin: 0;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border: 1px solid var(--vs-border);
    border-radius: var(--vs-radius-lg);
    background: var(--vs-surface);
    box-shadow: none;
    backdrop-filter: none;
}
.home-form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.home-form__group { display: flex; flex-direction: column; gap: 0.375rem; margin-bottom: 1.125rem; }
.vs-page .home-form label { color: var(--vs-text); font-size: 0.875rem; font-weight: 500; }
.vs-page .home-form .home-form__optional { color: var(--vs-faint); font-weight: 400; }
.vs-page .home-form input[type="text"],
.vs-page .home-form input[type="email"],
.vs-page .home-form input[type="tel"],
.vs-page .home-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--vs-border-strong);
    border-radius: var(--vs-radius-sm);
    background: var(--vs-bg);
    color: var(--vs-text);
    font-family: var(--vs-font);
    font-size: 0.9375rem;
    box-shadow: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.vs-page .home-form textarea { min-height: 120px; resize: vertical; }
.vs-page .home-form input::placeholder,
.vs-page .home-form textarea::placeholder { color: var(--vs-faint); }
.vs-page .home-form input:focus,
.vs-page .home-form textarea:focus { outline: none; border-color: var(--vs-text); box-shadow: 0 0 0 3px rgba(232, 150, 42, 0.25); }
.home-form__check { display: flex; align-items: flex-start; gap: 0.625rem; margin: 0.25rem 0 1.5rem; }
.vs-page .home-form__check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--vs-primary); flex-shrink: 0; }
.vs-page .home-form__check label { color: var(--vs-muted); font-weight: 400; }
.vs-page .home-form__check a { color: var(--vs-link); }
.vs-page .home-form .contact-form__submit { width: 100%; min-height: 48px; margin: 0; }
.vs-page .home-form .contact-form__status { margin: 0.75rem 0 0; font-size: 0.875rem; }
.vs-page .home-form .contact-form__status:empty { display: none; }

/* ---------- Responsiv ---------- */
@media (max-width: 1024px) {
    .home-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-blog__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 860px) {
    .home-hero__grid,
    .home-why,
    .home-contact { grid-template-columns: minmax(0, 1fr); }
    .home-trust__inner { justify-content: center; flex-direction: column; text-align: center; }
    .home-trust__list { justify-content: center; }
}
@media (max-width: 640px) {
    .home-cards,
    .home-blog__grid,
    .home-why__list,
    .home-form__row { grid-template-columns: minmax(0, 1fr); }
    .home-actions .site-btn { flex: 1 1 100%; }
    .home-trust__list { gap: 0.5rem 1.5rem; }
}

.vs-page .site-footer__brand p { color: var(--vs-muted); }
.vs-page .site-footer__bottom p { color: var(--vs-faint); }

/* ---------- Overviews ---------- */
.home-overview { display: flex; flex-direction: column; gap: clamp(3rem, 6vw, 5rem); margin-top: clamp(3rem, 6vw, 5rem); }
.home-overview__item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.home-overview__item--rev { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.home-overview__item--rev .home-overview__content { order: 2; }
.home-overview__media { position: relative; }
.home-overview__media img { display: block; width: 100%; border-radius: var(--vs-radius-lg); border: 1px solid var(--vs-border); box-shadow: var(--vs-shadow-lg); }
@media (max-width: 860px) {
    .home-overview__item, .home-overview__item--rev { grid-template-columns: minmax(0, 1fr); }
    .home-overview__item--rev .home-overview__content { order: 1; }
}

/* ---------- Overview Slider ---------- */
.overview-slider {
    position: relative;
    border-radius: var(--vs-radius-lg);
    border: 1px solid var(--vs-border);
    box-shadow: var(--vs-shadow-lg);
    background: var(--vs-surface);
    overflow: hidden;
}
.overview-slider__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1rem;
    background: var(--vs-subtle);
    border-bottom: 1px solid var(--vs-border);
    font-size: 0.85rem;
}
.overview-slider__title {
    font-weight: 600;
    color: var(--vs-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.overview-slider__counter {
    color: var(--vs-muted);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    margin-left: 0.5rem;
    flex-shrink: 0;
    font-size: 0.8rem;
}
.overview-slider__viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9.22;
    overflow: hidden;
    background: var(--vs-bg);
}
.overview-slider__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.2s ease-in-out;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.overview-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(15, 17, 23, 0.8);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 2;
    backdrop-filter: blur(4px);
}
.overview-slider__nav:hover {
    background: rgba(15, 17, 23, 0.98);
    transform: translateY(-50%) scale(1.08);
}
.overview-slider__nav--prev { left: 0.6rem; }
.overview-slider__nav--next { right: 0.6rem; }
.overview-slider__dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 0.5rem;
    background: var(--vs-surface);
    border-top: 1px solid var(--vs-border);
}
.overview-slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--vs-border-strong);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.overview-slider__dot.is-active {
    background: var(--vs-primary);
    transform: scale(1.3);
}


