/* ── Events: Ergänzungen zu app.css ──
   Eine Datei für die Events-Seite und für die temporären Seiten einzelner
   Events (z. B. /it-tage-2026). Nur die Elemente, die es in app.css noch
   nicht gibt. Farben, Radien und Schriften kommen aus den Tokens von app.css. */

/* ════ Events-Seite (die Event-Karte im Hero nutzen auch die Event-Seiten) ════ */

/* Hero: Verlaufszeile der Überschrift. Der Verlauf wird nur innerhalb der Zeilenbox
   gemalt; bei Zeilenhöhe 1.1 ragen Unterlängen (g, p, y) darüber hinaus und wurden
   abgeschnitten. Das Padding vergrößert die Malfläche, der negative Rand hält den
   Abstand zum Folgetext unverändert. */
[data-hero-g]
{
    padding-bottom: 0.2em;
    margin-bottom: -0.2em;
}

/* Hero: Karte mit den Eckdaten des nächsten Events */
.event-card
{
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    background: var(--color-background-primary);
    border: 0.5px solid var(--color-border-secondary);
    border-radius: 14px;
    box-shadow: var(--frame-shadow);
    overflow: hidden;
}

.event-card-head
{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 12px;
    padding: 18px 24px;
    background: var(--color-background-secondary);
    border-bottom: 0.5px solid var(--color-border-secondary);
}

.event-card-logo
{
    display: block;
    height: 40px;
    width: auto;
    flex: none;
}

/* Hero-Karte: Eckbanderole für den Partner-Status (z. B. „Silber-Partner“) */
.event-card
{
    position: relative;
}

.event-ribbon
{
    position: absolute;
    top: 30px;
    right: -52px;
    z-index: 1;
    width: 190px;
    padding: 7px 0;
    transform: rotate(45deg);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.07em;
    text-align: center;
    text-transform: uppercase;
    color: #33363b;
    background: linear-gradient(100deg, #b9bec5 0%, #eef0f2 30%, #cfd3d9 55%, #f3f4f6 75%, #b4b9c0 100%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
    pointer-events: none;
}

/* Platz für die Banderole: Das Label im Kartenkopf rückt nach links */
.event-card:has(> .event-ribbon) .event-card-head
{
    padding-right: 104px;
}

.event-facts
{
    margin: 0;
    padding: 8px 24px;
}

.event-fact
{
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: baseline;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 0.5px solid var(--color-border-tertiary);
}

.event-fact:last-child
{
    border-bottom: 0;
}

.event-fact dd
{
    margin: 0;
    font-size: 15.5px;
}

/* Info-Box in der Hero-Karte */
.event-note
{
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 4px 24px 24px;
    padding: 14px 16px;
    color: var(--ac, var(--schema));
    background: color-mix(in srgb, var(--ac, var(--schema)) 8%, transparent);
    border: 1px dashed color-mix(in srgb, var(--ac, var(--schema)) 55%, transparent);
    border-radius: var(--r-md);
}

.event-note .item-title
{
    color: var(--color-text-primary);
}

/* Roadmap: Terminkarten (ergänzt .grid3 > .card) */
.event-item-top
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.event-logo
{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    min-width: 112px;
    padding: 0 14px;
    box-sizing: border-box;
    color: var(--color-text-tertiary);
    background: var(--color-background-secondary);
    border: 0.5px solid var(--color-border-secondary);
    border-radius: 12px;
}

section.alt .event-logo
{
    background: var(--color-background-primary);
}

.event-logo .logo-img
{
    max-height: 30px;
}

.event-logo-text
{
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.card.event-item > .event-where
{
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 22px;
}

/* Archiv: Tabelle der vergangenen Events */
.archive-table
{
    overflow-x: auto;
    background: var(--color-background-primary);
    border: 0.5px solid var(--color-border-secondary);
    border-radius: 14px;
}

.archive-table table
{
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    text-align: left;
}

.archive-table th,
.archive-table td
{
    padding: 14px 18px;
    vertical-align: middle;
    font-size: 14px;
    line-height: 1.4;
    border-bottom: 0.5px solid var(--color-border-tertiary);
}

.archive-table thead th
{
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    background: var(--color-background-secondary);
    border-bottom: 0.5px solid var(--color-border-secondary);
}

.archive-table thead th:first-child
{
    width: 96px;
}

.archive-table tbody th
{
    font-weight: 600;
    color: var(--color-text-primary);
}

.archive-sub
{
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    font-weight: 400;
    color: var(--color-text-tertiary);
}

.archive-table tbody td
{
    color: var(--color-text-secondary);
}

.archive-table tbody tr:last-child > *
{
    border-bottom: 0;
}

.archive-table .chip-row
{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.archive-table a.chip
{
    text-decoration: none;
    background: var(--color-background-primary);
    transition: border-color .12s, color .12s;
}

.archive-table a.chip:hover
{
    color: var(--schema);
    border-color: var(--schema);
}

/* ════ Seiten einzelner Events ════ */

/* Hero: die zweite Titelzeile ist lang – etwas kleiner, damit sie in zwei Zeilen passt */
.event-title .display-line
{
    font-size: clamp(30px, 7.4cqi, 50px);
}

/* Hero: Textlink neben dem Hauptbutton */
.micro-link
{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color .12s;
}

.micro-link:hover
{
    color: var(--schema);
}

/* Event-Karte: Fußzeile mit Button */
.event-card-foot
{
    padding: 4px 24px 24px;
}

/* Keynote: Foto schmaler als der Text */
@media (min-width: 821px)
{
    .split-card.keynote-card
    {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    }
}

.keynote-meta
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
}

.trust-note
{
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--color-text-secondary);
}

.trust-note .check-icon
{
    margin-top: 1px;
}

/* Team-Kacheln wie auf der Über-uns-Seite, rund 20 % kleiner */
.team-grid
{
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.team-grid > .card
{
    padding: 19px;
}

.team-grid img
{
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    margin-bottom: 13px;
    border-radius: var(--r-md);
}

.team-grid h3
{
    margin-bottom: 4px;
    font-size: 14.5px;
}

.team-grid .sub
{
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 1100px)
{
    .team-grid
    {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px)
{
    .team-grid
    {
        grid-template-columns: 1fr;
    }
}

/* Kachel-Kopf: Logo statt Icon, ohne Kasten */
.tiles .card .tico.tico-logo
{
    width: auto;
    padding: 0;
    height: auto;
    margin-bottom: 0;
    background: none;
    border: 0;
    border-radius: 0;
}

/* Kachel mit Logo: Überschrift steht unter dem Logo statt daneben (auch mobil) */
.card.tile:has(> .tico-logo)
{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 14px;
}

.card.tile:has(> .tico-logo) > :is(h2, h3)
{
    margin: 0;
}

.card.tile:has(> .tico-logo) > p
{
    align-self: stretch;
    margin-top: 2px;
}

.tiles .tico.tico-logo img
{
    display: block;
    height: 34px;
    width: auto;
}

/* Terminbuchung: Text links, Button mit Hinweis rechts; darunter das Team.
   Auf schmalen Bildschirmen rutscht der Button unter den Text. */
.booking-head
{
    align-items: flex-end;
    margin-bottom: 40px;
}

.booking-text
{
    flex: 1 1 480px;
    min-width: 0;
    max-width: 760px;
}

.booking-cta
{
    flex: 0 1 400px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

/* Buchungs-Button: breit und deutlich größer als die übrigen Buttons */
.btn.booking-btn
{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 28px;
    font-size: 18px;
    border-radius: 10px;
    transition: filter .12s, transform .12s;
}

.btn.booking-btn:hover
{
    transform: translateY(-1px);
}
/* Im Keynote-Kasten nur so breit wie der Inhalt */
.keynote-card .btn.booking-btn
{
    width: auto;
    max-width: 100%;
    white-space: normal;
}

@media (max-width: 640px)
{
    .keynote-card .btn.booking-btn
    {
        width: 100%;
        padding: 14px 16px;
        font-size: 16px;
    }
}