/*
 * Startseite – Sektions-Styles (nur auf der Startseite geladen)
 * Hero ist in der globalen style.css gestylt; hier die übrigen Sektionen.
 * Design nach Figma: helle Sektionen mit farbigen Boxen/Karten.
 */

:root {
    --fp-navy: #1d2e7c;
    --fp-navy-2: #16236b;
    --fp-ink: #0a1f3d;
    --fp-gray: #5b6577;
    --fp-card: #eef4fb;
    --fp-line: #e3e9f4;
    --fp-violet: #7b5dc7;
}

/* ── Vollbreite, weisser Hintergrund (Theme-Boxed-Layout aufheben) ────── */
body.sot-frontpage-page {
    background: #fff;
}

.sot-frontpage-page #page-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
}

.sot-frontpage-page #main,
.sot-frontpage-page #main-content.sot-frontpage {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Content-Container: breiter, mit Max-Breite und Rand zum Browser */
.sot-frontpage .hgrid:not(.hero-grid) {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
    box-sizing: border-box;
}

/* Hero an die Content-Shell ausrichten (Text bündig zum Logo, Bild
   bündig zum rechten Content-Rand) und Höhe an den Inhalt anpassen */
.sot-frontpage .hero-grid {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
    align-items: center;
    flex-wrap: nowrap; /* Bildspalte soll nicht unter den Text rutschen */
    box-sizing: border-box;
}

/* Spalten-Gutter raus: Text bündig zum Logo, Bild bündig zum rechten Rand
   und dadurch grösser; vermeidet zugleich den Umbruch der Bildspalte */
.sot-frontpage .hero-text,
.sot-frontpage .hero-image {
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

.sot-frontpage .hero-text {
    max-width: none;
}

.sot-frontpage .hero-image {
    width: 41%;
    height: auto;
    right: 0;
    align-self: center;
    background-position: right top;
    background-size: 82% auto;
}

.sot-frontpage .hero-image img {
    position: relative;
    top: 0;
    width: 100%;
    height: auto;
    margin: 70px 0 0 auto; /* Stadtbild tiefer -> Wolke (bg) ragt oben darüber */
    display: block;
}

.sot-frontpage section {
    padding: 80px 0;
}

/* Sanftes Scrollen zu Sektionen via Anker-Links (#sektion-…) */
html {
    scroll-behavior: smooth;
}
.sot-fp-anchor {
    display: block;
    height: 0;
    scroll-margin-top: 70px; /* Versatz wegen der fixierten Top-Bar */
}

/* Hero: Höhe an den Inhalt (endet kurz unter den Badges), nicht 800px fix */
.sot-frontpage .sot-hero {
    height: auto;
    min-height: 0;
    padding: 8px 0 40px;
    overflow: visible;
}

/* Hero bei schmalem Viewport: Bild verblasst hinter den Titel */
@media (max-width: 992px) {
    .sot-frontpage .sot-hero {
        height: auto;
        min-height: 0;
        padding: 0;
    }
    .sot-frontpage .hero-grid {
        display: block;
        position: relative;
        padding: 70px 24px;
    }
    .sot-frontpage .hero-text {
        position: relative;
        z-index: 2;
        max-width: 100%;
        order: 0;
    }
    .sot-frontpage .hero-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        opacity: 0.14;
        z-index: 0;
        background: none;
        -webkit-mask-image: none;
        mask-image: none;
        overflow: hidden;
        pointer-events: none;
    }
    .sot-frontpage .hero-image img {
        position: static;
        top: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        object-fit: contain;
        animation: none;
    }
}

/* gemeinsame Überschriften */
.sot-frontpage .section-eyebrow {
    text-align: center;
    color: var(--fp-ink);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 0 0.8rem;
}

.sot-frontpage .section-statement {
    text-align: center;
    color: var(--fp-ink);
    font-size: 2.3rem;
    line-height: 1.25;
    font-weight: 800;
    max-width: 900px;
    margin: 0 auto 2.5rem;
}

.sot-frontpage section > .hgrid > h2:not(.section-statement) {
    text-align: center;
    color: var(--fp-ink);
    font-size: 2.1rem;
    font-weight: 800;
    margin: 0 0 2.2rem;
}

/* ── Zielgruppen ──────────────────────────────────────────────────────── */
.sot-target-groups .target-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.sot-target-groups .card {
    background: var(--fp-card);
    border-radius: 18px;
    padding: 34px 30px;
    display: flex;
    flex-direction: column;
}

.sot-target-groups .card h3 {
    color: var(--fp-ink);
    margin: 0 0 0.8rem;
    font-size: 1.35rem;
}

.sot-target-groups .card p {
    color: var(--fp-gray);
    margin: 0 0 1.6rem;
    flex: 1;
}

.sot-target-groups .card-link {
    font-weight: 600;
    color: var(--fp-navy);
    text-decoration: none;
}

.sot-target-groups .card-link:hover {
    text-decoration: underline;
}

/* ── Prozess (dunkelblaue Gradient-Karten) ────────────────────────────── */
.sot-process .process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.sot-process .step {
    background: linear-gradient(160deg, #2a3da8 0%, var(--fp-navy-2) 100%);
    border-radius: 20px;
    padding: 26px 24px 28px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sot-process .step-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sot-process .step-number {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 50%;
    background: #fff;
    color: var(--fp-navy);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sot-process .step-tag {
    font-weight: 600;
    font-size: 0.95rem;
}

.sot-process .step h3 {
    color: #fff;
    font-size: 1.25rem;
    line-height: 1.2;
    margin: 0;
}

.sot-process .step p {
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    font-size: 0.92rem;
    flex: 1;
}

.sot-process .step-link {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

/* ── Kacheln (Tabs) ───────────────────────────────────────────────────── */
.sot-tiles .tiles-tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    background: var(--fp-card);
    border-radius: 40px;
    padding: 5px;
    width: max-content;
    margin: 0 auto 36px;
}

.sot-tiles .tiles-tab {
    border: none;
    background: transparent;
    color: var(--fp-ink);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 9px 26px;
    border-radius: 40px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.sot-tiles .tiles-tab.active {
    background: var(--fp-navy);
    color: #fff;
}

.sot-tiles .tiles-panel {
    display: none;
}

.sot-tiles .tiles-panel.active {
    display: block;
}

.sot-tiles .tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.sot-tiles .tile {
    position: relative;
    background: var(--fp-card);
    border-radius: 18px;
    padding: 28px 26px 24px;
    min-height: 330px;
    overflow: hidden;
}

/* Titel/Text bleiben links, damit das Bild rechts daran vorbei kann */
.sot-tiles .tile-body {
    position: relative;
    z-index: 2;
    max-width: 68%;
}

.sot-tiles .tile h3 {
    color: var(--fp-navy);
    font-size: 1.3rem;
    margin: 0 0 0.5rem;
}

.sot-tiles .tile p {
    color: var(--fp-gray);
    margin: 0;
    font-size: 0.95rem;
}

/* Produktbild (transparenter Hintergrund): gross & mittig, füllt die
   Kachel im Hintergrund fast aus (abzüglich Rand), unten am Kachelrand */
.sot-tiles .tile-media {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 62px;
    bottom: 18px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
}

.sot-tiles .tile-media img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center bottom;
}

/* Button liegt über dem Bild, schlanker, violette Umrandung;
   höher (etwa Kachelmitte) und etwas weiter rechts */
.sot-tiles .tile-btn {
    position: absolute;
    left: 52px;
    bottom: 56px;
    z-index: 3;
    border: 1.5px solid var(--fp-violet);
    color: var(--fp-violet);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 40px;
    padding: 7px 18px;
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.sot-tiles .tile-btn:hover {
    background: var(--fp-violet);
    color: #fff;
}

/* ── CTA-Banner ───────────────────────────────────────────────────────── */
.sot-cta .cta-box {
    background: linear-gradient(120deg, #2f6fd0 0%, #2453b5 100%);
    border-radius: 24px;
    padding: 44px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 44px;
    align-items: center;
}

.sot-cta .cta-media {
    position: relative;
    background: #fff;
    border-radius: 18px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sot-cta .cta-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sot-cta .cta-badge {
    position: absolute;
    left: 16px;
    bottom: 16px;
    background: #fff;
    color: var(--fp-navy);
    border-radius: 40px;
    padding: 8px 18px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.sot-cta .cta-content h2 {
    color: #fff;
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 1rem;
    text-align: left;
}

.sot-cta .cta-text {
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 1.6rem;
}

.sot-cta .cta-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.btn-cta-primary {
    background: var(--fp-navy-2);
    color: #fff;
    border: 2px solid var(--fp-navy-2);
    padding: 0.8rem 1.8rem;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
}

.btn-cta-ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 0.8rem 1.8rem;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
}

.btn-cta-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

.sot-cta .cta-footnote {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    margin: 0;
    font-size: 0.95rem;
}

/* ── Warum ShopOfThings ───────────────────────────────────────────────── */
.sot-why-us .why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.sot-why-us .why-item {
    background: var(--fp-card);
    border-radius: 18px;
    padding: 30px;
}

.sot-why-us .why-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--fp-navy);
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 22px;
}

.sot-why-us .why-item h3 {
    color: var(--fp-ink);
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
}

.sot-why-us .why-item p {
    color: var(--fp-gray);
    margin: 0;
    font-size: 0.95rem;
}

/* ── Partner-Logos ────────────────────────────────────────────────────── */
/* Partner-Logos als Karten – wie „Kunden", aber farblich invertiert:
   Sektion weiss, Karten hellblau (heben sich vom weissen Grund ab). */
.sot-partners .partner-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 22px;
    margin-top: 20px;
}

.sot-partners .partner-logos > .logo-link {
    display: block;
}

.sot-partners .partner-logos img {
    background: var(--fp-card);
    border-radius: 16px;
    padding: 26px;
    width: 100%;
    height: 130px;
    object-fit: contain;
}

/* ── Kunden-Logos (weisse Karten auf hellem Grund) ────────────────────── */
.sot-customers {
    background: var(--fp-card);
}

.sot-customers .customer-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin-top: 20px;
}

.sot-customers .customer-logos > .logo-link {
    display: block;
}

.sot-customers .customer-logos img {
    background: #fff;
    border-radius: 16px;
    padding: 26px;
    width: 100%;
    height: 130px;
    object-fit: contain;
    box-shadow: 0 4px 16px rgba(29, 46, 124, 0.05);
}

/* ── Stats (blaue Box) ────────────────────────────────────────────────── */
.sot-stats .stats-box {
    background: linear-gradient(120deg, #2a3da8 0%, var(--fp-navy-2) 100%);
    border-radius: 24px;
    padding: 50px 40px;
}

.sot-stats .stats-box h2 {
    text-align: center;
    color: #fff;
    font-size: 1.8rem;
    margin: 0 0 2rem;
}

.sot-stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
}

.sot-stats .stat {
    text-align: center;
}

.sot-stats .stat .number {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}

.sot-stats .stat p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
}

/* ── News ─────────────────────────────────────────────────────────────── */
.sot-news .news-eyebrow {
    margin-bottom: 2rem;
}

.sot-news .news-grid {
    display: grid;
    gap: 26px;
}

.sot-news .news-grid.has-rest {
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

.sot-news .news-item {
    background: var(--fp-card);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sot-news .news-rest {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.sot-news .news-featured .news-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    background: #e7edf6;
    overflow: hidden;
}

.sot-news .news-featured .news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sot-news .news-body {
    padding: 20px 24px 24px;
}

.sot-news .news-item time {
    display: block;
    color: var(--fp-gray);
    font-size: 0.82rem;
    margin-bottom: 6px;
}

.sot-news .news-item h3 {
    font-size: 1.1rem;
    line-height: 1.3;
    margin: 0 0 8px;
}

.sot-news .news-item h3 a {
    color: var(--fp-ink);
    text-decoration: none;
}

.sot-news .news-item p {
    color: var(--fp-gray);
    font-size: 0.92rem;
    margin: 0 0 12px;
}

.sot-news .news-more {
    font-weight: 600;
    color: var(--fp-navy);
    text-decoration: none;
    font-size: 0.9rem;
}

/* ── Berater-CTA ──────────────────────────────────────────────────────── */
.sot-berater .berater-box {
    background: linear-gradient(120deg, #2f6fd0 0%, #2453b5 100%);
    border-radius: 24px;
    padding: 56px 48px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 44px;
    align-items: center;
}

.sot-berater .berater-eyebrow {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    margin: 0 0 0.8rem;
}

.sot-berater .berater-content h2 {
    color: #fff;
    font-size: 1.9rem;
    line-height: 1.25;
    margin: 0 0 1.6rem;
    text-align: left;
}

.sot-berater .berater-card {
    background: #fff;
    border-radius: 18px;
    padding: 30px;
    text-align: center;
}

.sot-berater .berater-photo {
    width: 130px;
    height: 130px;
    margin: 0 auto 16px;
    border-radius: 16px;
    background: #eef2f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sot-berater .berater-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sot-berater .berater-name {
    font-weight: 700;
    color: var(--fp-ink);
    font-size: 1.1rem;
}

.sot-berater .berater-role {
    color: var(--fp-gray);
    font-size: 0.95rem;
    margin-top: 2px;
}

.sot-berater .berater-phone {
    margin-top: 4px;
    font-size: 0.95rem;
}

.sot-berater .berater-phone a {
    color: var(--fp-gray);
    text-decoration: none;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .sot-cta .cta-box,
    .sot-berater .berater-box {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .sot-cta .cta-content h2,
    .sot-berater .berater-content h2 {
        text-align: center;
    }
    .sot-cta .cta-buttons {
        justify-content: center;
    }
    .sot-cta .cta-media {
        max-width: 320px;
        margin: 0 auto;
        width: 100%;
    }
    .sot-berater .berater-card {
        max-width: 340px;
        margin: 0 auto;
    }
    .sot-news .news-grid.has-rest {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sot-frontpage section {
        padding: 52px 0;
    }
    /* höherer Anker-Versatz (Top-Bar auf Mobile höher) */
    .sot-fp-anchor {
        scroll-margin-top: 110px;
    }
    /* schmalerer Seitenrand auf dem Handy */
    .sot-frontpage .hgrid:not(.hero-grid) {
        padding-left: 18px;
        padding-right: 18px;
    }

    .sot-frontpage .section-statement {
        font-size: 1.6rem;
        margin-bottom: 1.8rem;
    }
    .sot-frontpage section > .hgrid > h2:not(.section-statement) {
        font-size: 1.5rem;
    }

    .sot-hero .hero-title {
        font-size: 2.4rem;
    }
    .sot-hero .hero-subtitle {
        font-size: 1.15rem;
    }

    .sot-target-groups .card,
    .sot-why-us .why-item {
        padding: 24px;
    }
    /* Kachel behält ihre Höhe für Bild + überlappenden Button */
    .sot-tiles .tile {
        min-height: 300px;
    }

    .sot-cta .cta-box {
        padding: 26px;
    }
    .sot-cta .cta-content h2 {
        font-size: 1.55rem;
    }

    .sot-stats .stats-box {
        padding: 34px 22px;
    }
    .sot-stats .stats-box h2 {
        font-size: 1.5rem;
    }
    .sot-stats .stat .number {
        font-size: 2.2rem;
    }

    .sot-berater .berater-box {
        padding: 32px 24px;
    }
    .sot-berater .berater-content h2 {
        font-size: 1.5rem;
    }

    .sot-partners .partner-logos {
        gap: 28px;
    }
    .sot-customers .customer-logos {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .sot-frontpage .hgrid:not(.hero-grid) {
        padding-left: 14px;
        padding-right: 14px;
    }
    .sot-hero .hero-title {
        font-size: 2rem;
    }
    .sot-frontpage .section-statement {
        font-size: 1.35rem;
    }
    .sot-tiles .tiles-tab {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
    /* je 2 nebeneinander statt 1, damit es kompakt bleibt */
    .sot-stats .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sot-partners .partner-logos {
        grid-template-columns: repeat(2, 1fr);
    }
    .sot-customers .customer-logos {
        grid-template-columns: repeat(2, 1fr);
    }
    .sot-customers .customer-logos img,
    .sot-partners .partner-logos img {
        height: 96px;
        padding: 16px;
    }
    .sot-frontpage .hero-grid {
        padding: 52px 18px;
    }
}


/* =========================================================================
   Hover-Effekte (Startseite)
   ========================================================================= */

/* Hero-Buttons: violetter Kreis wächst aus der Mitte, bis der Button gefüllt ist */
.sot-hero .hero-buttons .btn {
    position: relative;
    overflow: hidden;
    z-index: 0;
    transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}
.sot-hero .hero-buttons .btn::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: var(--fp-violet, #7b5dc7);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
    z-index: -1;
}
.sot-hero .hero-buttons .btn:hover::before {
    transform: translate(-50%, -50%) scale(1);
}
.sot-hero .hero-buttons .btn-primary:hover,
.sot-hero .hero-buttons .btn-secondary:hover {
    background-color: var(--SOT---blue-deep, #1d2e7c) !important;
    color: #fff !important;
    border-color: var(--fp-violet, #7b5dc7);
}

/* Zielgruppen-Karten: bei Hover violett→navy Verlauf, Text weiss */
.sot-target-groups .card {
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.sot-target-groups .card:hover {
    background: linear-gradient(135deg, var(--fp-violet, #7b5dc7) 0%, #2a3da8 40%, var(--fp-navy-2, #16236b) 100%);
    box-shadow: 0 16px 36px rgba(29, 46, 124, 0.22);
}
.sot-target-groups .card:hover h3 { color: #fff; }
.sot-target-groups .card:hover p { color: rgba(255, 255, 255, 0.85); }
.sot-target-groups .card:hover .card-link { color: #fff; }

/* Prozess-Schritte: violetter Verlauf oben links, h3 hoch, Pfeil nach rechts */
.sot-process .step { transition: background 0.3s ease; }
.sot-process .step h3 { transition: transform 0.25s ease; }
.sot-process .step-link { display: inline-block; transition: transform 0.25s ease; }
.sot-process .step:hover {
    background: linear-gradient(135deg, var(--fp-violet, #7b5dc7) 0%, #2a3da8 34%, var(--fp-navy-2, #16236b) 100%);
}
.sot-process .step:hover h3 { transform: translateY(-4px); }
.sot-process .step:hover .step-link { transform: translateX(5px); }

/* Kacheln/Produkte: bei Hover hell-violett, Button gefüllt violett */
.sot-tiles .tile { transition: background 0.25s ease, box-shadow 0.25s ease; }
.sot-tiles .tile:hover {
    background: #e7e1f4;
    box-shadow: 0 14px 30px rgba(123, 93, 199, 0.18);
}
.sot-tiles .tile:hover .tile-btn {
    background: var(--fp-violet, #7b5dc7);
    color: #fff;
    border-color: var(--fp-violet, #7b5dc7);
}

/* Technologiepartner: einfacher Grow-Effekt */
.sot-partners .partner-logos > .logo-link,
.sot-partners .partner-logos > img {
    display: inline-block;
    transition: transform 0.25s ease;
}
.sot-partners .partner-logos > .logo-link:hover,
.sot-partners .partner-logos > img:hover {
    transform: scale(1.08);
}

/* Blog/News: Kalender-Icon vor dem Datum + bei Hover violette Karte, weisser Text */
.sot-news .news-item time::before {
    content: "\f133";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 7px;
    font-size: 0.85em;
}
.sot-news .news-item { transition: background 0.25s ease, box-shadow 0.25s ease; }
.sot-news .news-item:hover {
    background: var(--fp-violet, #7b5dc7);
    box-shadow: 0 14px 30px rgba(123, 93, 199, 0.22);
}
.sot-news .news-item:hover time,
.sot-news .news-item:hover h3 a,
.sot-news .news-item:hover p,
.sot-news .news-item:hover .news-more {
    color: #fff;
}


/* =========================================================================
   Hero-Wasserfall „lebt": Lichtschlieren laufen nach unten, schwebt mit dem
   Bild mit (gleiche Float-Keyframes wie .hero-image img). Position in % der
   .hero-image -> die 4 --wf-* Werte im Browser feinjustieren.
   ========================================================================= */
.sot-frontpage .hero-image { position: relative; }

.hero-water {
    --wf-left: 39%;
    --wf-top:  57%;
    --wf-w:    17%;
    --wf-h:    15%;

    position: absolute;
    left: var(--wf-left);
    top:  var(--wf-top);
    width:  var(--wf-w);
    height: var(--wf-h);
    pointer-events: none;
    z-index: 2;

    /* feine, helle vertikale Schlieren */
    background-image: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0)    0px,
        rgba(255, 255, 255, 0.16) 2px,
        rgba(255, 255, 255, 0)    5px,
        rgba(255, 255, 255, 0)    10px
    );
    background-size: 100% 40px;
    background-repeat: repeat;

    /* weich in die Umgebung blenden (keine harten Kanten) */
    -webkit-mask: radial-gradient(ellipse at 50% 45%, #000 45%, transparent 100%);
            mask: radial-gradient(ellipse at 50% 45%, #000 45%, transparent 100%);
    mix-blend-mode: screen;
    opacity: 0.45;
    filter: blur(0.4px);

    /* 1) Float-Sync mit dem Bild, 2) Schlieren nach unten */
    animation:
        heroFloatRandom 12s ease-in-out infinite,
        sotWaterFlow     7s linear      infinite;
}

@keyframes sotWaterFlow {
    from { background-position: 0 0; }
    to   { background-position: 0 40px; }
}

/* Mobile + Reduced-Motion: aus */
@media (max-width: 992px) {
    .hero-water { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-water { animation: none; }
}


/* =========================================================================
   Brücke über dem Wasserfall: winzige Autos + Personen queren (random-artig).
   Position/Grösse über --br-* (% der .hero-image) feinjustieren. Breite ~ wie
   das Wasser-Element. Schwebt synchron mit dem Bild (heroFloatRandom).
   ========================================================================= */
.hero-bridge {
    /* --- Lage/Grösse der Brücke (bitte im Browser feinjustieren) --- */
    --br-left: 39%;   /* wie Wasser-Element */
    --br-top:  49.7%; /* knapp ÜBER dem Wasserfall (--wf-top: 57%) */
    --br-w:    17%;   /* Breite ~ wie Wasser-Element */
    --br-h:    4%;    /* dünnes Band */
    --arch:    2px;   /* leichte Krümmung der Brücke (negativ = nach unten) */

    /* --- Grösse/Farbe der „Verkehrsteilnehmer" --- */
    --person-w: 1.6px;
    --person-h: 2.6px;
    --person-color: #2c2c2c;
    --car-w: 4.6px;
    --car-h: 2px;
    --car-color: #34406a;

    position: absolute;
    left: var(--br-left);
    top:  var(--br-top);
    width:  var(--br-w);
    height: var(--br-h);
    pointer-events: none;
    z-index: 3;
    /* schwebt synchron mit dem Bild */
    animation: heroFloatRandom 12s ease-in-out infinite;
}

.hero-bridge .bm {
    position: absolute;
    left: 0;
    top: 50%;
    border-radius: 1.5px;
    opacity: 0;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
.hero-bridge .bm-person {
    width: var(--person-w);
    height: var(--person-h);
    background: var(--person-color);
}
.hero-bridge .bm-car {
    width: var(--car-w);
    height: var(--car-h);
    background: var(--car-color);
}

.hero-bridge .bm-lr { animation-name: sotBridgeLR; }
.hero-bridge .bm-rl { animation-name: sotBridgeRL; }

/* Timing + Lanes pro Element -> wirkt zufällig (Autos auf der „Strasse",
   Personen leicht versetzt gestapelt) */
.hero-bridge .bm:nth-child(1) { animation-duration: 9s;  animation-delay: 0s;   top: 53%; background: #34406a; } /* Auto: dunkelblau */
.hero-bridge .bm:nth-child(2) { animation-duration: 13s; animation-delay: 3.5s; top: 40%; background: #2c2c2c; } /* Person: dunkelgrau */
.hero-bridge .bm:nth-child(3) { animation-duration: 11s; animation-delay: 7s;   top: 60%; background: #3a5a3a; } /* Person: dunkelgrün */
.hero-bridge .bm:nth-child(4) { animation-duration: 8s;  animation-delay: 10s;  top: 53%; background: #7a2f3a; } /* Auto: dunkelrot */
.hero-bridge .bm:nth-child(5) { animation-duration: 15s; animation-delay: 2s;   top: 46%; background: #6b4a2f; } /* Person: braun */
.hero-bridge .bm:nth-child(6) { animation-duration: 12s; animation-delay: 5.5s; top: 64%; background: #43507a; } /* Person: gedämpftes blau */

/* links -> rechts (Querung in den ersten ~56% der Dauer, danach off-screen) */
@keyframes sotBridgeLR {
    0%   { left: -14%; opacity: 0; transform: translateY(0); }
    4%   { opacity: 1; }
    28%  { transform: translateY(calc(-1 * var(--arch))); }
    52%  { opacity: 1; }
    56%  { left: 114%; opacity: 0; transform: translateY(0); }
    100% { left: 114%; opacity: 0; transform: translateY(0); }
}
/* rechts -> links */
@keyframes sotBridgeRL {
    0%   { left: 114%; opacity: 0; transform: translateY(0); }
    4%   { opacity: 1; }
    28%  { transform: translateY(calc(-1 * var(--arch))); }
    52%  { opacity: 1; }
    56%  { left: -14%; opacity: 0; transform: translateY(0); }
    100% { left: -14%; opacity: 0; transform: translateY(0); }
}

@media (max-width: 992px) {
    .hero-bridge { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-bridge .bm { animation: none; opacity: 0; }
}
