/*
 * Black-Friday sale, added 2026-11-20 (Work Board #104): the countdown Stoerer on the home page
 * (src/components/BlackFridayStoerer.astro) and what the script needs to switch at midnight
 * (public/assets/eigenes/rabattaktion-*.js). Linked only on the days around the sale
 * (src/layouts/Seite.astro). The strip's own look stays in ergaenzungen-2026-11-06.css.
 * The file's name carries its date: a change needs a new name (and the link changes with it).
 */

/* 1. Parts that are in the page but not shown yet: the strip before the first day, the wordings
      of other days, the countdown before the script runs. */
.ssk-rabatt[hidden],
.ssk-rabatt [hidden],
.ssk-bf [hidden] { display: none !important; }

/* 2. The home page's top Stoerer place shows either the Black-Friday Stoerer or its usual ones. */
[data-ssk-bf-liste="bf"] > .w-dyn-item:not(.ssk-bf) { display: none; }
[data-ssk-bf-liste="sonst"] > .ssk-bf { display: none; }

/* 3. The countdown: a small line and a row of boxes, in the strip's colours (white, dark blue). */
.ssk-bf_countdown { margin-top: 1.75rem; }
.ssk-bf_ueber { margin-bottom: 0.625rem; color: #fff; font-family: custom_Sourcecodepro, monospace; font-size: 0.875rem; font-weight: 600; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; text-shadow: 0 1px 14px rgba(0, 0, 50, 0.45); }
.ssk-bf_felder { display: flex; gap: 0.625rem; }
.ssk-bf_feld { min-width: 4.75rem; padding: 0.75rem 0.5rem 0.5rem; border-radius: 0.5rem; background-color: #fff; color: #023047; font-family: custom_Sourcecodepro, monospace; text-align: center; box-shadow: 0 2px 14px rgba(0, 0, 50, 0.25); }
.ssk-bf_zahl { display: block; font-size: 2.25rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.ssk-bf_wort { display: block; margin-top: 0.375rem; font-size: 0.6875rem; font-weight: 600; line-height: 1.2; letter-spacing: 0.08em; text-transform: uppercase; }

/* 4. The code of the day inside the Stoerer's text: the strip's pill, in the strip's type. */
.ssk-bf .ssk-rabatt_code { font-family: custom_Sourcecodepro, monospace; font-size: 0.9em; font-weight: 600; text-shadow: none; }

/* 4a. This picture is bright where the text stands: a little more veil than the other Stoerer have. */
@media screen and (min-width: 768px) {
  .uui-section_stoerer .ssk-bf .background-is-image::before { background-image: linear-gradient(90deg, rgba(0, 0, 50, 0.7) 0%, rgba(0, 0, 50, 0.52) 40%, rgba(0, 0, 50, 0.12) 74%, rgba(0, 0, 50, 0) 100%); }
}

/* 6. Phones: the boxes share the width; the code, which must not break, is set smaller so that it
      fits a 320 px screen (and may break rather than push the page wide, should a code be longer). */
.ssk-bf .uui-cta01_content { min-width: 0; }
@media screen and (max-width: 479px) {
  .ssk-bf .ssk-rabatt_code { font-size: 0.62em; white-space: normal; overflow-wrap: anywhere; vertical-align: 0.12em; }
  .ssk-bf_felder { gap: 0.5rem; }
  .ssk-bf_feld { flex: 1 1 0; min-width: 0; padding: 0.625rem 0.25rem 0.5rem; }
  .ssk-bf_zahl { font-size: 1.75rem; }
}

/* 5. From tablets up a Stoerer of this place has 20rem of picture above and below its text. With
      the countdown the button would lie below the first screen of a laptop: less picture here. */
@media screen and (min-width: 768px) {
  .ssk-bf .padding-stoerer.desktop-massive { padding-top: 11rem; padding-bottom: 11rem; }
}

/* 7. 2026-11-23 (Patrick): the windsurfer's legs were cut off on desktop. The site's Stoerer pin
      their picture to the browser window; this one is placed inside the Stoerer, a little below
      the middle, so that the rider and board stay in view at every desktop width. */
@media screen and (min-width: 768px) {
  .uui-section_stoerer .ssk-bf .background-is-image { background-attachment: scroll; background-position: 50% 60%; }
}
