/* Neue Startseite (2026-10-14): Abschnitte unter dem Hero (resources/views/site/partials/home.blade.php).
   Ritmus: weiß / hell / weiß / hell / dunkel (Videos) / weiß / hell / dunkel (Abschluss) / Fuß dunkel.
   Gelb nur für die wichtigste Handlung und als Akzent auf Dunkel; Karten heben sich beim Überfahren leicht an (kein Gelb). */
.sbh {
  --h-ink: #1a1e24; --h-text: #3d4652; --h-muted: #5b6573; --h-line: #e3e9ef; --h-soft: #f5f7fa; --h-dark: #121417; --h-dark2: #1b1f25;
  --h-blue: #1e63b8; --h-yellow: #f7df03; --h-r: var(--sb-radius, 8px); --h-card: 14px;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; color: var(--h-ink); -webkit-font-smoothing: antialiased;
}
.sbh *, .sbh *::before, .sbh *::after { box-sizing: border-box; }
/* Thema setzt p/li/h* auf eigene Schriften und Gewichte: hier überall Inter */
.sbh :is(p, li, h2, h3, a, span, b, button, figcaption) { font-family: inherit; }
.sbh li { font-weight: 400; }
.sbh img { max-width: 100%; display: block; }
.sbh a { text-decoration: none !important; }
.sbh svg { width: 18px; height: 18px; fill: currentColor; flex: 0 0 auto; }

.sbh-sec { padding: clamp(64px, 8vw, 112px) 0; background: #fff; }
.sbh-soft { background: var(--h-soft); }
.sbh-dark { background: var(--h-dark); color: #fff; }
.sbh-wrap { width: min(1280px, 100% - 48px); margin: 0 auto; }
.sbh-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.sbh-grid { display: grid; gap: 22px; }
.sbh-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sbh-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sbh-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 0 0 clamp(28px, 3.5vw, 44px); }

/* Typografie */
:is(#sb-home, #sb-more) .sbh-kicker { margin: 0 0 14px; font-size: 12.5px; font-weight: 700; line-height: 1.2; letter-spacing: .16em; text-transform: uppercase; color: var(--h-blue); }
:is(#sb-home, #sb-more) .sbh-dark .sbh-kicker { color: var(--h-yellow); }
:is(#sb-home, #sb-more) .sbh-h { margin: 0 0 18px; font-family: inherit; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.1; font-weight: 700; letter-spacing: -.022em; color: var(--h-ink); text-transform: none; text-align: left; }
:is(#sb-home, #sb-more) .sbh-h-md { font-size: clamp(24px, 2.6vw, 36px); max-width: 900px; }
:is(#sb-home, #sb-more) .sbh-dark .sbh-h { color: #fff; }
:is(#sb-home, #sb-more) .sbh-p { margin: 0 0 16px; font-size: 17px; line-height: 1.65; color: var(--h-text); text-align: left; hyphens: manual; }
:is(#sb-home, #sb-more) .sbh-p-narrow { max-width: 680px; }
:is(#sb-home, #sb-more) .sbh-dark .sbh-p { color: rgba(255, 255, 255, .72); }

/* Schaltflächen und Links */
.sbh-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: var(--h-r); font-size: 15px; font-weight: 700; letter-spacing: .01em; line-height: 1; white-space: nowrap; transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.sbh-btn svg { transition: transform .2s ease; }
.sbh-btn:hover svg { transform: translateX(3px); }
.sbh-btn-dark { background: var(--h-dark); color: #fff !important; }
.sbh-btn-dark:hover { background: #000; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.sbh-btn-outline { border: 1.5px solid #c9d1db; color: var(--h-ink) !important; background: transparent; }
.sbh-btn-outline:hover { border-color: var(--h-ink); }
.sbh-btn-light { border: 1.5px solid rgba(255, 255, 255, .35); color: #fff !important; }
.sbh-btn-light:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.sbh-link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--h-blue) !important; white-space: nowrap; }
.sbh-link svg { transition: transform .2s ease; }
a.sbh-link:hover svg, .sbh-card:hover .sbh-link svg { transform: translateX(3px); }
.sbh-dark .sbh-link { color: var(--h-yellow) !important; }
.sbh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 10px; }
.sbh :focus-visible { outline: 2px solid var(--h-blue); outline-offset: 3px; }
.sbh-dark :focus-visible { outline-color: var(--h-yellow); }

/* Karten */
.sbh-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--h-line); border-radius: var(--h-card); overflow: hidden; color: var(--h-ink) !important;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.sbh-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(16, 24, 40, .1); border-color: #c9d1db; }

/* 1 Über uns */
.sbh-check { list-style: none; margin: 4px 0 28px; padding: 0; display: grid; gap: 12px; }
.sbh-check li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.55; color: var(--h-text); }
.sbh-check li svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--h-yellow); fill: #111; margin-top: 1px; }
.sbh-intro-media { position: relative; border-radius: 20px; background: linear-gradient(160deg, #f7f9fc, #e9eef4); padding: clamp(24px, 4vw, 48px); }
.sbh-intro-media img { margin: 0 auto; max-height: 400px; width: auto; }
.sbh-note { position: relative; margin-top: 24px; padding: 18px 20px; border-radius: 14px; background: var(--h-dark); color: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, .22); }
:is(#sb-home, #sb-more) .sbh-note-t { margin: 0 0 6px; font-size: 15px; font-weight: 700; line-height: 1.35; color: #fff; }
:is(#sb-home, #sb-more) .sbh-note-p { margin: 0; font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, .72); }

/* 2 Produkte */
.sbh-prod-img { display: flex; align-items: center; justify-content: center; height: 260px; padding: 22px; background: linear-gradient(180deg, #fff, #f2f5f8); border-bottom: 1px solid var(--h-line); }
.sbh-prod-img img { height: 100%; width: auto; max-width: 100%; object-fit: contain; transition: transform .35s ease; }
.sbh-prod:hover .sbh-prod-img img { transform: scale(1.04); }
.sbh-prod-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.sbh-tag { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: #eef2f7; font-size: 12px; font-weight: 600; color: var(--h-muted); }
.sbh-prod-name { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.sbh-prod-text { font-size: 14.5px; line-height: 1.55; color: var(--h-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sbh-prod .sbh-link { margin-top: auto; padding-top: 6px; }

/* 3 Anwendungen */
.sbh-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.sbh-tile { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--h-card); overflow: hidden; background: #ccc; color: #fff !important; isolation: isolate; }
.sbh-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; z-index: -2; }
.sbh-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 12, 14, 0) 40%, rgba(11, 12, 14, .82)); transition: background .3s ease; }
.sbh-tile:hover img { transform: scale(1.06); }
.sbh-tile-t { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; font-size: 16px; font-weight: 600; line-height: 1.3; }
.sbh-tile-t svg { opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; }
.sbh-tile:hover .sbh-tile-t svg, .sbh-tile:focus-visible .sbh-tile-t svg { opacity: 1; transform: none; }

/* 4 Partner */
.sbh-split-partners { align-items: start; }
.sbh-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.sbh-tab { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--h-line); background: #fff; color: var(--h-muted); font: 600 14px/1 Inter, system-ui, sans-serif; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.sbh-tab:hover { border-color: #c9d1db; color: var(--h-ink); }
.sbh-tab[aria-selected="true"] { background: var(--h-dark); border-color: var(--h-dark); color: #fff; }
.sbh-tabs-dark .sbh-tab { background: transparent; border-color: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .72); }
.sbh-tabs-dark .sbh-tab:hover { border-color: rgba(255, 255, 255, .4); color: #fff; }
.sbh-tabs-dark .sbh-tab[aria-selected="true"] { background: var(--h-yellow); border-color: var(--h-yellow); color: #111; }
.sbh-logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sbh-logos[hidden] { display: none; }
.sbh-logo { display: flex; align-items: center; justify-content: center; height: 92px; padding: 16px 18px; border-radius: 12px; background: #fff; border: 1px solid var(--h-line); }
.sbh-logo img { max-height: 46px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .25s, opacity .25s; }
.sbh-logo:hover img { filter: none; opacity: 1; }
.sbh-reviews { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--h-ink) !important; }
.sbh-stars { color: #f5b400; letter-spacing: 2px; font-size: 16px; }
.sbh-reviews:hover { color: var(--h-blue) !important; }

/* 5 Videos */
.sbh-videos .sbh-head { margin-bottom: 24px; }
.sbh-vpanel { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 8px; }
.sbh-vpanel[hidden] { display: none; }
.sbh-vpanel.is-single { align-items: center; }
:is(#sb-home, #sb-more) .sbh-vside .sbh-vtitle { margin-top: 0; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.015em; }
:is(#sb-home, #sb-more) .sbh-vside .sbh-vtext { font-size: 16px; }
.sbh-vplayer { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--h-card); overflow: hidden; background: #000; }
.sbh-vplayer img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .3s, transform .5s; }
.sbh-vplayer:hover img { opacity: 1; transform: scale(1.02); }
.sbh-vplayer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sbh-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--h-yellow); display: grid; place-items: center; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); transition: transform .25s ease; }
.sbh-play svg { width: 34px; height: 34px; fill: #111; margin-left: 4px; }
.sbh-vplayer:hover .sbh-play { transform: scale(1.08); }
:is(#sb-home, #sb-more) .sbh-vtitle { margin: 18px 0 6px; font-size: 20px; font-weight: 700; line-height: 1.3; color: #fff; }
:is(#sb-home, #sb-more) .sbh-vtext { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .68); max-width: 760px; }
.sbh-vlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 560px; overflow-y: auto; scrollbar-width: thin; }
.sbh-vitem { display: flex; gap: 14px; align-items: center; width: 100%; padding: 8px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: #fff; text-align: left; cursor: pointer; transition: background .2s, border-color .2s; font: inherit; }
.sbh-vitem:hover { background: rgba(255, 255, 255, .05); }
.sbh-vitem.is-on { background: var(--h-dark2); border-color: rgba(255, 255, 255, .1); }
.sbh-vthumb { flex: 0 0 132px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.sbh-vthumb img { width: 100%; height: 100%; object-fit: cover; }
.sbh-vname { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.sbh-vitem.is-on .sbh-vname { color: var(--h-yellow); }
.sbh-vfoot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; color: rgba(255, 255, 255, .55); }

/* 6 Presse */
.sbh-article-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #eef1f5; }
.sbh-article-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.sbh-article:hover .sbh-article-img img { transform: scale(1.04); }
.sbh-article-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.sbh-source { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--h-muted); }
.sbh-article-t { font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.sbh-article-p { font-size: 14.5px; line-height: 1.6; color: var(--h-muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sbh-article .sbh-link { margin-top: auto; padding-top: 6px; }

/* 7 Export und Kundenwelt */
.sbh-split-export { align-items: start; }
.sbh-map { margin-top: 12px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--h-card); }
.sbh-mosaic { margin: 0; }
.sbh-mosaic figcaption { margin: 0 0 14px; font-size: 15px; color: var(--h-muted); }
.sbh-mosaic figcaption b { color: var(--h-ink); margin-right: 6px; }
.sbh-mosaic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(110px, 12vw, 170px); gap: 10px; }
.sbh-mosaic-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.sbh-mosaic-grid img:first-child { grid-row: span 2; grid-column: span 2; }

/* 8 Abschluss */
.sbh-cta { padding: clamp(56px, 6vw, 88px) 0; background: var(--h-dark2); }
.sbh-cta-card { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(28px, 3.5vw, 44px); border-radius: 18px; background: var(--h-dark); border: 1px solid rgba(255, 255, 255, .08); }
:is(#sb-home, #sb-more) .sbh-cta-t { margin: 0 0 10px; font-size: clamp(21px, 2vw, 27px); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; color: #fff; }
:is(#sb-home, #sb-more) .sbh-cta-p { margin: 0 0 26px; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .7); }
.sbh-cta-card .sbh-btn { margin-top: auto; }
.sbh-cta-yellow { background: var(--h-yellow); border-color: var(--h-yellow); }
.sbh-cta-yellow .sbh-kicker { color: #111 !important; }
:is(#sb-home, #sb-more) .sbh-cta-yellow .sbh-cta-t { color: #111; }
:is(#sb-home, #sb-more) .sbh-cta-yellow .sbh-cta-p { color: rgba(0, 0, 0, .7); }

/* Einblenden beim Scrollen (Klasse is-in setzt public/js/home.js; ohne JS sofort sichtbar) */
html.sbh-js .sbh-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
html.sbh-js .sbh-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.sbh-js .sbh-reveal { opacity: 1; transform: none; transition: none; }
  .sbh-card, .sbh-tile img, .sbh-prod-img img, .sbh-article-img img { transition: none; }
}

/* Tablet */
@media (max-width: 1100px) {
  .sbh-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sbh-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sbh-vpanel { grid-template-columns: 1fr; }
  .sbh-vlist { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; }
}
@media (max-width: 900px) {
  .sbh-split, .sbh-grid-2 { grid-template-columns: 1fr; }
  .sbh-grid-3 { grid-template-columns: 1fr 1fr; }
  .sbh-note { position: static; margin-top: 18px; max-width: none; }
  .sbh-intro-media img { max-height: 380px; }
}
/* Handy */
@media (max-width: 640px) {
  .sbh-wrap { width: calc(100% - 32px); }
  .sbh-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .sbh .sbh-p { font-size: 16px; }
  .sbh-grid-3 { grid-template-columns: 1fr; }
  .sbh-prod-img { height: 220px; }
  /* Anwendungen als waagerechte Leiste zum Wischen */
  .sbh-tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .sbh-tiles::-webkit-scrollbar { display: none; }
  .sbh-tile { flex: 0 0 62%; scroll-snap-align: start; }
  .sbh-tile-t svg { opacity: 1; transform: none; }
  .sbh-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sbh-logo { height: 80px; }
  .sbh-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 18px; padding: 0 16px; scrollbar-width: none; }
  .sbh-tabs::-webkit-scrollbar { display: none; }
  .sbh-tab { flex: 0 0 auto; }
  .sbh-vlist { grid-template-columns: 1fr; }
  .sbh-vthumb { flex-basis: 112px; }
  .sbh-play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .sbh-mosaic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 120px; }
  .sbh-mosaic-grid img:first-child { grid-column: span 2; grid-row: span 1; }
  .sbh-btn { width: 100%; justify-content: center; }
  .sbh-actions .sbh-btn { width: auto; }
}
/* Produktbild „Über uns“: beim Überfahren anheben (wie auf den Inhaltsseiten) */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .sbh-intro-media img { transition: transform .55s cubic-bezier(.2, .7, .2, 1), filter .55s ease; transform-origin: 50% 80%; }
  .sbh-intro-media:hover img { transform: translateY(-8px) scale(1.035); filter: drop-shadow(0 26px 28px rgba(16, 24, 40, .2)); }
}
