:root {
    color-scheme: dark;
    --navy: #0c182b;
    --navy-deep: #081220;
    --surface: #14243a;
    --line: #35445a;
    --paper: #fcf4e5;
    --muted: #c3ccda;
    --gold: #efcb91;
    --bronze: #ad8052;
    --heading: Georgia, 'Times New Roman', serif;
    font: 16px/1.5 system-ui, -apple-system, sans-serif;
    background: var(--navy);
    color: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; }
[hidden] { display: none !important; }
a { color: inherit; }
button, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #f8d59b; outline-offset: 4px; }
.skip { position: absolute; z-index: 4; left: 16px; top: 16px; transform: translateY(-200%); padding: 10px; background: var(--paper); color: var(--navy); }
.skip:focus { transform: none; }
.frame { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.topbar { background: var(--navy-deep); border-bottom: 1px solid #594735; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 11px; }
.brand { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; font: 400 1.6rem/1.1 var(--heading); letter-spacing: .025em; }
.brand img { display: block; flex: none; object-fit: contain; }
.install-row > img { border-radius: 12px; flex: none; }
.website, .back { display: inline-flex; gap: .5em; align-items: center; min-height: 44px; color: var(--gold); font-weight: 650; text-underline-offset: .24em; }
#inhalt { flex: 1; }
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    margin-top: 26px; border-radius: 20px; background: #0c1932;
}
.hero-art img { display: block; width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
.hero h1, .finder-view h1 { font: 400 clamp(2.5rem, 6vw, 4.7rem)/.99 var(--heading); letter-spacing: -.038em; text-wrap: balance; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.04; }
.hero-subtitle { margin-top: 12px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.15rem); }
.action { display: inline-flex; justify-content: center; align-items: center; text-align: center; min-height: 46px; gap: 12px; padding: 10px 16px; border: 1px solid transparent; border-radius: 9px; font-size: .91rem; font-weight: 700; text-decoration: none; }
.action-gold { color: #172335; background: linear-gradient(125deg, #f8dba6, #d6a86f); border-color: #f1ce98; }
.action-gold:hover { background: #f9dba5; }
.finder-link { min-height: 54px; flex: none; padding: 12px 20px; font-size: .98rem; letter-spacing: .035em; }
.action-arrow { font-size: 1.25rem; line-height: 1; padding-left: 5px; }
@media (min-width: 701px) {
    .hero { container-type: inline-size; height: clamp(320px, 30vw, 350px); }
    .hero-art img { position: absolute; top: 50%; transform: translateY(-50%); }
    .hero-copy {
        position: absolute; width: 1px; height: 1px; margin: -1px;
        overflow: hidden; clip-path: inset(50%); white-space: nowrap;
    }
    .hero .finder-link {
        position: absolute; left: 4.7%; top: calc(50% + 5.01cqw); width: 42.2%; height: 6.77cqw;
        border: 0; border-radius: 1.6vw; min-height: 44px; padding: 0; background: transparent;
    }
    .hero .finder-link:hover { background: #fff1d21f; }
    .hero .finder-link > span { visibility: hidden; }
}
@media (max-width: 700px) {
    .hero { display: flex; flex-direction: column; align-items: start; gap: 18px; padding: clamp(19px, 6vw, 32px); }
    .hero-art { position: absolute; inset: 0 0 0 42%; z-index: -1; overflow: hidden; }
    .hero-art img { position: absolute; width: 352%; right: 0; top: 54%; transform: translateY(-57%); }
    .hero-art::after {
        content: ''; position: absolute; inset: 0;
        background: linear-gradient(90deg, #0c1932 0%, #0c1932ba 32%, transparent 93%);
    }
    .hero h1 { font-size: clamp(1.95rem, 7.4vw, 3rem); color: #fcf4e5; }
    .hero-subtitle { max-width: 33ch; color: #fcf4e5; font-size: 1rem; text-wrap: pretty; }
    .hero .finder-link {
        gap: 8px; padding-inline: clamp(12px, 4vw, 20px);
        background: #cea052; border-color: #d3a657; border-radius: 15px; color: #091a31; letter-spacing: 0;
    }
    .hero .finder-link:hover { background: #e5b968; }
}
.action-outline { color: var(--paper); background: transparent; border-color: #826c56; }
.action-outline:hover, .period:hover { background: #24354b; }
.calendar { padding: 48px 0 42px; }
.calendar-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 19px; }
.calendar h2, .install h2 { font: 400 clamp(1.7rem, 4vw, 2.65rem)/1.13 var(--heading); letter-spacing: -.015em; }
.region-control { width: min(265px, 100%); }
.region-control label { display: block; color: var(--muted); font-weight: 650; font-size: .83rem; margin-bottom: 5px; }
.region-control select { width: 100%; min-height: 45px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--paper); padding: 7px 10px; }
.periods { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(6, minmax(0, 1fr)); gap: 8px; }
.period { min-height: 48px; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; color: var(--paper); padding: 9px 5px; font-size: .82rem; font-weight: 720; text-transform: uppercase; letter-spacing: .03em; }
.period[aria-pressed=true] { border-color: #d3a771; background: #f2d198; color: var(--navy); }
.calendar-status { color: var(--muted); margin: 16px 0 12px; }
.calendar-status.message { padding: 17px 18px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.events { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.event {
    display: flex; flex-direction: column; overflow: hidden; min-width: 0;
    background: linear-gradient(156deg, #162741, #0d192c 82%);
    border: 1px solid #725a44; border-radius: 18px; box-shadow: 0 8px 26px #050c1866;
}
.event-media {
    display: grid; place-items: center; aspect-ratio: 16 / 9;
    min-width: 0; min-height: 0; margin: 8px 8px 0; border-radius: 11px;
    background: radial-gradient(ellipse at 78% 12%, #3d3b3e, #13223b 60%, #0b172b);
    border: 1px solid #b68b564f; overflow: hidden;
}
.event-media img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.event-media-logo { background: radial-gradient(ellipse at 50% 45%, #37415a, #101c31 72%); }
.event-media-logo img { width: 62%; height: 84%; }
.event-body { display: flex; flex: 1; flex-direction: column; gap: 7px; padding: 19px; min-height: 255px; }
.event h3 { font: 400 clamp(1.38rem, 2.3vw, 1.68rem)/1.14 var(--heading); color: var(--paper); overflow-wrap: anywhere; }
.event-date { color: var(--gold); font-size: .88rem; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 3px; }
.event-place { color: var(--muted); font-size: .89rem; }
.event-price { color: var(--paper); font-size: .96rem; font-weight: 700; }
.event-actions { margin-top: auto; padding-top: 14px; display: grid; gap: 8px; }
.event-actions .action-outline { color: var(--paper); border-color: #8d7055; background: #141d2e; }
.event-actions .action-outline:hover { background: #263248; }
.event-actions .action-gold { background: linear-gradient(125deg, #f8dca8, #d6aa73); }
.event-actions .action-gold:hover { background: #f9dba5; }
#calendar-retry, #calendar-more { margin-top: 14px; }
.install { padding: 20px; margin-bottom: 36px; border: 1px solid #735b42; border-radius: 15px; background: #111f34; scroll-margin-top: 16px; }
.install-first { margin-top: 16px; margin-bottom: 12px; }
.install-first + .hero { margin-top: 16px; }
.install-row { display: flex; align-items: center; gap: 15px; }
.install-copy { flex: 1; }
.install h2 { font-size: 1.36rem; }
.install-copy p, .install-guide p { color: var(--muted); font-size: .92rem; margin-top: 5px; }
.install-browser-note { color: var(--muted); font-size: .88rem; line-height: 1.5; margin-top: 12px; }
.install-browser-note strong { color: var(--gold); }
.install:has(#install-button[hidden]) .install-browser-note { display: none; }
.install-guide { margin-top: 14px; padding-top: 9px; border-top: 1px solid var(--line); }
.install-guide p { margin-top: 9px; max-width: 65ch; }
.install-guide #install-status:not(:empty) { color: var(--gold); font-weight: 650; }
.install-guide strong { color: var(--paper); }
.install-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.install-tools input { width: min(100%, 28rem); padding: 8px; }
.footer { background: var(--navy-deep); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; min-height: 63px; color: var(--muted); font-size: .85rem; }
.footer a { display: inline-flex; min-height: 44px; align-items: center; text-underline-offset: .23em; }
.finder-view { max-width: 960px; margin: auto; padding: 24px 0 44px; }
.finder-view h1 { margin: 13px 0 12px; font-size: clamp(2.5rem, 6vw, 4.05rem); }
.finder-intro { color: var(--muted); margin: 0 0 20px; }
@media (max-width: 860px) {
    .events { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .periods { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .frame { width: calc(100% - 32px); }
    .topbar-inner { padding-block: 8px; }
    .brand img { width: 72px; height: 72px; }
    .brand-name { display: none; }
    .website { font-size: .84rem; }
    .hero { margin-top: 16px; border-radius: 16px; }
    .calendar { padding: 34px 0 28px; }
    .calendar-head { flex-direction: column; align-items: start; gap: 11px; }
    .periods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .period:first-child { grid-column: 1 / -1; }
    .events { grid-template-columns: 1fr; }
    .install-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
    .install-row .action { grid-column: 1 / -1; margin-top: 5px; }
}
