/*
  The fan app's own styles, on top of Web.Core's base.css (tokens, buttons, cards, forms). Server-
  rendered pages and the WebAssembly islands share both sheets, so a component looks the same before
  and after the browser takes over. Clubs have no colour of their own (brand guide §5):
  every page looks the same for every club, a club is its name (and later its logo), and the only
  colours are the brand's: Ink, the warm neutrals, brand green for actions, signal for states.
*/

/* ---------------------------------------------------------------- header */

/* The white bar (redesign handoff, FanDExplore): wordmark, the three areas, the account. Its height
   (bar and hairline) is what Entdecken's map leaves out of the window from 1024 px. */
:root { --f-header-h: 65px; }
.f-header { background: var(--card); border-bottom: 1px solid var(--line); color: var(--ink-900); }
.f-header__bar { display: flex; align-items: center; gap: 8px 24px; min-height: 64px; }
.f-header__home { display: inline-flex; align-items: center; flex: none; min-height: 44px; color: var(--ink-900); text-decoration: none; }
.f-header__space { flex: 1; }
.f-mainnav { display: none; gap: 4px; }
.f-mainnav__link {
  display: grid; place-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px;
  color: var(--ink-600); font-weight: 500; text-decoration: none;
}
.f-mainnav__link:hover { background: var(--surface); color: var(--ink-900); }
.f-mainnav__link[aria-current="page"] { background: var(--brand-50); color: var(--brand-700); font-weight: 700; }
.f-header__more { display: flex; gap: 20px; }
.f-header__more a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-450); font-size: 15px; text-decoration: none; }
.f-header__more a:hover { color: var(--ink-900); }
/* "Interesse melden": an outline button from 1024 px; below that a quiet text link, so on a phone it
   sits in the bar beside the wordmark without competing with it (decided 2026-11-19). */
.f-header__more .f-header__register { font-weight: 600; font-size: 14px; white-space: nowrap; }
@media (max-width: 1023px) {
  .f-header__more .f-header__register {
    min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink-600);
    text-decoration: underline; text-decoration-color: var(--hairline); text-underline-offset: 4px;
  }
  .f-header__more .f-header__register:hover { color: var(--ink-900); text-decoration-color: currentColor; }
}
@media (min-width: 1024px) { .f-header__more .f-header__register { color: var(--ink-900); font-weight: 700; } }
/* A phone's bar holds wordmark, link and account: closer together than the wide bar's 24 px. Beside
   the guest's "Anmelden" button a narrow phone has no room for the link on one line (it pushed the
   bar 34 px past a 375 px screen), so there it breaks into two small lines. */
@media (max-width: 719px) { .f-header__bar { column-gap: 12px; } }
@media (max-width: 439px) {
  .f-header__bar:has(.f-signin) .f-header__more .f-header__register {
    max-width: 64px; font-size: 12px; line-height: 1.2; white-space: normal; text-align: right;
  }
}
@media (min-width: 720px) { .f-mainnav { display: flex; } }
/* "Ort oder Verein" (FanDExplore): from 1024 px, between the areas and the links. */
.f-headsearch { position: relative; display: none; flex: 0 1 300px; margin-left: 16px; }
.f-headsearch__field {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface-2, var(--card)); color: var(--ink-450);
}
.f-headsearch__field:focus-within { border-color: var(--brand-700); background: var(--card); }
.f-headsearch__input { flex: 1; min-width: 0; border: 0; background: none; font: 500 15px var(--font-ui); color: var(--ink-900); outline: none; }
.f-headsearch__input::placeholder { color: var(--ink-450); }
.f-headsearch .f-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; min-width: 320px;
  box-shadow: 0 12px 32px rgba(16, 21, 18, 0.16);
}
@media (min-width: 1024px) { .f-headsearch { display: block; } }

/* The account: the fan's initials, or "Anmelden". */
.f-avatar {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink-900); color: #FFFFFF; font-size: 14px; font-weight: 700; text-decoration: none;
}
.f-avatar:hover { color: #FFFFFF; box-shadow: 0 0 0 3px var(--brand-50); }
.f-avatar[aria-current="page"] { box-shadow: 0 0 0 3px var(--brand-500); }
.f-signin {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--hairline);
  border-radius: var(--radius-pill); color: var(--ink-900); font-weight: 600; text-decoration: none; white-space: nowrap;
}
.f-signin:hover { border-color: var(--ink-900); color: var(--ink-900); }

/* The three areas' own pages on a phone: no bar, the account beside the large title (AreaHead). */
.f-areahead { display: flex; align-items: center; gap: 10px; }
.f-areahead .f-h1 { flex: 1; min-width: 0; margin: 0; }
.f-areahead__account { display: none; }
@media (max-width: 719px) {
  body:has(.f-bottomnav) .f-header--area { display: none; }
  body:has(.f-bottomnav) .f-areahead__account { display: flex; }
}
/* Entdecken's "Ihr seid ein Verein? Interesse melden" after the games: only where the bar, and with it
   the header's link, is hidden (above). Elsewhere the header carries it. */
.f-explore__register { display: none; margin: 0; padding: 20px 0 8px; border-top: 1px solid var(--line); color: var(--ink-600); font-size: 15px; }
@media (max-width: 719px) {
  body:has(.f-bottomnav) .f-explore__register { display: block; }
}

.f-account-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

/* Where the fan is, under the bar: league › club › page; on a phone just "‹ one step up". */
.f-crumbs { display: flex; align-items: center; min-height: 44px; color: var(--ink-450); font-size: 14px; }
.f-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; min-width: 0; }
.f-crumbs li { display: flex; align-items: center; min-width: 0; }
.f-crumbs li + li::before { content: "/"; padding: 0 8px; color: var(--hairline); }
.f-crumbs a { color: var(--ink-450); text-decoration: none; }
.f-crumbs a:hover { color: var(--ink-900); text-decoration: underline; text-underline-offset: 3px; }
.f-crumbs [aria-current="page"] { color: var(--ink-900); font-weight: 600; }
.f-crumbs__up { display: none; align-items: center; gap: 4px; min-width: 0; min-height: 44px; margin-left: -6px; color: var(--ink-900); font-weight: 600; text-decoration: none; }
.f-crumbs__up span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 719px) {
  .f-crumbs ol { display: none; }
  .f-crumbs__up { display: inline-flex; }
  .f-crumbs:not(:has(.f-crumbs__up)) { display: none; }
}

/* "Meine Vereine": a card per club — who, then their next game, then the quiet way out. */
.f-clubs { display: grid; gap: 12px; }
@media (min-width: 720px) { .f-clubs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.f-clubcard { display: flex; flex-direction: column; gap: 12px; border-left: 4px solid var(--ink-900); }
.f-clubcard__id { display: flex; align-items: center; gap: 12px; color: var(--ink-900); text-decoration: none; }
.f-clubcard__id:hover .f-strong { text-decoration: underline; text-underline-offset: 3px; }
.f-clubcard__id > svg { flex: none; margin-left: auto; color: var(--ink-400); }
.f-clubcard__name { display: flex; flex-direction: column; min-width: 0; }
.f-clubcard__name .f-strong { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.01em; }
.f-clubcard__name .f-muted { font-size: 14px; }
.f-clubcard__next { padding-top: 12px; border-top: 1px solid var(--line); }
.f-clubcard__next .f-fixture { padding-bottom: 0; border-bottom: 0; }
.f-clubcard__next > .f-muted { margin: 4px 0 0; }
.f-clubcard__unfollow { margin-top: auto; }
.f-clubcard__unfollow .f-link-button { font-size: 14px; }
/* An away game is the host's to sell, so its tile has no sale field. */


/* "Folgen" on a club's page: sits under the club's name, never takes its width. */
.f-follow { align-self: flex-start; }
/* A club the fan follows, in a list of matches: a star before its name. */
.f-fixture__follow { display: inline-flex; vertical-align: -2px; margin-right: 4px; color: var(--brand-500); }
/* ---------------------------------------------------------------- footer */

.f-footer { border-top: 1px solid var(--line); padding-block: 28px 40px; }
.f-footer__inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
/* A box the size of the wordmark: as an inline span it took a full line box with the mark at its
   top, and centring that line box set the wordmark 3 px above the links. */
.f-footer__brand { display: flex; }
.f-footer__links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.f-footer__links a { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink-600); text-decoration: none; }
.f-footer__links a:hover { color: var(--ink-900); text-decoration: underline; }
/* "Cookie-Einstellungen" is a button (it opens the banner, it goes nowhere) dressed as the links beside it. */
.f-footer__button {
  display: inline-flex; min-height: 44px; align-items: center; padding: 0; border: 0; background: none;
  font: inherit; color: var(--ink-600); cursor: pointer;
}
.f-footer__button:hover { color: var(--ink-900); text-decoration: underline; }
.f-footer__credits { flex-basis: 100%; font-size: 13px; color: var(--ink-400); }
.f-footer__credits a { color: inherit; }

/* ------------------------------------------------------------------ hero */

/* The list's head (FanDExplore): "16 Spiele", where, and the chip bar. */
.f-explorehead { display: flex; flex-direction: column; gap: 6px; padding-top: 20px; }
.f-explorehead__title {
  font-family: var(--font-display); font-size: clamp(26px, 20px + 1.2vw, 32px);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
}
@media (max-width: 719px) {
  .f-explorehead__title { font-size: 24px; }
}
/* Every filter, one tap each. On a phone one row that swipes sideways, edge to edge; wider, it wraps. */
.f-filterbar {
  display: flex; gap: 8px; margin: 6px calc(var(--gutter) * -1) 0; padding: 2px var(--gutter);
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.f-filterbar::-webkit-scrollbar { display: none; }
.f-filterbar .f-chip { flex: none; gap: 6px; font: 600 14px/1 var(--font-ui); cursor: pointer; }
.f-filterbar .f-chip:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 2px; }
.f-chip--plain { border-color: transparent; background: none; color: var(--ink-600); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1024px) {
  .f-filterbar { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; overflow: visible; }
}
/* Below 1024 px the map's pill names the place. */
@media (max-width: 1023px) {
  .f-explorehead__where { display: none; }
}
.f-explorehead__where { font-size: 15px; color: var(--ink-600); }
.f-wheretoken {
  padding: 0; border: 0; background: none; color: var(--ink-900);
  font: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: var(--brand-500);
  text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.f-wheretoken:hover { color: var(--brand-700); }
.f-explorehead__note { font-size: 15px; color: var(--ink-600); }
/* A bare "/" on its way to the fan's remembered search (fan.js resuming): a placeholder stands over
   the list and the map, so all of Austria never flashes up before the fan's own area, and the
   search fades in once it is there. Visibility, not display, so the map keeps its size for Leaflet.
   On every other load nothing changes state, so nothing fades. */
.f-explore__list, .f-explore__map { position: relative; }
.f-explore__list > :not(.f-seeking), .f-explore__map > :not(.f-seeking-map) { transition: opacity 0.25s ease; }
html[data-resuming] .f-explore__list > :not(.f-seeking),
html[data-resuming] .f-explore__map > :not(.f-seeking-map) { visibility: hidden; opacity: 0; }
.f-seeking, .f-seeking-map { display: none; }
/* The list's own padding, so the placeholder starts where the head would. */
html[data-resuming] .f-seeking { display: block; position: absolute; inset: 0 0 auto; padding: inherit; }
.f-seeking__kicker { margin-top: 20px !important; }
html[data-resuming] .f-seeking-map { display: grid; position: absolute; inset: 0; z-index: 1; }

.f-seeking__kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  color: var(--brand-700); font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
}
.f-seeking__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-500); animation: f-seeking-blink 1.2s ease-in-out infinite; }
@keyframes f-seeking-blink { 50% { opacity: 0.25; } }
.f-seeking__title {
  margin: 6px 0 20px; font-family: var(--font-display); font-size: clamp(26px, 20px + 1.2vw, 32px);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; color: var(--ink-900);
}
.f-seeking__rows { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.f-seeking__row {
  display: flex; align-items: center; gap: 14px; padding: 14px;
  border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--card);
}
.f-seeking__row:nth-child(2) { opacity: 0.8; }
.f-seeking__row:nth-child(3) { opacity: 0.6; }
.f-seeking__row:nth-child(4) { opacity: 0.4; }
.f-seeking__date, .f-seeking__lines > span {
  background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2));
  background-size: 200% 100%; animation: f-shimmer 1.4s ease infinite;
}
.f-seeking__date { flex: none; width: 52px; height: 52px; border-radius: 12px; }
.f-seeking__lines { display: grid; flex: 1; gap: 8px; }
.f-seeking__lines > span { height: 12px; border-radius: 6px; }
.f-seeking__lines > span:first-child { width: 70%; }
.f-seeking__lines > span:last-child { width: 45%; }

/* Over the map: a calm field and the fan's dot, with the minute rings' dashes widening from it. */
.f-seeking-map {
  place-items: center; overflow: hidden;
  background: radial-gradient(circle at center, var(--card) 0, var(--surface) 70%);
}
.f-seeking-map > * { grid-area: 1 / 1; }
.f-seeking-map .f-you { position: relative; }
.f-seeking-map__ring {
  width: 280px; height: 280px; border-radius: 50%; border: 1.5px dashed var(--ink-900);
  opacity: 0; animation: f-seeking-ring 2.4s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
.f-seeking-map__ring:nth-child(2) { animation-delay: 0.8s; }
.f-seeking-map__ring:nth-child(3) { animation-delay: 1.6s; }
@keyframes f-seeking-ring {
  from { transform: scale(0.08); opacity: 0.6; }
  to { transform: scale(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .f-seeking__dot, .f-seeking__date, .f-seeking__lines > span { animation: none; }
  .f-seeking-map__ring { animation: none; opacity: 0.35; }
  .f-seeking-map__ring:nth-child(1) { transform: scale(0.3); }
  .f-seeking-map__ring:nth-child(2) { transform: scale(0.6); }
  .f-explore__list > *, .f-explore__map > * { transition: none; }
}

/* Popovers that edit one part of the sentence. Centred, like a small dialog. */
.f-pop {
  width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  padding: 0; border: 0; border-radius: var(--radius-card);
  background: var(--card); color: var(--ink-900);
  box-shadow: 0 30px 80px -20px rgba(16, 21, 18, 0.45);
}
.f-pop::backdrop { background: rgba(16, 21, 18, 0.45); }
/* On a phone a sheet from below, edge to edge, like the follow sheet: a centred box there left the
   date fields running out of its right edge. */
@media (max-width: 719px) {
  .f-pop {
    inset: auto 0 0 0; width: 100%; max-width: none; max-height: 88dvh; margin: 0;
    border-radius: 24px 24px 0 0; padding-bottom: env(safe-area-inset-bottom);
  }
}
.f-pop__form { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.f-pop__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 8px; }
.f-pop__actions .f-link { margin-right: auto; }
.f-pop__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 10px 6px 20px; }
.f-pop__title { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.f-pop__close {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: none; color: var(--ink-900); cursor: pointer;
}
.f-pop__close:hover { background: var(--surface); }
/* The range's presets: one row each, its dates beside it, the chosen one ticked. */
.f-options { display: flex; flex-direction: column; padding: 0 8px; }
.f-option {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 12px; border-radius: var(--radius-ctrl);
  color: var(--ink-900); font-size: 16px; font-weight: 600; text-decoration: none;
}
.f-option:hover { background: var(--surface); color: var(--ink-900); }
.f-option[aria-current="true"] { background: var(--brand-50); color: var(--brand-700); }
.f-option__label { flex: 1; min-width: 0; }
.f-option__detail { font-size: 14px; font-weight: 500; color: var(--ink-450); white-space: nowrap; }
.f-option[aria-current="true"] .f-option__detail { color: var(--brand-700); }
.f-option__check { display: grid; place-items: center; flex: none; width: 20px; color: var(--brand-500); }
.f-option[hidden] { display: none; }
/* A row that is a button (the place sheet's "Mein Standort") looks like the links beside it. */
button.f-option { width: 100%; border: 0; background: none; font-family: inherit; text-align: left; cursor: pointer; }
button.f-option:disabled { opacity: 0.6; cursor: progress; }
.f-option__icon {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); color: var(--ink-900);
}
.f-option[aria-current="true"] .f-option__icon { background: var(--card); color: var(--brand-700); }
/* The place sheet: the search field, its suggestions, the two rows that need no typing, one button. */
.f-placeform { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 20px; }
.f-placeform > .f-searchfield, .f-placeform > .f-suggest, .f-placeform > .f-placeform__submit { margin-inline: 20px; }
.f-placeform__options { padding-top: 2px; }
.f-placeform__submit { width: auto; margin-top: 4px; }
.f-searchfield { margin-top: 0; }
.f-searchfield .f-input { min-height: 52px; padding-left: 46px; border-radius: 14px; font-size: 16px; }
.f-searchfield__icon {
  position: absolute; top: 0; left: 0; bottom: 0; display: grid; place-items: center; width: 46px;
  color: var(--ink-450); pointer-events: none;
}
.f-searchfield .f-clearable__btn { height: 52px; }
/* A range of the fan's own, under the presets. */
.f-dates {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px;
  margin: 8px 0 0; padding: 16px 20px 20px; border-top: 1px solid var(--line);
}
.f-dates__title { grid-column: 1 / -1; margin: 0; font-size: 14px; font-weight: 700; color: var(--ink-600); }
.f-dates__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 13px; font-weight: 600; color: var(--ink-600); }
/* Safari gives a date field a width of its own and centres its text; both broke the two columns. */
.f-dates .f-input {
  width: 100%; min-width: 0; min-height: 48px; margin: 0;
  -webkit-appearance: none; appearance: none; text-align: left; color: var(--ink-900); font-size: 16px;
}
.f-dates .f-input::-webkit-date-and-time-value { text-align: left; }
.f-dates__submit { grid-column: 1 / -1; margin-top: 6px; }
.f-pop__fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.f-pop__fields legend { padding: 0; margin-bottom: 6px; }

/* A field with a clear button inside its right edge (the place search; the button is fan.js's). */
.f-clearable { position: relative; margin-top: 6px; }
.f-clearable .f-input { margin-top: 0; padding-right: 48px; }
.f-clearable__btn {
  position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 48px; height: 48px;
  border: 0; border-radius: var(--radius-ctrl); background: none; color: var(--ink-400); cursor: pointer;
}
.f-clearable__btn:hover { color: var(--ink-900); }
.f-clearable__btn[hidden] { display: none; }

.f-suggest { border: 1px solid var(--line); border-radius: var(--radius-ctrl); overflow: hidden; }
.f-suggest button, .f-suggest a {
  display: block; color: var(--ink-900); font-size: 15px; text-decoration: none; width: 100%; min-height: 48px; padding: 8px 14px;
  border: 0; border-bottom: 1px solid var(--line); background: var(--card); text-align: left;
}
.f-suggest li:last-child :is(button, a) { border-bottom: 0; }
.f-suggest :is(button, a):is(:hover, :focus-visible, [aria-selected="true"]) { background: var(--brand-50); }
.f-suggest small { display: block; color: var(--ink-400); font-size: 13px; }
.f-suggest__empty { padding: 12px 14px; color: var(--ink-450); font-size: 15px; }

/* --------------------------------------------------------------- explore */

.f-explore { padding-top: 0 !important; }
.f-explore__list { padding-inline: var(--gutter); }


.f-explore__grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); max-width: 1240px; margin-inline: auto; }
/* On the map: where the search looks, top left (it opens the place form, the one way to change it),
   and "Zu mir" bottom right above the zoom buttons, only once the map is away from the fan. */
.f-mapplace {
  position: absolute; top: 12px; left: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  max-width: calc(100% - 24px); min-height: 40px; padding: 0 16px 0 12px; border: 0; border-radius: var(--radius-pill);
  background: var(--ink-900); color: #FFFFFF; font: 700 14px/1 var(--font-ui); cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 21, 18, 0.25);
}
.f-mapplace__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-maptome {
  position: absolute; right: 12px; bottom: 120px; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 14px 0 12px; border: 0; border-radius: var(--radius-pill); background: var(--card);
  color: var(--ink-900); font: 700 14px/1 var(--font-ui); box-shadow: 0 4px 14px rgba(16, 21, 18, 0.2); cursor: pointer;
}
.f-maptome svg { color: var(--brand-700); }
.f-maptome[hidden] { display: none; }
@media (pointer: coarse) { .f-maptome { bottom: 16px; } }
.f-ring {
  display: block; padding: 1px 6px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.85);
  color: var(--ink-600); font: 600 11px/18px var(--font-ui); text-align: center; white-space: nowrap;
}
.f-explore__map .leaflet-control-zoom { margin: 0 12px 28px 0; border: 0; box-shadow: 0 4px 14px rgba(16, 21, 18, 0.2); }
/* The legend stands on the map, bottom left. */
.f-explore__map .f-map-legend {
  position: absolute; left: 16px; bottom: 16px; z-index: 1; padding: 6px 12px;
  border-radius: var(--radius-pill); background: var(--card); box-shadow: 0 4px 14px rgba(16, 21, 18, 0.12);
}
/* Below 1024 px the map is the top of the page, edge to edge, and the list a sheet pulled up over its
   lower edge (FanCExplore2). Both always show. */
@media (max-width: 1023px) {
  .f-explore__grid { gap: 0; }
  .f-explore__map { order: -1; }
  .f-explore__map .f-map-wrap { padding: 0; gap: 0; }
  .f-explore__map .f-map { height: clamp(260px, 46vh, 480px); min-height: 0; border-radius: 0; }
  .f-explore__map .f-map-legend { bottom: 36px; left: 12px; font-size: 12px; }
}
/* On a phone the legend crowds the small map; the posters say "Online ab …" anyway. */
@media (max-width: 719px) {
  .f-explore__map .f-map-legend { display: none; }
}
/* The list's sheet covers the map's lower 22 px, so the controls sit above that edge. For every
   pointer: these rules once landed in the mouse-only block below, and on a phone the list then
   stopped short of the map while the controls still stood 22 px up, in the middle of the map. */
@media (max-width: 1023px) {
  .f-explore__map .leaflet-bottom { bottom: 22px; }
  .f-explore__map .f-maptome { bottom: 40px; }
  .f-explore__list {
    position: relative; z-index: 2; margin-top: -22px;
    border-radius: 24px 24px 0 0; background: var(--surface); box-shadow: 0 -8px 24px rgba(16, 21, 18, 0.08);
  }
  .f-explore__list::before {
    content: ""; display: block; width: 40px; height: 4px; margin: 10px auto 0;
    border-radius: 2px; background: var(--hairline);
  }
  .f-explore__list .f-explorehead { padding-top: 10px; }
}
/* With a mouse the zoom buttons show bottom right, so "Zu mir" stands above them. */
@media (max-width: 1023px) and (pointer: fine) {
  .f-explore__map .f-maptome { bottom: 132px; }
}
/* From 1024 px: the list a column on the left, the map the rest of the window beside it, staying
   while the list scrolls (FanDExplore). The white bar stays too, and the map is the window less the
   bar: at 100vh under a bar that scrolled away, its lower edge (and the zoom) started below the window. */
@media (min-width: 1024px) {
  body:has(.f-explore) .f-header { position: sticky; top: 0; z-index: 30; }
  .f-explore__grid { grid-template-columns: minmax(0, 640px) minmax(0, 1fr); gap: 0; max-width: none; }
  .f-explore__list { padding: 8px 24px 48px var(--gutter); }
  .f-explore__map { position: sticky; top: var(--f-header-h); align-self: start; height: calc(100dvh - var(--f-header-h)); }
  .f-explore__map .f-map-wrap { position: relative; height: 100%; padding: 0; gap: 0; }
  .f-explore__map .f-map { flex: 1; height: auto; min-height: 0; border-radius: 0; }
  .f-explore__map .f-map-empty { margin: 24px; }
  body:has(.f-explore) .f-footer { position: relative; z-index: 1; }
}

/* A day's heading on the league page. Only the heading: on Entdecken .f-day is a day's section, and a
   type rule here once reached every poster's text in it (all 14 px grey). */
h3.f-day {
  margin: 24px 0 4px;
  font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em;
}
/* How many games the list holds; fan.js keeps it to the map's frame. */
.f-count { margin: 16px 0 -12px; font-size: 14px; font-weight: 500; color: var(--ink-400); }
.f-widen { margin-top: 28px; padding: 16px; border-radius: var(--radius-ctrl); background: var(--brand-50); color: var(--ink-900); font-size: 15px; line-height: 1.5; }
.f-widen .f-link { font-weight: 600; }

/* A match as a list row. On a phone: time, teams over league, distance and price, the sale mark on
   the right; a plain row between hairlines, no card. From 720 px the price stands beside the mark. */
.f-fixture {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: start;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  color: var(--ink-900); text-decoration: none;
}
.f-fixture:hover { color: var(--ink-900); }
.f-fixture:hover .f-fixture__teams { text-decoration: underline; text-underline-offset: 3px; }
.f-fixture__time { font-size: 17px; font-weight: 700; padding-top: 1px; }
.f-fixture__main { min-width: 0; }
.f-fixture__teams { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; }
.f-fixture__versus { display: block; font-size: 15px; font-weight: 500; color: var(--ink-600); }
.f-fixture__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 13px; color: var(--ink-400); }
.f-fixture__sale { display: flex; align-items: center; gap: 10px; }
.f-fixture__price { font-weight: 600; color: var(--ink-900); white-space: nowrap; }
.f-fixture__price--door { font-weight: 500; color: var(--ink-400); }
/* Sold online: brand green carries white text at 5.4:1 (brand guide), the one green the list uses. */
.f-fixture__price--buy {
  padding: 3px 10px; border-radius: var(--radius-pill);
  background: var(--brand-500); color: #FFFFFF; font-weight: 700;
}
.f-fixture:hover .f-fixture__price--buy { background: var(--brand-700); }
.f-fixture__price--live {
  padding: 3px 10px; border-radius: var(--radius-pill);
  background: var(--signal); color: var(--signal-ink); font-weight: 700;
}

/* A heading per day over its posters, read while scrolling (no tabs: they filtered the list but not the map). */
.f-day + .f-day { margin-top: 28px; }
.f-dayhead {
  margin: 20px 0 0; font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
}
.f-day .f-posters { margin-top: 12px; }

/* Every game as a poster card (FanDExplore). */
.f-posters { display: grid; gap: 14px; margin-top: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.f-poster {
  display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 20px 16px 16px;
  border-radius: 18px; background: var(--card);
  box-shadow: 0 1px 2px rgba(16, 21, 18, 0.06), 0 6px 18px rgba(16, 21, 18, 0.06);
  color: var(--ink-900); text-decoration: none;
}
.f-poster:hover { color: var(--ink-900); box-shadow: 0 0 0 2px var(--ink-900); }
.f-poster__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.f-poster__tag {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); white-space: nowrap;
  background: var(--surface); color: var(--ink-600); font-size: 12px; font-weight: 700;
}
.f-poster__tag--live { background: var(--signal); color: var(--signal-ink); }
.f-poster__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.f-poster__far { min-width: 0; font-size: 12px; font-weight: 600; line-height: 1.3; text-align: right; color: var(--ink-600); }
/* The drive and "Jetzt" in a compact row's tile; a poster has them on its top line instead. */
.f-poster__drive, .f-poster__now { display: none; }
.f-poster__now .f-poster__dot { width: 6px; height: 6px; }
.f-poster__teams { display: flex; flex-direction: column; gap: 2px; }
.f-poster__home { overflow-wrap: anywhere; font-family: var(--font-display); font-size: 19px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.f-poster__away { font-size: 14px; font-weight: 600; color: var(--ink-600); }
.f-poster__league { margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--ink-450); }
/* A followed club: a small star after its name, on the name's line. */
.f-poster__follow { display: inline-flex; margin-left: 6px; vertical-align: -1px; color: var(--brand-500); }
.f-poster__follow svg { display: block; }
.f-poster__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin-top: auto; padding-top: 6px; }
.f-poster__when { min-width: 0; display: flex; flex-direction: column; }
.f-poster__time { font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
/* The sale as quiet text: the match is the news, the price a detail. */
.f-poster__price { color: var(--ink-450); font-size: 13px; font-weight: 600; white-space: nowrap; text-align: right; }
.f-poster__price--buy { color: var(--brand-700); font-weight: 700; }

/* On a phone every game is a compact row of one card (FanCExplore2), and only the lead slot above
   the days stands large, in a row that swipes sideways: a tapped pin's games (fan.js arrangePosters). */
.f-lead { margin-top: 18px; }
.f-lead__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.f-lead__title { margin: 0; font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.f-lead__title:focus { outline: none; }
.f-lead__close {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: var(--surface-2); color: var(--ink-900); cursor: pointer;
}
@media (max-width: 719px) {
  .f-postertrack {
    display: flex; gap: 12px; margin: 10px calc(-1 * var(--gutter)) 0; padding: 2px var(--gutter) 6px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .f-postertrack::-webkit-scrollbar { display: none; }
  .f-postertrack > li { flex: 0 0 84%; min-width: 0; scroll-snap-align: start; }
  .f-postertrack--one > li { flex-basis: 100%; }
  .f-posters { gap: 8px; grid-template-columns: minmax(0, 1fr); }
  /* A compact row: the kick-off in a tile on the left (the drive under it), who plays in the middle,
     the sale on the right. No day here: the day heading above says it. */
  .f-posters__row .f-poster {
    display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; grid-template-areas: "when teams price";
    gap: 12px; align-items: center; min-height: 72px; padding: 10px 14px 10px 10px;
    border-radius: 16px; background: var(--card); box-shadow: 0 1px 2px rgba(16, 21, 18, 0.05);
  }
  .f-posters__row .f-poster__top, .f-posters__row .f-poster__league { display: none; }
  .f-posters__row .f-poster__teams { grid-area: teams; min-width: 0; gap: 1px; }
  .f-posters__row .f-poster__home {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: break-word;
    font-family: var(--font-ui); font-size: 16px; font-weight: 700; letter-spacing: 0; line-height: 1.25;
  }
  .f-posters__row .f-poster__away { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 500; }
  .f-posters__row .f-poster__foot { display: contents; }
  .f-posters__row .f-poster__when {
    grid-area: when; align-self: stretch; align-items: center; justify-content: center; gap: 2px;
    border-radius: 12px; background: var(--surface); white-space: nowrap;
  }
  .f-posters__row .f-poster__time { font-family: var(--font-ui); font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
  .f-posters__row .f-poster__drive { display: block; font-size: 11px; font-weight: 600; color: var(--ink-600); }
  /* Being played: the tile is the state, in signal, with its word ("Jetzt" is the hidden tag's). */
  .f-posters__row .f-poster--live .f-poster__when { background: var(--signal); color: var(--signal-ink); }
  .f-posters__row .f-poster__now { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; }
  .f-posters__row .f-poster__price { grid-area: price; font-size: 13px; line-height: 1.3; }
  .f-posters__row .f-poster__sale { display: block; font-size: 11px; font-weight: 600; color: var(--ink-450); }
}
/* "Uhrzeit folgt" in the time column: two short lines instead of a time. */
.f-fixture__time--unknown { font-size: 12px; font-weight: 600; line-height: 1.25; color: var(--ink-400); padding-top: 3px; }
.f-fixture__price--aside { display: none; }
.f-fixture .f-mark { width: 22px; height: 22px; margin-top: 2px; }

@media (min-width: 720px) {
  .f-fixture {
    grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center;
    padding: 14px 12px; margin-inline: -12px; border-radius: var(--radius-ctrl);
  }
  .f-fixture:hover { background: var(--card); }
  .f-fixture:hover .f-fixture__teams { text-decoration: none; }
  .f-fixture__time { font-size: 20px; padding-top: 0; }
  .f-fixture__teams { font-size: 17px; line-height: 1.25; }
  .f-fixture__versus { display: inline; margin-left: 4px; font-size: inherit; }
  .f-fixture__meta { margin-top: 4px; font-size: 14px; }
  .f-fixture__price { font-size: 15px; }
  .f-fixture__price--inline { display: none; }
  .f-fixture__price--aside { display: inline; }
  .f-fixture .f-mark { margin-top: 0; }
}


/* ------------------------------------------------------------------ sheet */

/* Full screen on a phone, a drawer on the right anywhere wider (FollowSheet's --low sits low instead). */
.f-sheet {
  inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: var(--card); color: var(--ink-900);
}
.f-sheet::backdrop { background: rgba(16, 21, 18, 0.45); }
@media (min-width: 720px) {
  .f-sheet { inset: 0 0 0 auto; width: 440px; box-shadow: -30px 0 80px -20px rgba(16, 21, 18, 0.35); }
}
.f-sheet__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line);
}
.f-sheet__title { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.f-sheet__close { border: 0; }
.f-sheet__body { flex: 1; overflow-y: auto; padding: 0 16px 24px; }
/* Checkbox rows: the leagues. */
.f-checks li + li { border-top: 1px solid var(--line); }
.f-check { display: flex; align-items: center; gap: 12px; min-height: 48px; font-size: 16px; cursor: pointer; }
.f-check input { width: 22px; height: 22px; margin: 0; accent-color: var(--brand-500); }

.f-mark { flex: none; color: var(--ink-900); }


/* ------------------------------------------------------------------- map */

.f-map-wrap { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; }
.f-map {
  height: min(70vh, 640px); min-height: 360px;
  border-radius: var(--radius-card); overflow: hidden; background: var(--surface-2);
}
.f-map__canvas { width: 100%; height: 100%; }
/* How to move the map when a gesture went to the page instead (fan.js, cooperate). Above Leaflet's
   panes and controls, and never in the way of a tap. */
/* isolation: Leaflet's panes and controls (z-index 400 to 1000) stay inside the map. Without it they
   covered everything fixed or sticky above the page: the phone's list pill, whose tap went to the
   map, and the sticky filter bar. */
.f-map { position: relative; isolation: isolate; }
.f-map__hint {
  position: absolute; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px;
  background: rgba(16, 21, 18, 0.55); color: #FFFFFF;
  font-size: 16px; font-weight: 700; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.f-map__hint--on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .f-map__hint { transition: none; } }
.f-map-empty { padding: 24px; border-radius: var(--radius-card); background: var(--surface-2); color: var(--ink-600); }
/* Over the map, top left: games found that have no position. */
.f-map-wrap { position: relative; }
.f-map-note {
  position: absolute; top: 12px; left: 12px; right: 12px; z-index: 2; margin: 0; padding: 10px 14px; max-width: 420px;
  border-radius: var(--radius-ctrl); background: var(--card); color: var(--ink-600); font-size: 14px;
  box-shadow: 0 1px 2px rgba(16, 21, 18, 0.08), 0 8px 24px -12px rgba(16, 21, 18, 0.3);
}
.f-map-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--ink-600); }
.f-map-legend span { display: inline-flex; align-items: center; gap: 6px; }
/* The pin is the QR-Auge, the legend's sale sign: its field filled brand green when a game there sells
   online, open when it is door only. Being played: a signal dot. */
.f-pin {
  position: relative; display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 10px; background: var(--card); color: var(--ink-900); box-shadow: 0 2px 8px rgba(16, 21, 18, 0.25);
}
.f-pin .f-mark { width: 22px; height: 22px; }
.f-pin__field { fill: none; }
.f-pin--sale .f-pin__field { fill: var(--brand-500); }
/* Places too close to tell apart at this zoom (fan.js cluster): how many games, in one round pin
   that zooms in on them. A green ring when any of them sells online. */
.f-cluster {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink-900); color: #FFFFFF; font: 800 14px/1 var(--font-ui);
  box-shadow: 0 0 0 3px var(--card), 0 2px 10px rgba(16, 21, 18, 0.35); cursor: pointer;
}
.f-cluster--sale { box-shadow: 0 0 0 3px var(--brand-500), 0 2px 10px rgba(16, 21, 18, 0.35); }
.f-pin__live {
  position: absolute; top: -6px; left: -6px; width: 12px; height: 12px;
  border: 2px solid var(--card); border-radius: 50%; background: var(--signal);
}
/* Several games at one place (a 1b before the main game): how many, on the pin's corner. */
.f-pin__count {
  position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: var(--radius-pill); border: 2px solid var(--card); background: var(--ink-900); color: #FFFFFF;
  font: 700 11px/16px var(--font-ui); text-align: center; box-sizing: border-box;
}
.f-you { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--ink-900); border: 3px solid #FFFFFF; box-shadow: 0 1px 4px rgba(16, 21, 18, 0.4); }
/* Pin and list point at each other from 1024 px (fan.js select / hoverPoster): the clicked pin, and
   the pin or cluster of the poster under the pointer or the keyboard. */
.f-pin--on, .f-pin--hot { box-shadow: 0 0 0 2px var(--ink-900), 0 4px 12px rgba(16, 21, 18, 0.3); }
.f-pin--hot, .f-cluster.f-pin--hot { transform: scale(1.15); transition: transform 0.12s ease-out; }
.f-cluster.f-pin--on, .f-cluster.f-pin--hot { box-shadow: 0 0 0 3px var(--ink-900), 0 4px 12px rgba(16, 21, 18, 0.35); }
.leaflet-marker-icon:has(.f-pin--hot, .f-pin--on) { z-index: 10000 !important; }
@media (prefers-reduced-motion: reduce) { .f-pin--hot, .f-cluster.f-pin--hot { transform: none; } }
/* The games of the pin under the pointer ('f-hot'), and of the clicked pin ('f-on'). */
li.f-hot > .f-poster, li.f-on > .f-poster { box-shadow: 0 0 0 2px var(--ink-900); }
li.f-on > .f-poster { box-shadow: 0 0 0 3px var(--ink-900), 0 8px 24px rgba(16, 21, 18, 0.14); }

.leaflet-container { font-family: var(--font-ui); }

/* ----------------------------------------------------------------- club */

/* The club's page (ClubPage): its logo and name, then Mein Verein's parts,
   with the season ticket, the ground and the partners beside them from 1024 px (FanDHome). */
.f-clubpage { display: flex; flex-direction: column; gap: 24px; }
.f-clubhead { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.f-clubhead__text { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.f-clubhead__link { color: inherit; text-decoration: none; }
.f-clubhead__link:hover { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.f-clubhead__name { margin: 0; font-family: var(--font-display); font-size: clamp(28px, 22px + 2vw, 40px); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.f-clubhead__league { margin: 0; font-size: 15px; color: var(--ink-600); }
.f-clubhead__follow { flex: none; }
/* Mein Verein: the chip above names the club, so its head is one slim line, league left, follow right. */
.f-clubhead--slim { flex-wrap: nowrap; gap: 12px; min-height: 36px; margin-block: -10px -6px; }
.f-clubhead--slim .f-clubhead__text { flex: 1 1 auto; }
.f-clubhead--slim .f-clubhead__league { font-size: 14px; }
.f-clubpage__grid { display: grid; gap: 20px; align-items: start; }
.f-clubpage__main, .f-clubpage__side { min-width: 0; }
/* A card's own title, flush with the card's text (the list cards' title is padded for their rows). */
.f-clubpage__cardtitle { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
@media (min-width: 1024px) {
  .f-clubpage__grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; }
}
/* The price or "Abendkassa" at a row's end (the club page's HomeGamesCard). */
.f-nextgames__sale { flex: none; font-size: 14px; font-weight: 600; color: var(--ink-600); white-space: nowrap; }
.f-nextgames__sale--buy { color: var(--brand-700); font-weight: 700; }
@media (max-width: 420px) { .f-nextgames__sale { display: none; } }

.f-monogram {
  display: grid; place-items: center; flex: none; width: 64px; height: 64px;
  border: 3px solid var(--ink-900); border-radius: 16px;
  font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.03em;
}
.f-monogram--small { width: 40px; height: 40px; border-width: 2px; border-radius: 10px; font-size: 13px; }


.f-clubs { display: grid; gap: 4px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.f-club-row {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 10px;
  border-radius: var(--radius-ctrl); color: var(--ink-900); text-decoration: none;
}
.f-club-row:hover { background: var(--card); color: var(--ink-900); }
.f-club-row__name { flex: 1; font-weight: 600; }

/* The league overview: Bundesland, tier, then one row per league. */
.f-leagues + .f-leagues { margin-top: 8px; }
.f-leagues__tier { margin: 18px 0 2px; font-size: 14px; font-weight: 600; color: var(--ink-450); }
.f-leagues__list { border-top: 1px solid var(--line); }
.f-league-row {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 0;
  border-bottom: 1px solid var(--line); color: var(--ink-900); text-decoration: none;
}
.f-league-row:hover { color: var(--ink-900); }
.f-league-row:hover .f-league-row__name { text-decoration: underline; text-underline-offset: 3px; }
.f-league-row__name { flex: 1; min-width: 0; font-weight: 600; }
.f-league-row__count { font-size: 14px; color: var(--ink-400); white-space: nowrap; }
.f-league-row svg { flex: none; color: var(--ink-400); }

/* ---------------------------------------------------------------- match */

.f-match { display: flex; flex-direction: column; gap: 10px; }
.f-match__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(32px, 24px + 2vw, 44px); line-height: 1.04; letter-spacing: -0.03em;
}
.f-match__versus {
  display: block; margin: 6px 0;
  font-weight: 500; font-size: 0.6em; letter-spacing: -0.01em; color: var(--ink-600);
}
.f-facts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 10px; }
.f-fact { display: flex; flex-direction: column; padding: 14px; border-radius: var(--radius-ctrl); background: var(--card); }
.f-fact dt { font-size: 13px; color: var(--ink-400); }
.f-fact dd { font-weight: 700; }
.f-fact dd .f-muted { display: block; font-weight: 400; font-size: 14px; }

/* The match page's hero: a light stage, the same for every club (brand guide §5). */
.f-hero {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin-inline: calc(-1 * var(--gutter)); padding: 20px 18px 26px; overflow: hidden;
  background: var(--card); color: var(--ink-900); text-align: center;
  border-bottom: 1px solid var(--line);
}
.f-hero a { color: inherit; }
/* The hero sits right under the header, edge to edge, at every width: a strip of the page's grey
   between two white bars read as a gap. */
main.f-matchpage { padding-top: 0; }
.f-hero__top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; }
.f-hero__back {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; min-width: 0; margin-left: -6px;
  font-size: 15px; font-weight: 700; text-decoration: none;
}
.f-hero__back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-hero__back:hover { text-decoration: underline; color: inherit; }
/* The pitch's centre circle and halfway line, drawn faintly behind the hero (FanCMatch). */
.f-hero::before, .f-hero::after { content: ""; position: absolute; pointer-events: none; border: 2px solid rgba(16, 21, 18, 0.06); }
.f-hero::before { top: 50%; right: -70px; width: 240px; height: 240px; border-radius: 50%; transform: translateY(-58%); }
.f-hero::after { top: 34%; right: -20px; width: 320px; height: 0; border-width: 2px 0 0; }
.f-hero > * { position: relative; }
.f-hero__share { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: inherit; }
.f-hero__crests { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 4px; }
.f-hero__versus { font-family: var(--font-display); font-size: 18px; font-weight: 700; opacity: 0.8; }
.f-hero__title {
  margin-top: 10px; font-family: var(--font-display); font-size: clamp(28px, 22px + 1.6vw, 40px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
}
.f-hero__title a { text-decoration-thickness: 2px; text-underline-offset: 4px; }
.f-hero__when { font-size: 16px; font-weight: 600; }
.f-hero__where {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px;
  font-size: 14px; opacity: 0.85; text-underline-offset: 3px;
}
.f-hero__status { color: inherit; }
.f-hero__status:empty { display: none; }
.f-hero__tools { display: flex; flex: none; align-items: center; gap: 4px; }
.f-clubhead--slim .f-follow { display: contents; }
.f-hero__line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin-top: 6px; }
.f-hero__presented { font-size: 14px; color: var(--ink-600); }
/* The match partner as a pill, its logo or else its name (FanBMatch). */
.f-heropill {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 5px; vertical-align: middle;
  border-radius: var(--radius-pill); background: var(--card); color: var(--ink-900); box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-display); font-size: 13px; font-weight: 800; letter-spacing: -0.01em;
}
.f-hero__presented a { text-underline-offset: 3px; }

/* Follow on the hero and Mein Verein's head: a small outlined pill, on one line. Once the fan follows
   it goes quiet (decided 2026-11-16: a black pill that wrapped "Du folgst" onto two lines was the
   loudest thing on the hero): a light pill, the star filled. */
.f-herofollow {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; white-space: nowrap;
  border: 1.5px solid var(--hairline); border-radius: var(--radius-pill); background: var(--card);
  color: var(--ink-900); font-size: 14px; font-weight: 700; cursor: pointer;
}
.f-herofollow:hover { border-color: var(--ink-900); }
.f-herofollow[aria-pressed="true"] { padding: 0 12px 0 10px; border-color: transparent; background: var(--surface-2); color: var(--ink-600); font-weight: 600; }
.f-herofollow[aria-pressed="true"] svg { color: var(--brand-500); fill: currentColor; }
.f-hero .f-follow { display: contents; }

/* The state under the time: online, door only, presale later, live, or the fan's own tickets. */

.f-herochip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--radius-pill);
  background: var(--surface-2); color: inherit; font-size: 14px; font-weight: 700;
}
.f-herochip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.f-herochip--live { background: var(--signal); color: var(--signal-ink); }
.f-herochip--owned { background: var(--brand-50); color: var(--brand-700); }
.f-herochip--owned svg { color: var(--brand-500); }

/* The ticket box: a white card under the hero on a phone, inside the club's band on a wide screen. */
.f-ticketbox {
  display: flex; flex-direction: column; gap: 12px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--radius-card-lg); background: var(--card);
}
.f-ticketbox__title { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.f-pricelist { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.f-pricelist div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.f-pricelist dd { font-weight: 700; }
.f-owned { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--card); border-left: 4px solid var(--brand-500); }
.f-owned__mark { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); }
.f-owned__text { display: flex; flex-direction: column; }
.f-owned__title { font-size: 17px; font-weight: 800; }
.f-owned__kinds { font-size: 14px; color: var(--ink-600); }
@media (min-width: 1024px) {
  /* The light stage is a band across the whole window (FanDMatch), the ticket card inside it. */
  .f-matchhead {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start;
    padding: 26px 0 36px; background: var(--card); color: var(--ink-900);
    box-shadow: 0 0 0 100vmax var(--card); clip-path: inset(0 -100vmax);
  }
  .f-matchhead::after { content: ""; position: absolute; bottom: 0; left: -100vmax; right: -100vmax; border-bottom: 1px solid var(--line); }
  .f-matchhead .f-hero { align-items: flex-start; margin: 0; padding: 0; text-align: left; background: none; border-bottom: 0; overflow: visible; }
  .f-matchhead .f-hero__crests, .f-matchhead .f-hero__line { justify-content: flex-start; }
  .f-matchhead .f-hero::before { right: 40px; width: 260px; height: 260px; transform: translateY(-62%); }
  .f-matchhead .f-hero::after { right: 0; width: 340px; top: 30%; }
  .f-ticketbox { padding: 22px; color: var(--ink-900); box-shadow: 0 16px 40px -24px rgba(16, 21, 18, 0.3); }
  /* DirectBuy's fixed bar becomes the card's own footer; the other states' bars are not needed. */
  .f-ticketbox .f-buybar { position: static; padding: 0; border: 0; box-shadow: none; background: none; }
  .f-matchbar { display: none; }
  body:has(.f-matchpage .f-buybar) .f-footer, body:has(.f-matchbar) .f-footer { padding-bottom: 0; }
}

/* Under the head: the venue and the club's next home games, side by side on a wide screen. */
.f-matchbody { display: grid; gap: 24px; }
@media (min-width: 1024px) { .f-matchbody { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } }
.f-venue { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-card-lg); background: var(--card); }
.f-venue__pin { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--surface); color: var(--ink-900); }
.f-venue__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
/* A long ground name wraps (hyphenated) rather than running under the button beside it. */
.f-venue__text { overflow-wrap: break-word; hyphens: auto; }
.f-venue .f-btn { flex: none; }
/* Below 1024 px the fixed bar already says "Route"; a second button beside the address only squeezed the ground's name. */
@media (max-width: 1023px) {
  .f-matchpage:has(.f-matchbar__route) .f-venue__route { display: none; }
}
.f-venue__name { font-weight: 700; }
.f-venue__address { font-size: 14px; color: var(--ink-600); }
/* A list as one white card, rows divided by hairlines (FanCMatch, FanCHome). */
.f-listcard { border: 1px solid var(--line); border-radius: var(--radius-card-lg); background: var(--card); overflow: hidden; }
.f-listcard__title { padding: 16px 20px 10px; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.f-listcard li + li { border-top: 1px solid var(--line); }
.f-nextgames__row {
  display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 20px;
  color: var(--ink-900); text-decoration: none;
}
.f-nextgames__row:hover { color: var(--ink-900); background: var(--surface); }
.f-nextgames__row svg { color: var(--ink-400); }
.f-nextgames__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.f-nextgames__title { font-weight: 700; }
.f-nextgames__when { font-size: 13px; color: var(--ink-600); }
.f-matchbar__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 720px; margin: 0 auto; }

/* Direct purchase on the match page (Fan.Client Islands/DirectBuy.razor) */
.f-buy { display: flex; flex-direction: column; }
.f-buy__row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 0; }
.f-buy__row + .f-buy__row { border-top: 1px solid var(--line); }
/* Name, then the price on a line of its own, then what the ticket is for, muted: three things, never one sentence. */
.f-buy__name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.f-buy__title { font-size: 16px; font-weight: 700; line-height: 1.3; }
.f-buy__price { font-size: 15px; font-weight: 700; color: var(--brand-700); white-space: nowrap; }
.f-buy__info { margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--ink-450); }
.f-nowrap { white-space: nowrap; }
/* The purchase button is brand green for every club: buying looks the same everywhere (brand guide §5). */
.f-btn--buy { border-radius: 16px; }
.f-btn--ink { background: var(--ink-900); color: var(--on-brand); border-radius: 16px; }
.f-btn--ink:hover { background: var(--ink-900); color: var(--on-brand); opacity: 0.9; }
.f-buybar__inner { max-width: 720px; margin: 0 auto; }
.f-buybar__meta {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; margin-top: 4px;
  font-size: 13px; color: var(--ink-600);
}
.f-buybar__meta .f-link-button { font-size: 13px; }
body:has(.f-sticky.f-buybar) .f-footer { padding-bottom: 150px; }
/* The club page's season tickets: the button in the card, under the categories. */
.f-buybar--inline { margin-top: 12px; }

.f-stepper { display: flex; align-items: center; gap: 4px; }
.f-stepper__btn {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--hairline); border-radius: var(--radius-ctrl);
  background: var(--card); color: var(--ink-900);
}
.f-stepper__btn--add { background: var(--ink-900); border-color: var(--ink-900); color: #FFFFFF; }
.f-stepper__btn:disabled { opacity: 0.35; }
/* Still starting: dimmed less than a real limit, so it reads as "a moment" rather than "no more". */
.f-stepper--waiting .f-stepper__btn:disabled { opacity: 0.6; cursor: progress; }
.f-stepper__value { width: 32px; text-align: center; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* A bar fixed to the bottom on a phone (the match page's buy bar and its other states). */
.f-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 12px var(--gutter) calc(16px + env(safe-area-inset-bottom));
  background: var(--card); border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(16, 21, 18, 0.08);
}
body:has(.f-sticky:not([hidden])) .f-footer { padding-bottom: 120px; }

.f-resume { display: flex; flex-direction: column; gap: 12px; }

/* Stripe's embedded checkout; its own background is white too (StripePaymentGateway). */
.f-stripe {
  min-height: 28rem; padding: 8px 0; border-radius: var(--radius-card);
  background: var(--card); box-shadow: var(--shadow-card); overflow: hidden;
}
/* PaySheet: Stripe's form over the match page. From below on a phone, a drawer from 720 px. */
.f-paysheet {
  position: fixed; inset: 0; z-index: 100; width: auto; height: auto; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; overflow: visible;
}
body:has(.f-paysheet) { overflow: hidden; }
.f-paysheet__backdrop { position: absolute; inset: 0; background: rgba(16, 21, 18, 0.45); }
.f-paysheet__panel {
  position: absolute; inset: 24px 0 0 0; display: flex; flex-direction: column;
  border-radius: 26px 26px 0 0; background: var(--card); color: var(--ink-900);
  box-shadow: 0 -20px 60px -20px rgba(16, 21, 18, 0.35); overflow: hidden;
  animation: f-paysheet-in 0.22s ease-out;
}
.f-paysheet__body {
  flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px;
  padding: 8px 0 calc(16px + env(safe-area-inset-bottom));
}
/* Nothing in the body shrinks: a flex item with overflow hidden may shrink below its content, and
   Stripe's iframe (which sizes itself to its form) was cut off with nothing left to scroll. */
.f-paysheet__body > * { flex-shrink: 0; }
.f-paysheet .f-stripe { box-shadow: none; border-radius: 0; }
.f-paysheet__body > :not(.f-stripe) { margin-inline: 16px; width: auto; }
@keyframes f-paysheet-in { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 720px) {
  .f-paysheet__panel { inset: 0 0 0 auto; width: 480px; border-radius: 0; box-shadow: -30px 0 80px -20px rgba(16, 21, 18, 0.35); }
}
@media (prefers-reduced-motion: reduce) { .f-paysheet__panel { animation: none; } }
.f-stripe[aria-busy="true"] { background: linear-gradient(90deg, var(--card), var(--surface-2), var(--card)); background-size: 200% 100%; animation: f-shimmer 1.4s ease infinite; }

/* --------------------------------------------------------------- tickets */

/* The match above its tickets, in a few lines: the code below is what the page is for. */
.f-ticket-head { display: flex; flex-direction: column; gap: 2px; }
.f-ticket-head__title { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.f-ticket-head__when { margin: 2px 0 0; font-size: 15px; font-weight: 600; color: var(--ink-900); }
.f-ticket-head__where { margin: 0; font-size: 14px; color: var(--ink-600); }
.f-ticket-head .f-row-actions { margin-top: 2px; }
a.f-link-button { text-decoration: none; }
.f-tickets__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.f-tickets__track::-webkit-scrollbar { display: none; }
.f-tickets__item { flex: 0 0 100%; scroll-snap-align: center; padding: 4px; }
.f-ticket { text-align: center; }
.f-ticket__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; text-align: left; }
/* The ticket's kind is what the entrance checks, so it is the largest line on the card. */
.f-ticket__kind { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink-900); }
.f-ticket__holder { text-align: left; color: var(--ink-600); }
.f-ticket__for { display: flex; flex-direction: column; margin-top: 4px; text-align: left; }
.f-ticket__frame {
  position: relative; width: 280px; max-width: 100%; aspect-ratio: 1; margin: 18px auto 0; padding: 22px;
  background:
    linear-gradient(var(--ink-900), var(--ink-900)) top left / 34px 3px no-repeat,
    linear-gradient(var(--ink-900), var(--ink-900)) top left / 3px 34px no-repeat,
    linear-gradient(var(--ink-900), var(--ink-900)) top right / 34px 3px no-repeat,
    linear-gradient(var(--ink-900), var(--ink-900)) top right / 3px 34px no-repeat,
    linear-gradient(var(--ink-900), var(--ink-900)) bottom left / 34px 3px no-repeat,
    linear-gradient(var(--ink-900), var(--ink-900)) bottom left / 3px 34px no-repeat,
    linear-gradient(var(--brand-500), var(--brand-500)) bottom right / 34px 3px no-repeat,
    linear-gradient(var(--brand-500), var(--brand-500)) bottom right / 3px 34px no-repeat;
}
.f-qr { width: 100%; height: auto; }
.f-ticket__code { margin-top: 12px; font-size: 14px; color: var(--ink-400); word-break: break-all; }
/* Who presents the ticket, under the code (FanBTicket): part of the ticket, so part of every printed
   page. The match partner, else the club's main sponsor, else the club's band. */
.f-ticket .f-sponsors { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.f-ticket .f-sponsors__label { text-align: center; }
.f-ticket__sponsor {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
}
.f-ticket__sponsorlabel { font-size: 12px; color: var(--ink-600); }
.f-ticket__sponsorname {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 15px; font-weight: 800; letter-spacing: -0.02em;
}
.f-ticket__perk {
  display: flex; align-items: center; justify-content: center; gap: 8px; flex: 1 1 100%; margin: 4px 0 0;
  font-size: 13px; color: var(--ink-600);
}
.f-ticket__perk svg { flex: none; color: var(--sponsor-ink); }
.f-tickets__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.f-tickets__dots { display: flex; gap: 6px; }
.f-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hairline); }
.f-dot--on { background: var(--ink-900); }
/* "Meine Tickets": one card per game, its tickets on the same track as an order's page. */
.f-game .f-tickets__track { margin-top: 4px; }
/* Centred between the arrows, and alone without JavaScript, where the arrows stay hidden. */
.f-game__dots { margin-inline: auto; }

/* The ticket as a card with a tear line: what it is above, the code below (redesign handoff). */
.f-ticket { border-radius: var(--radius-card-lg); }
.f-ticket__kind {
  padding: 4px 12px; border-radius: var(--radius-pill); background: var(--surface-2);
  font-family: var(--font-ui); font-size: 15px; letter-spacing: 0;
}
.f-ticket__head { align-items: center; }
.f-ticket__perf {
  position: relative; height: 0; margin: 16px -2px 0; border-top: 2px dashed var(--hairline);
}
.f-ticket__perf::before, .f-ticket__perf::after {
  content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface);
}
.f-ticket__perf::before { left: -30px; }
.f-ticket__perf::after { right: -30px; }
/* "Bezahlt": the signal colour, as a state with its word beside it. */
.f-note--done svg {
  box-sizing: content-box; padding: 6px; margin-top: 0; border-radius: 50%;
  background: var(--signal); color: var(--signal-ink);
}
.f-note--done { align-items: center; background: var(--card); }

/* "Kein Heimspiel verpassen" under the tickets, and its sheet (Fan Account/FollowSheet.razor). */
.f-followentry {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--ink-900); text-align: left;
}
.f-followentry__text { flex: 1; display: flex; flex-direction: column; font-size: 13px; }
.f-followentry .f-strong { color: inherit; font-size: 15px; }
.f-followentry svg { flex: none; }
.f-sheet--low { inset: auto 0 0 0; height: auto; max-height: 85vh; border-radius: 26px 26px 0 0; }
.f-sheet__later { justify-content: center; width: 100%; color: var(--ink-600); }
@media (min-width: 720px) {
  .f-sheet--low { inset: 0; margin: auto; width: 440px; height: fit-content; border-radius: 26px; }
}

/* A guest's tickets on this device (Fan.Client Islands/DeviceTicketList.razor). */
.f-devicelist__row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.f-devicelist__row:last-child { border-bottom: 0; }
.f-devicelist__link { flex: 1; min-width: 0; display: flex; flex-direction: column; text-decoration: none; }

/* Both wallets require black buttons; black is not a brand colour, which is the point. */
.f-wallets { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.f-wallet {
  display: grid; place-items: center; min-height: 52px; padding: 0 16px;
  border-radius: var(--radius-ctrl); background: #000000; color: #FFFFFF;
  font-weight: 600; text-decoration: none;
}
.f-wallet:hover { color: #FFFFFF; opacity: 0.88; }

.f-gate { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.f-revoked { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.f-revoked li { display: flex; justify-content: space-between; gap: 12px; }
.f-sums { display: flex; flex-direction: column; gap: 8px; }
.f-sums div { display: flex; justify-content: space-between; }
.f-sums dt { color: var(--ink-400); }
.f-sums dd { font-weight: 600; }

/* The ticket page is a plain page like every other (FanBTicket without the club's dress). */
.f-ticketpage .f-ticket { box-shadow: 0 1px 2px rgba(16, 21, 18, 0.06), 0 22px 44px -32px rgba(16, 21, 18, 0.3); }

/* "Bezahlt, viel Spaß am Samstag!", the signal tick beside it (FanBTicket). */
/* After the tickets: the order's receipt, quiet, in a light box. */
.f-paid {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 18px; color: var(--ink-900);
}
.f-paid > svg {
  flex: none; box-sizing: content-box; padding: 5px; border-radius: 50%;
  background: var(--signal); color: var(--signal-ink);
}
.f-paid__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.f-paid__title { margin: 0; font-weight: 700; font-size: 15px; }
.f-paid__sub { margin: 0; font-size: 13px; color: var(--ink-600); overflow-wrap: anywhere; }

/* The account suggestion, quieter than the follow entry above it. */
.f-accounthint { padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; }

/* Printing the ticket page prints the tickets, one per page, and nothing else. */
@media print {
  body, .f-ticketpage { background: #FFFFFF; }
  .f-ticketpage *:not(.f-ticket *) { color: var(--ink-900) !important; }
  [data-print="hide"], .f-footer, .f-header, .f-skip { display: none !important; }
  .f-tickets__track { display: block; overflow: visible; }
  .f-tickets__item { break-after: page; }
  .f-card { box-shadow: none; }
  .f-sponsors__logo, .f-sponsormark { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}


/* ----------------------------------------------------- bottom navigation */

.f-bottomnav { display: none; }

/* The phone's navigation (BottomNav), present only with fan sign-in on: every rule that makes room
   for it asks body:has(.f-bottomnav), so with sign-in off a phone keeps the header as it was. */
@media (max-width: 719px) {
  body:has(.f-bottomnav) {
    --nav-h: calc(60px + env(safe-area-inset-bottom));
    padding-bottom: var(--nav-h);
  }
  .f-bottomnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--card); border-top: 1px solid var(--line);
  }
  .f-bottomnav__item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 60px; color: var(--ink-450); font-size: 12px; font-weight: 600; text-decoration: none;
  }
  .f-bottomnav__item[aria-current="page"] { color: var(--ink-900); }
  .f-bottomnav__item[aria-current="page"] svg { color: var(--brand-500); }
  .f-bottomnav__item[aria-current="page"] { font-weight: 700; }

  /* A fixed bar sits on top of it rather than under it. */
  body:has(.f-bottomnav) .f-sticky { bottom: var(--nav-h); padding-bottom: 12px; }
}

/* --------------------------------------------------------------- consent */

/* Above everything, including the sticky Kassa bar, until the fan has answered. A card at the bottom
   rather than a modal: the page stays readable and usable behind it, since buying a ticket never
   depends on the answer. */
.f-consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
}
.f-consent[hidden] { display: none; }
.f-consent__inner {
  max-width: 640px; margin-inline: auto; padding: 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-card);
}
.f-consent__title { margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink-900); }
.f-consent__text { margin: 0 0 16px; color: var(--ink-600); }
.f-consent__text a { color: inherit; }
/* Equal weight, side by side: declining is exactly as easy as agreeing. */
.f-consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 419px) {
  .f-consent__actions { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ mein verein */

/* The followed clubs as chips (handoff, FanCHome). */
.f-clubchips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter); }
.f-clubchips::-webkit-scrollbar { display: none; }
.f-clubchip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--hairline); border-radius: var(--radius-pill); background: var(--card);
  color: var(--ink-900); font-weight: 600; text-decoration: none; white-space: nowrap;
}
.f-clubchip:hover { color: var(--ink-900); border-color: var(--ink-900); }
/* The chosen club's chip is Ink; its logo keeps its white well. */
.f-clubchip[aria-current="page"] { border-color: var(--ink-900); background: var(--ink-900); color: var(--on-brand); }
.f-clubchip--add { gap: 6px; padding: 0 14px; border-style: dashed; color: var(--ink-600); font-weight: 600; }
.f-clubchip:has(.f-clublogo) { padding-left: 8px; }

/* The chosen club's next home game: a white card like the match page's hero, its button green. */
.f-clubhero {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-card-lg); background: var(--card); color: var(--ink-900);
}
/* The pitch's centre circle, faintly, as on the match page's hero. */
.f-clubhero::before {
  content: ""; position: absolute; right: -50px; bottom: -70px; width: 200px; height: 200px; pointer-events: none;
  border: 2px solid rgba(16, 21, 18, 0.06); border-radius: 50%;
}
.f-clubhero > * { position: relative; }
.f-clubhero a:not(.f-btn) { color: inherit; }
.f-clubhero__when { font-size: 14px; font-weight: 700; color: var(--ink-600); }
.f-clubhero__title { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.f-clubhero__meta { font-size: 15px; color: var(--ink-600); }
.f-clubhero__chip { margin-top: 4px; }
.f-clubhero__presented { font-size: 14px; color: var(--ink-600); }
.f-clubhero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
/* "Auf diesem Handy gespeichert" (FanCHomeGuest): a quiet white card, not a coloured note. */
.f-devicehint.f-note { display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink-900); }
.f-devicehint svg { flex: none; margin-top: 2px; color: var(--ink-600); }

/* The ground on the match page: a small map without gestures, the venue card under it. */
.f-venuemap { height: 180px; overflow: hidden; border-radius: var(--radius-card-lg) var(--radius-card-lg) 0 0; background: var(--surface-2); isolation: isolate; }
.f-venuecard { display: flex; flex-direction: column; }
.f-venuemap + .f-venue { border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.f-venuemap { border: 1px solid var(--line); border-bottom: 0; }
.f-venuemap__canvas { width: 100%; height: 100%; }
.f-venuemap__pin { border-radius: 6px; background: var(--brand-500); box-shadow: 0 0 0 3px #FFFFFF, 0 2px 8px rgba(16, 21, 18, 0.35); }

/* No tickets on this device yet (FanCTicketsGuest): a centred card with the ticket mark. */
.f-ticketsempty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.f-ticketsempty__icon { color: var(--brand-500); }

/* What this device kept, handed to the account after sign-in (DeviceMergeCard). */
.f-merge__list { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }

/* ------------------------------------------------------------ first start */

/* "Für welchen Verein schlägt dein Herz?" (FanCWelcome): no header, one question, a fixed way on. */
.f-welcome__head { display: flex; flex-direction: column; gap: 10px; }
.f-welcome__search { display: flex; gap: 8px; }
.f-welcome__search .f-input { flex: 1; min-width: 0; }
/* The clubs as one white card, rows divided by hairlines; a crest tinted in the club's colour (FanCWelcome). */
.f-welcome__clubs { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-card-lg); background: var(--card); overflow: hidden; }
.f-welcome__clubs li + li { border-top: 1px solid var(--line); }
.f-welcome__club {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 16px;
  border: 0; background: var(--card); color: var(--ink-900); text-align: left;
}
.f-welcome__club[aria-pressed="true"] { background: var(--brand-50); }
.f-welcome__tick {
  display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--hairline); background: var(--card); color: #FFFFFF;
}
.f-welcome__club[aria-pressed="true"] .f-welcome__tick { border-color: var(--brand-500); background: var(--brand-500); }
.f-welcome__inner { display: flex; flex-direction: column; gap: 6px; max-width: 720px; margin: 0 auto; text-align: center; }
body:has(.f-welcome__bar) .f-footer { padding-bottom: 140px; }

/* ------------------------------------------------------------ Für Vereine */

/* What clubs get and how they join (Pages/ForClubsPage). Platform furniture: no club colour, brand
   green only for the one thing to do. */
.f-forclubs { padding-block: 24px 56px; }
.f-forclubs__head { display: flex; flex-direction: column; gap: 12px; }
.f-forclubs__head .f-h1 { margin: 0; font-size: clamp(30px, 24px + 2vw, 44px); line-height: 1.05; letter-spacing: -0.03em; }
.f-forclubs__lead { max-width: 56ch; font-size: 17px; }
.f-forclubs__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.f-forclubs__card { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.f-forclubs__card .f-h3, .f-forclubs .f-h2 { margin: 0; }
.f-forclubs__steps { display: flex; flex-direction: column; gap: 16px; }
.f-forclubs__steps li { display: flex; align-items: flex-start; gap: 14px; }
.f-forclubs__steps li > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.f-forclubs__num {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink-900); color: #FFFFFF; font-family: var(--font-display); font-weight: 800;
}
.f-forclubs__points { display: grid; gap: 14px; }
@media (min-width: 720px) { .f-forclubs__points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; } }
.f-forclubs__points li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-600); }
.f-forclubs__points svg { flex: none; margin-top: 2px; color: var(--brand-500); }

/* "Interesse melden" (Pages/RegisterClubPage): the club, then whom to contact, in one white card. */
.f-register { padding-block: 24px 56px; }
.f-register__head { display: flex; flex-direction: column; gap: 12px; }
.f-register__head .f-h1 { margin: 0; font-size: clamp(30px, 24px + 2vw, 44px); line-height: 1.05; letter-spacing: -0.03em; }
.f-register__lead { max-width: 56ch; font-size: 17px; }
.f-register__card { display: flex; flex-direction: column; gap: 14px; }
.f-register__card > .f-h3 { margin: 0; }
.f-register__search { display: flex; flex-direction: column; gap: 6px; }
.f-register__field { position: relative; }
.f-register__chosen { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.f-register__crest {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); color: var(--ink-900);
}
.f-register__club { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.f-register__club .f-strong { font-size: 17px; }
.f-register__card > .f-btn { align-self: flex-start; }
.f-register__form .f-field + .f-field { margin-top: 12px; }
.f-register__submit { align-self: flex-start; margin-top: 12px; }
.f-optional { margin-left: 4px; color: var(--ink-400); font-weight: 400; }
.f-textarea { min-height: 112px; padding-block: 12px; resize: vertical; font-family: inherit; }
/* The captcha (fan.js wireCaptcha): a quiet line that says what it does, then that it is done. */
.f-captcha {
  display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-ctrl); background: var(--surface); color: var(--ink-600); font-size: 14px;
}
.f-captcha__mark { flex: none; display: grid; place-items: center; color: var(--ink-450); }
.f-captcha[data-state="done"] { background: var(--card); color: var(--ink-900); }
.f-captcha[data-state="done"] .f-captcha__mark { color: var(--brand-700); }
.f-captcha[data-state="working"] .f-captcha__mark { animation: f-captcha-pulse 1.2s ease-in-out infinite; }
@keyframes f-captcha-pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .f-captcha[data-state="working"] .f-captcha__mark { animation: none; } }
.f-register__form [data-register-error] { margin-top: 12px; }

/* ------------------------------------------------------------------------------ legal pages ----- */
/* Impressum, Datenschutz, AGB (LegalPage): long text, so lists keep their bullets and the tables
   scroll sideways inside their own box on a phone instead of widening the page. */
.f-legal ul { padding-left: 1.25rem; display: grid; gap: .35rem; }
.f-legal h2 { margin-top: .75rem; }
.f-legal__table { overflow-x: auto; }
.f-legal__table table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.f-legal__table th,
.f-legal__table td { text-align: left; vertical-align: top; padding: .5rem .75rem .5rem 0; border-bottom: 1px solid var(--line); }
.f-legal__table th { font-weight: 600; }
