/* Rene Strackerjan – shared stylesheet */

:root {
  --ink: #15171c;
  --ink-soft: #2a2e36;
  --muted: #5a606c;
  --paper: #ffffff;
  --sand: #f6f2ec;
  --sand-dark: #ebe4d9;
  --line: #e4ded4;
  --accent: #c8102e;
  --accent-dark: #a00d25;
  --sea: #0f4c81;
  --sea-light: #2a7ab8;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.5rem;
  --space-xl: clamp(3rem, 7vw, 6rem);

  --radius: 1.25rem;
  --radius-s: 0.75rem;
  --shadow: 0 1px 2px rgb(21 23 28 / 0.06), 0 8px 24px rgb(21 23 28 / 0.08);
  --shadow-hover: 0 2px 4px rgb(21 23 28 / 0.08), 0 16px 40px rgb(21 23 28 / 0.14);
  --max: 72rem;
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  hyphens: auto;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img,
video,
iframe,
svg {
  max-width: 100%;
}

img {
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-dark);
}

:focus-visible {
  outline: 3px solid var(--sea-light);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-s);
  hyphens: manual;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 700;
}

h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

p {
  margin: 0 0 var(--space-s);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-s);
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  vertical-align: -0.2em;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2.5rem, 46rem);
  margin-inline: auto;
}

.section {
  padding-block: var(--space-xl);
}

.section--sand {
  background: var(--sand);
}

.section--dark {
  background: var(--ink);
  color: #fff;
}

.section--dark a:not(.btn) {
  color: #fff;
}

.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-xs);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.section--dark .eyebrow {
  color: #ff8a9c;
}

.lead {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  color: var(--muted);
  max-width: 44rem;
}

.section--dark .lead {
  color: #cfd3da;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-s);
  margin-bottom: var(--space-l);
}

.section-head h2 {
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.4rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--light {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  margin-top: var(--space-m);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  min-height: var(--header-h);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-logo img {
  width: auto;
  height: 3.4rem;
}

/* Logo in the style of brsplus24.de: "rs+" mark, signature and tagline */
.site-logo {
  color: var(--ink);
  text-decoration: none;
}

.site-logo__inner {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.site-logo__mark {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-top: 0.15rem;
  border-radius: 0.55rem;
  background: var(--ink);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.site-logo__mark i {
  position: absolute;
  top: 0.05rem;
  right: 0.2rem;
  color: #ff3b57;
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 800;
}

.site-logo__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Mark centred on the signature's letters; tagline below, starting under the "R" */
.site-logo__text img {
  height: 3.1rem;
}

.site-logo__tag {
  display: flex;
  gap: 0.35em;
  margin-top: 0.05rem;
  padding-left: 0.55rem;
  color: var(--muted);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-logo__tag b {
  color: var(--accent);
  font-weight: 700;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle .icon {
  width: 1.4rem;
  height: 1.4rem;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-nav a:hover {
  background: var(--sand);
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  background: var(--ink);
  color: #fff;
}

/* Mobile menu: hidden only when JavaScript runs */
.js .site-nav {
  display: none;
}

.js .site-nav.is-open {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: var(--space-s) 1.25rem var(--space-m);
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.site-nav.is-open a {
  font-size: 1.1rem;
}

html:not(.js) .nav-toggle {
  display: none;
}

html:not(.js) .site-header__inner {
  flex-wrap: wrap;
  padding-block: 0.5rem;
}

html:not(.js) .site-nav ul {
  display: flex;
  flex-wrap: wrap;
}

@media (min-width: 60rem) {
  .nav-toggle {
    display: none;
  }

  .js .site-nav,
  .js .site-nav.is-open {
    display: block;
    position: static;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: none;
  }

  .site-nav ul {
    display: flex;
    gap: 0.15rem;
  }

  .site-nav.is-open a {
    font-size: 0.95rem;
  }
}

/* Page header */
.page-hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
  background: var(--sand);
}

.page-hero h1 {
  margin-bottom: var(--space-xs);
}

.page-hero .lead {
  margin: 0;
}

/* Home bento hero */
.bento {
  display: grid;
  gap: 0.9rem;
  padding-block: 1.25rem var(--space-l);
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 15rem;
  padding: var(--space-m);
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}

.tile:hover {
  color: #fff;
}

.tile > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.6s ease;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(0 0 0 / 0) 30%, rgb(0 0 0 / 0.78) 100%);
}

.tile:hover > img {
  transform: scale(1.04);
}

.tile__kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.9;
}

.tile__title {
  margin: 0.2rem 0 0.3rem;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.tile__text {
  margin: 0;
  font-size: 1rem;
  opacity: 0.95;
}

.tile__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.tile__coords {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  opacity: 0.85;
}

.tile--main {
  min-height: 26rem;
}

.tile--main h1,
.tile--main .tile__name {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  hyphens: manual;
  margin: 0.2rem 0 0.5rem;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  overflow-wrap: normal;
  color: #fff;
}

.tile--main .tile__text {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 28rem;
}

@media (min-width: 48rem) {
  .bento {
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: repeat(3, minmax(12.5rem, auto));
  }

  .tile--main {
    grid-row: span 3;
    min-height: 0;
  }
}

@media (min-width: 64rem) {
  .bento {
    grid-template-columns: 1.5fr 1fr 1fr;
    grid-template-rows: repeat(2, minmax(16rem, auto));
  }

  .tile--main {
    grid-row: span 2;
  }

  .tile--wide {
    grid-column: span 2;
  }
}

/* Home page feature for the IT post, above "Sylt live" */
.it-feature {
  display: grid;
  margin-bottom: var(--space-l);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--sea), #0a1e3a);
  color: #fff;
}

.it-feature > img {
  width: 100%;
  height: 100%;
  max-height: 22rem;
  object-fit: cover;
  object-position: 50% 25%;
}

.it-feature__body {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.it-feature .eyebrow {
  color: #ffd65c;
}

.it-feature h2 {
  margin-bottom: 0.75rem;
  color: #fff;
}

.it-feature p {
  color: #e4eef8;
}

.it-feature__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: var(--space-s) 0 0;
  padding: 0;
  list-style: none;
}

.it-feature__chips li {
  padding: 0.3rem 0.85rem;
  border: 1.5px solid rgb(255 255 255 / 0.7);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.btn--outline-light {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

@media (min-width: 48rem) {
  .it-feature {
    grid-template-columns: 2fr 3fr;
    align-items: center;
  }

  .it-feature > img {
    max-height: none;
  }
}

/* Live webcam from Sylt on the home page, above the match promo */
.sylt-live {
  margin-bottom: var(--space-l);
}

.sylt-live__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-s);
  margin-bottom: var(--space-s);
}

.sylt-live__head h2 {
  margin: 0;
}

.sylt-live__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sylt-live__badge::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #fff;
  animation: kickoff-pulse 1.2s ease-in-out infinite;
  transition-property: opacity;
}

.sylt-live__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.sylt-live__link {
  display: block;
  color: #fff;
  text-decoration: none;
}

.sylt-live__link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  transition-property: transform;
}

.sylt-live__link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 0.05) 40%, rgb(0 0 0 / 0.65) 100%);
}

.sylt-live__link:hover img {
  transform: scale(1.03);
}

.sylt-live__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(4rem, 9vw, 5.5rem);
  height: clamp(4rem, 9vw, 5.5rem);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 8px 30px rgb(0 0 0 / 0.35);
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
  transition-property: transform;
}

.sylt-live__play .icon {
  width: 45%;
  height: 45%;
  margin-left: 8%;
}

.sylt-live__link:hover .sylt-live__play,
.sylt-live__link:focus-visible .sylt-live__play {
  transform: translate(-50%, -50%) scale(1.08);
}

.sylt-live__cta {
  position: absolute;
  left: clamp(1rem, 3vw, 1.75rem);
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.5rem);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 800;
}

@media (max-width: 40rem) {
  .sylt-live__frame {
    aspect-ratio: 4 / 3;
  }
}

.sylt-live__source {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  .sylt-live__badge::before {
    animation: none;
  }
}

/* Match promo on the home page */
.match-promo {
  display: grid;
  margin-bottom: var(--space-l);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), #6e0818);
  color: #fff;
}

.match-promo > img {
  width: 100%;
  height: 100%;
  min-height: 14rem;
  max-height: 22rem;
  object-fit: cover;
}

.match-promo__body {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.match-promo .eyebrow {
  color: #ffd5dc;
}

.match-promo h2 {
  margin-bottom: 0.5rem;
}

.match-promo__body {
  text-align: center;
}

.match-promo__cta {
  justify-content: center;
  margin-top: var(--space-m);
}

@media (min-width: 48rem) {
  .match-promo {
    grid-template-columns: 2fr 3fr;
    align-items: center;
  }

  .match-promo > img {
    max-height: none;
  }
}

/* Countdown to the next FC Bayern match, below the promo text */
.kickoff {
  margin-top: var(--space-s);
  text-align: center;
}

html:not(.js) .kickoff {
  display: none;
}

.kickoff p {
  margin: 0;
}

.kickoff__status {
  opacity: 0.85;
}

.kickoff__last {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 0.6rem;
  margin-bottom: var(--space-s) !important;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.22);
  font-size: 0.85rem;
}

.kickoff__last-label {
  color: #ffd5dc;
}

.kickoff__last-result {
  font-weight: 700;
}

.kickoff__label {
  color: #ffd5dc;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kickoff__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.kickoff__team {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  font-weight: 700;
  line-height: 1.2;
}

.kickoff__crest {
  width: 3.5rem;
  height: 3.5rem;
  padding: 0.35rem;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.kickoff__vs {
  font-weight: 700;
  opacity: 0.8;
}

.kickoff__clock {
  display: flex;
  justify-content: center;
  gap: clamp(0.4rem, 2vw, 0.75rem);
  margin: 0.25rem 0 0.75rem;
}

.kickoff__unit {
  display: grid;
  justify-items: center;
  min-width: 4.2rem;
  padding: 0.55rem 0.4rem 0.45rem;
  border-radius: var(--radius-s);
  background: rgb(0 0 0 / 0.25);
}

.kickoff__value {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.kickoff__unit-name {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.kickoff__meta {
  font-weight: 700;
}

.kickoff__score {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
}

.kickoff__goals {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.kickoff__live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kickoff__live::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  animation: kickoff-pulse 1.2s ease-in-out infinite;
  transition-property: opacity;
}

@keyframes kickoff-pulse {
  50% {
    opacity: 0.2;
  }
}

@media (max-width: 22rem) {
  .kickoff__unit {
    min-width: 3.3rem;
  }
}

/* Start page: typed words below the name */
.typer {
  min-height: 1.3em;
  margin: -0.2rem 0 0.6rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.typer.is-typing .typer__word::after {
  content: "";
  display: inline-block;
  width: 0.12em;
  height: 1em;
  margin-left: 0.08em;
  vertical-align: -0.12em;
  background: var(--accent);
  animation: typer-blink 1s steps(1) infinite;
}

@keyframes typer-blink {
  50% {
    opacity: 0;
  }
}

/* Start page: endless photo band in two rows moving in opposite directions */
.photo-band {
  overflow: hidden;
}

.photo-band__row {
  overflow: hidden;
}

.photo-band__row + .photo-band__row {
  margin-top: 0.75rem;
}

.photo-band__move {
  display: flex;
  width: max-content;
  animation: photo-band 110s linear infinite;
}

.photo-band__row--reverse .photo-band__move {
  animation-direction: reverse;
}

.photo-band:hover .photo-band__move,
.photo-band:focus-within .photo-band__move {
  animation-play-state: paused;
}

.photo-band__track {
  display: flex;
  gap: 0.75rem;
  margin: 0;
  padding: 0 0.75rem 0 0;
  list-style: none;
}

.photo-band__track a {
  display: block;
  height: clamp(9rem, 18vw, 13.75rem);
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--sand-dark);
}

.photo-band__track img {
  width: auto;
  max-width: none;
  height: 100%;
  transition: transform 0.4s ease;
  transition-property: transform;
}

.photo-band__track a:hover img,
.photo-band__track a:focus-visible img {
  transform: scale(1.05);
}

@keyframes photo-band {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-band__row {
    overflow-x: auto;
  }

  .photo-band__move {
    animation: none;
  }

  .photo-band__track[aria-hidden="true"] {
    display: none;
  }

  .typer.is-typing .typer__word::after,
  .kickoff__live::before {
    animation: none;
  }
}

/* Social posts */
.feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
  gap: var(--space-m);
  list-style: none;
  margin: 0;
  padding: 0;
}

.post {
  height: 100%;
}

.post__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

a.post__link:hover {
  color: var(--ink);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.post__media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--sand-dark);
}

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

@media (min-width: 40rem) {
  .post__media {
    aspect-ratio: 4 / 5;
  }
}

/* Platform badge („watermark“) in the image corner */
.post__source {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  color: #fff;
  background: rgb(21 23 28 / 0.45);
  backdrop-filter: blur(6px);
  border: 1px solid rgb(255 255 255 / 0.35);
}

.post__source .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.post--instagram .post__source { background: linear-gradient(45deg, rgb(245 133 41 / 0.85), rgb(221 42 123 / 0.85) 50%, rgb(129 52 175 / 0.85)); }
.post--tiktok .post__source { background: rgb(0 0 0 / 0.75); }
.post--facebook .post__source { background: rgb(8 102 255 / 0.85); }
.post--youtube .post__source { background: rgb(255 0 0 / 0.85); }
.post--linkedin .post__source { background: rgb(10 102 194 / 0.85); }
.post--x .post__source { background: rgb(0 0 0 / 0.75); }

/* Text visual for posts without photo */
.post__visual {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #fff;
  background: linear-gradient(150deg, var(--ink-soft), var(--ink));
}

.post__visual::before {
  content: "";
  position: absolute;
  inset: auto -20% -35% auto;
  width: 85%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.08);
}

.post__visual--rot { background: linear-gradient(150deg, #e3163a, #8d0a20); }
.post__visual--meer { background: linear-gradient(150deg, #2a7ab8, #0b3358); }
.post__visual--sonne { background: linear-gradient(150deg, #f08a24, #b8285a); }
.post__visual--dunkel { background: linear-gradient(150deg, #39404d, #121419); }

.post__visual-kicker {
  position: relative;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
}

.post__visual-title {
  position: relative;
  margin: 0.35rem 0 0;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.post__visual-score {
  position: relative;
  margin: 0;
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.post__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.1rem 1.25rem 1.25rem;
}

.post__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.post__text {
  margin: 0 0 0.5rem;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
}

.post__tags {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--sea);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
}

/* Blog cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: var(--space-m);
  list-style: none;
  margin: 0;
  padding: 0;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card__media {
  aspect-ratio: 16 / 9;
  background: var(--sand-dark);
  overflow: hidden;
}

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

.card__media--banner {
  display: flex;
  align-items: center;
  background: var(--ink);
}

.card__media--banner img {
  height: auto;
  object-fit: contain;
}

.card__media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.card__media--empty .icon {
  width: 3rem;
  height: 3rem;
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.4rem 1.4rem;
}

.card__meta {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.card__title {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
}

.card__title a {
  color: var(--ink);
  text-decoration: none;
}

.card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card {
  position: relative;
}

.card__excerpt {
  color: var(--muted);
  font-size: 0.97rem;
}

.card__more {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 var(--space-s);
  padding: 0;
}

.tags li {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--sand);
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--ink-soft);
}

/* Article */
.article-hero {
  margin: 0 0 var(--space-l);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Square portrait as post image: wide crop that keeps the face */
.article-hero--portrait img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 25%;
}

.article-meta {
  color: var(--muted);
  margin-bottom: var(--space-s);
}

.prose {
  font-size: 1.1rem;
}

.prose h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-top: var(--space-l);
}

.prose h3 {
  margin-top: var(--space-m);
}

.prose ul {
  padding-left: 1.25rem;
  margin: 0 0 var(--space-s);
}

.prose li {
  margin-bottom: 0.35rem;
}

.placeholder {
  padding: 1rem 1.25rem;
  border: 2px dashed var(--accent);
  border-radius: var(--radius-s);
  background: #fff5f6;
  color: var(--accent-dark);
  font-weight: 650;
}

.post-nav {
  display: grid;
  gap: var(--space-s);
  margin-top: var(--space-l);
  padding-top: var(--space-m);
  border-top: 1px solid var(--line);
}

.post-nav a {
  display: block;
  min-height: 44px;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-s);
  background: var(--sand);
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
}

.post-nav a:hover {
  background: var(--sand-dark);
}

.post-nav span {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 40rem) {
  .post-nav {
    grid-template-columns: 1fr 1fr;
  }

  .post-nav .next {
    text-align: right;
    grid-column: 2;
  }
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: var(--space-m) 0 0;
  padding: 0;
}

.gallery a {
  display: block;
  aspect-ratio: 1;
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--sand-dark);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery a:hover img {
  transform: scale(1.05);
}

/* Eight pictures: 2 or 4 per row on small screens, all in one row on wide screens */
.gallery--small {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 30rem) {
  .gallery--small {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 64rem) {
  .gallery--small {
    grid-template-columns: repeat(8, 1fr);
  }
}

/* Lightbox */
.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(10 11 14 / 0.94);
  color: #fff;
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox figure {
  margin: 0;
  padding: 4.5rem 1rem 2rem;
  max-width: 100%;
  text-align: center;
}

.lightbox img {
  max-width: min(100%, 75rem);
  max-height: calc(100vh - 9rem);
  width: auto;
  margin-inline: auto;
  border-radius: var(--radius-s);
}

.lightbox figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #d5d8de;
}

.lightbox button {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.14);
  color: #fff;
  cursor: pointer;
}

.lightbox button:hover {
  background: rgb(255 255 255 / 0.28);
}

.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%) scaleX(-1); }
.lightbox .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* About page */
.split {
  display: grid;
  gap: var(--space-l);
  align-items: center;
}

@media (min-width: 52rem) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split--reverse > :first-child {
    order: 2;
  }
}

.rounded {
  border-radius: var(--radius);
  overflow: hidden;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chips li {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 700;
}

.section--dark .chips li {
  background: rgb(255 255 255 / 0.08);
  border-color: rgb(255 255 255 / 0.2);
}

.hashtags {
  margin-top: var(--space-m);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.video-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}

.video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 0.05), rgb(0 0 0 / 0.65));
}

.video-card__play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  background: #ff0000;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}

.video-card:hover .video-card__play {
  transform: translate(-50%, -50%) scale(1.08);
}

.video-card__play .icon {
  width: 2rem;
  height: 2rem;
}

.video-card__caption {
  position: absolute;
  z-index: 1;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1rem;
  font-weight: 700;
}

.video-card__caption small {
  display: block;
  font-weight: 500;
  opacity: 0.9;
}

.quote {
  margin: 0;
  text-align: center;
}

.quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-style: italic;
  line-height: 1.3;
  margin-bottom: var(--space-s);
}

.quote footer {
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: #ff8a9c;
}

/* Experience timeline: centre line fills while scrolling, milestones light up (both directions) */
.quest {
  --node: 3.4rem;
  margin-bottom: var(--space-m);
}

.quest__heads {
  display: none;
}

.quest__list {
  position: relative;
  display: grid;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.quest__line {
  position: absolute;
  top: calc(var(--node) / 2);
  bottom: 1.5rem;
  left: calc(var(--node) / 2 - 2px);
  width: 4px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}

.quest__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--accent), #e8475f);
  transform: scaleY(0);
  transform-origin: top;
}

.quest__step {
  position: relative;
  display: grid;
  grid-template-columns: var(--node) 1fr;
  column-gap: 1rem;
  row-gap: 0.75rem;
  align-items: start;
}

.quest__node {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: var(--node);
  height: var(--node);
  border: 3px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

/* Red disc that pops in when the milestone is reached */
.quest__node::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgb(200 16 46 / 0.15);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.quest__node::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.quest__step.is-reached .quest__node {
  color: #fff;
  border-color: transparent;
}

.quest__step.is-reached .quest__node::before {
  opacity: 1;
  transform: none;
}

.quest__card {
  position: relative;
  grid-column: 2;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-s);
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0.55;
  transform: scale(0.97);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Accent bar on the side facing the line */
.quest__card::before {
  content: "";
  position: absolute;
  top: 0.8rem;
  bottom: 0.8rem;
  left: 0;
  width: 4px;
  border-radius: 4px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.quest__step.is-reached .quest__card {
  opacity: 1;
  transform: none;
}

.quest__step.is-reached .quest__card::before {
  opacity: 1;
}

.quest__tag {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quest__card strong {
  display: block;
  line-height: 1.3;
}

.quest__card > span:last-child {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Two sides: job left, education right, line in the middle */
@media (min-width: 36rem) {
  .quest__heads {
    display: grid;
    grid-template-columns: 1fr var(--node) 1fr;
    column-gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.15rem;
    font-weight: 800;
  }

  .quest__heads span:first-child {
    text-align: right;
  }

  .quest__heads span:last-child {
    grid-column: 3;
  }

  .quest__line {
    left: calc(50% - 2px);
  }

  .quest__step {
    grid-template-columns: 1fr var(--node) 1fr;
  }

  .quest__node {
    grid-column: 2;
    grid-row: 1;
  }

  .quest__card--beruf {
    grid-column: 1;
    grid-row: 1;
    text-align: right;
  }

  .quest__card--ausbildung {
    grid-column: 3;
    grid-row: 1;
  }

  .quest__card--beruf::before {
    right: 0;
    left: auto;
  }

  .quest__tag {
    display: none;
  }
}

/* Without JavaScript everything is shown as reached */
html:not(.js) .quest__card {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .quest__node::before,
  .quest__card,
  .quest__card::before {
    transition: none;
  }
}

.brands {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: #000;
}

.brands img {
  width: 100%;
}

.cta-band {
  display: grid;
  gap: var(--space-m);
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), #7d0a1d);
  color: #fff;
}

.cta-band h2 {
  margin-bottom: 0.4rem;
}

.cta-band p {
  margin: 0;
  opacity: 0.95;
}

@media (min-width: 48rem) {
  .cta-band {
    grid-template-columns: 1fr auto;
  }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--space-m);
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover {
  color: var(--ink);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.contact-card .icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.55rem;
  border-radius: 999px;
  background: var(--sand);
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.contact-card strong {
  font-size: 1.15rem;
}

.contact-card span {
  color: var(--muted);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.social-links a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* Legal pages */
.legal h2 {
  font-size: 1.5rem;
  margin-top: var(--space-l);
}

.legal h3 {
  font-size: 1.15rem;
  margin-top: var(--space-m);
}

/* Contact page (since 26.11.2026): dark hero with portrait disc, colour tiles, social pills */
.contact-hero__inner {
  display: grid;
  gap: var(--space-l);
  align-items: center;
}

@media (min-width: 56rem) {
  .contact-hero__inner {
    grid-template-columns: 1.4fr 1fr;
  }
}

.contact-hero__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 20rem);
  aspect-ratio: 1;
}

.contact-hero__ring {
  position: absolute;
  inset: 0;
  border: 2px dashed rgb(255 255 255 / 0.3);
  border-radius: 50%;
  animation: contact-ring 40s linear infinite;
  animation-name: contact-ring;
}

.contact-hero__photo {
  position: absolute;
  inset: 9%;
  overflow: hidden;
  border: 6px solid rgb(255 255 255 / 0.9);
  border-radius: 50%;
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.4);
}

.contact-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-hero__badge {
  position: absolute;
  right: -2%;
  bottom: 6%;
  display: grid;
  place-content: center;
  width: 6.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #c8102e;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-12deg);
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.3);
}

.contact-hero__badge strong {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

@keyframes contact-ring {
  to {
    transform: rotate(360deg);
  }
}

.contact-tiles {
  display: grid;
  gap: var(--space-m);
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.contact-tile {
  --tile: #15171c;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-height: 13rem;
  padding: var(--space-m);
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 90% 10%, rgb(255 255 255 / 0.18), transparent 40%),
    var(--tile);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-tile--mobil {
  --tile: #c8102e;
}

.contact-tile--festnetz {
  --tile: #0f4c81;
}

.contact-tile--whatsapp {
  --tile: #0f7a43;
}

.contact-tile:hover,
.contact-tile:focus-visible {
  color: #fff;
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.contact-tile__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.6rem;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.16);
}

.contact-tile strong {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-tile__value {
  font-size: 1.2rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-tile__cta {
  margin-top: auto;
  padding-top: var(--space-s);
  font-weight: 700;
  opacity: 0.85;
}

.contact-social {
  background: var(--sand);
}

.contact-social__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: var(--space-m) 0 0;
  padding: 0;
  list-style: none;
}

.contact-social__list a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.5rem 1.2rem 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.contact-social__list a:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .contact-hero__ring {
    animation: none;
  }

  .contact-tile,
  .contact-tile:hover {
    transform: none;
  }
}

/* Styled legal pages (Impressum, Datenschutz): dark hero, cards, numbered sections */
.legal-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 30%, rgb(200 16 46 / 0.4), transparent 45%),
    radial-gradient(circle at 5% 100%, rgb(15 76 129 / 0.4), transparent 45%),
    #101217;
  color: #fff;
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(115deg, rgb(255 255 255 / 0.03) 0 2px, transparent 2px 22px);
  pointer-events: none;
}

.legal-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 7.5vw, 3.6rem);
}

.legal-card a {
  white-space: nowrap;
}

.legal-hero .eyebrow {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  color: #fff;
}

.legal-hero .lead {
  color: rgb(255 255 255 / 0.8);
}

.legal--styled {
  counter-reset: legal;
}

.legal-cards,
.legal-glance {
  display: grid;
  gap: var(--space-s);
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  margin: 0 0 var(--space-l);
  padding: 0;
  list-style: none;
}

.legal-card,
.legal-glance li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: var(--space-m);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.legal--styled .legal-card h2 {
  margin: 0.4rem 0 0.2rem;
  font-size: 1rem;
  line-height: 1.3;
}

.legal-card p {
  margin: 0;
}

.legal-card__icon {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--sand);
  color: var(--accent);
}

.legal-card__icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.legal-glance li {
  border-top-color: var(--sea);
}

.legal-glance strong {
  margin-top: 0.4rem;
  font-size: 1.05rem;
}

.legal-glance li > span:last-child {
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-toc {
  margin-bottom: var(--space-l);
  padding: var(--space-m);
  border-radius: var(--radius);
  background: var(--sand);
}

.legal-toc__title {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-toc ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.legal-toc a:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.legal-section {
  margin-bottom: var(--space-m);
  padding: var(--space-m) clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  scroll-margin-top: 6rem;
}

.legal--styled .legal-section > h2 {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 var(--space-s);
  font-size: clamp(1.2rem, 2.6vw, 1.45rem);
}

.legal--styled .legal-section > h2::before {
  counter-increment: legal;
  content: counter(legal, decimal-leading-zero);
  display: grid;
  flex: none;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.6rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}

.legal-section > :last-child {
  margin-bottom: 0;
}

.legal-section h3 {
  margin-top: var(--space-m);
}

/* Footer */
.site-footer {
  padding-block: var(--space-xl) var(--space-l);
  background: var(--ink);
  color: #cfd3da;
}

/* Modern footer (since 25.11.2026): keyword ticker, glow, stripes and the rs+ brand */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: 0;
  background:
    radial-gradient(circle at 85% 35%, rgb(200 16 46 / 0.32), transparent 45%),
    radial-gradient(circle at 5% 95%, rgb(15 76 129 / 0.35), transparent 45%),
    #101217;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(115deg, rgb(255 255 255 / 0.025) 0 2px, transparent 2px 22px);
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #c8102e, #ff8a9c, #c8102e);
}

.footer-marquee {
  margin-bottom: var(--space-xl);
  padding-block: 1.4rem;
  overflow: hidden;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  background: rgb(0 0 0 / 0.25);
}

.footer-marquee__track {
  display: flex;
  width: max-content;
  animation: footer-marquee 30s linear infinite;
  animation-name: footer-marquee;
}

.footer-marquee__track span {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  padding-right: 2.4rem;
  color: #fff;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer-marquee__track span:nth-child(3n + 2) {
  color: transparent;
  -webkit-text-stroke: 1.5px #fff;
}

.footer-marquee__track span::after {
  content: "✦" / "";
  color: #ff3b57;
  font-size: 0.45em;
  -webkit-text-stroke: 0;
}

@keyframes footer-marquee {
  to {
    transform: translateX(-50%);
  }
}

.footer-brand {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: var(--space-s);
  text-decoration: none;
}

.footer-brand__mark {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  margin-top: 0.2rem;
  border-radius: 0.65rem;
  background: #fff;
  color: #15171c;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.footer-brand__mark i {
  position: absolute;
  top: 0.05rem;
  right: 0.25rem;
  color: #c8102e;
  font-size: 1.15rem;
  font-style: normal;
  font-weight: 800;
}

.footer-brand__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand__text img {
  width: auto;
  height: 3.8rem;
}

.footer-brand__tag {
  display: flex;
  gap: 0.4em;
  margin-top: 0.1rem;
  padding-left: 0.7rem;
  color: #cfd3da;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer-brand__tag b {
  color: #ff3b57;
}

.footer-claim {
  max-width: 22rem;
  color: #a8aebb;
}

@media (prefers-reduced-motion: reduce) {
  .footer-marquee__track {
    animation: none;
  }
}

.site-footer a {
  color: #fff;
}

.site-footer__grid {
  display: grid;
  gap: var(--space-l);
}

@media (min-width: 48rem) {
  .site-footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.site-footer__logo {
  width: 15rem;
  margin-bottom: var(--space-s);
}

.site-footer h2 {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--space-s);
}

/* Footer headings with a short red bar in front, like on brsplus24.de */
.site-footer h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.site-footer h2::before {
  content: "";
  width: 1.6rem;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
}

.site-footer li a .icon {
  color: #ff8a9c;
}

.site-footer li a {
  transition: transform 0.2s ease, color 0.2s ease;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  text-decoration: none;
}

.site-footer li a:hover {
  text-decoration: none;
  color: #ff8a9c;
  transform: translateX(4px);
}

.site-footer .social-links a {
  background: rgb(255 255 255 / 0.1);
  color: #fff;
}

.site-footer .social-links a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-s);
  margin-top: var(--space-l);
  padding-top: var(--space-m);
  border-top: 1px solid rgb(255 255 255 / 0.15);
  font-size: 0.9rem;
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  text-decoration: none;
  font-weight: 700;
}

.to-top .icon {
  transform: rotate(-90deg);
}

/* Error page */
.error-page {
  text-align: center;
  padding-block: var(--space-xl);
}

.error-page .big {
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Sale post */
.prose .price-list {
  display: grid;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-s);
  background: var(--sand);
}

.price-list strong {
  font-size: 1.25rem;
  color: var(--accent);
}

/* Social buttons fixed at the right screen edge: round, animated */
.social-rail {
  display: none;
}

@keyframes rail-in {
  from {
    opacity: 0;
    transform: translateX(150%) rotate(180deg);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rail-wave {
  0%,
  12%,
  100% {
    scale: 1;
  }

  6% {
    scale: 1.18;
  }
}

@media (min-width: 48rem) {
  .social-rail {
    display: block;
    position: fixed;
    z-index: 40;
    top: 50%;
    right: 0.9rem;
    transform: translateY(-50%);
  }

  .social-rail__list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .social-rail__list li {
    animation: rail-in 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2) backwards;
  }

  .social-rail__list a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 50%;
    overflow: hidden;
    background: var(--ink);
    color: #fff;
    box-shadow: 0 4px 14px rgb(21 23 28 / 0.3);
    animation: rail-wave 7s ease-in-out infinite;
    transition: transform 0.3s ease;
  }

  /* Platform colour fades in on hover */
  .social-rail__list a::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .social-rail__list a[aria-label="LinkedIn"]::before { background: #0a66c2; }
  .social-rail__list a[aria-label="XING"]::before { background: #006567; }
  .social-rail__list a[aria-label="Facebook"]::before { background: #0866ff; }
  .social-rail__list a[aria-label="Instagram"]::before { background: linear-gradient(45deg, #f58529, #dd2a7b 50%, #8134af); }
  .social-rail__list a[aria-label="TikTok"]::before { background: linear-gradient(135deg, #25f4ee, #000 45%, #000 55%, #fe2c55); }
  .social-rail__list a[aria-label="X (Twitter)"]::before { background: #000; }
  .social-rail__list a[aria-label="YouTube"]::before { background: #ff0000; }

  .social-rail__list .icon {
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.5s ease;
  }

  .social-rail__list a:hover,
  .social-rail__list a:focus-visible {
    transform: scale(1.15);
    color: #fff;
  }

  .social-rail__list a:hover::before,
  .social-rail__list a:focus-visible::before {
    opacity: 1;
  }

  .social-rail__list a:hover .icon,
  .social-rail__list a:focus-visible .icon {
    transform: rotate(360deg);
  }

  .social-rail__list li:nth-child(1) a { animation-delay: 0.2s; }
  .social-rail__list li:nth-child(2) { animation-delay: 0.08s; }
  .social-rail__list li:nth-child(2) a { animation-delay: 0.4s; }
  .social-rail__list li:nth-child(3) { animation-delay: 0.16s; }
  .social-rail__list li:nth-child(3) a { animation-delay: 0.6s; }
  .social-rail__list li:nth-child(4) { animation-delay: 0.24s; }
  .social-rail__list li:nth-child(4) a { animation-delay: 0.8s; }
  .social-rail__list li:nth-child(5) { animation-delay: 0.32s; }
  .social-rail__list li:nth-child(5) a { animation-delay: 1s; }
  .social-rail__list li:nth-child(6) { animation-delay: 0.4s; }
  .social-rail__list li:nth-child(6) a { animation-delay: 1.2s; }
  .social-rail__list li:nth-child(7) { animation-delay: 0.48s; }
  .social-rail__list li:nth-child(7) a { animation-delay: 1.4s; }
}

/* Keep content clear of the rail until the side margins are wide enough */
@media (min-width: 48rem) and (max-width: 80rem) {
  .container,
  .container--narrow {
    width: min(100% - 9rem, var(--max));
  }

  .container--narrow {
    max-width: 46rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .social-rail__list li,
  .social-rail__list a {
    animation: none;
  }
}

/* Bundesliga matchday (own rendering of OpenLigaDB data, loads after consent) */
.matchday {
  margin-top: calc(var(--space-l) * 1.6);
}

.matchday__logo {
  display: block;
  width: min(100%, 26rem);
  margin: 0 auto var(--space-m);
}

.matchday__widget strong {
  display: inline-block;
  margin-bottom: 0.35rem;
}

.matchday__widget {
  margin-top: 1rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.matchday__widget.is-loaded {
  padding: 0;
  background: none;
  box-shadow: none;
}

.embed-consent:not(.is-loaded) {
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
}

.embed-consent:not(.is-loaded) > .icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent);
}

.embed-consent:not(.is-loaded) p {
  max-width: 40rem;
  margin: 0;
}

.matchday__error {
  color: var(--accent);
  font-weight: 700;
}

.matchday__round {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.matchday__day {
  margin: 1.5rem 0 0.25rem;
  font-size: 1.25rem;
}

.matchday__time {
  margin: 0.75rem 0 0.5rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.matchday__list {
  display: grid;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Rows stay white so crests with a white background (e.g. JPG) blend in */
.match {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto minmax(0, 1fr) 3rem;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-s);
  background: #fff;
  box-shadow: var(--shadow);
}

.match__logo {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.match__team {
  min-width: 0;
  font-weight: 600;
  line-height: 1.2;
  hyphens: manual;
  overflow-wrap: normal;
}

.match__team--home {
  text-align: left;
}

.match__team--away {
  text-align: right;
}

.match__short {
  display: none;
}

.match__score {
  display: grid;
  justify-items: center;
  min-width: 4.5rem;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-s);
  background: var(--sand);
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.match__score--open {
  color: #6b6f78;
}

.match__live {
  color: var(--accent);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.match--fav {
  box-shadow: 0 0 0 2px var(--accent), 0 10px 26px rgb(200 16 46 / 0.2);
}

.match--fav .match__score {
  background: var(--accent);
  color: #fff;
}

.match--fav .match__live {
  color: #fff;
}

.match__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.1rem 0.7rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.matchday__source {
  margin: 1rem 0 0;
  color: #6b6f78;
  font-size: 0.85rem;
}

/* Switch "Spielplan" / "Tabelle": full width, a click anywhere flips to the other side */
.matchday__title {
  display: block;
  margin: 0 0 0.75rem;
  font-family: inherit;
  line-height: 1.4;
}

.md-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  margin-bottom: 1.25rem;
  padding: 0.35rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.md-switch::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  left: 0.35rem;
  width: calc(50% - 0.35rem);
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.45s cubic-bezier(0.3, 0.9, 0.3, 1);
}

.md-switch[aria-checked="true"]::before {
  transform: translateX(100%);
}

.md-switch__opt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.md-switch[aria-checked="false"] .md-switch__opt:first-child,
.md-switch[aria-checked="true"] .md-switch__opt:last-child {
  color: #fff;
}

.md-switch:hover .md-switch__opt {
  opacity: 0.92;
}

.md-switch:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Flip card: both faces share one grid cell, so the card is as tall as the taller face (no jumping) */
.flip {
  perspective: 2400px;
}

.flip__inner {
  display: grid;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0.1, 0.2, 1);
}

.flip.is-flipped .flip__inner {
  transform: rotateY(180deg);
}

.flip__face {
  grid-area: 1 / 1;
  min-width: 0;
  backface-visibility: hidden;
}

.flip__face--back {
  transform: rotateY(180deg);
}

/* League table in the same card style as the matches */
.league {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.45rem;
  font-variant-numeric: tabular-nums;
}

.league th,
.league td {
  padding: 0.55rem 0.5rem;
  text-align: center;
  white-space: nowrap;
}

.league thead th {
  padding-block: 0.2rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.league tbody td,
.league tbody th {
  background: #fff;
}

.league tbody td:first-child {
  border-radius: var(--radius-s) 0 0 var(--radius-s);
  padding-left: 1rem;
}

.league tbody td:last-child {
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  padding-right: 1rem;
}

.league .league__club {
  position: relative;
  width: 100%;
  text-align: left;
  white-space: normal;
}

.league__rank {
  width: 2.5rem;
  font-weight: 800;
}

.league__logo {
  width: 3rem;
  padding-inline: 0.25rem;
}

.league__logo .match__logo {
  display: block;
  width: 2.5rem;
  max-width: none;
  height: 2.5rem;
}

.league tbody .league__pts {
  font-size: 1.1rem;
  font-weight: 800;
}

.league--fav td,
.league--fav th {
  box-shadow: inset 0 2px 0 var(--accent), inset 0 -2px 0 var(--accent);
}

.league tbody .league--fav td:first-child {
  box-shadow: inset 2px 0 0 var(--accent), inset 0 2px 0 var(--accent), inset 0 -2px 0 var(--accent);
}

.league tbody .league--fav td:last-child {
  background: var(--accent);
  color: #fff;
}

.league--fav .match__team {
  color: var(--accent);
  font-weight: 800;
}

.league .match__badge {
  left: 0.5rem;
  transform: translateY(-50%);
}

.match--fav .match__team {
  color: var(--accent);
  font-weight: 800;
}

@media (max-width: 48rem) {
  .league__wdl,
  .league__goals {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flip__inner,
  .md-switch::before {
    transition: none;
  }
}

@media (max-width: 36rem) {
  .match {
    grid-template-columns: 2rem minmax(0, 1fr) auto minmax(0, 1fr) 2rem;
    gap: 0.4rem;
    padding: 0.7rem 0.55rem;
  }

  .match__logo {
    width: 2rem;
    height: 2rem;
  }

  .match__team {
    font-size: 0.9rem;
  }

  .match__name {
    display: none;
  }

  .match__short {
    display: block;
  }

  .league th,
  .league td {
    padding-inline: 0.3rem;
  }

  .league tbody td:first-child {
    padding-left: 0.5rem;
  }

  .league tbody td:last-child {
    padding-right: 0.6rem;
  }

  .league__logo .match__logo {
    width: 1.9rem;
    height: 1.9rem;
  }

  .match__score {
    min-width: 3.2rem;
    padding: 0.3rem 0.4rem;
    font-size: 1rem;
  }
}

/* Header: larger at the top, compact while scrolling (only transform is animated) */
.js .site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  background: none;
  border-bottom: 0;
  backdrop-filter: none;
  --bar-scale: 1.4444;
  --inner-shift: 1rem;
  --logo-scale: 1.45;
}

.js body {
  padding-top: calc(var(--header-h) + 2 * var(--inner-shift, 1rem));
}

.js .site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transform: scaleY(var(--bar-scale));
  transform-origin: top;
}

.js .site-header__inner {
  transform: translateY(var(--inner-shift));
}

.js .site-logo__inner {
  transform: scale(var(--logo-scale));
  transform-origin: left center;
}

.js .site-header.is-compact::before,
.js .site-header.is-compact .site-header__inner,
.js .site-header.is-compact .site-logo__inner,
.js .site-header:has(.site-nav.is-open)::before,
.js .site-header:has(.site-nav.is-open) .site-header__inner,
.js .site-header:has(.site-nav.is-open) .site-logo__inner {
  transform: none;
}

.js .site-header.is-ready::before,
.js .site-header.is-ready .site-header__inner,
.js .site-header.is-ready .site-logo__inner {
  transition: transform 0.35s cubic-bezier(0.3, 0.7, 0.3, 1);
}

@media (max-width: 30rem) {
  .js .site-header {
    --bar-scale: 1.2222;
    --inner-shift: 0.5rem;
    --logo-scale: 1.2;
  }

  .js body {
    padding-top: calc(var(--header-h) + 1rem);
  }
}

/* Skills lettering: three layers fly in one after another */
#skills {
  overflow-x: clip;
}

.skills-art {
  display: grid;
  max-width: 485px;
  margin-inline: auto;
}

.skills-art__layer {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
}

.skills-art.is-waiting .skills-art__layer {
  opacity: 0;
}

.skills-art.is-waiting .skills-art__layer:nth-child(1) {
  transform: translate(-70%, -25%) rotate(-14deg);
}

.skills-art.is-waiting .skills-art__layer:nth-child(2) {
  transform: translate(70%, 0) rotate(12deg);
}

.skills-art.is-waiting .skills-art__layer:nth-child(3) {
  transform: translate(-70%, 25%) rotate(-10deg);
}

.skills-art.is-visible .skills-art__layer {
  opacity: 1;
  transform: none;
  transition: transform 0.9s cubic-bezier(0.2, 0.85, 0.25, 1.1), opacity 0.6s ease;
}

.skills-art.is-visible .skills-art__layer:nth-child(2) {
  transition-delay: 0.45s;
}

.skills-art.is-visible .skills-art__layer:nth-child(3) {
  transition-delay: 0.9s;
}

/* Skills: headline with lettering, bento grid of skill cards, hashtag ticker */
.skills-head {
  display: grid;
  gap: var(--space-m);
  align-items: center;
  margin-bottom: var(--space-l);
}

.skills-head h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
}

.skills-head h2 span {
  display: block;
  color: var(--accent);
}

.skills-head .skills-art {
  max-width: 260px;
}

@media (min-width: 48rem) {
  .skills-head {
    grid-template-columns: 1fr auto;
  }

  .skills-head .skills-art {
    max-width: 300px;
  }
}

.skill-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-s);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .skill-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skill-card--hero {
    grid-column: span 2;
  }
}

@media (min-width: 64rem) {
  .skill-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .skill-card--wide {
    grid-column: span 2;
  }
}

.skill-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, rgb(15 76 129 / 0.35), transparent 55%),
    var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 0% 100%, rgb(200 16 46 / 0.55), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-card--hero,
.skill-card--red {
  background:
    repeating-linear-gradient(115deg, rgb(255 255 255 / 0.05) 0 2px, transparent 2px 22px),
    linear-gradient(135deg, #c8102e, #7d0a1d);
}

.skill-card--hero::before,
.skill-card--red::before {
  background: radial-gradient(circle at 100% 0%, rgb(255 255 255 / 0.2), transparent 60%);
}

.skill-card--ki {
  background:
    radial-gradient(circle at 100% 0%, rgb(200 16 46 / 0.4), transparent 55%),
    radial-gradient(circle at 0% 100%, rgb(15 76 129 / 0.5), transparent 55%),
    var(--ink);
}

.skill-card__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.18);
  transition: transform 0.35s ease;
}

.skill-card:hover .skill-card__icon {
  transform: rotate(-8deg) scale(1.08);
}

.skill-card__icon svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skill-card__no {
  position: absolute;
  top: 0.6rem;
  right: 1.1rem;
  z-index: -1;
  color: transparent;
  font-size: clamp(3.5rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1;
  -webkit-text-stroke: 1.5px rgb(255 255 255 / 0.22);
}

.skill-card h3,
.skill-card .skill-card__title {
  margin: 0.25rem 0 0;
  font-weight: 700;
  color: #fff;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
}

.skill-card--hero h3 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.skill-card p {
  margin: 0;
  color: rgb(255 255 255 / 0.85);
}

.skill-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: auto 0 0;
  padding: 0.5rem 0 0;
  list-style: none;
}

.skill-card__tags li {
  padding: 0.3rem 0.75rem;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.skills-ticker {
  margin-top: var(--space-l);
  padding-block: 1rem;
  overflow: hidden;
  border-block: 1px solid var(--line);
}

.skills-ticker__track {
  display: flex;
  width: max-content;
  animation: skills-ticker 120s linear infinite;
  animation-name: skills-ticker;
}

.skills-ticker__list {
  margin: 0;
  padding-right: 2rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
  word-spacing: 0.9rem;
}

.skills-ticker:hover .skills-ticker__track {
  animation-play-state: paused;
}

@keyframes skills-ticker {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .skills-ticker__track {
    width: auto;
    padding-inline: 1.25rem;
    animation: none;
  }

  .skills-ticker__list {
    white-space: normal;
  }

  .skills-ticker__list[aria-hidden="true"] {
    display: none;
  }

  .skill-card,
  .skill-card__icon {
    transition: none;
  }
}

/* ===== Christmas season (30.11.2026, remove after 06.01.2027) ===== */

/* Santa hat on the rs+ mark in the header */
.site-logo__mark::before {
  content: "";
  position: absolute;
  top: -0.62rem;
  left: -0.5rem;
  width: 1.6rem;
  height: 1.25rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 32'%3E%3Cpath d='M3 25C6 12 14 4 25 4c7 0 11 5 11 11l-3 2c-2-5-5-7-9-6-6 1-9 7-9 14z' fill='%23c8102e'/%3E%3Crect x='1' y='21' width='23' height='8' rx='4' fill='%23fff' stroke='%23e4ded4'/%3E%3Ccircle cx='35' cy='17' r='4.5' fill='%23fff' stroke='%23e4ded4'/%3E%3C/svg%3E") no-repeat center / contain;
  transform: rotate(-18deg);
  pointer-events: none;
}

/* Gentle snowfall in the dark page headers */
.page-hero::after,
.xmas-greeting::after {
  content: "";
  position: absolute;
  top: -300px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle, rgb(255 255 255 / 0.85) 0 1.6px, transparent 2.2px),
    radial-gradient(circle, rgb(255 255 255 / 0.5) 0 1.1px, transparent 1.7px),
    radial-gradient(circle, rgb(255 255 255 / 0.75) 0 2.4px, transparent 3px),
    radial-gradient(circle, rgb(255 255 255 / 0.45) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgb(255 255 255 / 0.65) 0 1.8px, transparent 2.4px);
  background-size: 230px 150px, 170px 100px, 410px 300px, 130px 75px, 290px 60px;
  background-position: 20px 30px, 95px 62px, 140px 210px, 53px 17px, 211px 41px;
  animation: xmas-snow 14s linear infinite;
  animation-name: xmas-snow;
  pointer-events: none;
}

@keyframes xmas-snow {
  to {
    transform: translateY(300px);
  }
}

/* Start page: Christmas greeting */
.xmas-greeting {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  overflow: hidden;
  margin-top: var(--space-m);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 90% 10%, rgb(255 200 90 / 0.25), transparent 40%),
    radial-gradient(circle at 0% 100%, rgb(15 76 129 / 0.45), transparent 50%),
    linear-gradient(135deg, #8c0b20, #3a0610 70%, #101217);
  color: #fff;
  box-shadow: var(--shadow);
}

.xmas-greeting__body {
  flex: 1 1 22rem;
  max-width: 40rem;
}

.xmas-greeting__kicker {
  color: #ffd27a;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.xmas-greeting h2,
.xmas-greeting .xmas-greeting__title {
  margin: 0.4rem 0 0.6rem;
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.15;
}

.xmas-greeting p {
  margin: 0;
  color: rgb(255 255 255 / 0.88);
}

.xmas-greeting .xmas-greeting__sign {
  margin-top: 0.75rem;
  color: #ffd27a;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
}

.xmas-greeting__baubles {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  align-self: stretch;
  margin-top: calc(-1 * clamp(1.5rem, 4vw, 2.5rem));
  padding-right: 1rem;
}

.xmas-ball {
  position: relative;
  display: block;
  width: 2.6rem;
  height: 2.6rem;
  margin-top: 4.5rem;
  border-radius: 50%;
  transform-origin: 50% -4.5rem;
  animation: xmas-swing 4s ease-in-out infinite alternate;
  animation-name: xmas-swing;
}

.xmas-ball::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 1px;
  height: 4.5rem;
  background: rgb(255 255 255 / 0.5);
}

.xmas-ball::after {
  content: "";
  position: absolute;
  top: -0.35rem;
  left: 50%;
  width: 0.7rem;
  height: 0.45rem;
  border-radius: 2px;
  background: #d9b45a;
  transform: translateX(-50%);
}

.xmas-ball--red {
  background: radial-gradient(circle at 35% 30%, #ff8a9c, #c8102e 55%, #6d0817);
}

.xmas-ball--gold {
  width: 3.2rem;
  height: 3.2rem;
  margin-top: 6.5rem;
  transform-origin: 50% -6.5rem;
  background: radial-gradient(circle at 35% 30%, #fff1c4, #d9a93a 55%, #7a5a12);
  animation-delay: -1.5s;
}

.xmas-ball--gold::before {
  height: 6.5rem;
}

.xmas-ball--blue {
  margin-top: 3rem;
  transform-origin: 50% -3rem;
  background: radial-gradient(circle at 35% 30%, #9cc8ff, #2a7ab8 55%, #0b3358);
  animation-delay: -3s;
}

.xmas-ball--blue::before {
  height: 3rem;
}

@keyframes xmas-swing {
  from {
    transform: rotate(-6deg);
  }

  to {
    transform: rotate(6deg);
  }
}

@media (max-width: 30rem) {
  .xmas-greeting__baubles {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero::after,
  .xmas-greeting::after,
  .xmas-ball {
    animation: none;
  }
}

/* ===== End of Christmas season ===== */

/* Profile line under the lead on "Das bin ich" */
.hero-sub {
  margin-top: var(--space-xs);
  color: rgb(255 255 255 / 0.7);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Start page: three service cards with call to action */
.services-strip {
  margin-block: var(--space-l);
}

.services-strip__head,
.process-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-s) var(--space-l);
  margin-bottom: var(--space-m);
}

.services-strip__head h1,
.services-strip__head h2,
.process-head h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  line-height: 1.1;
}

.process-head p {
  max-width: 28rem;
  margin: 0;
  color: var(--muted);
}

@media (min-width: 48rem) {
  .skill-grid--three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.services-strip__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  margin-top: var(--space-s);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.services-strip__more .icon {
  color: var(--accent);
  transition: transform 0.25s ease;
}

.services-strip__more:hover .icon {
  transform: translateX(4px);
}

/* "So arbeite ich": four numbered steps joined by a line */
.process {
  position: relative;
  display: grid;
  gap: var(--space-m);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.process::before {
  content: "";
  position: absolute;
  top: 1.6rem;
  bottom: 1.6rem;
  left: 1.6rem;
  width: 2px;
  background: linear-gradient(var(--accent), var(--sea));
}

.process__step {
  position: relative;
  padding-left: 4.5rem;
}

.process__no {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 0 0 2px var(--accent);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.process__step:hover .process__no {
  background: var(--accent);
  transform: scale(1.08);
}

.process__step h3 {
  margin: 0.55rem 0 0.4rem;
  font-size: 1.25rem;
}

.process__step p {
  margin: 0;
  color: var(--muted);
}

@media (min-width: 56rem) {
  .process {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-l);
  }

  .process::before {
    top: 1.6rem;
    bottom: auto;
    left: 1.6rem;
    right: 1.6rem;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--sea));
  }

  .process__step {
    padding-left: 0;
    padding-top: 4.4rem;
  }
}

.process-cta {
  margin-top: var(--space-l);
}

/* Contact page: download box for the vCard */
.vcard-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-m);
  margin-top: var(--space-m);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(115deg, rgb(255 255 255 / 0.04) 0 2px, transparent 2px 22px),
    radial-gradient(circle at 100% 0%, rgb(200 16 46 / 0.45), transparent 50%),
    var(--ink);
  color: #fff;
}

.vcard-box[hidden] {
  display: none;
}

.vcard-box__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  flex: none;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 1rem;
  background: rgb(255 255 255 / 0.1);
}

.vcard-box__icon svg {
  width: 1.8rem;
  height: 1.8rem;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vcard-box__text {
  flex: 1 1 16rem;
}

.vcard-box h3 {
  margin: 0 0 0.25rem;
  color: #fff;
}

.vcard-box p {
  margin: 0;
  color: rgb(255 255 255 / 0.8);
}

@media (prefers-reduced-motion: reduce) {
  .process__no,
  .services-strip__more .icon {
    transition: none;
  }
}

/* Quote: words appear one by one, then the author fades in */
.quote__word {
  display: inline-block;
}

.quote.is-pending .quote__word {
  opacity: 0;
  transform: translateY(0.35em);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.quote.is-pending .quote__word.is-in {
  opacity: 1;
  transform: none;
}

.quote.is-pending footer {
  opacity: 0;
  transition: opacity 1.2s ease;
}

.quote.is-pending.is-author footer {
  opacity: 1;
}

/* "Das bin ich": what I offer as Account Manager */
.offer-list {
  margin: 0 0 var(--space-s);
  padding-left: 1.25rem;
}

.offer-list li {
  margin-bottom: 0.5rem;
}

.offer-list li::marker {
  color: var(--accent);
}

/* Recommendation post: advertising label, benefit list and call-to-action box */
.ad-label {
  display: inline-block;
  padding: 0.05rem 0.5rem;
  border: 1px solid var(--muted);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.prose .benefits {
  display: grid;
  gap: 0.75rem;
  margin: var(--space-s) 0 var(--space-m);
  padding: 0;
  list-style: none;
}

.prose .benefits li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin: 0;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-s);
  background: var(--sand);
}

.benefits .icon {
  flex: none;
  width: 2rem;
  height: 2rem;
  padding: 0.35rem;
  border-radius: 50%;
  background: var(--sea);
  color: #fff;
}

.benefits strong,
.benefits span {
  display: block;
}

.benefits span {
  color: var(--ink-soft);
}

.source-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.recommend-box {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  margin-top: var(--space-l);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--sea), #0a1e3a);
  color: #fff;
  text-align: center;
}

.recommend-box p {
  margin: 0;
}

.recommend-box__kicker {
  color: #ffd65c;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.recommend-box__title {
  max-width: 30rem;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 800;
  line-height: 1.2;
}

.recommend-box .btn {
  margin-top: 0.5rem;
}

.recommend-box__note {
  max-width: 34rem;
  color: #d6e4f2;
  font-size: 0.85rem;
}

/* Recommendation post: risk warning */
.risk-note {
  margin-top: var(--space-m);
  padding: 1.1rem 1.25rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius-s);
  background: #fdf1f3;
}

.risk-note p {
  margin: 0;
}

.risk-note p + p {
  margin-top: 0.6rem;
}

/* Blog post: key figures */
.prose .stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: var(--space-s) 0 var(--space-m);
  padding: 0;
  list-style: none;
}

.prose .stat-grid li {
  display: grid;
  margin: 0;
  padding: 1rem;
  border-radius: var(--radius-s);
  background: var(--sea);
  color: #fff;
  text-align: center;
}

.stat-grid strong {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
}

.stat-grid span {
  color: #d6e4f2;
  font-size: 0.9rem;
}

@media (min-width: 40rem) {
  .prose .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Catalog page */
.catalog-promise {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: var(--space-m) 0 0;
  padding: 0;
  list-style: none;
}

.catalog-promise li {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  font-weight: 700;
}

.catalog-promise li::before {
  content: "✓ ";
  color: var(--accent);
}

.catalog-how {
  display: grid;
  gap: var(--space-m);
  margin-bottom: var(--space-l);
}

.catalog-how h2 {
  margin-top: 0;
}

.catalog-brands {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.5rem;
}

.catalog-brands a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 1rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.catalog-brands a:hover,
.catalog-brands a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.catalog-brand {
  padding-top: var(--space-l);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.catalog-brand + .catalog-brand {
  border-top: 1px solid var(--line);
}

.catalog-brand h2 {
  margin: 0 0 0.25rem;
}

.catalog-brand__intro {
  margin: 0 0 var(--space-m);
  color: var(--muted);
}

.products {
  display: grid;
  gap: var(--space-m);
  margin: 0 0 var(--space-l);
  padding: 0;
  list-style: none;
}

@media (min-width: 36rem) {
  .products {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Wide screens: brand name on the left, its products on the right */
@media (min-width: 62rem) {
  .catalog-brand {
    display: grid;
    grid-template-columns: 15rem 1fr;
    grid-template-rows: auto 1fr;
    column-gap: var(--space-l);
    align-items: start;
  }

  .catalog-brand h2,
  .catalog-brand__intro {
    grid-column: 1;
  }

  .catalog-brand .products {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

.product {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.product__media {
  aspect-ratio: 1;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.product__media img {
  width: 100%;
  height: 100%;
  padding: 1rem;
  object-fit: contain;
}

.product__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem 1.35rem 1.4rem;
}

.product__meta {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product__title {
  margin: 0.3rem 0 0.5rem;
  font-size: 1.25rem;
}

.product__text {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
}

.product__facts {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  font-size: 0.92rem;
}

.product__facts li::marker {
  color: var(--accent);
}

.product__price {
  margin: auto 0 0.85rem;
  font-weight: 800;
}

.product__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product__actions .btn {
  flex: 1 1 auto;
  padding-inline: 1rem;
}

.catalog-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (min-width: 56rem) {
  .catalog-how {
    grid-template-columns: 3fr 2fr;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product,
  .product:hover {
    transform: none;
  }
}

/* Hamburg hotel tip: drawn visual (night sky, warm lights, water lines) instead of a photo */
.hotel-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 22%, rgb(255 214 92 / 0.45), transparent 32%),
    radial-gradient(circle at 15% 85%, rgb(200 16 46 / 0.35), transparent 40%),
    repeating-linear-gradient(180deg, transparent 0 14px, rgb(255 255 255 / 0.05) 14px 16px),
    linear-gradient(160deg, #0f4c81 0%, #0a1e3a 70%);
  color: #fff;
}

.article-hero.hotel-visual {
  aspect-ratio: 16 / 9;
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.hotel-visual__kicker {
  color: #ffd65c;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hotel-visual__title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  font-style: italic;
  line-height: 1.05;
}

.hotel-visual__sub {
  margin-top: 0.3rem;
  color: #d6e4f2;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
}

.card__media.hotel-visual--card {
  padding: 1.1rem 1.25rem;
}

.hotel-visual--card .hotel-visual__title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

/* Home page: banner at the very top */
.top-banner {
  margin-top: var(--space-s);
  margin-bottom: var(--space-m);
}

.top-banner__link {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-s);
  padding: clamp(1.4rem, 4vw, 2.25rem) clamp(1.25rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.top-banner__link:hover,
.top-banner__link:focus-visible {
  color: #fff;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.top-banner__body {
  display: grid;
  gap: 0.35rem;
}

/* Banner with the hotel photo behind a dark blue veil for readable text */
.top-banner__link--photo {
  isolation: isolate;
}

.top-banner__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 60%;
}

.top-banner__link--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(10 30 58 / 0.6) 0%, rgb(10 30 58 / 0.88) 100%);
}

@media (min-width: 48rem) {
  .top-banner__link--photo::before {
    background: linear-gradient(90deg, rgb(10 30 58 / 0.94) 0%, rgb(10 30 58 / 0.75) 50%, rgb(10 30 58 / 0.3) 100%);
  }
}

.top-banner__kicker {
  color: #ffd65c;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.top-banner__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-style: italic;
  line-height: 1.1;
}

.top-banner__text {
  color: #d6e4f2;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.top-banner__btn {
  flex: none;
}

.top-banner__link:hover .top-banner__btn {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
  transform: none;
}

@media (min-width: 48rem) {
  .top-banner__link {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-banner__link,
  .top-banner__link:hover {
    transform: none;
  }
}

/* eBay shop: product picture collage (post and home page) and home page promo */
.shop-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 0 0 var(--space-l);
  padding: 0;
  list-style: none;
}

.shop-collage li {
  aspect-ratio: 1;
  border-radius: var(--radius-s);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}

.shop-collage img {
  width: 100%;
  height: 100%;
  padding: 0.6rem;
  object-fit: contain;
}

@media (min-width: 40rem) {
  .shop-collage {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card__media--product {
  background: #fff;
}

.card__media--product img {
  padding: 0.75rem;
  object-fit: contain;
}

/* eBay shop promo in the look of www.brsplus24.de: dark slide with stripes,
   product discs on a turning dashed ring, brsplus24 word mark and brand ticker */
.shop-promo {
  --sp-pad: clamp(1.5rem, 5vw, 3rem);
  position: relative;
  display: grid;
  gap: var(--space-l);
  margin-bottom: var(--space-l);
  padding: var(--sp-pad) var(--sp-pad) 0;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(circle at 75% 40%, #3a3f4b 0%, #22252d 45%, #0d0e12 100%);
  color: #fff;
  box-shadow: var(--shadow-hover);
}

.shop-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(115deg, rgb(255 255 255 / 0.035) 0 2px, transparent 2px 22px);
  pointer-events: none;
}

.shop-promo__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  margin-bottom: var(--space-s);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.shop-promo__logo b {
  color: #ff4d6a;
  font-weight: 700;
}

.shop-promo__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.45rem;
  background: #fff;
  color: #15171c;
  font-size: 1.6rem;
  font-weight: 800;
}

.shop-promo__mark i {
  position: absolute;
  top: 0;
  right: 0.15rem;
  color: #c8102e;
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 800;
}

.shop-promo__badge {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.14);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.shop-promo__body h2 {
  margin: 0.9rem 0 0.7rem;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.shop-promo__hl {
  padding-inline: 0.05em;
  background: linear-gradient(transparent 62%, rgb(200 16 46 / 0.6) 62%, rgb(200 16 46 / 0.6) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.shop-promo__body p {
  max-width: 34rem;
  color: rgb(255 255 255 / 0.82);
  font-size: 1.08rem;
}

.shop-promo .btn--light:hover {
  background: #fff;
  border-color: #fff;
  color: #c8102e;
}

/* Further sales channels (eBay, Hood) as glass tiles below the buttons */
.shop-channels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: var(--space-m);
  padding-top: var(--space-s);
  border-top: 1px solid rgb(255 255 255 / 0.12);
}

.shop-channels__label {
  width: 100%;
  color: rgb(255 255 255 / 0.65);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.shop-channel {
  --channel: #ffd65c;
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 0.8rem;
  min-height: 48px;
  padding: 0.55rem 1rem 0.55rem 0.9rem;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-left: 4px solid var(--channel);
  border-radius: var(--radius-s);
  background: rgb(255 255 255 / 0.07);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.shop-channel--hood {
  --channel: #ff8a2b;
}

.shop-channel__name {
  grid-column: 1;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.1;
}

.shop-channel__sub {
  grid-column: 1;
  color: rgb(255 255 255 / 0.7);
  font-size: 0.78rem;
}

.shop-channel .icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--channel);
}

.shop-channel:hover,
.shop-channel:focus-visible {
  border-color: var(--channel);
  background: rgb(255 255 255 / 0.14);
  color: #fff;
  transform: translateY(-2px);
}

/* Red main button to the own online shop brsplus24.de */
.shop-promo .btn--shop {
  background: #c8102e;
  border-color: #c8102e;
  color: #fff;
  box-shadow: 0 10px 24px rgb(200 16 46 / 0.35);
}

.shop-promo .btn--shop:hover {
  background: #fff;
  border-color: #fff;
  color: #c8102e;
}

.shop-promo__visual {
  position: relative;
  height: clamp(16rem, 62vw, 24rem);
}

.shop-promo__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92%, 23rem);
  aspect-ratio: 1;
  border: 2px dashed rgb(255 255 255 / 0.25);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: shop-ring 40s linear infinite;
  animation-name: shop-ring;
}

.shop-promo__disc {
  position: absolute;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.35);
}

.shop-promo__disc img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.shop-promo__disc--main {
  left: 50%;
  top: 50%;
  width: min(64%, 16rem);
  transform: translate(-50%, -50%);
  animation: shop-float 6s ease-in-out infinite;
  animation-name: shop-float;
}

.shop-promo__disc--side,
.shop-promo__disc--small {
  border: 5px solid rgb(255 255 255 / 0.35);
  background-clip: padding-box;
}

.shop-promo__disc--side {
  right: 3%;
  bottom: 3%;
  width: min(32%, 8.5rem);
}

.shop-promo__disc--small {
  left: 3%;
  bottom: 10%;
  width: min(25%, 6.5rem);
}

.shop-promo__stamp {
  position: absolute;
  right: 4%;
  top: 3%;
  display: grid;
  place-content: center;
  width: clamp(5rem, 20vw, 6.5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #c8102e;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-12deg);
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.3);
}

.shop-promo__stamp strong {
  font-size: clamp(0.85rem, 2.6vw, 1.05rem);
  letter-spacing: 0;
  text-transform: none;
}

/* Brand ticker at the bottom edge, like on brsplus24.de */
.shop-promo__marquee {
  grid-column: 1 / -1;
  margin-inline: calc(-1 * var(--sp-pad));
  padding-block: 1rem;
  overflow: hidden;
  border-top: 1px solid rgb(255 255 255 / 0.08);
  background: #15171c;
}

.shop-promo__track {
  display: flex;
  width: max-content;
  animation: shop-marquee 38s linear infinite;
  animation-name: shop-marquee;
}

.shop-promo__marquee:hover .shop-promo__track {
  animation-play-state: paused;
}

.shop-promo__list {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0 2rem 0 0;
  list-style: none;
}

.shop-promo__list li {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.shop-promo__list li:nth-child(4n + 3) {
  color: transparent;
  -webkit-text-stroke: 1px #fff;
}

.shop-promo__list li::after {
  content: "✦" / "";
  color: #ff8a9c;
  font-size: 1rem;
  -webkit-text-stroke: 0;
}

@keyframes shop-ring {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes shop-float {
  0%,
  100% {
    transform: translate(-50%, -50%);
  }

  50% {
    transform: translate(-50%, calc(-50% - 10px));
  }
}

@keyframes shop-marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (min-width: 48rem) {
  .shop-promo {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-promo__ring,
  .shop-promo__disc--main,
  .shop-promo__track {
    animation: none;
  }
}

/* Private sales: drawn visual, home page strip and cards on the Sales page */
.sales-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgb(255 214 92 / 0.55), transparent 35%),
    radial-gradient(circle at 10% 90%, rgb(15 76 129 / 0.35), transparent 45%),
    linear-gradient(150deg, #c8102e 0%, #6e0818 75%);
  color: #fff;
}

.article-hero.sales-visual {
  aspect-ratio: 16 / 9;
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.card__media.sales-visual--card {
  padding: 1.1rem 1.25rem;
}

.sales-visual__kicker {
  color: #ffe9a8;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sales-visual__title {
  font-size: clamp(1.6rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
}

.sales-visual--card .sales-visual__title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.sales-visual__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.sales-visual__chips span {
  padding: 0.3rem 0.85rem;
  border: 1.5px solid rgb(255 255 255 / 0.75);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Private sales strip: warm red gradient with a price-tag look */
.private-strip {
  position: relative;
  display: grid;
  gap: var(--space-m);
  margin-bottom: var(--space-l);
  padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1.5rem, 4vw, 2.75rem);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 15%, rgb(255 214 92 / 0.4), transparent 35%),
    linear-gradient(120deg, #c8102e 0%, #8e0a20 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.private-strip::before {
  content: "%";
  position: absolute;
  right: clamp(-1rem, 2vw, 1rem);
  bottom: -2.5rem;
  font-size: 11rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0.08;
  pointer-events: none;
}

.private-strip .eyebrow {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: #ffd65c;
  color: var(--ink);
}

.private-strip h2 {
  margin: 0.7rem 0 0.4rem;
  color: #fff;
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
}

.private-strip p {
  margin: 0;
  color: #ffe3e8;
}

.private-strip .btn-row {
  position: relative;
  margin-top: 0;
}

.private-strip .btn {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.private-strip .btn--ghost {
  background: transparent;
  color: #fff;
}

.private-strip .btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

@media (min-width: 56rem) {
  .private-strip {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.sales-private-title {
  margin-top: var(--space-xl);
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.sales-private-title::after {
  content: "";
  display: block;
  width: 4rem;
  height: 0.3rem;
  margin-top: 0.6rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #ffd65c);
}

.sales-private-intro {
  max-width: 44rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.sales-grid {
  display: grid;
  gap: var(--space-m);
  margin-top: var(--space-m);
}

@media (min-width: 48rem) {
  .sales-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Private sales cards: colourful gradient tiles with a big watermark letter */
.sales-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 16rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 12%, rgb(255 214 92 / 0.45), transparent 38%),
    linear-gradient(135deg, #c8102e 0%, #7a0a1c 100%);
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sales-card--vinted {
  background:
    radial-gradient(circle at 88% 12%, rgb(120 220 210 / 0.4), transparent 38%),
    linear-gradient(135deg, #0f4c81 0%, #0a1e3a 100%);
}

.sales-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.sales-card::before {
  content: "K";
  position: absolute;
  right: -0.5rem;
  bottom: -3.5rem;
  font-family: var(--font-serif);
  font-size: 14rem;
  font-style: italic;
  line-height: 1;
  opacity: 0.1;
  pointer-events: none;
}

.sales-card--vinted::before {
  content: "V";
}

.sales-card h3 {
  margin: 0.8rem 0 0.5rem;
  color: #fff;
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
}

.sales-card p {
  color: rgb(255 255 255 / 0.88);
}

.sales-card .btn-row {
  position: relative;
  margin-top: auto;
  padding-top: var(--space-s);
}

.sales-card .btn {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.sales-card .btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.sales-card__badge {
  align-self: flex-start;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: #ffd65c;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .sales-card,
  .sales-card:hover {
    transform: none;
  }
}

.sales-note {
  margin-top: var(--space-m);
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== Site-wide design refresh (26.11.2026) ===== */

/* Every page header in the dark look of footer, legal pages and brsplus24.de */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2.75rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(circle at 85% 30%, rgb(200 16 46 / 0.4), transparent 45%),
    radial-gradient(circle at 5% 100%, rgb(15 76 129 / 0.4), transparent 45%),
    #101217;
  color: #fff;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(115deg, rgb(255 255 255 / 0.03) 0 2px, transparent 2px 22px);
  pointer-events: none;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 7.5vw, 3.6rem);
}

.page-hero .eyebrow {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  color: #fff;
}

.page-hero .lead {
  color: rgb(255 255 255 / 0.8);
}

.page-hero .video-card {
  border: 4px solid rgb(255 255 255 / 0.85);
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.4);
}

/* Section heads: red bar in front of the small label */
.section-head .eyebrow {
  position: relative;
  padding-left: 2.2rem;
}

.section-head .eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.6rem;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
  transform: translateY(-50%);
}

/* Blog and news cards: picture zoom, red bar and arrow that move on hover */
.card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2;
  height: 4px;
  background: linear-gradient(90deg, #c8102e, #ff8a9c);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.card:hover::before,
.card:focus-within::before {
  transform: scaleX(1);
}

.card__media img {
  transition: transform 0.5s ease;
}

.card:hover .card__media img {
  transform: scale(1.06);
}

.card__title a {
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 0 2px;
  transition: background-size 0.3s ease;
}

.card:hover .card__title a {
  background-size: 100% 2px;
}

.card__more {
  display: inline-block;
  transition: transform 0.25s ease;
}

.card:hover .card__more {
  transform: translateX(5px);
}

/* Social posts in the news feed: lift and zoom like the blog cards */
.post__media {
  overflow: hidden;
}

.post__media img {
  transition: transform 0.5s ease;
}

.post__link:hover .post__media img {
  transform: scale(1.06);
}

/* Gallery: dark veil with a plus sign on hover, rounder corners */
.gallery a {
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery a::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgb(200 16 46 / 0.55), rgb(16 18 23 / 0.75));
  color: #fff;
  font-size: 2.6rem;
  font-weight: 300;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery a:hover::after,
.gallery a:focus-visible::after {
  opacity: 1;
}

/* Gallery page: every 7th picture bigger for a lively mosaic on wide screens */
@media (min-width: 48rem) {
  .gallery--mosaic {
    grid-auto-flow: dense;
  }

  .gallery--mosaic li:nth-child(7n + 1) {
    grid-column: span 2;
    grid-row: span 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card::before,
  .card__media img,
  .card:hover .card__media img,
  .card__more,
  .post__media img,
  .post__link:hover .post__media img {
    transition: none;
    transform: none;
  }
}

/* Fade-in while scrolling (classes set by main.js, removed again afterwards) */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-property: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Blog posts: reading bar at the very top and reading time */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 4px;
  pointer-events: none;
}

.read-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #c8102e, #ff8a9c);
  transform: scaleX(0);
  transform-origin: left center;
}

.read-time {
  white-space: nowrap;
}

/* Round "to top" button with progress ring */
.top-fab {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 150;
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: #15171c;
  color: #fff;
  box-shadow: 0 10px 28px rgb(0 0 0 / 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
}

.top-fab.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.top-fab:hover,
.top-fab:focus-visible {
  background: #c8102e;
  color: #fff;
}

.top-fab svg {
  grid-area: 1 / 1;
}

.top-fab__ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.top-fab__track,
.top-fab__fill {
  fill: none;
  stroke-width: 2.5;
}

.top-fab__track {
  stroke: rgb(255 255 255 / 0.18);
}

.top-fab__fill {
  stroke: #ff3b57;
  stroke-linecap: round;
}

.top-fab:hover .top-fab__fill {
  stroke: #fff;
}

.top-fab__arrow {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Phones: quick bar at the bottom */
.quick-bar {
  display: none;
}

@media (max-width: 47.99rem) {
  .quick-bar {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 140;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: rgb(21 23 28 / 0.94);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 30px rgb(0 0 0 / 0.35);
  }

  .quick-bar__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 48px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
  }

  .quick-bar__link--phone {
    background: #c8102e;
  }

  .quick-bar__link--whatsapp {
    background: #0f7a43;
  }

  .quick-bar__link--arrow {
    background: rgb(255 255 255 / 0.12);
  }

  .quick-bar__link:hover,
  .quick-bar__link:focus-visible {
    color: #fff;
  }

  .has-quick-bar .site-footer {
    padding-bottom: calc(var(--space-l) + 4.5rem);
  }

  .has-quick-bar .top-fab {
    bottom: 5.4rem;
  }
}

/* "Das bin ich": stat tiles below the header */
.stats-strip {
  padding-block: var(--space-l);
}

.stats-strip .stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-s);
  margin: 0;
  padding: 0;
  list-style: none;
}

.stats-strip .stat-grid li {
  display: grid;
  gap: 0.2rem;
  padding: var(--space-m) var(--space-s);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  text-align: center;
}

.stats-strip .stat-grid strong {
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3rem);
}

.stats-strip .stat-grid span {
  color: var(--muted);
}

@media (min-width: 48rem) {
  .stats-strip .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 404 page: "Abseits!" on a dark pitch */
.error-page--pitch {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: none;
  padding-inline: 1.25rem;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 7.5rem, rgb(255 255 255 / 0.12) 7.5rem calc(7.5rem + 2px), transparent calc(7.5rem + 2px)),
    linear-gradient(90deg, transparent calc(50% - 1px), rgb(255 255 255 / 0.12) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    radial-gradient(circle at 85% 30%, rgb(200 16 46 / 0.4), transparent 45%),
    #101217;
  color: #fff;
}

.error-page--pitch .big {
  color: transparent;
  -webkit-text-stroke: 2px #ff3b57;
}

.error-page--pitch h1 {
  color: #fff;
}

.error-page--pitch .lead {
  color: rgb(255 255 255 / 0.8);
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: var(--space-m) 0 0;
  padding: 0;
  list-style: none;
}

.error-links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.5rem 1.3rem;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.error-links a:hover {
  border-color: #c8102e;
  background: #c8102e;
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .top-fab,
  .top-fab.is-visible {
    transition: none;
    transform: none;
  }
}
