/* Kretsch: Leistungen als Einzelseiten, Knopflisten, Bilderstreifen, Über uns mit einem Block (13.10.2026). Bewegung nur transform. */

/* Knöpfe in den Leistungslisten (Startseite und Bereichsseiten): ein Stichpunkt, ein Knopf, kleiner Pfeil */
.gruppe .lbtn-li { padding: 0; }
.gruppe .lbtn-li::before, .service__mehr li::before { content: none; }
.lbtn { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 48px; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; line-height: 1.35; transition: border-color .2s, background-color .2s, transform .2s; }
.lbtn .ph { flex: none; font-size: 1rem; color: var(--blue-ink); transition: transform .2s; }
.lbtn:hover { border-color: var(--blue-ink); background: var(--surface-2); }
.lbtn:hover .ph { transform: translateX(3px); }
.lbtn:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 2px; }
.gruppe ul { display: grid; gap: 8px; }
.gruppe li.lbtn-li { font-size: .98rem; }
.service__mehr { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.service__mehr li { padding: 0; }
.lbtn-liste { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.lbtn-liste li { padding: 0; }

/* Einzelseite einer Leistung */
.leistung { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.leistung--ohne-bild { grid-template-columns: minmax(0, 52rem); }
.leistung__text p { color: var(--text); font-size: 1.08rem; max-width: 60ch; }
.leistung__text p + p { margin-top: 14px; }
.leistung__h { font-size: clamp(1.25rem, 2vw, 1.6rem); margin-top: 32px; }
.leistung__text .service__list { margin-top: 14px; border-top: 0; padding-top: 0; }
.leistung__knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.leistung__bild .svc3d { height: clamp(260px, 32vw, 400px); margin: 0; }
.leistung__foto { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.leistung__foto img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.leistung__fotos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: clamp(36px, 5vw, 60px); }
.leistung__weitere { margin-top: clamp(40px, 6vw, 72px); padding-top: 32px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .leistung { grid-template-columns: minmax(0, 1fr); } .leistung__bild { order: -1; } }

/* Bilderstreifen zwischen Leistungen und Über uns: etwa fünf Fotos sichtbar, läuft langsam (nur transform), oben und unten eine dezente blau-rote Linie; Klick vergrößert */
.streifen { overflow: hidden; position: relative; background: var(--bg); padding-block: 16px; }
.streifen::before, .streifen::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--blue) 0 62%, var(--red) 62% 100%); opacity: .6; z-index: 1; }
.streifen::before { top: 0; }
.streifen::after { bottom: 0; }
.streifen__spur { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; width: max-content; animation: streifen-lauf 160s linear infinite; will-change: transform; }
.streifen__spur li { flex: none; padding: 0; margin: 0; }
.streifen__bild { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 8px; overflow: hidden; }
.streifen__bild:focus-visible, .cert--knopf:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.streifen__spur img { display: block; height: clamp(150px, 15vw, 230px); width: auto; border-radius: 8px; transition: transform .4s ease; }
.streifen__bild:hover img { transform: scale(1.03); }
.streifen:hover .streifen__spur, .streifen:focus-within .streifen__spur { animation-play-state: paused; }
@keyframes streifen-lauf { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 7px)); } }
@media (prefers-reduced-motion: reduce) { .streifen { overflow-x: auto; } .streifen__spur { animation: none; } .streifen__spur li:nth-child(n+11) { display: none; } }

/* Leistungen auf der Startseite: Text über dem Bild, Bild über die ganze Breite (nicht zu hoch), darunter die Schlagwörter als Knöpfe */
#leistungen .section-head { max-width: none; }
.gewerke { margin-top: clamp(28px, 4vw, 44px); }
.gewerk--breit { display: block; padding-block: clamp(22px, 3vw, 36px); border: 0; }
.gewerk--breit:last-child { border: 0; }
.gewerk--breit .gewerk__fig { position: relative; margin: 0; }
/* 22.10.2026 (gerettet 11.11.): Bildkästen flacher, Elektro und SHK gleich hoch */
.gewerk--breit .gewerk__fig.foto img { width: 100%; height: clamp(170px, 19vw, 250px); aspect-ratio: auto; object-fit: cover; }
.gewerk__fig--kopf::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(10, 31, 68, .5), rgba(10, 31, 68, .62)); pointer-events: none; }
.gewerk__auf { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 18px clamp(16px, 5vw, 64px); }
.gewerk__auf h3 { color: #fff; font-size: clamp(1.4rem, 3vw, 2.4rem); line-height: 1.15; max-width: 22ch; text-shadow: 0 2px 18px rgba(10, 31, 68, .45); }
.gewerk__chip { background: rgba(255, 255, 255, .95); color: var(--ink); font-family: var(--font-cond); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; padding: 9px 14px; border-radius: 4px; border-top: 3px solid var(--red); }
.schlagwoerter { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.schlagwoerter li { padding: 0; flex: 0 1 calc(33.333% - 7px); min-width: 220px; }
@media (max-width: 720px) { .schlagwoerter li { flex-basis: 100%; min-width: 0; } }
.gewerk--breit .gewerk__more { margin-top: 22px; }

/* Über uns: oben links das Zitat, rechts der Text; darunter die Zertifikate in EINER Reihe nebeneinander */
.about--zwei { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.about__box, .about--zwei .about__mehr { display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--radius); background: var(--bg); box-shadow: var(--shadow-sm); padding: clamp(22px, 3vw, 40px); }
.about__box .about__quote { margin: 14px 0 0; padding: 0; border: 0; background: none; border-radius: 0; }
.about--zwei .about__mehr .about__more { margin-top: 0; }
.about--zwei .about__more > p { max-width: none; margin-top: 0; margin-bottom: 14px; }
.about--zwei .about__more > p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .about--zwei { grid-template-columns: minmax(0, 1fr); } }

/* Zertifikate: laufen langsam durch (nur transform), Klick vergrößert */
.zertlauf { overflow: hidden; margin-top: clamp(36px, 5vw, 60px); padding-block: clamp(22px, 3vw, 34px); border-top: 1px solid var(--line); }
.zertlauf__spur { display: flex; width: max-content; animation: zert-lauf 90s linear infinite; will-change: transform; }
.zertlauf__haelfte { display: flex; flex: none; align-items: center; gap: clamp(36px, 5vw, 72px); padding-right: clamp(36px, 5vw, 72px); }
.cert--knopf, .cert--knopf:hover { box-shadow: none; transform: none; border-color: transparent; background: none; }
.cert--knopf { flex: none; display: flex; align-items: center; justify-content: center; height: clamp(72px, 8vw, 104px); padding: 6px; border: 0; background: none; cursor: zoom-in; border-radius: 8px; }
.cert--knopf img { max-height: 100%; width: auto; height: 100%; max-width: 160px; object-fit: contain; transition: transform .3s ease; }
.cert--knopf:hover img { transform: scale(1.06); }
.zertlauf:hover .zertlauf__spur, .zertlauf:focus-within .zertlauf__spur { animation-play-state: paused; }
@keyframes zert-lauf { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .zertlauf { overflow-x: auto; } .zertlauf__spur { animation: none; } .zertlauf__haelfte[aria-hidden="true"] { display: none; } .zertlauf__haelfte > :nth-child(n+6) { display: none; } }

/* Vergrößerte Ansicht */
dialog.grossansicht { margin: 0; padding: 0; border: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; background: transparent; overflow: hidden; }
dialog.grossansicht[open] { display: grid; place-items: center; }
dialog.grossansicht::backdrop { background: rgba(10, 31, 68, .82); }
.grossansicht figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: calc(100vw - 32px); }
.grossansicht img { display: block; max-width: 100%; max-height: calc(100dvh - 120px); width: auto; height: auto; background: #fff; border-radius: 8px; }
.grossansicht figcaption { color: #fff; font-size: .95rem; text-align: center; }
.grossansicht__zu { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 1.9rem; line-height: 1; cursor: pointer; }
.grossansicht__zu:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
