/* Fokus: schwarzer Rahmen statt Browser-Blau */
body.th :focus-visible{outline:2px solid var(--ink);outline-offset:3px}
body.th{-webkit-tap-highlight-color:transparent}

/* Thresholds: Übersicht der Ausstellungen und Veranstaltungen (weiße Seite, wie die Ausstellung) */
body.th{overflow:auto;height:auto;min-height:100%}
.th-top{position:absolute;inset:0 0 auto 0;z-index:10;display:flex;justify-content:space-between;align-items:flex-start;padding:18px 24px;pointer-events:none}
.th-top>*{pointer-events:auto}
/* Zurück zur Startseite: schlanker Pfeil */
.th-back{display:block;padding:6px 4px;color:var(--ink)}
.th-back .arr{display:block;width:34px;height:14px;overflow:visible;transition:transform .2s}
.th-back:hover .arr{transform:translateX(-4px)}
.th-nav{display:flex;gap:10px}
.th-nav .pill{font-size:11px;font-weight:600;letter-spacing:.09em}

.th-kind{font-size:11px;font-weight:500;letter-spacing:.09em;text-transform:uppercase;color:var(--mute);margin:0}

/* Einstieg */
.th-hero{min-height:100vh;min-height:100svh;display:grid;grid-template-columns:minmax(0,1fr);align-content:center;justify-items:center;text-align:center;padding:clamp(72px,10svh,96px) 24px clamp(32px,6svh,72px)}
.th-hero>*{min-width:0;max-width:100%}
.th-hero h1{margin:0;font-family:var(--display);font-variation-settings:"wdth" 125;font-weight:900;text-transform:uppercase;letter-spacing:-.04em;line-height:.9;font-size:clamp(28px,9.5vw,190px)}
.th-hero .th-kind{margin-top:22px}
.th-sign{margin:clamp(32px,6svh,56px) 0 0}
.th-sign img{display:block;width:clamp(140px,16vw,230px);height:auto}
.th-motto{margin:40px auto 0;max-width:30ch;font-weight:300;font-size:clamp(19px,2.1vw,30px);line-height:1.28;letter-spacing:-.02em;text-wrap:pretty}

/* Pfeil nach unten: mittig unter dem Text, schwingt leicht nach unten */
.th-motto-row{display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;margin-top:clamp(24px,4.5svh,40px)}
.th-motto-row .th-motto{margin:0}
.th-down{display:block;margin-top:clamp(14px,2.6svh,24px);padding:10px 14px;color:var(--ink)}
.th-down .arr{display:block;width:14px;height:34px;overflow:visible}
@media (prefers-reduced-motion:no-preference){
  html:has(body.th){scroll-behavior:smooth}
  .th-down .arr{animation:th-swing 1.1s ease-in-out infinite alternate}
}
@keyframes th-swing{from{transform:translateY(-5px)}to{transform:translateY(7px)}}

/* Aktuelle Ausstellung */
.th-event{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:64px;align-items:start;padding:120px 48px 96px;border-top:1px solid var(--line)}
.th-event>*{min-width:0}
.th-event h2{margin:18px 0 0;font-family:var(--display);font-variation-settings:"wdth" 125;font-weight:900;text-transform:uppercase;letter-spacing:-.035em;line-height:.92;font-size:clamp(30px,5vw,84px)}
.th-event h2 em{display:block;font-style:normal;font-weight:300}
.th-sub{margin:28px 0 0}
.th-sub b{font-family:var(--display);font-variation-settings:"wdth" 100;font-weight:500;font-size:clamp(17px,1.7vw,24px);line-height:1.5;background:var(--neon);padding:2px 8px;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.th-text{margin:28px 0 0;max-width:60ch;font-size:17px;line-height:1.65;color:#333}
.th-text+.th-text{margin-top:14px}
.th-links{display:flex;flex-wrap:wrap;align-items:center;gap:14px 28px;margin:40px 0 0}
.th-links .btn{display:inline-flex;align-items:center;gap:12px;padding:12px 22px;border-radius:999px;background:var(--ink);color:#fff;text-decoration:none;font-size:11px;font-weight:600;letter-spacing:.09em;text-transform:uppercase}
.th-links .btn:hover{background:#333}
.th-event-side{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;position:sticky;top:88px}
.th-event-side .countbox{padding:28px var(--cp)}
.th-event-side .countdown{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.th-event-side .countdown span{font-size:clamp(22px,3.2vw,44px)}
.th-event-side .card{width:100%}
/* Kalender-Button rechtsbündig mit „Sekunden“ im Countdown: Innenabstand plus halber Rest der letzten Spalte (Wort rund 72 px breit) */
.th-event-side{--cp:clamp(14px,2vw,32px)}
.th-event-side .th-links{justify-content:flex-end;margin:16px 0 0;padding-right:max(0px,calc(var(--cp) + ((100% - 2 * var(--cp) - 24px) / 4 - 72px) / 2))}

.th-next{margin:0;padding:0 48px 120px;color:var(--mute);font-size:15px}

.th-foot{display:flex;flex-wrap:wrap;gap:12px 28px;padding:28px 48px 40px;border-top:1px solid var(--line);font-size:13px}
.th-foot a{color:var(--mute);text-decoration:none}
.th-foot a:hover{color:var(--ink)}
/* Intern: nur auf Desktop, rechts unten */
.th-foot .th-intern{margin-left:auto}

@media (max-width:860px){
  .th-top{padding:14px 16px}
  .th-hero{padding:88px 16px 56px}
  .th-event{grid-template-columns:minmax(0,1fr);gap:40px;padding:72px 16px 56px}
  .th-event-side{position:static;display:contents}
  /* mobil: Countdown direkt unter der Trennlinie, über „Ausstellung, 13. und 14. März“ */
  .th-event-side .countbox{order:-1;padding:0}
  .th-event-copy{order:0}
  .th-event-side .th-links{order:1;justify-content:flex-start;margin:0;padding:0}
  .th-event-side .card{order:2}
  .th-next{padding:0 16px 80px}
  .th-foot{padding:24px 16px 32px}
  .th-foot .th-intern{display:none}
}
