/* Shared 3×3 grid shell — light enterprise look from events-highlights-v5 embed-mode */

:root {
    --text: #111111;
    --muted: rgba(0, 0, 0, 0.68);
    --accent: #b88212;
    --accent-bright: #f9ad1e;
    --line: rgba(0, 0, 0, 0.08);
    --card-bg: #ffffff;
    --page-bg: transparent;
    --container: 1200px;
    --grid-gap: 16px;
    --cols: 3;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    color: var(--text);
    background: transparent;
}

img {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
}

a, button { font: inherit; }

.padding-global {
    padding-left: 24px;
    padding-right: 24px;
}

.container-large {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
}

.padding-section-large {
    padding-top: 32px;
    padding-bottom: 40px;
}

.grid-shell {
    width: 100%;
}

.hero-intro {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    text-align: center;
    justify-items: center;
}

.hero-kicker {
    margin: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-intro h2 {
    margin: 0;
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: -0.03em;
    max-width: 26ch;
}

.hero-intro > p {
    margin: 0;
    max-width: 62ch;
    font-size: 15px;
    line-height: 24px;
    color: var(--muted);
}

.text-span-copy {
    padding: 0 2px;
    margin: 0 -2px;
    background-image: linear-gradient(rgba(249, 173, 30, 0.55), rgba(249, 173, 30, 0.55));
    background-repeat: no-repeat;
    background-size: 100% 0.26em;
    background-position: 0 calc(100% - 0.08em);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.grid-kicker {
    display: block;
    margin: 0 0 18px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.grid-headline {
    margin: 0 0 24px;
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: -0.03em;
    max-width: 22ch;
}

.grid-intro {
    margin: -12px 0 24px;
    max-width: 62ch;
    font-size: 15px;
    line-height: 24px;
    color: var(--muted);
}

.grid-3x3 {
    display: grid;
    grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
    gap: var(--grid-gap);
    align-items: stretch;
}

.grid-3x3__item:nth-child(n+10) { display: none; }

/* Always render all 9 tiles — column count adapts, nothing hidden on tablet/mobile */
@media (max-width: 1023px) {
    :root { --cols: 2; }
}

@media (max-width: 599px) {
    :root { --cols: 1; }
}
.fact-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    height: 100%;
    padding: 16px 12px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--card-bg);
    box-shadow: 0 8px 20px rgba(28, 24, 19, 0.04);
    color: var(--text);
}

.fact-badge-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(221, 179, 84, 0.35);
    background: rgba(221, 179, 84, 0.1);
    color: var(--accent);
}

.fact-badge-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fact-stat-value {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.stat-count {
    font-variant-numeric: tabular-nums;
    color: var(--accent);
    font-weight: 800;
}

.fact-badge-label {
    font-size: 10px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text);
}

.fact-badge-detail {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--muted);
}

/* ── Video case cards ── */
.reference-card {
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 12px;
    height: 100%;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--card-bg);
}

.poster-button {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: #111111;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 10px 24px rgba(28, 24, 19, 0.08);
    transition: box-shadow 180ms ease, border-color 180ms ease;
}

.poster-button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}

.poster-button:hover,
.poster-button:focus-visible {
    border-color: rgba(221, 179, 84, 0.45);
    box-shadow: 0 14px 28px rgba(28, 24, 19, 0.12);
}

.poster-button:focus-visible {
    outline: 2px solid rgba(221, 179, 84, 0.85);
    outline-offset: 2px;
}

.poster-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    object-position: center center;
    transition: transform 220ms ease;
}

.poster-button:hover .poster-image,
.poster-button:focus-visible .poster-image {
    transform: scale(1.02);
}

.poster-chip {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.9);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    pointer-events: none;
    animation: gg-play-chip-pulse 2.6s ease-in-out infinite;
    transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

@keyframes gg-play-chip-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(221, 179, 84, 0.42);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(221, 179, 84, 0);
        transform: scale(1.03);
    }
}

.poster-button:hover .poster-chip,
.poster-button:focus-visible .poster-chip {
    animation: none;
    transform: scale(1.05);
    background: rgba(249, 173, 30, 0.96);
    color: #1e0e37;
}

.poster-chip svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.case-event-meta {
    display: grid;
    gap: 6px;
    justify-items: center;
    text-align: center;
}

.case-event-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    max-height: 48px;
}

.case-event-logo-img {
    display: block;
    width: auto;
    max-width: 132px;
    max-height: 40px;
    height: auto;
    object-fit: contain;
}

.case-event-logo-img.is-theme-light { display: none; }

.case-event-name {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.case-event-context {
    margin: 0;
    font-size: 11px;
    line-height: 1.35;
    color: var(--muted);
}

.reference-copy h4 {
    margin: 0;
    font-size: 20px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.reference-copy p {
    margin: 0;
    font-size: 14px;
    line-height: 22px;
    color: var(--muted);
}

/* ── Testimonial cards ── */
.fm-carousel-wrapper {
    --card-bg: rgba(255, 255, 255, 0.92);
    --fm-card-border: rgba(0, 0, 0, 0.08);
    --fm-card-radius: 14px;
    --fm-card-padding: 18px;
    --star-color: #ddb354;
    --star-empty: rgba(0, 0, 0, 0.15);
    --text-primary: #111111;
    --fm-text-muted: #555555;
}

.grid-3x3__item.review-card {
    height: 100%;
}

.fm-carousel-wrapper .review-card {
    position: relative;
    width: 100%;
    min-height: 200px;
    height: 100%;
    margin: 0;
    background: var(--card-bg);
    border: 1px solid var(--fm-card-border);
    border-radius: var(--fm-card-radius);
    padding: var(--fm-card-padding);
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 20px rgba(28, 24, 19, 0.04);
}

.fm-carousel-wrapper .card-top {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.fm-carousel-wrapper .stars {
    color: var(--star-color);
    font-size: 14px;
    letter-spacing: 2px;
}

.fm-carousel-wrapper .card-body {
    flex-grow: 1;
    position: relative;
    margin-bottom: 16px;
    min-width: 0;
}

.fm-carousel-wrapper .quote-mark {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 40px;
    line-height: 1;
    color: var(--star-color);
    opacity: 0.35;
    position: absolute;
    top: -8px;
    left: -4px;
    pointer-events: none;
}

.fm-carousel-wrapper .review-text {
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-primary);
    font-weight: 500;
    margin: 0;
    padding-left: 6px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    word-break: break-word;
}

.fm-carousel-wrapper .review-card.is-clamped:not(.is-expanded) .review-text {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 68%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 68%, transparent 100%);
}

.fm-carousel-wrapper .review-card.is-expanded .review-text {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: unset;
    -webkit-mask-image: none;
    mask-image: none;
}

.fm-carousel-wrapper .review-read-more {
    display: none;
    margin: 8px 0 0 6px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--star-color, #b88212);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fm-carousel-wrapper .review-card.is-clamped .review-read-more,
.fm-carousel-wrapper .review-card.is-expanded .review-read-more {
    display: inline-block;
}

.fm-carousel-wrapper .review-read-more:hover,
.fm-carousel-wrapper .review-read-more:focus-visible {
    color: #8f6610;
    outline: none;
}

.fm-carousel-wrapper .card-attribution {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.fm-carousel-wrapper .logo-box {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--fm-card-border);
    background: #f8f6f3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fm-carousel-wrapper .logo-box.is-wide {
    width: 72px;
    height: 40px;
}

.fm-carousel-wrapper .logo-box.is-wide .logo-img {
    padding: 4px 6px;
}

.fm-carousel-wrapper .logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.fm-carousel-wrapper .logo-placeholder {
    font-size: 14px;
    font-weight: 800;
    color: var(--accent);
}

.fm-carousel-wrapper .attribution-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.fm-carousel-wrapper .person-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.fm-carousel-wrapper .company-name {
    font-size: 11px;
    color: var(--fm-text-muted);
    line-height: 1.3;
}

@media (max-width: 599px) {
    .grid-headline,
    .hero-intro h2 { font-size: 28px; }
}

/* ── KPI cards (fact-badge style) ── */

@media (prefers-reduced-motion: reduce) {
    .poster-chip {
        animation: none;
    }

    .poster-button:hover .poster-image,
    .poster-button:focus-visible .poster-image {
        transform: none;
    }
}

/* Embed: page background comes from Webflow host */
html.embed-mode,
html.embed-mode body,
html.embed-mode section,
html.embed-mode .grid-shell,
html.embed-mode .padding-global,
html.embed-mode .container-large,
html.embed-mode .padding-section-large {
    background: transparent !important;
}

html.embed-mode .hero-intro {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
}

/* Embed: equal row heights; quote clamp + Weiterlesen handled in shared JS */
html.embed-mode .grid-3x3 {
    align-items: stretch;
    grid-auto-rows: min-content;
}

html.embed-mode .fm-carousel-wrapper .review-card {
    min-height: 0;
    height: auto;
}

html.embed-mode .fm-carousel-wrapper .review-card.is-expanded {
    height: auto !important;
    align-self: stretch;
}
