/* ==========================================================================
   Content-Cards: wiederverwendbare Bausteine fuer Editor-Seiten
   (Partner, Events, LearnAI-Landings)
   Praefix tb- um Konflikte mit Theme- und Editor-Styles zu vermeiden.
   ========================================================================== */

/* --- Grid --- */

.tb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: max(20px, 1.38vw);
    margin: max(28px, 1.94vw) 0;
}

.tb-grid.tb-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

/* --- Karte --- */

.tb-card {
    display: flex;
    flex-direction: column;
    gap: max(14px, 0.97vw);
    padding: max(30px, 2.08vw) max(24px, 1.66vw);
    border: 1px solid var(--text-color, #000);
    background-color: var(--background-color, #fff);
    color: var(--text-color, #000);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tb-card:hover {
    background-color: var(--text-color, #000);
    color: var(--background-color, #fff);
}

.tb-label {
    font-family: var(--font1, sans-serif);
    font-size: max(15px, 1vw);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: none;
    opacity: 0.7;
}

.tb-card-title {
    font-family: var(--font1, sans-serif);
    font-size: max(26px, 1.8vw);
    font-weight: 600;
    line-height: 110%;
    margin: 0;
}

.tb-card p.tb-text,
p.tb-text {
    font-family: var(--font2, sans-serif);
    font-size: max(15px, 1.04vw);
    line-height: 145%;
    margin: 0;
    color: inherit;
}

/* --- Bild in der Karte --- */

.tb-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    border: 1px solid var(--text-color, #000);
    margin: 0;
}

.tb-card:hover .tb-card-image {
    border-color: var(--background-color, #fff);
}

/* --- Bracket-Link --- */

.tb-bracket-link {
    font-family: var(--font1, sans-serif);
    font-size: max(17px, 1.18vw);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: inherit;
    margin-top: auto;
    align-self: flex-start;
    box-shadow: none;
}

.tb-bracket-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* --- Gerahmte Medienflaeche (Bild oder Video) --- */

figure.tb-media,
.tb-media {
    width: 100%;
    margin: 0;
    border: 1px solid var(--text-color, #000);
    overflow: hidden;
}

.tb-media img,
.tb-media video {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    margin: 0;
}

/* --- Subtitle im Theme-Stil: (Titel) --- */

.tb-subtitle {
    font-family: var(--font1, sans-serif);
    font-size: max(17px, 1.18vw);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
    text-transform: none;
    margin: max(48px, 3.33vw) 0 max(24px, 1.66vw) 0;
}

/* --- Event-Karte (volle Breite, Label + Titel + Medien) --- */

.tb-event {
    display: flex;
    flex-direction: column;
    gap: max(16px, 1.11vw);
    padding: max(30px, 2.08vw) max(24px, 1.66vw);
    border: 1px solid var(--text-color, #000);
    margin: max(20px, 1.38vw) 0;
}

.tb-event-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
}

.tb-event-title {
    font-family: var(--font1, sans-serif);
    font-size: max(30px, 2.08vw);
    font-weight: 600;
    line-height: 110%;
    margin: 0;
}

/* --- Kapitel-Liste (LearnAI-Landings) --- */

.tb-chapters {
    display: flex;
    flex-direction: column;
    margin: max(28px, 1.94vw) 0;
    border: 1px solid var(--text-color, #000);
}

.tb-chapter {
    display: flex;
    align-items: baseline;
    gap: max(18px, 1.25vw);
    padding: max(20px, 1.38vw) max(24px, 1.66vw);
    text-decoration: none;
    color: var(--text-color, #000);
    border-bottom: 1px solid var(--text-color, #000);
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: none;
}

.tb-chapter:last-child {
    border-bottom: none;
}

.tb-chapter:hover {
    background-color: var(--text-color, #000);
    color: var(--background-color, #fff);
}

.tb-chapter-number {
    font-family: var(--font1, sans-serif);
    font-size: max(22px, 1.53vw);
    font-weight: 700;
    min-width: 2.2em;
}

.tb-chapter-title {
    font-family: var(--font1, sans-serif);
    font-size: max(22px, 1.53vw);
    font-weight: 600;
    line-height: 115%;
}

.tb-chapter-text {
    font-family: var(--font2, sans-serif);
    font-size: max(14px, 0.97vw);
    line-height: 140%;
    opacity: 0.75;
    margin: 4px 0 0 0;
}

/* --- Responsive --- */

@media (max-width: 900px) {
    .tb-grid,
    .tb-grid.tb-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* --- Kennzahlen-Zeile im Klammer-Stil --- */

.tb-stats {
    font-family: var(--font1, sans-serif);
    font-size: max(18px, 1.25vw);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-align: center;
    margin: max(24px, 1.66vw) 0;
}

/* --- Verzeichnis-Liste (Experten) --- */

.tb-directory {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--text-color, #000);
    margin: max(28px, 1.94vw) 0;
}

.tb-person {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 2fr auto;
    align-items: baseline;
    gap: max(16px, 1.11vw);
    padding: max(20px, 1.38vw) max(24px, 1.66vw);
    border-bottom: 1px solid var(--text-color, #000);
    text-decoration: none;
    color: var(--text-color, #000);
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: none;
}

.tb-person:last-child {
    border-bottom: none;
}

.tb-person:hover {
    background-color: var(--text-color, #000);
    color: var(--background-color, #fff);
}

.tb-person-name {
    font-family: var(--font1, sans-serif);
    font-size: max(22px, 1.53vw);
    font-weight: 600;
    line-height: 115%;
}

.tb-person-info .tb-label {
    display: block;
    margin-bottom: 4px;
}

.tb-person-focus {
    font-family: var(--font2, sans-serif);
    font-size: max(14px, 0.97vw);
    line-height: 140%;
    margin: 0;
}

.tb-person-link {
    font-family: var(--font1, sans-serif);
    font-size: max(15px, 1.04vw);
    font-weight: 700;
    white-space: nowrap;
}

/* --- Pull-Quote im Zeitungsstil --- */

.tb-quote {
    max-width: 820px;
    margin: max(48px, 3.33vw) auto;
    padding: max(28px, 1.94vw) 0;
    border-top: 3px solid var(--text-color, #000);
    border-bottom: 1px solid var(--text-color, #000);
    text-align: center;
}

.tb-quote-text {
    font-family: var(--font1, sans-serif);
    font-size: max(28px, 2vw);
    font-weight: 600;
    line-height: 120%;
    margin: 0 0 max(14px, 0.97vw) 0;
}

.tb-quote-source {
    font-family: var(--font1, sans-serif);
    font-size: max(14px, 0.97vw);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
}

@media (max-width: 900px) {
    .tb-person {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* --- Partner-Marquee: rotierendes Band, pausiert bei Hover --- */

.tb-marquee {
    overflow: hidden;
    margin: max(28px, 1.94vw) 0;
}

.tb-marquee-track {
    display: flex;
    width: max-content;
    animation: tb-marquee-scroll 15s linear infinite;
}

.tb-marquee:hover .tb-marquee-track {
    animation-play-state: paused;
}

@keyframes tb-marquee-scroll {
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .tb-marquee-track { animation: none; }
}

.tb-marquee-item {
    flex: 0 0 auto;
    width: max(280px, 22vw);
    margin-right: max(20px, 1.38vw);
    border: 1px solid var(--text-color, #000);
    text-decoration: none;
    color: var(--text-color, #000);
    background-color: var(--background-color, #fff);
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.tb-marquee-item:hover {
    background-color: var(--text-color, #000);
    color: var(--background-color, #fff);
}

.tb-marquee-item img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    margin: 0;
    border-bottom: 1px solid var(--text-color, #000);
}

.tb-marquee-caption {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: max(14px, 0.97vw) max(16px, 1.11vw);
}

.tb-marquee-name {
    font-family: var(--font1, sans-serif);
    font-size: max(19px, 1.32vw);
    font-weight: 600;
    line-height: 115%;
}

.tb-marquee-cta {
    font-family: var(--font1, sans-serif);
    font-size: max(14px, 0.97vw);
    font-weight: 700;
    white-space: nowrap;
}

/* --- Grosse Sektions-Ueberschrift (H1-artig, ohne Klammern) --- */

.tb-heading {
    font-family: var(--font1, sans-serif);
    font-size: max(40px, calc(3vw * var(--scale, 1) * var(--heading-font-scale, 1)));
    font-weight: 600;
    line-height: 105%;
    text-align: center;
    margin: max(56px, 3.9vw) 0 max(28px, 1.94vw) 0;
}

/* --- Experten-Profil: Bild links, Text rechts --- */

.tb-profile {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) 2.2fr;
    gap: max(24px, 1.66vw);
    align-items: start;
    border: 1px solid var(--text-color, #000);
    padding: max(28px, 1.94vw) max(24px, 1.66vw);
    margin: max(20px, 1.38vw) 0;
}

.tb-profile-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    border: 1px solid var(--text-color, #000);
    margin: 0;
}

.tb-profile-name {
    font-family: var(--font1, sans-serif);
    font-size: max(28px, 1.94vw);
    font-weight: 600;
    line-height: 110%;
    margin: 0 0 6px 0;
}

.tb-profile-body .tb-label {
    display: block;
    margin-bottom: max(12px, 0.83vw);
}

.tb-profile-body p {
    font-family: var(--font2, sans-serif);
    font-size: max(15px, 1.04vw);
    line-height: 150%;
    margin: 0 0 max(12px, 0.83vw) 0;
}

@media (max-width: 768px) {
    .tb-profile {
        grid-template-columns: 1fr;
    }

    .tb-profile-image {
        max-width: 320px;
    }
}


/* --- Normale Schreibweise trotz globalem Text-Style --- */

.tb-text,
.tb-profile-body p,
.tb-person-focus,
.tb-chapter-text,
.tb-quote-text {
    text-transform: none;
}
