/*
 * Montserrat, self-hosted - as the legacy installation does, and for the same reason the
 * Flockler embedding was reworked: no request from the visitor's browser to a third party.
 *
 * Five files, not ninety. The legacy stylesheet declares 18 faces (9 weights x 2 styles)
 * with five formats each, the "bulletproof" stack from the webfont helper. Measured what
 * the browser actually fetches on /vorteile, /eon and /lidl-plus: the same five woff2
 * files every time - 300, 400, 400 italic, 700, 700 italic. eot, ttf and svg serve IE8
 * and pre-Chrome Android.
 *
 * Taken from the customer's own installation and verified by MD5, so the glyph metrics are
 * identical to the live page. That matters: every height on this page follows from them.
 *
 * Montserrat is licensed under the SIL Open Font License 1.1 - see fonts/montserrat/OFL.txt.
 *
 * Two deliberate differences from the original declaration:
 *  - `font-display: swap`, which the original omits. It does not change the final metrics,
 *    only what is readable while the font loads.
 *  - `local('')` is kept. It looks pointless and is not: it stops the browser from using a
 *    Montserrat the visitor happens to have installed, which would be a different cut and
 *    would make the page measure differently on different machines.
 */

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: local(''), url('../fonts/montserrat/montserrat-v25-latin-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local(''), url('../fonts/montserrat/montserrat-v25-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local(''), url('../fonts/montserrat/montserrat-v25-latin-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: local(''), url('../fonts/montserrat/montserrat-v25-latin-italic.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: local(''), url('../fonts/montserrat/montserrat-v25-latin-700italic.woff2') format('woff2');
}

/*
 * vorteile.semmel.de - frontend.
 *
 * Every value here was read out of the live page with getComputedStyle and
 * getBoundingClientRect, at 1440, 1280 and 1100 px. None of it is derived from the old
 * stylesheet: that one is a 56 KB framework build in which the rules that matter are
 * buried under ones that do not apply.
 *
 * The breakpoints are the legacy ones - 1281, 1025, 769 - because the layout changes at
 * them. Measuring at a breakpoint is the worst place to measure, so the numbers below are
 * taken between them.
 */

:root {
    /* Measured, not taken from a brand sheet: the live page serves rgb(213, 16, 48). */
    --semmel-red: #d51030;
    --semmel-ink: #2d2f34;

    /*
     * Three colours, not one, because the promotion's own colour does not reach all three
     * places. Measured on /eon, whose ColorCode is rgb(34, 34, 34), against
     * /berlin-vorteile, which has none:
     *
     *   discount band + ticket button   eon: rgb(34, 34, 34)    berlin: rgb(213, 16, 48)
     *   top bar                         eon: rgb(34, 34, 34)    berlin: rgba(0, 0, 0, .8)
     *   footer                          eon: rgb(213, 16, 48)   berlin: rgb(213, 16, 48)
     *
     * So the footer keeps the brand red on every page. Overriding one variable for the
     * whole page painted the footer in the partner's colour on all 21 pages that carry
     * one - and left the bar black, where the original paints it opaque.
     */
    --semmel-accent: var(--semmel-red);
    --semmel-bar: rgba(0, 0, 0, 0.8);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    /* Measured: "Montserrat, sans-serif, Arial" at 16px, colour rgb(45, 47, 52). */
    font-family: Montserrat, sans-serif, Arial;
    font-size: 16px;
    color: var(--semmel-ink);
    background-color: #fff;
}

.container {
    width: 100%;
    max-width: 1024px;
    margin-inline: auto;
}

@media (min-width: 1281px) {
    .container {
        max-width: 1280px;
    }
}

/* --- a topic block ------------------------------------------------------------ */

/*
 * Measured at 1440: block 1280 wide, row_one 320 (25 %), row_two 960 (75 %), the list
 * inside row_two indented by 30.
 */
.rabatt_listing {
    display: flex;
    margin-bottom: 30px;
}

.rabatt_listing .row_one {
    flex: 0 0 25%;
    max-width: 25%;
}

.rabatt_listing .row_two {
    flex: 0 0 75%;
    max-width: 75%;
    padding-left: 30px;
}

/* --- the tour card ----------------------------------------------------------- */

/*
 * The picture box stays, and it stays empty.
 *
 * Measured across eight live pages and 122 blocks: not a single card carries an image.
 * Every one holds a transparent spacer in a 320x184 box, so the dark title panel sits on
 * nothing. Rebuilt as it is rather than quietly dropped - whether those pictures should
 * exist is a question for Semmel, and dropping the box would change the layout.
 */
.rabatt_listing .card {
    position: relative;
    aspect-ratio: 320 / 184;
    background-color: #fff;
}

.rabatt_listing .card_image {
    /*
     * Fills the card, which has the picture's own ratio anyway: 1200/690 and 320/184 are
     * both 1.739, so `cover` crops nothing. It is in the layer below the title panel,
     * which is positioned on top of it.
     */
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rabatt_listing .card .title {
    /*
     * Out of the flow and anchored to the bottom, so the card keeps its aspect height even
     * when the panel is taller than it.
     *
     * One block out of 25 shows the difference, and only at 1100: the "Wahnsinn" card has
     * a six-line title, 108 px of text in a 148 px panel, inside a card whose aspect box is
     * 147.188. Live lets the panel overflow its card upwards and adds only the card's
     * 147.188 to the row. With the panel in the flow the card grew to 148 instead, which is
     * where a 0.812 px difference in the page height came from.
     *
     * At 1440 and at 390 every panel fits and nothing moves - which is why this took the
     * whole-page comparison to find.
     */
    position: absolute;
    inset-inline: 0;
    inset-block-end: 0;
    /* Measured at 1440 and 390: centred at both. Found late, because comparing box
       geometry says nothing about where the text sits inside the box. */
    text-align: center;
    /* Measured: rgba(0, 0, 0, 0.75), padding 20, 94 tall at 1440. */
    background-color: rgba(0, 0, 0, 0.75);
    padding: 20px;
    color: #fff;
}

@media (min-width: 769px) {
    /*
     * Above the breakpoint the title panel is **invisible until the card is hovered**.
     * Measured: opacity 0 at 769 and wider, 1 under the pointer, `all 0.3s ease`. At 768
     * and below it stays visible, because a phone has no hover and the panel is the only
     * place the tour's name appears.
     *
     * 769 is the same breakpoint as everywhere else in this file.
     *
     * This went unnoticed for two days of measuring: a box with `opacity: 0` has the same
     * geometry as a visible one, and I never asked for the opacity. Fourth time the same
     * lesson - the property that holds the answer is the one nobody queried.
     */
    .rabatt_listing .card .title {
        opacity: 0;
        transition: opacity 300ms ease;
    }

    .rabatt_listing .card:hover .title {
        opacity: 1;
    }

    /*
     * Unless there is no picture. Then the panel is all the card has, and hiding it would
     * leave an empty white rectangle. Does not occur on the live pages - every card there
     * carries an artwork - so this is our rule for our own edge case.
     */
    .rabatt_listing .card:not(.has_image) .title {
        opacity: 1;
    }
}

@media (min-width: 769px) and (prefers-reduced-motion: reduce) {
    .rabatt_listing .card .title {
        transition: none;
    }
}

.rabatt_listing .card .title .name {
    /* Measured: 0.7px. Not inherited from anywhere - the page sets letter-spacing per
       element, and this heading is the single element on the page carrying 0.7. */
    letter-spacing: 0.7px;
    /* Measured: 14px, uppercase, weight 400, white, no margin - 54 tall over three
       lines inside a 20px padded box, giving the 94 the original has. */
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    margin: 0;
}

.rabatt_listing .rabatt_hint {
    text-align: center;
    /* Measured: #d51030, padding 15, 20px white, 54 tall. */
    background-color: var(--semmel-accent);
    color: #fff;
    font-size: 20px;
    padding: 15px;
}

/* --- month group ------------------------------------------------------------- */

.card_month_group {
    display: flex;
    /*
     * No align-items: the default `stretch` is what the original uses, and it is visible:
     * the toggle measures 44 tall there against 19 of its own content. Setting
     * flex-start looked harmless and made every column content-height instead of
     * row-height.
     */
    padding-bottom: 15px;
}

.card_month_group .month {
    /*
     * Content-sized and shrinkable, not a fixed 115px.
     *
     * 115 is what "Mai 2027" happens to need at 24px, which made a fixed width look right
     * at 1440 and at 390 - and wrong at 320, where the original shrinks the label to 97
     * and lets it wrap onto two lines (73 tall against 44).
     *
     * The 15px sits on the label as well as on the group: 44 for the label (29 of text
     * plus 15) inside a group of 59.
     */
    flex: 0 1 auto;
    font-size: 24px;
    padding-bottom: 15px;
    /*
     * Uppercase, and this one line was worth 435 pixels.
     *
     * The label reads "MÄRZ 2027" on the live page, not "März 2027" - measured, after the
     * header image made it possible to compare the whole page height instead of single
     * elements. At 1440 nothing shows: both spellings fit on one line and the group is 59
     * tall either way. At 390 the uppercase label is 14 px wider, which over-constrains
     * the flex line, which wraps the label onto two lines **and** breaks the toggle's
     * text - 29 px per wrap, 10 of the 25 blocks on /eon, 435 px of page.
     *
     * How it was pinned down rather than guessed: the rendered box is 75.06 wide, while
     * the same string measured on a canvas in the element's own font is 61.10 as written
     * and 75.05 in uppercase. Our own label measured exactly 61.11.
     */
    text-transform: uppercase;
}

.card_month_group .month .name {
    /*
     * Bold, measured: the month name is 700 and the year 300 - two different cuts in one
     * label. It showed up as 3 pixels of width, and 3 pixels was not the point: the month
     * is meant to stand out against the year, and at 400/400 it does not.
     */
    font-weight: 700;
}

.card_month_group .month .year {
    font-weight: 300;
    margin-left: 5px;
}

.card_month_group .toggle {
    /*
     * Pushed right by the free space rather than stretched. At 1440 that resolves to the
     * 194px the original shows at the right edge, at 390 to a 21px gap, and at 320 to no
     * gap at all - which is exactly what the original does at all three widths. One rule
     * instead of three.
     */
    flex: 0 1 auto;
    margin-left: auto;
}

.card_month_group .toggle button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
}

.card_month_group .toggle .btn-text {
    /*
     * 6px each side, measured. Worth writing down how this was nearly got wrong: the label
     * renders 177.98 against a natural text width of 165.98, and a probe with
     * `letter-spacing: 0.75px` reproduced 177.98 exactly - because 16 characters times
     * 0.75 is also 12. A number that matches is not a cause; the padding is.
     */
    padding: 0 6px;
}

.card_month_group .toggle .btn-icon {
    /* Measured: exactly 16 wide. */
    display: inline-flex;
    width: 16px;
}

/*
 * The list of dates under a month group.
 *
 * `height` is animated by the script, which sets a pixel value and clears it again when
 * the transition ends - the transition itself lives here, where the rest of the design is.
 *
 * 400 ms and ease-out are measured off the live page rather than taken from jQuery's
 * documentation: sampled per frame, the original covers 50 % of the distance in 34 % of
 * the time and the last pixel lands 430 ms after the first one moves.
 *
 * `overflow: hidden` is what makes a half-open list clip instead of spill.
 */
.dates {
    overflow: hidden;
    transition: height 400ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
    /* Someone who has asked their system for less movement gets none. */
    .dates {
        transition: none;
    }
}

/* --- a date row -------------------------------------------------------------- */

/*
 * Measured at 1440 and 1100. heading is 140 px at both, the button 233 px at both.
 * body is `flex: 1 1 0%` with 15 px of padding each side; footer carries `flex: 2 1 0%`
 * above 1281 and falls back to its content width below - which is why the ticket button
 * sits far from the venue on a wide screen and close to it on a narrow one.
 */
.date_row {
    /*
     * 0.8px, measured on every text element inside a date row - 210 elements on the page
     * carry it, while body, container, block and the discount band are all `normal`.
     *
     * This was the last 23 of the missing 37 pixels, and it took finding: the venue name
     * "Messe und Congress Centrum Halle Münsterland" is the same 44 characters on both
     * sides, in the same 253px box, at the same 18px - and wrapped onto three lines live
     * against two here. Its natural width is 478 against 442, which is 0.8px times 44
     * characters. Letter spacing changes where text breaks, so it changes heights.
     */
    letter-spacing: 0.8px;
    display: flex;
    /* Default `stretch`, as the original: its heading and footer are 42 tall - the row's
       content height - not the 37 and 30 their own content would give. */
    padding: 10px 0 30px;
    /*
     * A 1px transparent top border, measured: rgba(0, 0, 0, 0) at 1px. It adds nothing
     * visible and exactly one pixel of height - 1 + 10 + 42 + 30 = 83, which is what the
     * original row measures. Kept because fifteen rows make fifteen pixels, and a block
     * that is fifteen pixels short shifts everything below it.
     */
    border-top: 1px solid transparent;
}

.date_row .heading {
    flex: 0 1 auto;
    width: 140px;
}

.date_row .date_from {
    /* Measured: 18px over 12px. */
    font-size: 18px;
}

.date_row .weekday_time {
    font-size: 12px;
}

.date_row .body {
    flex: 1 1 0%;
    padding: 0 15px;
}

.date_row .places {
    /* Measured: margin-bottom 5px on the venue block. It is the whole of the 6px the row
       was short - the rest was rounding. */
    margin-bottom: 5px;
}

.date_row .location {
    font-size: 18px;
}

.date_row .place {
    font-size: 12px;
}

.date_row .footer {
    flex: 0 1 auto;
    display: flex;
    justify-content: flex-end;
}

@media (min-width: 1281px) {
    .date_row .footer {
        flex: 2 1 0%;
    }
}

.date_row .ticketlink {
    /*
     * Measured: the legacy wrapper is 248 wide around a 233 button - 15 px of padding.
     * It only shows below 1281, where the footer is sized by its content.
     *
     * flex, not block: around an inline-flex anchor a block forms a line box and picks up
     * the font's descender space, which made the footer 30 tall against the original's 24
     * on mobile. The six pixels then showed up in every row and in the block height.
     */
    display: flex;
    padding-left: 15px;
}

.date_row .btn {
    /*
     * Sized by its content, as the original is - not by the numbers the original was
     * measured at. `.events_listing .footer .ticketlink` in the legacy theme sets only
     * `padding: 8px 20px; font-size: 14px; line-height: 1` and lets the box follow, which
     * works out to 232.844x30 here and 192.156x24 below 769.
     *
     * Those two were written down as `233x30` and `192x24` and frozen as width/height.
     * Desktop rounded up and kept 0.156px of slack; mobile rounded down and lost it, so
     * the label no longer fitted on one line, wrapped to two, and spilled 3px out of a
     * box that could not grow. Live from the cut-over until 04.12.2026.
     *
     * `align-self` is not decoration. The anchor is a flex item of `.ticketlink`, so
     * without a definite height it stretches to the row - 42 instead of 30 on the
     * desktop, measured. The fixed height was hiding that; taking it away uncovers it.
     *
     * `white-space: nowrap` is what replaces the fixed width as a floor. A flex item does
     * not shrink below its min-content size, and with nowrap that is the whole label - so
     * `.ticketlink` has to make room instead of squeezing the button, which is exactly
     * what the definite width used to achieve. Without it, measured between about 769 and
     * 830: the wrapper's own 15px of padding pushes the available width under 232.844 on
     * the row with the longest venue name, the label breaks, and the button goes to 44.
     *
     * The legacy rule carries nowrap commented out, and this deviates from it knowingly.
     * That rule has no `.ticketlink` flex wrapper around it to be squeezed by.
     */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    padding: 8px 20px;
    line-height: 1;
    white-space: nowrap;
    background-color: var(--semmel-accent);
    color: #fff;
    font-size: 14px;
    text-decoration: none;
}

/* --- below 769: everything stacks ---------------------------------------------
 *
 * The legacy breakpoint, measured at 390 and 320. This is not the desktop layout with
 * narrower columns - the row stops being a row:
 *
 *   - block, row_one and row_two all become full-width blocks, and row_two drops its
 *     30px indent
 *   - the date row stacks date over venue over button, and `.body` swaps its padding
 *     from `0 15px` to `15px 0`
 *   - the ticket button goes to 12px with 6px/12px of padding and loses the 15px
 *     wrapper padding
 *   - 30px of breathing room left and right, which the container carries
 */
@media (max-width: 768px) {
    /*
     * Only the content container, not every one: the footer's container carries no
     * horizontal padding on mobile - the 60px sit on the copyright wrapper instead.
     * Applying it to `.container` put 30px in the footer and let the copyright line wrap
     * onto three lines.
     */
    .site_content > .container {
        padding-inline: 30px;
    }

    .rabatt_listing .card .title {
        /*
         * The panel is tighter on a phone, measured at 390: 10px of padding against 20,
         * which makes it 50 tall where the desktop one is 94.
         */
        padding: 10px;
    }

    .rabatt_listing .card .title .name {
        /* 12px and 0.6 of letter spacing, against 14 and 0.7 above the breakpoint. */
        font-size: 12px;
        letter-spacing: 0.6px;
    }

    .rabatt_listing,
    .rabatt_listing .row_one,
    .rabatt_listing .row_two {
        display: block;
        max-width: 100%;
    }

    .rabatt_listing .row_two {
        /*
         * The same element swaps its padding at the breakpoint, measured: `0 0 0 30px` on
         * the desktop - the indent - against `30px 0` on mobile. Not "the indent goes
         * away": it becomes 30px of air above and below the list, which is where 60 of
         * the missing pixels were.
         */
        padding: 30px 0;
    }

    .date_row {
        display: block;
    }

    .date_row .heading,
    .date_row .body,
    .date_row .footer {
        width: 100%;
    }

    .date_row .body {
        /* Measured: 15px 0 on mobile against 0 15px on the desktop. */
        padding: 15px 0;
    }

    .date_row .ticketlink {
        padding-left: 0;
    }

    .date_row .footer {
        /* Left, not right: measured, the button starts at the row's left edge on mobile
           and at its right edge on the desktop. */
        justify-content: flex-start;
    }

    .date_row .btn {
        /* 6px/12px at 12px, which is what makes the box 192.156x24. See the base rule
           for why the width and the height are not written down here. */
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* --- the header image --------------------------------------------------------
 *
 * Measured: the box carries 20 px of padding at the bottom and nothing else, and the
 * image fills the container's width at its own aspect ratio. At 1440 that is 1280x512 on
 * /eon, at 390 330x132 - but the ratio is per file, not per page: the 34 originals run
 * from 1.5 to 3.53, so no aspect-ratio rule can stand here. The width and height
 * attributes on the img carry it instead.
 */

.header_image {
    padding-bottom: 20px;
}

.header_image img {
    display: block;
    width: 100%;
    height: auto;
}

/*
 * Below the breakpoint a page may serve a second, squarer file, and then the width and
 * height attributes on the img describe the wrong box - they are the desktop file's.
 *
 * `aspect-ratio` wins over the attributes while `height` is auto, so the property set
 * inline by the template reserves the right height for the narrow file. The fallback is
 * `auto`, which is the attributes again: a page without a mobile image behaves exactly as
 * before, and this rule has no effect at all on 43 of the 44.
 */
@media (max-width: 768px) {
    .header_image img {
        aspect-ratio: var(--header-mobile-ratio, auto);
    }
}

/* --- heading and intro -------------------------------------------------------
 *
 * Measured at 1440 and 390 on /eon, /saisonpass and /berlin-vorteile. Both carry no
 * margin at all: the heading's box ends exactly where the intro's begins, and the intro's
 * ends exactly where the first block begins. The air between the paragraphs is made of
 * empty `<p>` elements in the stored text, not of spacing rules.
 */

h1.name {
    /* Measured: 24px, weight 400, no margin, line-height normal - 29 tall at 1440 and at
       390. The original renders this as an h2 and keeps an empty h1 on `display: none`. */
    font-size: 24px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: normal;
    margin: 0;
}

.intro p,
.intro div {
    margin: 0;
}

.intro ul {
    /* Measured: no margin, 28px of padding on the left, disc markers. */
    margin: 0;
    padding: 0 0 0 28px;
}

.intro ul li {
    margin: 0;
    padding: 0;
}

.intro ol {
    /*
     * The ordered list is the odd one out, and it is the original that is odd: 16px of
     * margin above and below, no indent, and `list-style-type: none` on its items - so an
     * ordered list renders without its numbers. One promotion uses one (/gapremium);
     * rebuilt as measured rather than silently numbered.
     */
    margin: 16px 0;
    padding: 0;
}

.intro ol li {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.intro sup,
.intro sub {
    /*
     * Not the browser's superscript. The original resets `vertical-align` to baseline and
     * the line-height to 0, then shifts the box with `position: relative` - 6px up for
     * sup, 3px down for sub, both at 12px.
     *
     * This nearly went in wrong: a probe that read font-size, line-height and
     * vertical-align said "baseline, no shift", because it never asked for `position` and
     * `top`. The whole effect lives in the two properties the probe left out. 10 sups and
     * 9 subs across the intros depend on it.
     */
    font-size: 12px;
    line-height: 0;
    vertical-align: baseline;
    position: relative;
}

.intro sup {
    top: -6px;
}

.intro sub {
    top: 3px;
}

/*
 * No rules for strong, em, u, br: measured 700, italic and underline on the live page,
 * which is what the browser's own defaults give against a 400 parent. Writing them down
 * would only look like knowledge.
 */

/* --- the page frame ----------------------------------------------------------
 *
 * Measured at 1440, 1100, 390 and 320. Two different bars, one at each end of the
 * breakpoint:
 *
 *   - Above 769: an 80px fixed band carrying the logo, left, and no menu - both of the
 *     original's nav elements measure 0x0 on these pages.
 *   - Below 769: a 48px transparent bar in the flow with the logo centred. The original
 *     also has a burger there; it opens a menu of two unlabelled links to www.semmel.de,
 *     so it is left out rather than rebuilt as an ornament.
 *   - In the footer both the breadcrumb and the address block carry `display: none` on
 *     these pages. What shows is one 10px line, centred.
 */

.site_bar {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    height: 80px;
    background-color: var(--semmel-bar);
    display: flex;
    align-items: center;
    /* Above the content, which scrolls under it. */
    z-index: 100;
}

.site_bar .container {
    /*
     * The bar's container is not the content's container. Measured: at 1440 both are
     * 1280 wide and the logo sits at x=95 (80 + 15) - but at 1100 the content is capped
     * at 1024 and starts at x=38, while the bar's is full width and the logo sits at 15.
     * So this one keeps the 1280 cap above 1281 and drops to 100% below it, where the
     * content's drops to 1024.
     *
     * Taking the content container's numbers for the bar put the logo 38px off at 1100
     * and exactly right at 1440, which is the kind of agreement that hides a mistake.
     */
    display: flex;
    align-items: center;
    max-width: 100%;
    padding-inline: 15px;
}

@media (min-width: 1281px) {
    .site_bar .container {
        max-width: 1280px;
    }
}

.site_logo {
    /*
     * Measured at 1440: the link is 140x59 at (95, 10.5) and the image 116x43 at
     * (107, 18.5). 12px of padding each side and 8px top and bottom give both boxes from
     * the image's own height.
     */
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
}

.site_logo img {
    display: block;
    height: 43px;
    width: auto;
}

.mobile_bar {
    /* Above the breakpoint this bar does not exist: measured 0x0. */
    display: none;
}

.site_content {
    /* The bar is fixed, so the content has to start below it on its own. */
    padding-top: 80px;
}

.site_content > .container {
    /* Measured: the paragraph carries `60px 0` on the desktop and `30px` all round on
       mobile - so the horizontal 30 only exists below the breakpoint. */
    padding-block: 60px;
}

.site_footer {
    /* The brand red on every page, including the 21 that carry a partner colour. */
    background-color: var(--semmel-red);
    color: #fff;
    /* Measured: 43 tall at 1440 - 15 above the 13px line and 15 below. */
    padding-block: 15px;
}

.site_footer .copyright_line {
    /* Measured: 10px, white, centred, the line itself 13 tall. */
    display: flex;
    justify-content: center;
    font-size: 10px;
    /* The links sit beside the copyright on one line and drop below it when they no
       longer fit - which they do not below the breakpoint, where the box is 270 wide. */
    flex-wrap: wrap;
    align-items: center;
    gap: 0 12px;
}

.site_footer .footer_links {
    display: flex;
    gap: 12px;
}

.site_footer .footer_links a {
    color: inherit;
    /* Underlined from the start rather than on hover: at 10px on red, a link that looks
       like the sentence next to it is not a link anybody finds. */
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site_footer .footer_links a:hover,
.site_footer .footer_links a:focus-visible {
    text-decoration: none;
}

@media (max-width: 768px) {
    .site_bar {
        /* The desktop band does not exist below the breakpoint: measured 0x0 there. */
        display: none;
    }

    .mobile_bar {
        /*
         * In the flow, not fixed - measured `position: relative` at 390, with the content
         * starting at 48 rather than underneath. So no padding-top here either.
         */
        display: flex;
        align-items: center;
        /*
         * Centred outright. The original gets the same position out of three flex
         * children with `space-between` where the third is zero-width - a construction
         * that only makes sense with the burger we no longer have.
         */
        justify-content: center;
        height: 48px;
        /* `relative` as measured, and not decoration: without it the z-index below would
           do nothing at all. */
        position: relative;
        /* Measured: 9999, and nothing on these pages overlaps it. */
        z-index: 9999;
    }

    .site_content {
        padding-top: 0;
    }

    .mobile_logo,
    .mobile_logo img {
        /* Measured: 48x48 at x=195 in a 390 viewport. The x is not a rule - three flex
           children with `space-between`, the last one zero-width. */
        display: block;
        width: 48px;
        height: 48px;
    }

    .site_content > .container {
        padding-block: 30px;
    }

    .site_footer {
        /*
         * Measured on the original: 28 tall - the line plus 15 below it and nothing above.
         *
         * Ours is 51, measured at 390, and the links are why: in a 270-wide box the
         * copyright fills the line and the two links wrap onto a second one. 13 + 13 + 15
         * is 41; the 10 above are added because without them the red bar would start
         * directly on the first line, which the one-line version never had to deal with.
         *
         * Worth stating plainly rather than tuning away: the bar is 23 taller than the
         * original's on a phone, and that is the price of having the two links at all.
         */
        padding-block: 10px 15px;
    }

    .site_footer .container {
        /*
         * The 60px belong to the wrapper, not to the line: with them on the line its box
         * stayed the full width and the text wrapped onto two lines, which made the bar
         * 41 tall instead of 28. Measured `0 60px 15px` on the original's wrapper.
         */
        padding-inline: 60px;
    }

    .site_footer .copyright {
        /*
         * The other way round from the desktop: there the line is a content-width box
         * (242) centred by its parent, here it fills the parent's 270 and centres the text
         * inside itself. Same pixels on screen, different box - which is why the box was
         * 14px off at 390 while the text looked right.
         */
        width: 100%;
        text-align: center;
    }
}
