/* ==========================================================================
   LONtec GmbH — Startseite
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    padding-top: calc(var(--header-h) + clamp(3rem, 1.5rem + 6vw, 6.5rem));
    padding-bottom: clamp(3.5rem, 2rem + 6vw, 7rem);
}

.hero .container { position: relative; z-index: 1; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(2.5rem, 1rem + 5vw, 5rem);
    align-items: center;
}

.hero h1 {
    font-size: var(--fs-hero);
    color: #fff;
    margin-bottom: var(--space-6);
    letter-spacing: -.03em;
    /* lange deutsche Komposita sauber umbrechen */
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
}

.hero .lead {
    max-width: 56ch;
    color: rgba(255, 255, 255, .74);
    margin-bottom: var(--space-8);
}

.hero .btn-row { margin-bottom: 0; }

/* Vertrauensleiste im Hero (volle Breite unter dem Grid) */
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem 1.5rem;
    margin: clamp(2.5rem, 1.5rem + 3vw, 4rem) 0 0;
    padding: var(--space-5) 0 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    list-style: none;
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, .68);
}
.hero-trust li {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
}
.hero-trust .icon {
    width: 1.05rem; height: 1.05rem;
    color: var(--brand-400);
}

/* Hero-Visual */
.hero-visual { position: relative; }

.hero-visual__frame {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
    /* transparent, damit Raster und grüner Schein des Hero-Bands durchscheinen */
    background: transparent;
}
.hero-visual__frame img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    /* leicht durchscheinend: die schwarze Bildfläche nimmt den Ton des Bands an */
    opacity: .85;
}
.hero-visual__frame::after {
    content: "";
    position: absolute;
    inset: 0;
    /* nur ein zarter grüner Schimmer, keine zusätzliche Abdunklung */
    background: linear-gradient(165deg, rgba(51, 168, 54, .12) 0%, transparent 50%);
    pointer-events: none;
}

/* Schwebende Kennzahl */
.hero-chip {
    position: absolute;
    left: -1.25rem;
    bottom: -1.5rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1rem 1.35rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 255, 255, .6);
    box-shadow: var(--shadow-lg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.hero-chip__num {
    font-family: var(--font-head);
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.03em;
    color: var(--brand-700);
}
.hero-chip__label {
    font-size: .82rem;
    line-height: 1.3;
    color: var(--text-muted);
    max-width: 13ch;
}

@media (max-width: 899px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-12); }
    .hero-visual { order: -1; max-width: 560px; }
    .hero-chip { left: auto; right: -.5rem; bottom: -1.25rem; }
}
@media (max-width: 479px) {
    .hero-chip {
        position: static;
        margin-top: var(--space-5);
        width: -moz-fit-content;
        width: fit-content;
        padding: .85rem 1.15rem;
    }
    .hero-chip__label { max-width: 16ch; }
}

/* --------------------------------------------------------------------------
   Fakten-Band
   -------------------------------------------------------------------------- */
.facts {
    border-bottom: 1px solid var(--line);
    background: var(--surface-subtle);
}
.facts-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
}
.fact {
    padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
    background: var(--surface);
    text-align: center;
}
.fact__value {
    display: block;
    font-family: var(--font-head);
    font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.03em;
    color: var(--ink-900);
    margin-bottom: .35rem;
}
.fact__value em {
    font-style: normal;
    color: var(--brand-600);
}
.fact__label {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin: 0;
    hyphens: auto;
    -webkit-hyphens: auto;
}
@media (max-width: 767px) {
    .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   Leistungen
   -------------------------------------------------------------------------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(1.1rem, .7rem + 1.2vw, 1.75rem);
}
.service-grid > * { grid-column: span 2; }
.service-grid > :nth-child(4),
.service-grid > :nth-child(5) { grid-column: span 3; }

@media (max-width: 991px) {
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-grid > *,
    .service-grid > :nth-child(4),
    .service-grid > :nth-child(5) { grid-column: span 1; }
}
@media (max-width: 639px) {
    .service-grid { grid-template-columns: minmax(0, 1fr); }
}

.service-card__link {
    margin-top: auto;
    padding-top: var(--space-5);
}

/* --------------------------------------------------------------------------
   Warum LONtec (Split mit Bild)
   -------------------------------------------------------------------------- */
.about-media { position: relative; isolation: isolate; }
.about-media .media { border-radius: var(--radius-xl); }
.about-media__accent {
    position: absolute;
    inset: auto -1.5rem -1.5rem auto;
    z-index: -1;
    pointer-events: none;
    width: 62%;
    aspect-ratio: 1;
    border-radius: var(--radius-xl);
    background: linear-gradient(140deg, var(--brand-100), transparent 70%);
}

/* --------------------------------------------------------------------------
   Prozess
   -------------------------------------------------------------------------- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(1rem, .5rem + 1.4vw, 1.75rem);
    counter-reset: step;
}
.process-step {
    position: relative;
    padding-top: var(--space-8);
}
.process-step::before {
    counter-increment: step;
    content: "0" counter(step);
    display: block;
    margin-bottom: var(--space-3);
    font-family: var(--font-head);
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--brand-400);
}
.process-step::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: rgba(255, 255, 255, .14);
}
.process-step:first-child::after { background: var(--brand-500); }
.process-step h3 { font-size: 1.08rem; margin-bottom: var(--space-2); }
.process-step p { font-size: var(--fs-sm); margin: 0; }

@media (max-width: 991px) {
    .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 559px) {
    .process-grid { grid-template-columns: minmax(0, 1fr); }
}

.process-grid { list-style: none; padding-left: 0; }
.process-grid li { margin-bottom: 0; }
