/* Radio Austria – Produktseite. Eine Datei, geschichtet via @layer. */
@layer reset, tokens, base, layout, components, motion, utilities;

/* ---------- Fonts (self-hosted, SIL OFL – siehe /fonts/OFL-*.txt) ---------- */
@font-face {
  font-family: "Sora";
  src: url("/fonts/sora-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("/fonts/sora-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  img, svg, video { display: block; max-width: 100%; }
  img { height: auto; }
  input, button, textarea, select { font: inherit; }
  ul[class], ol[class] { list-style: none; padding: 0; }
  a { color: inherit; }
}

@layer tokens {
  :root {
    /* Farben */
    --bg: #0A0A0B;
    --bg-2: #101012;
    --surface: #141416;
    --surface-2: #1A1A1D;
    --glass: rgba(20, 20, 22, 0.6);
    --stroke: rgba(255, 255, 255, 0.09);
    --stroke-2: rgba(255, 255, 255, 0.16);
    --text: #F4F4F5;
    --text-2: rgba(244, 244, 245, 0.68);
    --text-3: rgba(244, 244, 245, 0.45);
    --brand: #ED2939; /* Österreich-Rot aus dem RadioAT-Logo (C:\Yahya\Apps\RadioAT\Logo) */
    --brand-2: #F4505C;
    --brand-text: #FF707A;
    --brand-soft: rgba(237, 41, 57, 0.14);
    --brand-border: rgba(237, 41, 57, 0.35);
    --mark-bg: #282828; /* Hintergrund des App-Icons (ic_launcher_background im austria-Source-Set) */
    --up: #4ADE80;
    --down: #F87171;
    --gold: #FFC53D;
    /* Typo */
    --font-display: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --fs-hero: clamp(2.6rem, 7.5vw + 0.6rem, 5.25rem);
    --fs-h2: clamp(1.7rem, 2.6vw + 0.9rem, 2.75rem);
    --fs-h3: 1.0625rem;
    --fs-body: 1rem;
    --fs-small: 0.875rem;
    --fs-tiny: 0.8125rem;
    /* Layout */
    --container: 1180px;
    --header-h: 4rem;
    --r-s: 10px;
    --r-m: 16px;
    --r-l: 24px;
    --r-xl: 32px;
    --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
    --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  }
}

@layer base {
  html {
    color-scheme: dark;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
    -webkit-text-size-adjust: 100%;
  }
  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-text);
    font-size: var(--fs-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; }
  p { text-wrap: pretty; }
  a { text-decoration: none; }
  ::selection { background: var(--brand); color: #fff; }
  :focus-visible {
    outline: 2px solid var(--brand-text);
    outline-offset: 3px;
    border-radius: 4px;
  }
  .sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
  .skip-link {
    position: absolute;
    inset-inline-start: 1rem;
    top: -4rem;
    z-index: 100;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    padding: 0.7rem 1.2rem;
    border-radius: var(--r-s);
    transition: top 0.2s var(--ease-out);
  }
  .skip-link:focus-visible { top: 1rem; }
}

@layer layout {
  .container {
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
  }
  .container--narrow { width: min(100% - 2.5rem, 760px); }
  .section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
  .section__title {
    font-size: var(--fs-h2);
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  .section__sub {
    color: var(--text-2);
    max-width: 56ch;
    margin-block: var(--sp-4) var(--sp-6);
  }
  .accent { color: var(--brand-text); }
  .muted { color: var(--text-3); }
}

@layer components {
  /* ---------- Buttons & Badges ---------- */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: var(--fs-small);
    transition: transform 0.2s var(--ease-out), background 0.2s, box-shadow 0.2s;
  }
  .btn--primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 4px 18px rgba(237, 41, 57, 0.35);
  }
  .btn--primary:hover { background: var(--brand-2); transform: translateY(-1px); }
  .store-badge { display: inline-block; border-radius: 8px; transition: transform 0.2s var(--ease-out); }
  .store-badge img { height: 4.5rem; width: auto; }
  .store-badge:hover { transform: translateY(-2px) scale(1.02); }

  /* ---------- Header ---------- */
  .header-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  }
  .site-header.is-scrolled {
    background: var(--glass);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    border-bottom-color: var(--stroke);
  }
  @supports not (backdrop-filter: blur(1px)) {
    .site-header.is-scrolled { background: rgba(10, 10, 11, 0.94); }
  }
  .site-header__inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: var(--header-h);
  }
  /* Mobil darf die Wortmarke schrumpfen (Ellipsis), damit der Header auch bei
     starker System-Schriftskalierung nie breiter wird als der Viewport. */
  .brand { display: inline-flex; align-items: center; gap: 0.6rem; flex: 1; min-width: 0; }
  /* Die Marke ist das farbige RadioAT-Logo (Flaggenkreis + Wellen) auf dunklem Grund —
     gleicher Look wie das App-Icon, daher dunkle Kachel statt Markenrot. */
  .brand__mark {
    display: grid;
    place-items: center;
    width: 2.125rem;
    height: 2.125rem;
    border-radius: 9px;
    background: var(--mark-bg);
    border: 1px solid var(--stroke-2);
    flex: none;
  }
  .brand__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.0625rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .site-nav { display: none; }
  .lang {
    display: inline-flex;
    gap: 2px;
    margin-inline-start: auto;
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: 999px;
    padding: 3px;
  }
  .lang a {
    display: grid;
    place-items: center;
    min-width: 2.25rem;
    min-height: 2.125rem;
    padding-inline: 0.35rem;
    border-radius: 999px;
    font-size: var(--fs-tiny);
    font-weight: 600;
    color: var(--text-2);
  }
  .lang a:hover { color: var(--text); background: var(--surface-2); }
  .lang a[aria-current="page"] { background: var(--brand); color: #fff; }
  .site-header__cta { display: none; }
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    color: var(--text);
    cursor: pointer;
  }
  .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .nav-toggle__close, .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

  /* Mobile-Navigationspanel */
  .site-nav.is-open {
    display: block;
    position: absolute;
    top: calc(100% + 0.5rem);
    inset-inline: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--r-m);
    padding: 0.5rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  }
  .site-nav.is-open ul { display: grid; }
  .site-nav.is-open a {
    display: block;
    padding: 0.8rem 1rem;
    border-radius: var(--r-s);
    font-weight: 600;
    font-size: var(--fs-small);
    color: var(--text-2);
  }
  .site-nav.is-open a:hover { background: var(--surface-2); color: var(--text); }

  @media (min-width: 56.25rem) {
    .site-header__inner { position: relative; gap: var(--sp-4); }
    .brand { flex: none; }
    .lang a { min-width: 2.5rem; padding-inline: 0.45rem; }
    .site-nav { display: block; margin-inline-start: var(--sp-5); }
    .site-nav ul { display: flex; gap: var(--sp-5); }
    .site-nav a {
      font-size: var(--fs-small);
      font-weight: 500;
      color: var(--text-2);
      padding-block: 0.4rem;
    }
    .site-nav a:hover { color: var(--text); }
    .nav-toggle { display: none; }
    .site-header__cta { display: inline-flex; }
  }

  /* ---------- Hero ---------- */
  .hero {
    position: relative;
    overflow: clip;
    padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem);
  }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(640px 440px at 78% -10%, rgba(237, 41, 57, 0.22), transparent 65%),
      radial-gradient(520px 400px at -8% 28%, rgba(244, 80, 92, 0.1), transparent 60%);
  }
  .hero__grid {
    position: relative;
    display: grid;
    gap: var(--sp-7);
    align-items: center;
  }
  .pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--fs-tiny);
    font-weight: 600;
    color: #FF8B91;
    background: var(--brand-soft);
    border: 1px solid var(--brand-border);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    margin-bottom: var(--sp-5);
  }
  .live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #FF4D55;
    flex: none;
    animation: pulse 1.6s ease-in-out infinite;
  }
  .hero__title {
    font-size: var(--fs-hero);
    font-weight: 700;
    letter-spacing: -0.025em;
  }
  .hero__claim {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.125rem, 1.2vw + 0.9rem, 1.5rem);
    color: rgba(244, 244, 245, 0.88);
    margin-top: var(--sp-4);
  }
  .hero__sub {
    color: var(--text-2);
    max-width: 46ch;
    margin-block: var(--sp-3) var(--sp-6);
  }
  .hero__cta { display: grid; gap: var(--sp-3); justify-items: start; }
  .trust { font-size: var(--fs-small); color: var(--text-2); }
  .trust strong { color: var(--text); }
  .stars { color: var(--gold); letter-spacing: 2px; }
  .hero__visual { display: grid; justify-items: center; }

  /* ---------- Phone-Frames ---------- */
  .phone {
    position: relative;
    background: #16161A;
    border: 1px solid #2C2C30;
    border-radius: clamp(28px, 9vw, 40px);
    padding: clamp(8px, 2vw, 11px);
    box-shadow:
      0 40px 90px rgba(0, 0, 0, 0.6),
      0 18px 50px rgba(237, 41, 57, 0.12);
  }
  .phone__screen {
    border-radius: clamp(20px, 7vw, 30px);
    overflow: hidden;
    background: #0E0E10;
    aspect-ratio: 6 / 13;
  }
  .phone__screen img { width: 100%; height: 100%; object-fit: cover; }
  .phone--hero {
    width: clamp(240px, 66vw, 330px);
    animation: float 7s ease-in-out infinite;
  }
  .phone--shot { width: 100%; box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5); }

  .chip {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(10, 10, 11, 0.72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid var(--stroke-2);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: var(--fs-tiny);
    font-weight: 600;
    color: #fff;
  }
  .chip--live { top: 9%; left: -1.25rem; }
  .chip--eq { bottom: 13%; right: -1.25rem; padding-block: 0.5rem; }
  .chip--eq i {
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: var(--brand-2);
    transform-origin: bottom;
    animation: eq 1.1s ease-in-out infinite;
  }
  .chip--eq i:nth-child(1) { animation-delay: 0s; height: 9px; }
  .chip--eq i:nth-child(2) { animation-delay: 0.15s; }
  .chip--eq i:nth-child(3) { animation-delay: 0.3s; height: 11px; }
  .chip--eq i:nth-child(4) { animation-delay: 0.45s; }
  .chip--eq i:nth-child(5) { animation-delay: 0.6s; height: 10px; }

  @media (min-width: 56.25rem) {
    .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
    .hero__visual { justify-items: end; padding-inline-end: var(--sp-5); }
  }

  /* ---------- Stats ---------- */
  .stats { border-block: 1px solid var(--stroke); background: var(--bg-2); }
  .stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
  .stat {
    display: grid;
    gap: 0.2rem;
    justify-items: center;
    text-align: center;
    padding: 1.1rem 0.5rem;
  }
  .stat:nth-child(odd) { border-inline-end: 1px solid var(--stroke); }
  .stat:nth-child(-n+2) { border-block-end: 1px solid var(--stroke); }
  .stat__value { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; }
  .stat__value--accent { color: var(--brand-text); }
  .stat__label { font-size: var(--fs-tiny); color: var(--text-2); }
  @media (min-width: 40rem) {
    .stats__grid { grid-template-columns: repeat(4, 1fr); }
    .stat { border-block-end: none !important; }
    .stat:nth-child(-n+3) { border-inline-end: 1px solid var(--stroke); }
    .stat:nth-child(4) { border-inline-end: none; }
  }

  /* ---------- Bento ---------- */
  .bento { display: grid; gap: var(--sp-4); }
  .bento__item {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--r-m);
    padding: var(--sp-5);
    transition: transform 0.25s var(--ease-out), border-color 0.25s, background 0.25s;
  }
  @media (hover: hover) {
    .bento__item:hover {
      transform: translateY(-3px);
      border-color: var(--brand-border);
      background: var(--surface-2);
    }
  }
  .bento__icon {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand-text);
    margin-bottom: var(--sp-4);
  }
  .bento__item h3 { font-size: var(--fs-h3); font-weight: 600; margin-bottom: 0.4rem; }
  .bento__item p { font-size: var(--fs-small); color: var(--text-2); }
  .features__more {
    margin-top: var(--sp-5);
    font-size: var(--fs-small);
    color: var(--text-3);
    max-width: 75ch;
  }
  @media (min-width: 40rem) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (min-width: 56.25rem) {
    .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .bento__item--wide { grid-column: span 2; }
  }

  /* ---------- Showcase ---------- */
  .showcase { background: var(--bg-2); border-block: 1px solid var(--stroke); }
  .shots-wrap { position: relative; }
  .shots {
    display: flex;
    gap: var(--sp-5);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-block: var(--sp-2) var(--sp-4);
    scrollbar-width: none;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shot {
    flex: none;
    width: min(62vw, 230px);
    scroll-snap-align: center;
  }
  .shot figcaption {
    text-align: center;
    font-size: var(--fs-tiny);
    color: var(--text-2);
    margin-top: var(--sp-3);
  }
  .shots__dots {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    padding-block: var(--sp-2) var(--sp-4);
  }
  .shots__dots button {
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: grid;
    place-items: center;
  }
  .shots__dots button::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--stroke-2);
    transition: background 0.2s, transform 0.2s;
  }
  .shots__dots button:hover::before { background: var(--text-3); }
  .shots__dots button.is-active::before { background: var(--brand-2); transform: scale(1.3); }
  .shots__arrow {
    position: absolute;
    top: 38%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: 1px solid var(--stroke-2);
    background: var(--glass);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s var(--ease-out), opacity 0.2s;
  }
  @supports not (backdrop-filter: blur(1px)) {
    .shots__arrow { background: rgba(10, 10, 11, 0.92); }
  }
  .shots__arrow:hover:not(:disabled) { border-color: var(--brand-border); transform: scale(1.07); }
  .shots__arrow:disabled { opacity: 0.3; cursor: default; }
  .shots__arrow--prev { left: 0.75rem; }
  .shots__arrow--next { right: 0.75rem; }
  @media (max-width: 39.9375rem) {
    .shots__arrow { display: none; }
  }
  @media (min-width: 72rem) {
    /* Alle 5 Screens passen nebeneinander: statisches Grid statt Carousel. */
    .shots {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      overflow: visible;
    }
    .shot { width: auto; }
    .shots__arrow, .shots__dots { display: none; }
  }

  /* ---------- Charts ---------- */
  .charts { position: relative; overflow: clip; }
  .charts::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(620px 380px at 110% 10%, rgba(237, 41, 57, 0.12), transparent 65%);
  }
  .charts .container { position: relative; }
  .charts__card {
    background: var(--glass);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid var(--stroke);
    border-radius: var(--r-l);
    padding: var(--sp-4);
  }
  @media (min-width: 40rem) {
    .charts__card { padding: var(--sp-4) var(--sp-5); }
  }
  @supports not (backdrop-filter: blur(1px)) {
    .charts__card { background: var(--surface); }
  }
  .tabs {
    display: inline-flex;
    gap: 2px;
    background: var(--bg);
    border: 1px solid var(--stroke);
    border-radius: 999px;
    padding: 3px;
    margin-bottom: var(--sp-3);
  }
  .tabs__tab {
    border: 0;
    background: transparent;
    color: var(--text-2);
    font-weight: 600;
    font-size: var(--fs-tiny);
    min-height: 2.25rem;
    padding-inline: 1rem;
    border-radius: 999px;
    cursor: pointer;
  }
  .tabs__tab:hover { color: var(--text); }
  .tabs__tab[aria-selected="true"] { background: var(--brand); color: #fff; }
  .chart-list { min-width: 0; }
  .chart-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-block: 0.7rem;
    border-top: 1px solid var(--stroke);
    min-height: 3.5rem;
    /* Grid-Items haben implizit min-width:auto und wuerden sonst breiter als die
       Karte werden, statt den Sendernamen zu kuerzen (sichtbar bei Schriftskalierung). */
    min-width: 0;
    max-width: 100%;
  }
  .chart-row:first-child { border-top: 0; }
  .chart-row__rank {
    font-family: var(--font-display);
    font-weight: 700;
    width: 1.4rem;
    text-align: center;
    color: var(--text-2);
    flex: none;
  }
  .chart-row:first-child .chart-row__rank { color: var(--gold); }
  /* Mobil: größere Logo-Kachel + größerer Name; rechts stapeln Prozent (oben) und
     Trend-Badge (unten) — die Zeile kann dadurch bei keiner Schriftskalierung
     breiter werden als die Karte. */
  .chart-row__avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 11px;
    flex: none;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: var(--surface-2);
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
  }
  .chart-row__avatar img { width: 100%; height: 100%; object-fit: contain; }
  .chart-row__name {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .chart-row__meta {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 0.25rem;
    flex: none;
    margin-inline-start: auto;
  }
  .trend {
    font-size: var(--fs-tiny);
    font-weight: 600;
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    flex: none;
  }
  .trend--up { color: var(--up); background: rgba(74, 222, 128, 0.12); }
  .trend--down { color: var(--down); background: rgba(248, 113, 113, 0.12); }
  .trend--same { color: var(--text-3); background: rgba(255, 255, 255, 0.07); }
  .trend--new { color: var(--gold); background: rgba(255, 197, 61, 0.12); }
  .chart-row__percent {
    text-align: right;
    font-weight: 600;
    font-size: var(--fs-small);
    flex: none;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }
  @media (min-width: 40rem) {
    /* Ab Tablet wieder die einzeilige Spaltenoptik: der Stapel löst sich auf,
       Trend und Prozent werden direkte Flex-Spalten der Zeile. */
    .chart-row { gap: var(--sp-4); }
    .chart-row__rank { width: 1.6rem; }
    .chart-row__avatar { width: 2.6rem; height: 2.6rem; border-radius: 10px; font-size: var(--fs-small); }
    .chart-row__name { font-size: var(--fs-small); }
    .chart-row__meta { display: contents; }
    .chart-row__percent { width: 3.6rem; }
  }
  @media (min-width: 56.25rem) {
    /* Desktop: Karte auf voller Inhaltsbreite, Liste zweispaltig (1–8 links, 9–15
       rechts). Gleiche Zeilenhöhen lassen die Trennlinien über beide Spalten fluchten;
       dafür bekommt auch die jeweils erste Zeile eine Linie (symmetrischer Abschluss
       unter der Tab-Leiste). */
    .charts__card { padding: var(--sp-5) var(--sp-6); }
    .chart-list {
      columns: 2;
      column-gap: clamp(2.5rem, 5vw, 4.5rem);
    }
    .chart-row { break-inside: avoid; }
    .chart-row:first-child { border-top: 1px solid var(--stroke); }
  }
  .charts__meta { margin-top: var(--sp-3); font-size: var(--fs-tiny); color: var(--text-3); }

  /* ---------- FAQ ---------- */
  .faq__list { border-top: 1px solid var(--stroke); }
  .faq__item { border-bottom: 1px solid var(--stroke); }
  .faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    padding-block: 1.1rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
  }
  .faq__item summary::-webkit-details-marker { display: none; }
  .faq__item summary::after {
    content: "";
    flex: none;
    width: 0.6rem;
    height: 0.6rem;
    border-right: 2px solid var(--text-2);
    border-bottom: 2px solid var(--text-2);
    transform: rotate(45deg);
    transition: transform 0.25s var(--ease-out);
    margin-inline-end: 0.2rem;
  }
  .faq__item[open] summary::after { transform: rotate(-135deg); }
  .faq__item p {
    color: var(--text-2);
    font-size: var(--fs-small);
    padding-bottom: 1.2rem;
    max-width: 65ch;
  }

  /* ---------- Download ---------- */
  .download__card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-6);
    background: var(--surface);
    border: 1px solid var(--brand-border);
    border-radius: var(--r-l);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    position: relative;
    overflow: clip;
  }
  .download__card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(420px 260px at 0% 0%, rgba(237, 41, 57, 0.14), transparent 65%);
  }
  .download__mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: 16px;
    background: var(--mark-bg);
    border: 1px solid var(--stroke-2);
    flex: none;
  }
  .download__copy { position: relative; flex: 1 1 18rem; display: grid; gap: var(--sp-3); justify-items: start; }
  .download__title { font-size: clamp(1.4rem, 2vw + 0.8rem, 2rem); font-weight: 700; }
  .download__copy p { color: var(--text-2); max-width: 42ch; }
  .download__qr {
    position: relative;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border-radius: var(--r-m);
    padding: 0.9rem 0.9rem 0.6rem;
  }
  .download__qr figcaption { font-size: var(--fs-tiny); font-weight: 600; color: #1a1a1c; }
  @media (min-width: 56.25rem) { .download__qr { display: flex; } }
  /* ---------- Cross-Promo Radyo Türk (Schwester-App) ----------
     Bewusst praesenter als die fruehere einzeilige sister-Notiz, aber unterhalb der
     Download-Karte: Die Radio-Austria-CTA bleibt die Hauptaktion der Seite.
     Radyo-Türk-Rot (#E30A17) ist hier hartkodiert — es ist Fremd-Branding der
     Schwester-App, nicht das --brand-Token dieser Site. */
  .promo { padding-block: 0 clamp(3.5rem, 9vw, 6.5rem); }
  .promo__card {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-5) var(--sp-6);
    background: var(--surface);
    border: 1px solid rgba(227, 10, 23, 0.45);
    border-radius: var(--r-l);
    padding: clamp(1.5rem, 4vw, 2.25rem);
    overflow: clip;
  }
  .promo__card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(460px 280px at 100% 0%, rgba(227, 10, 23, 0.18), transparent 65%),
      radial-gradient(380px 240px at 0% 100%, rgba(227, 10, 23, 0.1), transparent 60%);
  }
  .promo__mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: 16px;
    background: #E30A17;
    color: #fff;
    flex: none;
    box-shadow: 0 10px 30px rgba(227, 10, 23, 0.35);
  }
  .promo__copy { position: relative; flex: 1 1 18rem; display: grid; gap: var(--sp-2); justify-items: start; }
  .promo__kicker {
    font-size: var(--fs-tiny);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #FF8B91;
  }
  .promo__title { font-size: clamp(1.25rem, 1.6vw + 0.9rem, 1.75rem); font-weight: 700; }
  .promo__copy p { color: var(--text-2); font-size: var(--fs-small); max-width: 52ch; }
  .promo__actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-4);
  }
  .btn--rt {
    background: #E30A17;
    color: #fff;
    box-shadow: 0 4px 18px rgba(227, 10, 23, 0.35);
  }
  .btn--rt:hover { background: #F22833; transform: translateY(-1px); }
  .promo__site { font-size: var(--fs-small); font-weight: 600; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
  .promo__site:hover { color: var(--text); }

  /* ---------- Rechtsseiten & Fehlerseite ---------- */
  .legal { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
  .legal h1 { font-size: clamp(1.8rem, 3vw + 1rem, 2.6rem); margin-bottom: var(--sp-5); }
  .legal h2 { font-size: 1.25rem; margin: var(--sp-6) 0 var(--sp-3); }
  .legal p, .legal address, .legal li { color: var(--text-2); font-size: var(--fs-small); }
  .legal p + p { margin-top: var(--sp-3); }
  .legal address { font-style: normal; line-height: 1.8; }
  .legal ul { padding-inline-start: 1.2rem; margin-block: var(--sp-3); display: grid; gap: 0.4rem; list-style: disc; }
  .legal a { color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; }
  .legal .updated { margin-top: var(--sp-6); color: var(--text-3); font-size: var(--fs-tiny); }
  .error-page { min-height: 55vh; display: grid; place-content: center; justify-items: center; text-align: center; padding-block: var(--sp-8); }
  .brand__mark--big { width: 3.5rem; height: 3.5rem; border-radius: 14px; }
  .error-page .error-code { font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 12vw, 7rem); color: var(--brand-text); line-height: 1; }
  .error-page h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin-block: var(--sp-4); }
  .error-page p { color: var(--text-2); margin-bottom: var(--sp-3); }

  /* ---------- Footer ---------- */
  .site-footer { border-top: 1px solid var(--stroke); background: var(--bg-2); padding-block: var(--sp-6) var(--sp-5); }
  .site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-5);
    padding-bottom: var(--sp-5);
    border-bottom: 1px solid var(--stroke);
  }
  /* Keine Social-Leiste auf dieser Site — die Rechtslinks ruecken nach rechts.
     Im Footer soll "Radio Austria" nie zu "Radio Aus…" verkuerzen: Marke nicht flexen,
     bei Platzmangel brechen stattdessen die Rechtslinks in die naechste Zeile um. */
  .site-footer .brand { flex: none; }
  .site-footer__legal { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-inline-start: auto; }
  .site-footer__legal a { font-size: var(--fs-tiny); color: var(--text-2); }
  .site-footer__legal a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
  .site-footer__small {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2) var(--sp-5);
    justify-content: space-between;
    padding-top: var(--sp-4);
    font-size: var(--fs-tiny);
    color: var(--text-3);
  }
}

@layer motion {
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
  }
  @keyframes eq {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
  }
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
  }
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  }
  .reveal.is-visible { opacity: 1; transform: none; }
  .reveal-group .reveal:nth-child(2) { transition-delay: 0.06s; }
  .reveal-group .reveal:nth-child(3) { transition-delay: 0.12s; }
  .reveal-group .reveal:nth-child(4) { transition-delay: 0.18s; }
  .reveal-group .reveal:nth-child(n+5) { transition-delay: 0.22s; }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .phone--hero { animation: none; }
  }
}

@layer utilities {
  [hidden] { display: none !important; }
}
