/* ===========================================================================
 * services.css: Seite /services/ (baut auf home.css auf, gleiche .lp-Tokens).
 * ======================================================================== */
.lp.svc section { padding: 84px 0; }
/* Kopf: dunkle Bühne in beiden Modi, Team am Holztisch als Hintergrund (Standbild + loop-media.js), Text links auf der ruhigen Wand, klare Unterkante */
.lp .svc-hero {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: clamp(600px, 84vh, 880px); display: flex; align-items: center;
    padding: 150px 0 72px; text-align: left;
    background: #0b0b11; color: #f4f2ef;
}
.lp .svc-hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #0b0b11; }
.lp .svc-hero-media img, .lp .svc-hero-media .loop-video {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; display: block;
}
.lp .svc-hero-media::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(8, 9, 14, 0.88) 0%, rgba(8, 9, 14, 0.7) 32%, rgba(8, 9, 14, 0.3) 56%, rgba(8, 9, 14, 0) 78%);
}
.lp .svc-hero .wrap { position: relative; z-index: 1; width: 100%; }
.lp .svc-hero .wrap > * { max-width: 600px; }
.lp .svc-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.1; max-width: 15ch; margin: 0 0 20px; text-wrap: balance; }
.lp .svc-hero .sub { font-size: 1.15rem; color: rgba(255, 255, 255, 0.84); max-width: 28em; margin: 0 0 34px; line-height: 1.6; }
.lp .svc-chips { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px; }
.lp .svc-hero .svc-chip { color: #fff; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.24); }
.lp .svc-hero .svc-chip:hover { border-color: var(--accent); }
.lp .svc-hero .svc-chip-calm { color: rgba(255, 255, 255, 0.78); background: transparent; }
.lp .svc-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 999px;
    border: 1px solid var(--border-color); background: var(--surface);
    color: var(--fg); font-weight: 600; font-size: 0.94rem; text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.lp .svc-chip .sic { color: var(--accent); }
.lp .svc-chip:hover { border-color: var(--accent); transform: translateY(-2px); }
.lp .svc-chip-calm { color: var(--text-muted); background: transparent; }

/* Feature-Zeilen: Bild | Text, darunter Ablauf über die volle Breite */
.lp .feat { scroll-margin-top: 80px; }
.lp .feat + .feat { border-top: 1px solid var(--border-color); }
.lp .feat-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "img body" "steps steps";
    gap: 40px 56px; align-items: center;
}
.lp .feat-alt .feat-row { grid-template-areas: "body img" "steps steps"; }
.lp .feat-img { grid-area: img; border-radius: 20px; overflow: hidden; border: 1px solid var(--border-color); background: #0b0b11; aspect-ratio: 16 / 10; position: relative; }
.lp .feat-img > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp .feat-film { aspect-ratio: auto; }
.lp .feat-film .slide-film { display: block; position: relative; }
.lp .feat-film img { width: 100%; height: auto; display: block; transition: transform 0.6s ease; }
.lp .feat-film .slide-film:hover img { transform: scale(1.03); }
.lp .feat-film .slide-film:hover .slide-play { transform: translate(-50%, -50%) scale(1.08); }
.lp .feat-body { grid-area: body; }
.lp .feat-body .badge-kind { margin-bottom: 16px; }
.lp .feat-body h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 0 0 16px; }
.lp .feat-lead { font-size: 1.1rem; color: var(--text-muted); line-height: 1.6; margin: 0 0 20px; }
.lp .feat-body .serv-list { margin-bottom: 0; }
.lp .feat-body .serv-list li { font-size: 0.98rem; }
.lp .feat-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 0; }
.lp .feat-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); text-decoration: none; }
.lp .feat-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.lp .feat-link-muted { color: var(--text-muted); font-weight: 500; }
.lp .sic-fill { fill: currentColor; width: 14px; height: 14px; }

.lp .feat-steps {
    grid-area: steps;
    padding: 30px 32px;
    border: 1px solid var(--border-color); border-radius: 20px;
    background: linear-gradient(180deg, var(--surface), var(--bg-color));
}
.lp .steps-head { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 20px; }
.lp .steps-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.lp .steps-list li { display: flex; gap: 14px; align-items: flex-start; }
.lp .steps-list .n {
    flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--grad-soft); color: var(--accent); font-weight: 800; font-size: 0.92rem;
}
.lp .steps-list h3 { font-size: 1.02rem; margin: 4px 0 6px; letter-spacing: -0.01em; }
.lp .steps-list p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.5; margin: 0; }

.lp .svc-found { background: color-mix(in srgb, var(--fg) 2%, transparent); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.lp .svc-found .section-head { margin-bottom: 40px; }

html[lang="ja"] .lp .svc-hero h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); max-width: 16em; line-height: 1.3; }
html[lang="ja"] .lp .feat-body h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.3; }

@media (max-width: 1000px) {
    .lp .steps-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .lp .feat-row, .lp .feat-alt .feat-row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "img" "body" "steps"; gap: 28px; }
}
@media (max-width: 780px) {
    .lp.svc section { padding: 64px 0; }
}
@media (max-width: 760px) {
    /* Handy: Bild oben mit Team und Pagode, Text unten auf dunkler Bühne */
    .lp .svc-hero { min-height: 0; display: block; padding: 400px 0 40px; }
    .lp .svc-hero-media { bottom: auto; height: 520px; }
    .lp .svc-hero-media img, .lp .svc-hero-media .loop-video { object-position: 76% 50%; }
    .lp .svc-hero-media::after { background: linear-gradient(to bottom, rgba(8, 9, 14, 0.15) 0%, rgba(8, 9, 14, 0) 22%, rgba(8, 9, 14, 0.35) 52%, rgba(8, 9, 14, 0.85) 76%, #0b0b11 100%); }
}
@media (prefers-reduced-motion: reduce) {
    .lp .svc-hero-media .loop-video { display: none; }
}
@media (max-width: 560px) {
    .lp .steps-list { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .lp .feat-steps { padding: 22px 20px; }
    .lp .svc-hero .sub { font-size: 1.04rem; }
    .lp .svc-chip { font-size: 0.88rem; padding: 9px 14px; }
}
html[lang="ja"] .lp .svc-hero h1, html[lang="ja"] .lp .svc-hero .sub, html[lang="ja"] .lp .feat-body h2, html[lang="ja"] .lp .feat-lead,
html[lang="ja"] .lp .steps-list p { word-break: auto-phrase; text-wrap: pretty; }

/* KI-Agenten: Warum nicht einfach ein KI-Abo? */
.lp .vs-box { margin-top: 26px; padding: 20px 22px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border-color));
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%), var(--surface); }
.lp .vs-head { margin: 0 0 12px; font-weight: 800; font-size: 1.08rem; color: var(--fg); }
.lp .vs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lp .vs-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--fg); font-size: 0.95rem; line-height: 1.45; }
.lp .vs-list .ck { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; stroke: var(--accent); fill: none; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
html[lang="ja"] .lp .vs-list li, html[lang="ja"] .lp .vs-head { word-break: auto-phrase; }

/* Fundament: Kura-Band oben im Abschnitt (Standbild + loop-media.js).
   Bild über rund 70 % der Bandhöhe klar, erst das letzte Stück blendet in den Seitenhintergrund.
   Überschrift beginnt unterhalb des Bandes, damit sie in beiden Modi ohne Abdunklung lesbar bleibt. */
.lp .svc-found.has-band {
    --found-band-h: clamp(260px, 36vw, 620px);
    overflow: hidden; isolation: isolate; padding-top: calc(var(--found-band-h) + 28px);
}
.lp .svc-found .found-band {
    position: absolute; left: 0; right: 0; top: 0; height: var(--found-band-h);
    z-index: 0; overflow: hidden; pointer-events: none; background: #0b0b11;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 70%, rgba(0, 0, 0, 0.55) 84%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0, #000 70%, rgba(0, 0, 0, 0.55) 84%, transparent 100%);
}
.lp .svc-found .found-band img, .lp .svc-found .found-band .loop-video {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; display: block;
}
.lp .svc-found .found-band::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to bottom, rgba(8, 9, 14, 0.18), transparent 40%);
}
.lp .svc-found.has-band > .wrap { position: relative; z-index: 1; }
/* Hell: Nachtbild nicht nach Weiß ausblenden (ergibt einen grauen Schleier), klare Kante statt Verlauf. */
html[data-theme="light"] .lp .svc-found .found-band { -webkit-mask-image: none; mask-image: none; }
@media (prefers-color-scheme: light) {
    html:not([data-theme="dark"]) .lp .svc-found .found-band { -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 760px) {
    .lp .svc-found .found-band img, .lp .svc-found .found-band .loop-video { object-position: 42% 50%; }
}
@media (prefers-reduced-motion: reduce) {
    .lp .svc-found .found-band .loop-video { display: none; }
}

/* Schluss: Plan am Holztisch als dunkle Bühne in beiden Modi (Standbild + loop-media.js).
   Klare Kanten oben und unten, kein Ausblenden nach Weiß; dezenter Verlauf hinter dem Text.
   Selektoren mit .has-stage, damit sie .lp .final aus home.css schlagen; die reduced-motion-Regel
   hat dieselbe Spezifität wie die display-Regel und steht danach. */
.lp .final.has-stage {
    position: relative; isolation: isolate; overflow: hidden;
    background: #0b0b11; color: #f4f2ef;
    padding: clamp(110px, 14vw, 170px) 0;
}
.lp .final.has-stage .final-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #0b0b11; pointer-events: none; }
.lp .final.has-stage .final-media img, .lp .final.has-stage .final-media .loop-video {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block;
}
.lp .final.has-stage .final-media::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background:
        radial-gradient(ellipse 60% 70% at 50% 50%, rgba(8, 9, 14, 0.74) 0%, rgba(8, 9, 14, 0.5) 60%, rgba(8, 9, 14, 0.3) 100%),
        linear-gradient(to bottom, rgba(8, 9, 14, 0.25), rgba(8, 9, 14, 0.1) 45%, rgba(8, 9, 14, 0.4));
}
.lp .final.has-stage .wrap { position: relative; z-index: 1; }
.lp .final.has-stage .eyebrow { color: #ff7a8a; }
.lp .final.has-stage h2 { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.lp .final.has-stage p { color: rgba(255, 255, 255, 0.86); }
@media (max-width: 760px) {
    .lp .final.has-stage .final-media img, .lp .final.has-stage .final-media .loop-video { object-position: 60% 50%; }
    .lp .final.has-stage .final-media::after { background: linear-gradient(to bottom, rgba(8, 9, 14, 0.5), rgba(8, 9, 14, 0.66)); }
}
@media (prefers-reduced-motion: reduce) {
    .lp .final.has-stage .final-media .loop-video { display: none; }
}
