/*
 * Landing page template ("Landing page (Christmas letter)", vega-landing-page.php).
 *
 * The page is built from core blocks only; the look comes from the block
 * styles registered in inc/blocks.php (class "is-style-vega-..."):
 *
 *   Group      vega-snow     red snowflake background (header, order band)
 *   Group      vega-red      plain dark red section (reviews)
 *   Group      vega-reviews  review carousel, one Quote block per review
 *   Paragraph  vega-title-frame, vega-subtitle, vega-subline
 *   Heading    vega-subtitle
 *   List       vega-stars    two columns with star icons
 *   Button     vega-order    red order button
 *
 * Everything else (h2/h3, paragraphs, "Media & Text", "Details") is styled
 * by element. Every rule is written for both the page (.vega-landing) and
 * the block editor (.editor-styles-wrapper), where this file is loaded only
 * for pages using the template, so the editor shows the real design.
 *
 * Self-contained on purpose: the header values (title frame, subtitle,
 * spacing) mirror the configurator's ".xmasletters-main .header" rules in
 * the vega-configurator plugin (assets/css/style.scss) - keep both in sync.
 */

@font-face {
    font-family: 'dancing script';
    src: url('../fonts/dancingscript-regular.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'dancing script';
    src: url('../fonts/dancingscript-bold.ttf') format('truetype');
    font-weight: bold;
    font-display: swap;
}

:is(.vega-landing, .editor-styles-wrapper) {
    --vl-red: #a51715;
    --vl-dark-red: #8a2321;
    --vl-light-red: #f1e4e4;
    --vl-text: #555555;
    --vl-heading-text: #454545;
    --vl-line: #c97c7b;
    --vl-white: #ffffff;
    --vl-georgia: georgia, verdana, arial, helvetica, sans-serif;
    --vl-verdana: verdana, arial, helvetica, sans-serif;
    --vl-dancing: 'dancing script', cursive;
    --vl-width: 960px;
    --vl-gutter: 20px;

    color: var(--vl-text);
    background-color: var(--vl-white);

    font-family: var(--vl-verdana);
    font-size: 15px;
    line-height: 1.6;
}

.vega-landing {
    display: block;
    /* The theme's #snow_bottom pulls itself 215px up over the content. */
    padding-bottom: 160px;
}

:is(.vega-landing, .editor-styles-wrapper) *,
:is(.vega-landing, .editor-styles-wrapper) *::before,
:is(.vega-landing, .editor-styles-wrapper) *::after {
    box-sizing: border-box;
}

/* The theme sets margins, italics, colors and sizes on bare elements. */
:is(.vega-landing, .editor-styles-wrapper) :is(p, h1, h2, h3, ul, figure, blockquote) {
    margin: 0;
    padding: 0;
}

:is(.vega-landing, .editor-styles-wrapper) p {
    font-family: var(--vl-verdana);
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: 0.05em;
    color: inherit;
}

:is(.vega-landing, .editor-styles-wrapper) p + p {
    margin-top: 1em;
}

:is(.vega-landing, .editor-styles-wrapper) img {
    display: block;
    max-width: 100%;
    height: auto;
}

:is(.vega-landing, .editor-styles-wrapper) a {
    color: var(--vl-dark-red);
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.vega-landing :is(a, button, summary):focus-visible {
    outline: 3px solid var(--vl-dark-red);
    outline-offset: 3px;
}

/* Same as the configurator's skip link (style.scss). */
.skip-link {
    position: absolute;
    top: -60px;
    left: 0;
    z-index: 100002;

    padding: 10px 20px;

    color: #ffffff;
    background-color: #8a2321;

    font-family: verdana, arial, helvetica, sans-serif;
    font-size: 14px;
    text-decoration: none;

    transition: top 200ms linear;
}

.skip-link:focus {
    top: 0;
}

/* ---------- Sections (top-level groups) ---------- */

.vega-landing > .wp-block-group,
.editor-styles-wrapper .is-root-container > .wp-block-group {
    padding: 55px var(--vl-gutter) 70px;
}

/* Content width: on the page the theme-less group markup has an inner
 * container, in the editor the blocks are direct children. */
.vega-landing > .wp-block-group > .wp-block-group__inner-container,
.editor-styles-wrapper .is-root-container > .wp-block-group > * {
    max-width: var(--vl-width);
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Headings ---------- */

:is(.vega-landing, .editor-styles-wrapper) h2 {
    color: var(--vl-dark-red);

    font-family: var(--vl-georgia);
    font-size: 36px;
    font-style: italic;
    font-weight: normal;
    line-height: 1.25;
    letter-spacing: 0.08em;
    text-align: center;
}

:is(.vega-landing, .editor-styles-wrapper) .is-style-vega-subline {
    margin-top: 6px;
    margin-bottom: 55px;

    color: var(--vl-dark-red);

    font-family: var(--vl-georgia);
    font-size: 23px;
    line-height: 1.35;
    letter-spacing: 0.06em;
    text-align: center;
}

:is(.vega-landing, .editor-styles-wrapper) h3 {
    margin-bottom: 8px;

    color: var(--vl-dark-red);

    font-family: var(--vl-georgia);
    font-size: 23px;
    font-style: normal;
    font-weight: bold;
    line-height: 1.3;
    letter-spacing: 0.07em;
}

:is(.vega-landing, .editor-styles-wrapper) p + h3 {
    margin-top: 28px;
}

:is(.vega-landing, .editor-styles-wrapper) .is-style-vega-subline + h3 {
    margin-top: 0;
}

/* Even line lengths for headings instead of a lonely last word
 * ("Stimmen zum Brief / vom / Weihnachtsmann"); older browsers just wrap. */
:is(.vega-landing, .editor-styles-wrapper) :is(h2, h3, .is-style-vega-subline, .wp-block-details summary) {
    text-wrap: pretty;
}

/* ---------- Red sections ---------- */

/* Group style "Roter Hintergrund" shares its class (is-style-vega-red) with
 * the Button style "Rot" (inc/blocks.php) - always scoped to .wp-block-group,
 * otherwise a red button on this page got the square section background. */
:is(.vega-landing, .editor-styles-wrapper) .wp-block-group.is-style-vega-red {
    color: var(--vl-white);
    background-color: var(--vl-dark-red);
}

.vega-landing > .wp-block-group.is-style-vega-red,
.editor-styles-wrapper .is-root-container > .wp-block-group.is-style-vega-red {
    padding-top: 30px;
    padding-bottom: 58px;
}

:is(.vega-landing, .editor-styles-wrapper) .wp-block-group:is(.is-style-vega-red, .is-style-vega-snow) :is(h2, .is-style-vega-subline, a:not(.wp-block-button__link)) {
    color: var(--vl-white);
}

:is(.vega-landing, .editor-styles-wrapper) .wp-block-group.is-style-vega-red .has-text-align-center {
    margin-top: 38px;
    text-align: center;
}

/* Comfortable tap target (about 44px high) without changing the look. */
.vega-landing .wp-block-group.is-style-vega-red .has-text-align-center a {
    display: inline-block;
    padding: 10px 0;
}

/* ---------- Snowflake header / order band (mirrors the configurator) ---------- */

:is(.vega-landing, .editor-styles-wrapper) .is-style-vega-snow {
    color: var(--vl-white);
    background-color: var(--vl-dark-red);
    background-image: url('../images/header-background.webp');

    font-family: var(--vl-georgia);
    text-align: center;
}

.vega-landing > .is-style-vega-snow,
.editor-styles-wrapper .is-root-container > .is-style-vega-snow {
    padding: 50px;
}

:is(.vega-landing, .editor-styles-wrapper) .is-style-vega-title-frame {
    width: 100%;
    max-width: 518px;
    min-height: 60px;
    margin: 0 auto;
    padding: 10px;

    color: var(--vl-white);

    border: 9px solid;
    border-image-source: url('../images/header-border.webp');
    border-image-repeat: round;
    border-image-slice: 10;

    font-family: var(--vl-dancing);
    font-size: 50px;
    font-style: normal;
    font-weight: normal;
    line-height: 1.2;
    letter-spacing: normal;
    text-align: center;
}

:is(.vega-landing, .editor-styles-wrapper) .is-style-vega-subtitle {
    margin: 0;
    padding-top: 50px;

    color: var(--vl-white);

    font-family: var(--vl-georgia);
    font-size: 36px;
    font-style: normal;
    font-weight: normal;
    line-height: normal;
    letter-spacing: normal;
    text-align: center;
    /* Even line lengths, as in the configurator (style.scss). */
    text-wrap: pretty;
}

:is(.vega-landing, .editor-styles-wrapper) .is-style-vega-subtitle:first-child {
    padding-top: 0;
}

:is(.vega-landing, .editor-styles-wrapper) .is-style-vega-subtitle em {
    font-style: italic;
}

:is(.vega-landing, .editor-styles-wrapper) .is-style-vega-subtitle strong {
    font-weight: bold;
}

/* ---------- Star list ---------- */

:is(.vega-landing, .editor-styles-wrapper) .is-style-vega-stars {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    column-gap: 90px;
    row-gap: 36px;

    margin: 50px auto;
    padding: 0;

    list-style: none;
    text-align: left;
}

:is(.vega-landing, .editor-styles-wrapper) .is-style-vega-stars li {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;

    color: var(--vl-white);

    font-family: var(--vl-georgia);
    font-size: 23px;
    font-weight: bold;
    line-height: 1.3;
    letter-spacing: 0.07em;
}

:is(.vega-landing, .editor-styles-wrapper) .is-style-vega-stars li::before {
    content: "";
    flex: 0 0 27px;
    width: 27px;
    height: 27px;

    background: url('../images/landing/star.svg') center / contain no-repeat;
}

/* The editor canvas is narrower than the page. */
.editor-styles-wrapper .is-style-vega-stars {
    grid-template-columns: repeat(2, minmax(0, max-content));
    column-gap: 40px;
}

.editor-styles-wrapper .is-style-vega-stars li {
    font-size: 19px;
}

/* ---------- Order button ---------- */

:is(.vega-landing, .editor-styles-wrapper) .wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

:is(.vega-landing, .editor-styles-wrapper) .wp-block-buttons:not(:first-child) {
    margin-top: 60px;
}

:is(.vega-landing, .editor-styles-wrapper) .is-style-vega-stars + .wp-block-buttons,
:is(.vega-landing, .editor-styles-wrapper) .is-style-vega-subtitle + .wp-block-buttons {
    margin-top: 50px;
}

:is(.vega-landing, .editor-styles-wrapper) .is-style-vega-order .wp-block-button__link {
    display: inline-block;
    min-width: 387px;
    padding: 12px 34px;

    color: var(--vl-white);
    background-color: var(--vl-red);

    border: 0;
    border-radius: 10px;

    font-family: var(--vl-georgia);
    font-size: 24px;
    font-style: normal;
    font-weight: bold;
    line-height: 1.25;
    letter-spacing: 0.05em;
    text-align: center;
    text-decoration: none;

    /* No press/translate effect on click - like the configurator's buttons. */
    transition: background-color 200ms linear;
}

:is(.vega-landing, .editor-styles-wrapper) .is-style-vega-order .wp-block-button__link:hover {
    color: var(--vl-white);
    background-color: #c41b18;
}

/* ---------- "Media & Text" (the four steps) ---------- */

:is(.vega-landing, .editor-styles-wrapper) .wp-block-media-text {
    display: grid;
    grid-template-columns: 33% 1fr;
    grid-template-rows: auto;
    align-items: center;
}

:is(.vega-landing, .editor-styles-wrapper) .wp-block-media-text + .wp-block-media-text {
    margin-top: 72px;
}

:is(.vega-landing, .editor-styles-wrapper) .wp-block-media-text__media {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
}

:is(.vega-landing, .editor-styles-wrapper) .wp-block-media-text__media img {
    width: 100%;
    max-width: 312px;
}

:is(.vega-landing, .editor-styles-wrapper) .wp-block-media-text__content {
    grid-column: 2;
    grid-row: 1;
    padding: 0 0 0 36px;
}

:is(.vega-landing, .editor-styles-wrapper) .wp-block-media-text.has-media-on-the-right {
    grid-template-columns: 1fr 33%;
}

:is(.vega-landing, .editor-styles-wrapper) .has-media-on-the-right .wp-block-media-text__media {
    grid-column: 2;
}

:is(.vega-landing, .editor-styles-wrapper) .has-media-on-the-right .wp-block-media-text__content {
    grid-column: 1;
    padding: 0 36px 0 0;
}

/* ---------- Reviews ---------- */

:is(.vega-landing, .editor-styles-wrapper) .is-style-vega-reviews {
    position: relative;
}

/* Page: the group's inner container is the scrolling, snapping track. It
 * works without JavaScript (swipe, trackpad); landing.js adds the arrows. */
.vega-landing .is-style-vega-reviews > .wp-block-group__inner-container {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 2 * 22px) / 3);
    gap: 22px;
    padding-bottom: 4px;

    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.vega-landing .is-style-vega-reviews > .wp-block-group__inner-container::-webkit-scrollbar {
    display: none;
}

/* Mouse dragging (landing.js) - only for a real mouse pointer. */
@media (hover: hover) and (pointer: fine) {
    .vega-landing .is-style-vega-reviews.is-ready > .wp-block-group__inner-container {
        cursor: grab;
    }

    .vega-landing .is-style-vega-reviews > .wp-block-group__inner-container.is-dragging {
        cursor: grabbing;
    }
}

/* Editor: all reviews visible in a grid, easier to edit than a carousel. */
.editor-styles-wrapper .is-style-vega-reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

:is(.vega-landing, .editor-styles-wrapper) .is-style-vega-reviews .wp-block-quote {
    display: flex;
    flex-direction: column;
    min-height: 337px;
    margin: 0;
    padding: 0 0 24px;

    color: var(--vl-text);
    background-color: var(--vl-light-red);

    border: 0;
    border-radius: 4px;
    overflow: hidden;

    scroll-snap-align: start;
}

:is(.vega-landing, .editor-styles-wrapper) .is-style-vega-reviews .wp-block-quote p {
    margin: 0 20px;
    font-size: 15px;
    letter-spacing: 0.04em;
}

:is(.vega-landing, .editor-styles-wrapper) .is-style-vega-reviews .wp-block-quote p + p {
    margin-top: 10px;
}

/* The name comes last in the markup (cite) but sits on top of the card. */
:is(.vega-landing, .editor-styles-wrapper) .is-style-vega-reviews .wp-block-quote cite {
    position: relative;
    display: block;
    order: -1;
    margin-bottom: 6px;
    padding: 26px 12px 54px;

    color: var(--vl-dark-red);
    background-color: var(--vl-white);

    font-family: var(--vl-georgia);
    font-size: 18px;
    font-style: normal;
    line-height: 1.3;
    letter-spacing: 0.05em;
    text-align: center;
}

/* Cloud edge between the white name and the pink text area. */
:is(.vega-landing, .editor-styles-wrapper) .is-style-vega-reviews .wp-block-quote cite::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 34px;

    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 34' preserveAspectRatio='none'%3E%3Cpath fill='%23f1e4e4' d='M0 0c22 6 44 9 64 9 22 26 72 34 112 14 10-5 18-9 30-10 30 3 62 6 94 7V34H0z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;

    pointer-events: none;
}

.vega-landing-reviews-nav {
    position: absolute;
    top: 50%;

    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 96px;
    padding: 0;

    color: #ffffff;
    background: none;
    border: 0;
    border-radius: 6px;

    cursor: pointer;
    transform: translateY(-50%);
    transition: opacity 200ms linear, background-color 200ms linear;
}

.vega-landing-reviews-nav:not([disabled]):hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.vega-landing-reviews-nav[disabled] {
    opacity: 0.3;
    cursor: default;
}

.vega-landing-reviews-nav svg {
    width: 30px;
    height: 80px;
}

.vega-landing-reviews-prev {
    left: -90px;
}

.vega-landing-reviews-next {
    right: -90px;
}

/* ---------- FAQ ("Details" blocks) ---------- */

:is(.vega-landing, .editor-styles-wrapper) .wp-block-details {
    margin: 0;
    border-bottom: 1px solid var(--vl-line);
}

:is(.vega-landing, .editor-styles-wrapper) .wp-block-details summary {
    position: relative;
    display: block;
    padding: 16px 52px 16px 20px;

    color: var(--vl-heading-text);

    font-family: var(--vl-georgia);
    font-size: 20px;
    line-height: 1.5;
    letter-spacing: 0.04em;

    cursor: pointer;
    list-style: none;
}

:is(.vega-landing, .editor-styles-wrapper) .wp-block-details summary::-webkit-details-marker {
    display: none;
}

:is(.vega-landing, .editor-styles-wrapper) .wp-block-details {
    --vl-faq-duration: 300ms;
}

/* Chevron drawn symmetrically inside its own square, so rotating the
 * square turns it exactly around its center (no jump). */
:is(.vega-landing, .editor-styles-wrapper) .wp-block-details summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 18px;

    width: 16px;
    height: 16px;
    margin-top: -8px;

    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 5.5l5 5 5-5' fill='none' stroke='%23a51715' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat;

    transform: rotate(0deg);
    transform-origin: 50% 50%;
    transition: transform var(--vl-faq-duration) ease-in-out;
}

/* .is-opening/.is-closing are set by landing.js for the duration of the
 * height animation, so the arrow turns in sync with it in both directions. */
:is(.vega-landing, .editor-styles-wrapper) .wp-block-details:is([open]:not(.is-closing), .is-opening) summary::after {
    transform: rotate(180deg);
}

.vega-landing .wp-block-details summary:hover {
    color: var(--vl-dark-red);
}

:is(.vega-landing, .editor-styles-wrapper) .wp-block-details > :not(summary) {
    margin-top: 0;
    padding: 0 52px 0 20px;
    letter-spacing: 0.04em;
}

:is(.vega-landing, .editor-styles-wrapper) .wp-block-details > :last-child:not(summary) {
    padding-bottom: 20px;
}

/* ---------- Footer (theme markup, as on the configurator page) ---------- */

.vega-landing-body {
    padding-bottom: 0;
}

/* Transparent on purpose: #snow_bottom overlaps the white content above,
 * and the theme's light blue body background shows below the clouds. The
 * space below the last link comes from the theme fix for ul.bottom_link
 * (style.css, "Footer"), the same as on the theme pages. */
.vega-landing-footer {
    padding-bottom: 0;
}

.vega-landing-footer #snow_bottom {
    position: relative;
}

/* The theme fixes this (empty) footer spacer at 986px and only narrows it
 * below 866px - in between it caused horizontal scrolling. */
.vega-landing-footer #snow_bottom .bottom {
    max-width: 100%;
}

/* The admin bar (admins only) overflows sideways between about 770 and
 * 860px when it has many items. clip, not hidden: only the x axis, so its
 * dropdown menus still open downwards. */
#wpadminbar {
    overflow-x: clip;
}

/* The theme fixes the menu at 640px - fine on the desktop, but wider than a
 * phone screen. Everything else stays exactly as on the configurator page. */
.vega-landing-footer ul.bottom_menue {
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
}

.vega-landing-footer .bottom_link {
    clear: both;
}

/* The landing footer has less space below the menu than the theme footer;
 * this keeps the gap to "Brief vom Osterhase" (30 px) the same as on theme pages
 * (see core/themefixes.php). */
.vega-landing-footer ul.bottom_menue {
    margin-bottom: -11px;
}

.vega-landing-footer .bottom_link .bottom_link-small {
    font-size: 0.6em;
}

/* ---------- Narrow desktop / tablet ---------- */

@media only screen and (max-width: 1180px) {
    .vega-landing .is-style-vega-reviews {
        padding: 0 64px;
    }

    .vega-landing-reviews-prev {
        left: 0;
    }

    .vega-landing-reviews-next {
        right: 0;
    }
}

@media only screen and (max-width: 1030px) {
    .vega-landing .is-style-vega-reviews > .wp-block-group__inner-container {
        grid-auto-columns: calc((100% - 22px) / 2);
    }

    :is(.vega-landing, .editor-styles-wrapper) .is-style-vega-stars {
        column-gap: 50px;
    }
}

/* Two columns of the longest benefit need about 914px - below this width
 * they no longer fit next to each other (horizontal scrolling). */
@media only screen and (max-width: 1000px) {
    .vega-landing .is-style-vega-stars {
        grid-template-columns: max-content;
        row-gap: 20px;
    }
}

/* ---------- Phone ---------- */

@media only screen and (max-width: 760px) {
    .vega-landing {
        padding-bottom: 150px;
    }

    .vega-landing > .wp-block-group:not(.is-style-vega-snow):not(.is-style-vega-red) {
        padding-top: 40px;
        padding-bottom: 50px;
    }

    .vega-landing h2 {
        font-size: 27px;
        letter-spacing: 0.05em;
    }

    .vega-landing .is-style-vega-subline {
        margin-bottom: 36px;
        font-size: 18px;
        letter-spacing: 0.03em;
    }

    .vega-landing h3 {
        font-size: 20px;
    }

    .vega-landing p {
        font-size: 14px;
    }

    .vega-landing .is-style-vega-stars {
        grid-template-columns: max-content;
        row-gap: 12px;
        margin: 25px auto;
    }

    .vega-landing .is-style-vega-stars li {
        font-size: 15px;
        letter-spacing: 0.03em;
    }

    .vega-landing .is-style-vega-stars li::before {
        flex-basis: 22px;
        width: 22px;
        height: 22px;
    }

    .vega-landing .wp-block-buttons:not(:first-child) {
        margin-top: 36px;
    }

    .vega-landing .is-style-vega-stars + .wp-block-buttons,
    .vega-landing .is-style-vega-subtitle + .wp-block-buttons {
        margin-top: 25px;
    }

    .vega-landing .wp-block-button {
        width: 100%;
        max-width: 387px;
    }

    .vega-landing .is-style-vega-order .wp-block-button__link {
        min-width: 0;
        width: 100%;
        padding-left: 12px;
        padding-right: 12px;
        font-size: 20px;
        white-space: nowrap;
    }

    .vega-landing .wp-block-media-text + .wp-block-media-text {
        margin-top: 48px;
    }

    .vega-landing .wp-block-media-text.is-stacked-on-mobile {
        grid-template-columns: 100% !important;
    }

    .vega-landing .is-stacked-on-mobile .wp-block-media-text__media {
        grid-column: 1;
        grid-row: 1;
    }

    .vega-landing .is-stacked-on-mobile .wp-block-media-text__media img {
        max-width: 260px;
        margin: 0 auto;
    }

    .vega-landing .is-stacked-on-mobile .wp-block-media-text__content {
        grid-column: 1;
        grid-row: 2;
        padding: 18px 0 0;
    }

    .vega-landing .is-style-vega-reviews {
        padding: 0;
    }

    .vega-landing .is-style-vega-reviews > .wp-block-group__inner-container {
        grid-auto-columns: 85%;
        gap: 14px;
    }

    .vega-landing .is-style-vega-reviews .wp-block-quote {
        min-height: 0;
    }

    .vega-landing-reviews-nav {
        display: none !important;
    }

    .vega-landing .wp-block-details summary {
        padding: 14px 40px 14px 4px;
        font-size: 17px;
    }

    .vega-landing .wp-block-details summary::after {
        right: 6px;
    }

    .vega-landing .wp-block-details > :not(summary) {
        padding: 0 4px;
    }
}

/* Very small phones: headings keep word pairs together ("vom&nbsp;Weihnachtsmann")
 * - a little smaller so such a pair still fits the line. */
@media only screen and (max-width: 380px) {
    .vega-landing h2 {
        font-size: 22px;
        letter-spacing: 0.02em;
    }
}

/* Same breakpoint as the configurator's header (style.scss, @mixin phone). */
@media only screen and (max-width: 600px) {
    .vega-landing > .is-style-vega-snow {
        padding: 25px;
    }

    .vega-landing .is-style-vega-title-frame {
        font-size: 32px;
        font-weight: bold;
    }

    /* Same as the configurator: still the headline on phones. */
    .vega-landing .is-style-vega-subtitle {
        padding-top: 20px;
        font-size: 22px;
        line-height: 1.3;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vega-landing .is-style-vega-reviews > .wp-block-group__inner-container {
        scroll-behavior: auto;
    }

    .vega-landing .wp-block-details summary::after {
        transition: none;
    }
}

/* ---------- Logo in the header (Helper::brandLink()) ----------
 * Pages without the theme's main menu (configurator, landing page): Santa's
 * head and the site name in the top left corner of the red header lead back
 * to the home page, as a shop logo does in an order flow. Kept identical in
 * the plugin's style.css/style.scss and the theme's css/landing.css; only
 * the positioning context and the room above the title differ. */

.vega-brand,
.vega-brand:visited {
    position: absolute;
    top: 12px;
    left: 18px;
    z-index: 6;

    display: flex;
    align-items: center;
    gap: 10px;

    color: #ffffff;
    text-decoration: none;

    font-family: georgia, 'times new roman', serif;
    font-size: 16px;
    font-style: italic;
    line-height: 1.15;
    text-align: left;
}

.vega-brand__img {
    flex: none;
    width: 52px;
    height: 52px;
    overflow: hidden;

    background: #f1e4e4;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 2px 8px rgba(0, 0, 0, 0.25);
}

.vega-brand__img img {
    display: block;
    width: 70px;
    max-width: none;
    height: auto;
    margin: -2px 0 0 -8px;
    border: 0;
}

.vega-brand__name {
    max-width: 7.5em;
}

.vega-brand:hover .vega-brand__name,
.vega-brand:focus-visible .vega-brand__name {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.vega-brand:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
    border-radius: 30px;
}

.vega-brand__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Nobody leaves in the middle of a PayPal payment (app.js). */
.vega-payment-busy .vega-brand {
    visibility: hidden;
}

/* Counterpart in the top right corner (Helper::headerHelpLink()): same size
 * and frame as the logo, so the header stays balanced. */
.vega-help,
.vega-help:visited {
    position: absolute;
    top: 12px;
    right: 18px;
    z-index: 6;

    display: flex;
    align-items: center;
    gap: 10px;

    color: #ffffff;
    text-decoration: none;

    font-family: georgia, 'times new roman', serif;
    font-size: 16px;
    font-style: italic;
    line-height: 1.15;
    text-align: right;
}

.vega-help__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 52px;
    height: 52px;

    color: #8a2321;
    background: #f1e4e4;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 2px 8px rgba(0, 0, 0, 0.25);

    font-family: georgia, 'times new roman', serif;
    font-size: 30px;
    font-style: italic;
    font-weight: bold;
    line-height: 1;
}

.vega-help__name {
    max-width: 6.5em;
}

.vega-help:hover .vega-help__name,
.vega-help:focus-visible .vega-help__name {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.vega-help:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
    border-radius: 30px;
}

.vega-payment-busy .vega-help {
    visibility: hidden;
}

@media only screen and (max-width: 1023px) {
    .vega-help__name {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

/* Below 1024px the centred title frame comes close: picture only, the name
 * stays for screen readers. */
@media only screen and (max-width: 1023px) {
    .vega-brand__name {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

/* Phones: logo and help become one labelled top row of the header (left the
 * site name, right "Fragen & Antworten"), separated from the title by a fine
 * line - two lone round icons were unclear and crowded the title frame. */
@media only screen and (max-width: 700px) {
    .vega-brand,
    .vega-brand:visited,
    .vega-help,
    .vega-help:visited {
        top: 18px;
        gap: 8px;
        font-size: 13px;
        line-height: 1.2;
    }

    /* Outer edges flush with the title frame below: 25px from the screen
     * edge, from about 570px on the frame's 518px width centred. */
    .vega-brand,
    .vega-brand:visited {
        left: max(25px, calc((100% - 518px) / 2));
    }

    .vega-help,
    .vega-help:visited {
        right: max(25px, calc((100% - 518px) / 2));
    }

    .vega-brand__name,
    .vega-help__name {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        white-space: normal;
    }

    .vega-brand__name {
        max-width: 7.6em;
    }

    .vega-help__name {
        max-width: 6em;
    }

    .vega-brand__img,
    .vega-help__icon {
        width: 36px;
        height: 36px;
    }

    .vega-brand__img img {
        width: 48px;
        margin: -1px 0 0 -6px;
    }

    .vega-help__icon {
        font-size: 21px;
    }
}

/* Small phones: no room for two labels - "Fragen & Antworten" is hidden
 * (stays for screen readers), the question mark remains. */
@media only screen and (max-width: 380px) {
    .vega-help__name {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}




/* Landing page: positioning context, room above the title frame on phones. */
.vega-landing {
    position: relative;
}

/* The landing page styles its links (dark red, Verdana) - the logo keeps
 * the look it has in the configurator. */
.vega-landing > a.vega-brand,
.vega-landing > a.vega-brand:visited,
.vega-landing > a.vega-brand:hover,
.vega-landing > a.vega-help,
.vega-landing > a.vega-help:visited,
.vega-landing > a.vega-help:hover {
    color: #ffffff;
    text-decoration: none;

    font-family: georgia, 'times new roman', serif;
    font-style: italic;
    font-weight: normal;
    letter-spacing: normal;
}

@media only screen and (max-width: 700px) {
    /* More air: 44px between the icon row and the title frame, 44px below
     * the order button. */
    .vega-landing > .vega-brand ~ .is-style-vega-snow:first-of-type {
        padding-top: 116px;
        padding-bottom: 44px;
    }

    /* Darker strip behind the logo/help row, so it reads as its own row. */
    .vega-landing > .vega-brand ~ .is-style-vega-snow:first-of-type::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 72px;
        background: rgba(0, 0, 0, 0.22);
        pointer-events: none;
    }
}

.vega-landing > .vega-brand ~ .is-style-vega-snow:first-of-type {
    position: relative;
}

/* ===================================================================== *
 * Choice box of the vega-configurator plugin on the landing page
 * ===================================================================== */

/* There the box sits in a section that already has padding. */
:is(#content, body) .vega-landing .vega-choice {
    margin: 0 auto;
}

:is(#content, body) .vega-landing > .wp-block-group:has(.vega-choice) {
    padding-bottom: 0;
}

