/* Alabor AG – Startseite (nur Itemid 101) */

body.itemid-101 #mainbody { display: none; }

#startseite { --st-green: #00b259; --st-sand: #f0efee; --st-text: #414042; --st-muted: #7a7a78; --st-gap: 24px; background: #fff; color: var(--st-text); font-size: 16px; line-height: 1.6; }
#startseite * { box-sizing: border-box; }
#startseite p { margin: 0; }
#startseite a { text-decoration: none; color: inherit; }
#startseite img { display: block; max-width: 100%; height: auto; }

.st-wrap { width: 1128px; max-width: 100%; margin: 0 auto; }
.st-section { padding: 72px 0; }
.st-eyebrow,
#startseite p.st-eyebrow { font-size: 13px; line-height: 1; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--st-green); margin-bottom: 24px; }

/* Intro */
.st-intro { padding-bottom: 0; }
.st-intro-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.st-intro-text p.st-lead { font-size: 30px; line-height: 1.3; color: var(--st-green); max-width: 780px; }
.st-intro-text p.st-lead + p { margin-top: 18px; font-size: 18px; max-width: 680px; }
.st-intro-logos { flex-shrink: 0; }
.st-intro-logos .mod-custom { display: flex; align-items: center; gap: 32px; }
.st-intro-logos p,
.st-intro-logos a { display: block; margin: 0; padding: 0; line-height: 0; font-size: 0; }
.st-intro-logos img { width: auto !important; }
.st-intro-logos img[src*="TOP_Logo"] { height: 64px !important; }
.st-intro-logos img[src*="sbfi"] { height: 96px !important; }

/* Leistungs-Kacheln */
.st-grid5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--st-gap); }
.st-tile { display: block; }
.st-tile-img { display: block; position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #dcddd9; }
.st-tile-img img { position: absolute; top: 0; left: 50%; height: 115.4% !important; width: auto !important; max-width: none !important; transform: translateX(-50%); transition: transform .6s ease; }
.st-tile-img img.st-clean { height: 100% !important; }
.st-tile-name,
.st-teaser-name { display: block; margin-top: 14px; font-size: 17px; line-height: 1.3; }
.st-tile-name::after,
.st-teaser-name::after { content: ""; display: block; width: 24px; height: 2px; margin-top: 10px; background: var(--st-green); transition: width .3s ease; }
a.st-tile:hover .st-tile-img img { transform: translateX(-50%) scale(1.04); }
a.st-tile:hover .st-tile-name::after { width: 48px; }

/* News */
.st-news { background: var(--st-sand); }
.st-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--st-gap); }
.st-teaser .st-teaser-media,
.st-teaser-post .mod-custom > p:first-child { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.st-teaser-insta .st-teaser-media { position: relative; }
.st-teaser-insta .st-teaser-media iframe { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; border: 0; display: block; }
.st-teaser-post .mod-custom > p:first-child a { display: block; height: 100%; }
.st-teaser-post .mod-custom > p:first-child img { width: 100% !important; height: 100% !important; object-fit: cover; object-position: top; }
.st-teaser-name { font-size: 16px; }
.st-teaser-name span { display: block; margin-top: 2px; font-size: 14px; color: var(--st-muted); }

/* Abstände (gegen #startseite p { margin: 0 }) */
#startseite .st-intro-text p.st-lead + p { margin-top: 18px; }
#startseite .st-tile-name,
#startseite .st-teaser-name { margin-top: 14px; }

/* Tablet */
@media only screen and (max-width: 1169px) {
  .st-wrap { padding: 0 20px; }
  .st-grid5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Mobile */
@media only screen and (max-width: 760px) {
  #startseite { --st-gap: 16px; }
  .st-section { padding: 48px 0; }
  .st-intro { padding-bottom: 0; }
  .st-intro-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .st-intro-text p.st-lead { font-size: 23px; }
  .st-grid5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-grid3 { grid-template-columns: 1fr; }
}
