/* Workshops W2f — the public presence of an org: shared head and footer (_PublicLayout) and the landing /{org}.
   Every colour comes from PublicPalette (--pub-*, set on .tl-pub); no text colour on a coloured surface is set here
   by hand. Motion only without prefers-reduced-motion, CSS only. */

/* ── Frame: the footer sits at the bottom of the window when the content is short ─────────────────── */
.tl-pub { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; background: var(--pub-paper); color: var(--pub-ink); }
.tl-pub-main { flex: 1 0 auto; display: flex; flex-direction: column; }
.tl-pub-main > .tl-bk { flex: 1 0 auto; min-height: 0; padding-bottom: 0; }
.tl-pub-in { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 1rem; }
.tl-pub a:focus-visible, .tl-pub button:focus-visible { outline: 3px solid var(--pub-link); outline-offset: 2px; }

/* ── Head ───────────────────────────────────────────────────────────────────────────────────── */
.tl-pub-head { background: var(--pub-head); color: var(--pub-on-head); }
.tl-pub-head-in { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; min-height: 60px; padding-top: .35rem; padding-bottom: .35rem; }
.tl-pub-head a { color: var(--pub-on-head); }
.tl-pub-head a:focus-visible { outline-color: var(--pub-on-head); }
.tl-pub-brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; min-width: 0; max-width: 100%; font-weight: 700;
    text-decoration: none; }
.tl-pub-brand-logo { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 104px; height: 40px;
    background: #fff; border-radius: 8px; padding: 4px 6px; }
.tl-pub-brand-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.tl-pub-brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-pub-nav { display: flex; flex-wrap: wrap; gap: .25rem; margin-left: auto; }
.tl-pub-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .75rem; border-radius: 999px; font-weight: 600;
    font-size: .95rem; text-decoration: none; border: 2px solid transparent; }
.tl-pub-nav a:hover { text-decoration: underline; }
.tl-pub-nav a[aria-current="page"] { border-color: var(--pub-on-head); }
.tl-pub-admin { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; font-size: .85rem; text-decoration: underline;
    text-underline-offset: 3px; }
.tl-pub-nav + .tl-pub-admin { margin-left: .25rem; }
.tl-pub-head-in > .tl-pub-admin:first-child, .tl-pub-brand + .tl-pub-admin { margin-left: auto; }
@media (max-width: 599.98px) {
    .tl-pub-head-in { gap: 0 .5rem; }
    .tl-pub-brand { flex: 1 1 auto; }
    .tl-pub-nav { margin-left: 0; width: 100%; order: 3; }
    .tl-pub-nav a { padding: 0 .6rem; font-size: .9rem; }
}

/* ── Footer ─────────────────────────────────────────────────────────────────────────────────── */
.tl-pub-foot { flex-shrink: 0; margin-top: 3rem; background: var(--pub-footer); color: var(--pub-on-footer); font-size: .9rem; }
.tl-pub-foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 1.25rem; padding-top: .35rem; padding-bottom: .35rem; }
.tl-pub-foot nav { display: flex; gap: 1.25rem; }
.tl-pub-foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--pub-on-footer); text-decoration: underline; text-underline-offset: 3px; }
.tl-pub-foot a:focus-visible { outline-color: var(--pub-on-footer); }

/* ── Landing: hero ──────────────────────────────────────────────────────────────────────────── */
.tl-lp { flex: 1 0 auto; }
.tl-lp-offbar { background: #fff7e0; color: #3d2e00; border-bottom: 1px solid #e3c36b; font-size: .95rem; }
.tl-lp-offbar .tl-pub-in { display: flex; gap: .5rem; align-items: center; min-height: 48px; padding-top: .35rem; padding-bottom: .35rem; }
.tl-lp-offbar a { color: #3d2e00; font-weight: 700; }
.tl-lp-hero { position: relative; overflow: hidden; color: var(--pub-on-hero);
    background: linear-gradient(135deg, var(--pub-hero-from) 0%, var(--pub-hero-from) 45%, var(--pub-hero-to) 100%); }
.tl-lp-hero::before, .tl-lp-hero::after { content: ""; position: absolute; border-radius: 50%; background: var(--pub-hero-shape); pointer-events: none; }
.tl-lp-hero::before { width: 420px; height: 420px; right: -120px; top: -160px; }
.tl-lp-hero::after { width: 260px; height: 260px; right: 18%; bottom: -150px; }
.tl-lp-hero-in { position: relative; display: grid; gap: 1.5rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.tl-lp-hero.has-overlap .tl-lp-hero-in { padding-bottom: 4.75rem; }
.tl-lp-hero-text { display: grid; gap: 1rem; min-width: 0; }
.tl-lp-hero h1 { margin: 0; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.1; font-weight: 800; letter-spacing: -.01em; color: var(--pub-on-hero);
    overflow-wrap: anywhere; }
.tl-lp-hero-lead { margin: 0; max-width: 40rem; font-size: 1.12rem; }
.tl-lp-hero-lead p:last-child { margin-bottom: 0; }
.tl-lp-hero a { color: var(--pub-on-hero); text-underline-offset: 3px; }
.tl-lp-hero a:focus-visible { outline-color: var(--pub-on-hero); }
.tl-lp-logo { justify-self: start; display: flex; align-items: center; justify-content: center; width: min(20rem, 100%); height: 8rem;
    background: #fff; border-radius: 16px; padding: 1rem 1.25rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.tl-lp-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@media (min-width: 820px) {
    .tl-lp-hero-in { grid-template-columns: 1fr auto; align-items: center; }
    .tl-lp-logo { justify-self: end; }
}

/* ── Buttons (44–48px targets) ──────────────────────────────────────────────────────────────── */
.tl-lp-actions, .tl-lp-card-foot { display: flex; flex-wrap: wrap; gap: .6rem; }
.tl-lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 48px; padding: .6rem 1.3rem;
    border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.tl-lp-btn:hover { text-decoration: underline; }
.tl-lp .tl-lp-btn-on-hero { background: var(--pub-on-hero); color: var(--pub-hero-btn-text); }
.tl-lp .tl-lp-btn-ghost-hero { border-color: var(--pub-on-hero); color: var(--pub-on-hero); }
.tl-lp .tl-lp-btn-primary { background: var(--pub-primary); color: var(--pub-on-primary); }
.tl-lp .tl-lp-btn-ghost { background: var(--pub-card); color: var(--pub-link); border-color: var(--pub-link); }
.tl-lp .tl-lp-btn-on-band { background: var(--pub-on-band); color: var(--pub-band-btn-text); justify-self: start; }

/* ── Workshop cards ─────────────────────────────────────────────────────────────────────────── */
.tl-lp-workshops { margin-top: -2.75rem; position: relative; }
.tl-lp-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 820px) { .tl-lp-cards { grid-template-columns: 1fr 1fr; } }
.tl-lp-card { background: var(--pub-card); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column;
    box-shadow: 0 6px 24px rgba(16, 32, 64, .10); }
.tl-lp-card-media { overflow: hidden; }
.tl-lp-card-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.tl-lp-card-body { padding: 1.1rem 1.1rem 1.25rem; display: grid; gap: .65rem; flex: 1; align-content: start; }
.tl-lp-card h3 { margin: 0; font-size: 1.3rem; font-weight: 700; }
.tl-lp-card h3 a { color: var(--pub-ink); text-decoration: none; }
.tl-lp-card h3 a:hover { text-decoration: underline; }
.tl-lp-card-text { margin: 0; color: var(--pub-muted); }
.tl-lp-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.tl-lp-chips li { background: var(--pub-tint); color: var(--pub-on-tint); font-weight: 600; font-size: .88rem; padding: .25rem .7rem; border-radius: 999px; }
.tl-lp-dates { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.tl-lp-dates a { display: grid; grid-template-columns: auto 1fr; gap: .05rem .8rem; align-items: center; min-height: 56px; padding: .45rem .75rem;
    border-radius: 12px; background: var(--pub-paper); color: var(--pub-ink); text-decoration: none; }
.tl-lp-dates a:hover strong { text-decoration: underline; }
.tl-lp-dates strong { font-size: .98rem; }
.tl-lp-dates span:not(.tl-lp-day) { color: var(--pub-muted); font-size: .88rem; }
.tl-lp-day { grid-row: span 2; display: grid; place-items: center; align-content: center; width: 3rem; height: 3rem; border-radius: 10px;
    background: var(--pub-primary); color: var(--pub-on-primary); font-weight: 800; font-size: 1.1rem; line-height: 1; }
.tl-lp-day small { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; margin-top: .1rem; }
.tl-lp-more { margin: 1.25rem 0 0; }
.tl-lp-more a:not(.tl-lp-btn) { color: var(--pub-link); font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }

/* ── So funktioniert's ─────────────────────────────────────────────────────────────────────── */
.tl-lp-how { margin-top: 2.5rem; padding: 2.25rem 0; background: var(--pub-card); }
.tl-lp h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 1rem; color: var(--pub-ink); }
.tl-lp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: tl-step; }
@media (min-width: 820px) { .tl-lp-steps { grid-template-columns: repeat(3, 1fr); } }
.tl-lp-steps li { counter-increment: tl-step; border-radius: 18px; padding: 1.25rem; background: var(--pub-tint); display: grid; gap: .35rem; color: var(--pub-ink); }
.tl-lp-steps li:nth-child(2) { background: var(--pub-step-2); }
.tl-lp-steps li:nth-child(3) { background: var(--pub-step-3); }
.tl-lp-steps li::before { content: counter(tl-step); font-size: 2.2rem; font-weight: 800; line-height: 1; color: var(--pub-step-number); }
.tl-lp-steps strong { font-size: 1.1rem; }
.tl-lp-steps span { color: var(--pub-muted); }

/* ── Events, contact ────────────────────────────────────────────────────────────────────────── */
.tl-lp-section { padding-top: 2.25rem; }
.tl-lp-events { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.tl-lp-event { border-radius: 18px; padding: 1.25rem; display: grid; gap: .75rem; color: var(--pub-on-band);
    background: linear-gradient(90deg, var(--pub-band-from), var(--pub-band-to)); }
@media (min-width: 820px) { .tl-lp-event { grid-template-columns: 1fr auto; align-items: center; } }
.tl-lp-event-when { font-weight: 800; font-size: 1.1rem; }
.tl-lp-contact { display: grid; gap: 1rem; }
@media (min-width: 820px) { .tl-lp-contact { grid-template-columns: 1fr 1fr; } }
.tl-lp-box { background: var(--pub-card); border-radius: 18px; padding: 1.25rem; box-shadow: 0 4px 16px rgba(16, 32, 64, .07); }
.tl-lp-box p { margin: 0 0 .5rem; }
.tl-lp-box a { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; font-weight: 600; color: var(--pub-link); overflow-wrap: anywhere; }
.tl-lp-address { white-space: pre-line; }
.tl-lp-empty { text-align: center; margin-top: 2rem; }
.tl-lp-empty i { font-size: 2rem; color: var(--pub-muted); }

/* ── Motion: only for people who did not ask to reduce it ───────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
    .tl-lp-hero::before { animation: tl-lp-drift 14s ease-in-out infinite alternate; }
    .tl-lp-hero::after { animation: tl-lp-drift 18s ease-in-out infinite alternate-reverse; }
    .tl-lp-card-media img { transition: transform .3s ease-out; }
    .tl-lp-card:hover .tl-lp-card-media img { transform: scale(1.03); }
}
@keyframes tl-lp-drift { to { transform: translate(-30px, 24px); } }
