/* =============================================================
   STRATEC CORE – Layout für Plugin-Templates und Shortcodes.
   Farben, Typo und Komponenten kommen aus stratec.css (Child Theme).
   Hier steht nur, was auf der Startseite Elementor-Container-Einstellungen sind
   (Breiten, Abstände, Flex), damit Shortcodes identisch aussehen.
   Breakpoints wie Elementor: Tablet ≤1024 px, Mobil ≤767 px.
   ============================================================= */

/* ---------- Grundgerüst Templates ---------- */
/* Links: Hello-Reset färbt Links pink (#c36) → hier neutral; Fließtext-Links rot unterstrichen */
body .stx-core a:not(.elementor-button):not(.stx-stelle),body .stx-sc a:not(.elementor-button):not(.stx-stelle){color:inherit;text-decoration:none}
body .stx-core .stx-core-inhalt a{color:var(--stx-rot);text-decoration:underline}
body .stx-core-wrap{max-width:1320px;margin-inline:auto;padding-inline:48px}
body .stx-core-heading{min-width:0;max-width:100%}
body .stx-stellen-leer{max-width:60ch}
body .stx-core-projekte .stx-leiste{margin-top:0}
body .stx-core-stapel{display:flex;flex-direction:column;align-items:flex-start;gap:20px}
body .stx-core .elementor-heading-title,body .stx-sc .elementor-heading-title{margin:0;padding:0}
body .stx-core .elementor-widget-text-editor > :last-child,body .stx-sc .elementor-widget-text-editor > :last-child{margin-bottom:0}
body .stx-core-buttons{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:12px}
body .stx-seitenkopf.stx-section{padding-top:clamp(4rem,8vw,6.5rem);padding-bottom:clamp(2.5rem,5vw,4rem)}
body .stx-core-lead{max-width:62ch;font-size:1.05rem}
body .stx-core-titelbild{aspect-ratio:16/7;overflow:hidden}
body .stx-core-titelbild img{width:100%;height:100%;object-fit:cover;display:block}
body .stx-core-raster{display:grid;grid-template-columns:1fr 2fr;gap:32px;align-items:start}
body .stx-core-inhalt{max-width:72ch}
body .stx-core-inhalt p{margin:0 0 1em}
body .stx-core-kopfzeile{display:flex;justify-content:space-between;align-items:flex-end;gap:32px;margin-bottom:48px}
body .stx-core-pfeile{display:flex;gap:8px;flex:none}
body .stx-core-galerie{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;width:100%}
body .stx-core-galerie a{display:block;aspect-ratio:4/3;overflow:hidden}
body .stx-core-galerie img{width:100%;height:100%;object-fit:cover;display:block}
body .stx-core-karten3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
body .stx-core-karte{padding:36px 32px;display:flex;flex-direction:column;gap:16px}
body .stx-core-filter li.ist-aktiv{background:var(--stx-asphalt);border-color:var(--stx-asphalt);color:#fff}
body .stx-core .nav-links{display:flex;gap:12px;margin-top:40px}

/* Dunkle Abschluss-Box (auch in Elementor nutzbar: Container-Klassen "stx-dunkel stx-box") */
body .stx-box{border-radius:var(--stx-r-gross);overflow:hidden}
body .stx-core-cta{display:flex;justify-content:space-between;align-items:flex-end;gap:32px;padding:clamp(2.5rem,5vw,4.5rem)}
body .stx-core-cta .elementor-heading-title{max-width:16ch}
body .stx-core-cta .elementor-widget-text-editor{max-width:46ch}

/* ---------- [stx_leistungen] Bühne (wie Startseite: 55/45, Abstand 64/40) ---------- */
body .stx-sc-ls.stx-ls{display:flex;flex-wrap:nowrap;align-items:flex-start;gap:64px}
body .stx-sc-ls .stx-ls-buehne{flex:0 1 55%;width:55%}
body .stx-sc-ls .stx-ls-bild img{display:block}
body .stx-sc-ls .stx-ls-info{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 19px}
body .stx-sc-ls .stx-ls-schritte{flex:1 1 45%;width:45%;padding:64px 0 140px}
body .stx-sc-ls .stx-schritt{display:flex;flex-direction:column;align-items:flex-start;gap:18px}
body .stx-sc-ls .stx-schritt-bild img{display:block}

/* ---------- [stx_leistungen darstellung="karten"] ---------- */
body .stx-sc-karten{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
body .stx-sc-karte{padding:24px;display:flex;flex-direction:column;align-items:flex-start;gap:16px}
body .stx-sc-karte .stx-sc-karte-bild{width:100%;aspect-ratio:4/3;overflow:hidden}
body .stx-sc-karte .stx-sc-karte-bild img{width:100%;height:100%;object-fit:cover;display:block}
body .stx-sc-karte .stx-btn{margin-top:auto}
body .stx-sc-karte h3.elementor-heading-title{font-size:1.45rem;font-weight:600}

/* ---------- [stx_projekte] Karten (Leiste wie Startseite, Abstand 20) ---------- */
body .stx-sc-leiste.stx-leiste{display:flex;gap:20px}
body .stx-sc .stx-projekt{display:flex;flex-direction:column;color:#fff;isolation:isolate}
body .stx-sc .stx-projekt-bild{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1;transition:transform 1s var(--stx-ease)}
body .stx-sc .stx-projekt:hover .stx-projekt-bild{transform:scale(1.06)}
body .stx-sc .stx-projekt-tag{position:absolute;top:16px;left:16px;padding:5px 13px}
body .stx-sc .stx-projekt-label{display:flex;flex-direction:column;gap:4px;padding:16px 18px}
body .stx-sc .stx-projekt-label .elementor-heading-title a{color:inherit}
body .stx-sc-raster{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
body .stx-sc-raster .stx-projekt{flex:none!important}

/* ---------- [stx_stellen] ---------- */
body .stx-stellen{display:flex;flex-direction:column;gap:12px}
body .stx-stelle{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;background:var(--stx-beton);border-radius:var(--stx-r);color:var(--stx-text);text-decoration:none;transition:background .2s}
body .stx-stelle:hover{background:#E1E2DF;color:var(--stx-text)}
body .stx-stelle-text{display:flex;flex-direction:column;gap:4px}
body .stx-stelle-art{font-size:.82rem;color:var(--stx-text-muted)}
body .stx-stelle-titel{font-size:1.25rem;font-weight:600;letter-spacing:-.01em;line-height:1.25}
body .stx-stelle-pfeil{flex:none;width:40px;height:40px;border-radius:50%;background:var(--stx-rot);color:#fff;display:grid;place-items:center;transition:transform .3s var(--stx-ease)}
body .stx-stelle-pfeil svg{width:14px;height:14px;fill:currentColor}
body .stx-stelle:hover .stx-stelle-pfeil{transform:rotate(-45deg)}
body .stx-dunkel .stx-stelle{background:var(--stx-asphalt-2);color:#fff}
body .stx-dunkel .stx-stelle-art{color:var(--stx-hell-muted)}

/* ---------- Elementor-Seiten: Seitenkopf ---------- */
body .stx-seitenkopf .stx-core-lead{color:var(--stx-text-muted)}

/* ---------- Tablet ---------- */
@media (max-width:1024px){
  body .stx-core-wrap{padding-inline:32px}
  body .stx-core-raster{grid-template-columns:1fr}
  body .stx-sc-ls.stx-ls{gap:40px}
  body .stx-sc-ls .stx-ls-schritte{padding:0}
  body .stx-sc-karten{grid-template-columns:1fr 1fr}
  body .stx-sc-raster{grid-template-columns:1fr 1fr}
  body .stx-core-karten3{grid-template-columns:1fr}
  body .stx-core-cta{flex-direction:column;align-items:flex-start}
}
/* wie stratec.css: Bühne verschwindet ≤860 px, Schritte dann volle Breite */
@media (max-width:860px){
  body .stx-sc-ls .stx-ls-schritte{width:100%;flex-basis:100%}
}
/* ---------- Mobil ---------- */
@media (max-width:767px){
  body .stx-core-wrap{padding-inline:20px}
  body .stx-sc-ls.stx-ls{flex-direction:column}
  body .stx-core-kopfzeile{flex-direction:column;align-items:flex-start}
  body .stx-core-galerie{grid-template-columns:1fr 1fr}
  body .stx-sc-karten,body .stx-sc-raster{grid-template-columns:1fr}
  body .stx-core-titelbild{aspect-ratio:4/3}
}

/* =============================================================
   Leistung (Single) – Hero, Kacheln, Ablauf, Vorteile, FAQ, Anfrage
   ============================================================= */
body .stx-core-hero.stx-hero{position:relative;display:flex;flex-direction:column;justify-content:flex-end;min-height:min(88svh,880px);padding:140px 0 64px;background:var(--stx-asphalt)}
body .stx-core-hero > .stx-core-hero-bild{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
body .stx-core-hero .stx-core-hero-inhalt{max-width:860px;gap:20px}
body .stx-core-hero .stx-pill{padding:6px 15px}
body .stx-core-hero .stx-hero-text{max-width:56ch;font-size:1.05rem}
body .stx-core-kacheln{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px}
body .stx-core-kacheln .stx-core-karte h3.elementor-heading-title{font-size:1.3rem;font-weight:600}
body .stx-core-kacheln .stx-core-karte .elementor-widget-text-editor{color:var(--stx-text-muted)}
/* Ablauf: nummerierte Schritte (auch für Elementor: Container-Klassen stx-ablauf / stx-ablauf-schritt) */
body .stx-ablauf{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:32px 24px;list-style:none;margin:0;padding:0}
body .stx-ablauf-schritt{display:flex!important;flex-direction:column;gap:14px;padding-top:24px!important;border-top:1px solid rgba(255,255,255,.14)}
body .stx-beton .stx-ablauf-schritt,body .stx-section:not(.stx-dunkel) > .stx-core-wrap > .stx-ablauf .stx-ablauf-schritt{border-top-color:var(--stx-linie)}
body .stx-ablauf-schritt h3.elementor-heading-title{font-size:1.25rem;font-weight:600;letter-spacing:-.01em}
body .stx-dunkel .stx-ablauf-schritt .stx-nr .elementor-heading-title{color:var(--stx-hell-muted)}
/* Vorteile */
body .stx-vorteile{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:28px 32px}
body .stx-vorteil{display:flex;gap:16px;align-items:flex-start}
body .stx-vorteil-icon{flex:none;width:40px;height:40px;border-radius:50%;background:rgba(215,38,30,.1);color:var(--stx-rot);display:grid;place-items:center}
body .stx-vorteil-icon svg{width:16px;height:16px;fill:currentColor}
body .stx-vorteil .stx-core-stapel{gap:8px}
body .stx-vorteil h3.elementor-heading-title{font-size:1.15rem;font-weight:600;letter-spacing:-.01em}
/* FAQ in dunkler Box (wie Karriere-Box der Startseite) */
body .stx-core-faq{display:grid;grid-template-columns:1fr 1.4fr;gap:48px;padding:clamp(2.5rem,5vw,4.5rem)}
body .stx-core-faq .stx-punkt .elementor-heading-title{color:var(--stx-hell-muted)}
body .stx-core-faq .stx-punkt .elementor-heading-title::before{background:var(--stx-rot)}
body .stx-akk-inhalt > div,body .stx-akk-inhalt > p{overflow:hidden;min-height:0}
body .stx-akk-inhalt p{padding-left:0;max-width:62ch}
/* Anfrage */
body .stx-core-anfrage{display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(2.5rem,6vw,5rem);align-items:start}
body .stx-core-kacheln-kontakt{display:flex;flex-direction:column;gap:12px;width:100%;margin-top:8px}
body .stx-core-kachel{display:flex;align-items:center;gap:16px;padding:16px 18px;text-decoration:none;color:var(--stx-text)}
body .stx-core-kachel .elementor-icon-box-content{display:flex;flex-direction:column}
body .stx-core-ap{display:flex;flex-direction:column;gap:2px;padding:18px 20px;border:1px solid var(--stx-linie);border-radius:var(--stx-r);width:100%}
body .stx-core-ap-label{font-size:.82rem;color:var(--stx-text-muted)}
body .stx-core-ap-name{font-size:1.15rem;font-weight:600}
body .stx-core-ap-funktion{color:var(--stx-text-muted);font-size:.92rem}
body .stx-core .stx-core-inhalt h2,body .stx-core .stx-core-inhalt h3{color:var(--stx-text);font-weight:600;letter-spacing:-.01em;margin:1.4em 0 .5em;line-height:1.25}
body .stx-core .stx-core-inhalt h2{font-size:1.5rem}
body .stx-core .stx-core-inhalt h3{font-size:1.2rem}
body .stx-core .stx-core-inhalt ul{margin:0 0 1em 1.1em}
@media (max-width:1024px){
  body .stx-core-faq,body .stx-core-anfrage{grid-template-columns:1fr}
  body .stx-core-hero.stx-hero{padding:120px 0 48px}
}
@media (max-width:767px){
  body .stx-vorteile{grid-template-columns:1fr}
  body .stx-core-hero.stx-hero{min-height:78svh;padding:110px 0 40px}
}

/* Plugin-Templates volle Breite: Hello begrenzt .site-main bei Nicht-Elementor-Seiten auf 1140 px */
html body main.stx-core.site-main{max-width:none;width:100%;margin:0;padding:0}
/* Inhaltsbreite wie Elementor-Sections (1320 px Inhalt + Seitenabstand außen) */
body .stx-core-wrap{max-width:calc(1320px + 96px)}
body .stx-core-hero > .stx-core-wrap{width:100%}
