/*
  The host's own stylesheet: the splash the first visit sees, and the pieces of the shell MudBlazor has no
  component for — the phone's bottom navigation (E11 rule 1). Everything else is MudBlazor's.
*/

html, body {
    margin: 0;
    background: var(--mud-palette-background, #F7F6F2);
}

/* Splash: shown until the client's layout has rendered, then removed by MainLayout. */
#splash {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: #2F6B4F;
    color: #FFFFFF;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    z-index: 2000;
}

.splash-mark {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.splash-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: splash-spin 0.9s linear infinite;
}

@keyframes splash-spin {
    to { transform: rotate(360deg); }
}

/* BX-41: a start that failed. The spinner goes, a sentence and a button come. */
.splash-failure {
    display: none;
    max-width: 22rem;
    padding: 0 24px;
    text-align: center;
}

.splash-failed .splash-spinner {
    display: none;
}

.splash-failed .splash-failure {
    display: block;
}

.splash-failure-text {
    margin: 0 0 16px;
    line-height: 1.4;
}

.splash-reload {
    padding: 10px 20px;
    border: 1px solid #FFFFFF;
    border-radius: 4px;
    background: transparent;
    color: #FFFFFF;
    font: inherit;
    cursor: pointer;
}

/* BX-41: the same panel for a browser without scripts, where the splash itself cannot be changed. */
.start-notice {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 24px;
    background: #2F6B4F;
    color: #FFFFFF;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-align: center;
    z-index: 2001;
}

.start-notice p {
    margin: 0;
    max-width: 24rem;
}

/* BX-40: hidden until the framework shows it for an exception nothing caught. */
#blazor-error-ui {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: #B3261E;
    color: #FFFFFF;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    z-index: 2100;
}

#blazor-error-ui .reload {
    margin-left: 12px;
    color: #FFFFFF;
    font-weight: 600;
}

/* Phone navigation: fixed to the bottom edge, inside the safe area of a notched phone. */
.phone-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(56px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    justify-content: space-around;
    align-items: stretch;
    z-index: 1200;
}

.phone-nav-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 44px;
    text-decoration: none;
    color: var(--mud-palette-text-secondary);
    font-size: 0.7rem;
    line-height: 1;
}

.phone-nav-item .mud-icon-root {
    width: 24px;
    height: 24px;
}

.phone-nav-item.phone-nav-item-active {
    color: var(--mud-palette-primary);
}

/* The main content keeps clear of the bottom navigation on phones; MudBlazor's spacing utilities take over
   from md up (pb-md-0 on the content). */
.phone-nav-space {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
}

/* F-116: the imprint and privacy links on every page. */
.legal-footer {
    padding: 8px 16px 16px;
    text-align: center;
}

/* F-1188: on a phone the footer ends the page, at the bottom of the screen when the content is short, never mid-screen.
   The main content is a column at least the viewport high (its padding for the app bar and the bottom navigation
   included), and the content grows to push the footer down. */
.main-column {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    box-sizing: border-box;
}

.main-column > .mud-container {
    flex: 1 0 auto;
}

/* F-1188: on the desktop the footer sits at the foot of the side navigation. */
.drawer-column {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.drawer-column > .drawer-legal-footer {
    margin-top: auto;
}

/* F-1109: a write in flight, shown on the element it touches (InPlaceProgress). */
.in-place-progress {
    position: relative;
}

.in-place-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.in-place-progress-working > .in-place-progress-body {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 150ms ease-in;
}

/* F-1261: the same for a table row, which cannot be wrapped in an element; its actions cell shows the spinner. */
tr.table-row-busy > td {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 150ms ease-in;
}

/* F-1109: an item shown before the read model has it (PendingCard). */
.pending-card {
    position: relative;
    border-radius: var(--mud-default-borderradius);
    overflow: hidden;
}

.pending-card-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.pending-card-body {
    opacity: 0.7;
}

.pending-card-late .pending-card-body {
    opacity: 0.85;
}

.pending-card-hint {
    display: block;
    padding: 4px 16px 8px;
    color: var(--mud-palette-text-secondary);
}

/* E11 rule 1: the screen's primary action on a phone, above the bottom navigation and inside the safe area. */
.fab {
    position: fixed;
    right: 16px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    z-index: 1100;
}

@media (min-width: 960px) {
    .fab {
        display: none;
    }
}

/* The viewer: the photo as large as the dialog allows, never cropped, with the paging buttons over its edges. */
.photo-viewer-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.photo-viewer-image {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.photo-viewer-previous,
.photo-viewer-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45) !important;
    color: #fff !important;
}

.photo-viewer-previous {
    left: 8px;
}

.photo-viewer-next {
    right: 8px;
}

/* F-1119: the box a guest brings, as a small cover beside the game's name. */
.game-night-commitment-cover {
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mud-palette-background-gray);
}

.game-night-commitment-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* F-1114: MudBadge's overlap places the badge 12 px inside the corner of what it wraps, and what it wraps here is a
   48 px icon button in a 42 px dense bar — it starts 3 px above the viewport, so a badge 20 px tall stood half off
   the screen. Moved down to the corner of the 24 px icon inside the button instead, which keeps it on screen and
   reads as the icon's. */
.notification-bell-badge .mud-badge.mud-badge-top.right.mud-badge-overlap {
    inset: auto auto calc(100% - 28px) calc(100% - 22px);
}

/* F-1125: the header's search as a slim field inside the bar rather than a box as tall as it. MudBlazor's outlined
   dense input is about 40 px, which filled the 42 px dense bar edge to edge. */
.mud-appbar .global-search .mud-input.mud-input-outlined {
    height: 32px;
}

.mud-appbar .global-search .mud-input-slot {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

.mud-appbar .global-search .mud-input-control {
    margin-top: 0 !important;
}

/* F-1129: a discovery card's cover, beside the text; the dice when the game has no photo. */
.discovery-hit-cover {
    flex: none;
    width: 88px;
    height: 88px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mud-palette-background-gray);
}

.discovery-hit-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* F-1138: a catalogue entry's photos as a strip of larger pictures at their own proportions, each opening the viewer.
   F-1429: a copy's photos too, where they were 120 px square tiles. */
.photo-gallery-large {
    overflow-x: auto;
}

.photo-gallery-tile-large {
    display: block;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
}

/* F-1427: the height is fixed, not a maximum. A picture that has not loaded yet has no height of its own, so with a
   maximum the strip stood at nothing and grew when each picture arrived, pushing the rating and the facts down once per
   picture. A picture wider than the screen allows is fitted into its tile rather than stretched. */
.photo-gallery-tile-large img {
    display: block;
    height: 14rem;
    max-width: 80vw;
    object-fit: contain;
    border-radius: 8px;
}

.photo-gallery-tile-large:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

/* F-322: a freely licensed photo's credit under its tile, kept about as wide as the picture so a long author name wraps
   instead of widening the strip. */
.photo-gallery-caption {
    max-width: min(18rem, 80vw);
    overflow-wrap: anywhere;
    text-align: center;
}

/* F-1176: a game night's tabs. Measured against the tab bar's own width, not the window: the drawer takes 240 px
   on a desktop, so a window wide enough for labels can still leave the tabs too little room. Below the threshold
   the label is hidden visually but kept for screen readers, and the open section shows its name as a heading.
   F-1237: named for what they are rather than for the first page that had them, because a group's page uses them too. */
.icon-tabs {
    container-type: inline-size;
}

.icon-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.icon-tab-heading {
    display: none;
}

@container (max-width: 840px) {
    .icon-tab-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .icon-tab-heading {
        display: block;
    }

    /* The icons share the bar evenly instead of huddling at its start. Each tab sits in its tooltip's wrapper, so
       the wrappers grow, and the tab fills its wrapper (seen in tst01 at 375 px, 2026-10-26). */
    .icon-tabs .mud-tabs-tabbar-wrapper {
        width: 100%;
    }

    .icon-tabs .mud-tabs-tabbar-wrapper > * {
        flex: 1 1 0;
    }

    .icon-tabs .mud-tab {
        width: 100%;
    }
}

/* F-1194, reported by the user: on a phone, a button on a line of its own reaches from edge to edge. Three cases,
   tried in tst01 at 375 px on 2026-10-27 before they were written here: a button in the ordinary flow of a block
   ("Spieleabend absagen") takes the full width; one in a column stretches across it; and a row made of buttons only
   lets them share the line, so two that fit fill it together and one that wraps fills its own ("Neuen Link
   erzeugen", "Link zurückziehen"). A button beside text in a row keeps its width. Filled and outlined buttons only: a
   text button reads as a link, and icon buttons and the FAB are not MudButtons. Within the page's content, so the app
   bar and the navigation keep their own layout. Below MudBlazor's sm breakpoint (600 px).
   F-1221, reported by the user: a dialog's content too ("Exemplar ansehen" kept its buttons as wide as their text).
   A dialog's action bar keeps its layout: those buttons sit side by side at its foot on purpose. Seen in tst01 after:
   a component that wraps its one button in a div (the hold panel beside "Verleih eintragen") made the row look like
   it held more than buttons; such a wrapper carries `button-slot` and counts as a button. A class rather than
   `:has(> .mud-button:only-child)`, because CSS does not allow a :has() inside the row's own :has().
   F-1238, the user again: every button, text buttons included ("Verlauf anzeigen", "Aussortieren"), and a dialog's
   action bar too ("Bearbeiten", "In ein Regal legen", "Melden" in a game's dialog): one button fills its line, several
   share it. That replaces F-1194's two exclusions; icon buttons and the FAB are still not MudButtons. A labelled menu
   wraps its button in a div and carries `button-slot` like the hold panel. */
@media (max-width: 599.98px) {
    :is(.mud-main-content, .mud-dialog-content, .mud-dialog-actions) :not([class*="d-flex"]):not([class*="d-inline-flex"]) > .mud-button {
        width: 100%;
    }

    :is(.mud-main-content, .mud-dialog-content, .mud-dialog-actions) .flex-column > .mud-button {
        align-self: stretch;
    }

    :is(.mud-main-content, .mud-dialog-content, .mud-dialog-actions) [class*="d-flex"]:not(.flex-column):not(:has(> :not(.mud-button, .button-slot))) > :is(.mud-button, .button-slot) {
        flex: 1 1 auto;
    }
}

/* F-1293, the user: "Jemanden einladen" had its buttons far down the screen, as the add dialog had before F-1273. So
   F-1273's action bar is every form's now: wherever a form is full screen (FormDialogs.ForFormAsync, below md, so also
   between 600 and 959 px), "Abbrechen" stands at the left and the primary button at the right, each as wide as its text,
   and the pair clear of the screen's lower edge and the gesture bar. A bar with one child keeps it at the right. Short
   forms do not open full screen at all (FormDialogs.ForShortFormAsync). Every FormDialog's bar carries the class. */
.mud-dialog.mud-dialog-fullscreen .mud-dialog-actions.form-dialog-actions {
    justify-content: space-between;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.mud-dialog.mud-dialog-fullscreen .mud-dialog-actions.form-dialog-actions:has(> :only-child) {
    justify-content: flex-end;
}

.mud-dialog.mud-dialog-fullscreen .mud-dialog-actions.form-dialog-actions > .mud-button {
    width: auto;
    flex: 0 0 auto;
}

/* Phone exceptions to the button rules above, each one asked for by name (F-1271, F-1273, F-1275). A block of its own,
   so the general rules stay exactly the three PhoneButtonWidthTests reads. */
@media (max-width: 599.98px) {
    /* F-1271, the user: "Exemplar ansehen" on /discover kept its text's width, because the card's action row holds the
       availability chips as well. The two buttons have a row of their own, which takes the whole line. */
    .discovery-hit-buttons {
        flex: 1 1 100%;
    }

    /* F-1273's rule for the add dialog's action bar is every full-screen form's since F-1293, above this block. */

    /* F-1275, the user: in a game's dialog "Bearbeiten", "Teilen" and "Melden" are icons in the line of "In ein Regal
       legen", which comes first and takes the rest of it. The labels stay in the markup as the icons' names, hidden
       here. !important, because F-1238's row rule above outweighs any class selector short of a copy of its own. */
    .game-detail-actions {
        flex-wrap: nowrap;
    }

    .game-detail-actions > .phone-icon-action {
        flex: 0 0 auto !important;
        order: 1;
    }

    .phone-icon-action .action-label {
        display: none;
    }

    :is(.mud-button.phone-icon-action, .phone-icon-action .mud-button) {
        min-width: 0;
        padding-left: 10px;
        padding-right: 10px;
    }

    :is(.mud-button.phone-icon-action, .phone-icon-action .mud-button) .mud-button-icon-start {
        margin: 0;
    }

    /* F-1319, the user: in "Änderungen speichern?" the third button, "Verwerfen", was cut off. The three stand one under
       the other, each the whole width, "Speichern" on top: the markup's order reversed, so it stays the reading order
       elsewhere. */
    .mud-dialog .mud-dialog-actions.unsaved-changes-actions {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 8px;
    }

    .mud-dialog .mud-dialog-actions.unsaved-changes-actions > .mud-button {
        margin-left: 0;
    }

    /* F-1428, the user: after the duplicate check "Keines davon - neuen Eintrag anlegen" is too long to stand beside
       "Zurück zum Formular". The two stand one under the other, each the whole width, the way back on top and the
       deliberate exception below it, in the markup's order. Written against the full-screen form's bar (F-1293) with the
       same weight, and after it, so it wins there. */
    .mud-dialog.mud-dialog-fullscreen .mud-dialog-actions.game-duplicate-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .mud-dialog.mud-dialog-fullscreen .mud-dialog-actions.game-duplicate-actions > .mud-button {
        margin-left: 0;
        width: auto;
    }

    /* F-1320, the user: on a phone the stars of a list card may be smaller. */
    .list-rating-stars .mud-icon-root {
        font-size: 1rem;
    }
}

/* F-1196: the (i) after a title, and the explanation it opens. The wrapper anchors the popover. F-1199: about 40
   characters a line, narrower than a phone leaves room for, because the user found the first, 320 px, too wide. */
.info-hint {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

/* F-1448, the user in stg01: the (i) beside an outlined field stood 11 px above the field's middle. The field's box
   starts 8 px below the row, the room its floating label takes, and is 56 px high; the button is 26 px. Centred on
   the box rather than on the row, because an error or a helper line under the field makes the row taller. */
.info-hint.info-hint-field {
    margin-top: calc(8px + (56px - 26px) / 2);
}

.info-hint-popover {
    max-width: min(22rem, calc(100vw - 32px));

    /* Seen in tst01: in the dark theme the popover has the dialog's own background, so a line sets it apart. */
    border: 1px solid var(--mud-palette-lines-default);
}

.info-hint-text {
    max-width: 40ch;
}

/* F-1279: one paragraph per line of the explanation, with a little room between them. */
.info-hint-text + .info-hint-text {
    margin-top: 6px;
}

/* F-1280, the user with a screenshot: on a phone an (i) at the right edge ("Wen fragen") opened its explanation centred
   under it, half outside the screen, and the page could be pushed sideways after it. On a phone the explanation spans
   the screen between the usual 16 px margins instead, wherever its (i) sits; the popover's own top stays. */
@media (max-width: 599.98px) {
    .mud-popover.info-hint-popover {
        left: 16px !important;
        right: 16px !important;
        max-width: none;
        width: auto !important;
    }

    .info-hint-popover .info-hint-text {
        max-width: none;
    }
}

/* F-1255: the explanation of the filters opens under the row its (i) sits in, on a line of its own — the rows wrap. */
.filter-rules {
    flex: 1 0 100%;
}

/* F-1255: the (i) beside "Suchen" and "Filter zurücksetzen" is no MudButton, so F-1194's buttons-only row no longer
   matches; on a phone the two buttons still share their line between them, and the (i) keeps its size. */
@media (max-width: 599.98px) {
    :is(.catalogue-filter-actions, .discover-filter-actions) > .mud-button {
        flex: 1 1 auto;
    }
}

/* F-1208: a game's description keeps the paragraphs it was written with. */
.game-detail-description {
    white-space: pre-line;
}

/* F-1208: a card's description excerpt, at most three lines. */
.game-card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* F-1228, decided with the user: a skeleton shows only when the wait is long enough to notice. Below about 300 ms a load
   reads as instant, and a skeleton that flashes for a fraction of that is flicker rather than a hint. Every skeleton
   starts invisible, keeping its place so nothing moves, and fades in after the delay; a page that answers sooner never
   shows it. The one place to tune the delay is the custom property. The pulse variant keeps its own animation after
   the fade, which is why it is listed again rather than overridden. Placeholders for one's own pending writes
   (PendingCard, E11 rule 3) are not skeletons and stay immediate. */
:root {
    --skeleton-delay: 300ms;
    --skeleton-fade: 200ms;
}

@keyframes skeleton-appear {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.mud-skeleton {
    animation: skeleton-appear var(--skeleton-fade) ease-out var(--skeleton-delay) both;
}

.mud-skeleton.mud-skeleton-pulse {
    animation: skeleton-appear var(--skeleton-fade) ease-out var(--skeleton-delay) both, mud-skeleton-keyframes-pulse 1.5s ease-in-out 0.5s infinite;
}

/* F-1284: everybody's rating as a row of stars filled to the average, the last one in part, like IMDb: the outlined
   row, and the filled row over it cut to --fill. The labels of the two rows share a width so the stars line up. */
.game-rating-label {
    min-width: 8.5rem;
}

.game-rating-average {
    position: relative;
    display: inline-flex;
    line-height: 0;
}

.game-rating-average-empty,
.game-rating-average-full {
    display: inline-flex;
    white-space: nowrap;
}

.game-rating-average-full {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--fill);
    overflow: hidden;
}

/* F-1283: the logo before the name, the pair centred on one line. */
.top-bar-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.top-bar-logo {
    display: block;
    flex-shrink: 0;
}

/* F-1268: "SharedShelf - Beta" in the top bar, the suffix a little lighter than the name. */
.top-bar-beta {
    font-weight: 400;
    opacity: 0.8;
    white-space: nowrap;
}

/* F-1343: the wrapper between a list tile's slot and its card passes the row's height on. */
.shelf-card-progress,
.shelf-card-progress > .in-place-progress-body {
    height: 100%;
}

/* F-1346: a picker's centered variant draws its overlay inside the form it was opened from, and the form's dialog is scrollable
   and transformed, so the calendar was cut off at the card (an iPhone's short screen showed it first). While one is open, the
   form lets it reach the whole screen. */
.mud-dialog:has(.mud-picker .mud-overlay-dialog),
.mud-dialog-content:has(.mud-picker .mud-overlay-dialog) {
    overflow: visible !important;
    transform: none !important;
    animation: none !important;
}


/* F-1349: the order of a shelf, at the end of the line with the count, and as wide as its longest choice. */
.mud-input-control.shelf-sort {
    margin-left: auto;
    flex: 0 0 13rem;
    max-width: 13rem;
}

/* F-1350: a copy's title with its two buttons beside it, and on a phone, where a long title squeezed them, under it. */
.copy-dialog-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.copy-dialog-heading {
    flex: 1 1 auto;
    min-width: 0;
}

.copy-dialog-head-actions {
    flex: 0 0 auto;
}

@media (max-width: 599.98px) {
    .copy-dialog-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .copy-dialog-heading {
        width: 100%;
    }
}

/* F-1359, beta feedback: a dialog that fills the screen of a phone appeared by zooming in from half its size, and the
   zoom read as the dialog growing. It fades in instead, already at its size. */
.mud-dialog.mud-dialog-fullscreen {
    animation: dialog-fade-in .12s ease-out both;
}

@keyframes dialog-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* F-1359: a rating row keeps its height while its numbers are still on their way, so nothing below it moves. */
.game-rating-row-pending {
    min-height: 40px;
}

/* F-1441, the user with a screenshot: on a phone a long game name ran into the "withdraw" button beside it. A card is a
   row with the button at its end from tablet width up, where there is room; on a phone the button moves under the game,
   as wide as the card. */
.game-night-commitment {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    overflow-wrap: anywhere;
}

.game-night-commitment-withdraw {
    flex: none;
}

@media (max-width: 599.98px) {
    .game-night-commitment {
        flex-direction: column;
        align-items: stretch;
    }

    .game-night-commitment-withdraw {
        width: 100%;
    }
}

/* F-1443, the user: from tablet width up "Anmelden" and "Konto anlegen" spanned the whole page. They keep their text's
   width, at least 240 px each so the two line up under each other; on a phone F-1194's column rule stretches them
   across the screen as before. */
.sign-in-prompt > .mud-button {
    min-width: 240px;
}

/* F-1444: the visitor's start page. From 600 px up the two ways in stand side by side under the welcome;
   on a phone they stay one under the other, across the screen (F-1194). A total is a number over its label. */
@media (min-width: 600px) {
    .visitor-sign-in {
        flex-direction: row !important;
        justify-content: center;
    }
}

.visitor-figure,
.visitor-step {
    height: 100%;
}

.visitor-figure-value {
    font-weight: 600;
    line-height: 1.2;
}

/* F-1444: on a phone a step of "So funktioniert's" puts its icon beside the title and the sentence instead of above
   them, so the four steps take half the height. */
@media (max-width: 599.98px) {
    .visitor-step {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 12px;
        align-items: start;
    }

    .visitor-step > .mud-icon-root {
        grid-row: span 2;
        margin-bottom: 0 !important;
    }
}
