/* Portal – an getintake.de angelehnt: viel Luft, helle Fläche, klare Karten, Pills im Hero.
   App-Akzente wie auf den jeweiligen Produktseiten (Feder-/Markenfarben). */

:root {
  color-scheme: light dark;
  --page-bg: #fafafa;
  --page-glow: radial-gradient(900px 420px at 12% -8%, rgba(109, 75, 217, 0.07), transparent 55%),
    radial-gradient(700px 380px at 92% 0%, rgba(52, 199, 89, 0.06), transparent 50%);
  --text: #111111;
  --text-muted: #5c5c5c;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --border: rgba(0, 0, 0, 0.08);
  --header-border: rgba(0, 0, 0, 0.06);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.1);
  --radius-lg: 20px;
  --radius-pill: 999px;
  --radius-icon: 22%;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Feder- / Markenfarben (wie auf den Landingpages dokumentiert) */
  --spot-gym: #a67c00;
  --spot-podcasts: #34c759;
  --spot-radio: #6d4bd9;
  --spot-minutes: rgb(218, 102, 28);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: #0c0c0e;
    --page-glow: radial-gradient(900px 420px at 12% -8%, rgba(109, 75, 217, 0.12), transparent 55%),
      radial-gradient(700px 380px at 92% 0%, rgba(52, 199, 89, 0.08), transparent 50%);
    --text: #f5f5f7;
    --text-muted: #a1a1a6;
    --surface: #161618;
    --surface-2: #1c1c1e;
    --border: rgba(255, 255, 255, 0.1);
    --header-border: rgba(255, 255, 255, 0.08);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.45);
    --shadow-card-hover: 0 16px 48px rgba(0, 0, 0, 0.55);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--page-bg);
  background-image: var(--page-glow);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -120px;
  z-index: 1000;
  padding: 0.65rem 1rem;
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  border: 1px solid var(--border);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--spot-radio);
  outline-offset: 2px;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--header-border);
  background: color-mix(in srgb, var(--page-bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
}

.site-header__lang {
  margin-left: auto;
  position: relative;
  flex-shrink: 0;
}

.lang-menu {
  position: relative;
  overflow: visible;
}

.lang-menu__trigger {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.2rem 0.15rem 0.15rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.lang-menu__trigger::-webkit-details-marker {
  display: none;
}

.lang-menu__trigger::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--text-muted);
  margin-top: 2px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.lang-menu[open] > .lang-menu__trigger::after {
  transform: rotate(180deg);
}

.lang-menu__trigger:hover {
  color: var(--text);
}

.lang-menu__trigger:hover::after {
  border-top-color: var(--text);
}

.lang-menu__trigger:focus-visible {
  outline: 2px solid var(--spot-radio);
  outline-offset: 2px;
}

.lang-menu__current {
  display: inline-flex;
  line-height: 0;
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}

.lang-menu__current::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.48);
  pointer-events: none;
}

@media (prefers-color-scheme: dark) {
  .lang-menu__current::after {
    background: rgba(255, 255, 255, 0.28);
  }
}

.lang-menu__panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 80;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  width: max-content;
  max-width: min(100vw - 2rem, 20rem);
  padding: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
}

.lang-menu__link {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  min-width: max-content;
  box-sizing: border-box;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.25;
  white-space: nowrap;
}

.lang-menu__label {
  flex-shrink: 0;
}

.lang-menu__link .lang-flag {
  flex-shrink: 0;
}

.lang-menu__link:hover {
  color: var(--text);
  background: var(--surface-2);
}

.lang-menu__link:focus-visible {
  outline: 2px solid var(--spot-radio);
  outline-offset: 1px;
}

.lang-flag {
  display: block;
  width: 22px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 14%, transparent);
}

.lang-menu__link:hover .lang-flag {
  filter: brightness(0.92);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
}

.site-header__brand:hover {
  opacity: 0.88;
}

.site-header__logo {
  height: 1.75rem;
  width: auto;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.site-brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

/* Hero: kurze Headline, wenig Fläche */
.hero {
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(1.5rem, 3.5vw, 2.25rem);
}

.hero__inner {
  text-align: center;
  max-width: 32rem;
  margin-inline: auto;
}

.hero__title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin: 0 0 0.5rem;
}

.hero__title-row .hero__title {
  margin: 0;
}

.hero__title-feather {
  width: clamp(1.85rem, 5vw, 2.5rem);
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.hero__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.85rem, 4.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero__lead {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.hero-pill-tabs {
  width: 100%;
}

.hero__pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.hero__pills-item {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  line-height: inherit;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease;
}

button.hero__pill:focus {
  outline: none;
}

button.hero__pill:focus-visible {
  outline: 2px solid var(--text-muted);
  outline-offset: 2px;
}

button.hero__pill[aria-selected="true"] {
  color: var(--text);
  background: var(--surface);
  border-color: var(--text-muted);
}

.hero__pill-explainer {
  margin-top: 1.25rem;
  text-align: left;
  max-width: 36rem;
  margin-inline: auto;
}

.hero__pill-panel {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.hero__pill-panel[hidden] {
  display: none;
}

.hero__pill-panel > p:first-child {
  margin-top: 0;
}

.hero__pill-panel > p:last-child {
  margin-bottom: 0;
}

.hero__pill-panel p {
  margin: 0 0 0.75rem;
}

/* App grid */
.apps {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.apps__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .apps__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

.app-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  padding: 1.35rem 1.35rem 1.35rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

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

.app-card:focus-visible {
  outline: 2px solid var(--card-focus, var(--spot-radio));
  outline-offset: 3px;
}

.app-card--gym {
  --card-accent: var(--spot-gym);
  --card-focus: var(--spot-gym);
}

.app-card--podcasts {
  --card-accent: var(--spot-podcasts);
  --card-focus: var(--spot-podcasts);
}

.app-card--radio {
  --card-accent: var(--spot-radio);
  --card-focus: var(--spot-radio);
}

.app-card--minutes {
  --card-accent: var(--spot-minutes);
  --card-focus: var(--spot-minutes);
}

.app-card__visual {
  flex-shrink: 0;
}

.logo-frame {
  width: 104px;
  height: 104px;
  border-radius: var(--radius-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
}

.logo-frame--plain {
  background: var(--surface-2);
  border: none;
}

.logo-frame--gym {
  background: color-mix(in srgb, var(--spot-gym) 16%, var(--surface));
  border-color: color-mix(in srgb, var(--spot-gym) 28%, transparent);
}

.logo-frame--podcasts {
  background: color-mix(in srgb, var(--spot-podcasts) 16%, var(--surface));
  border-color: color-mix(in srgb, var(--spot-podcasts) 28%, transparent);
}

.logo-frame--radio {
  background: color-mix(in srgb, var(--spot-radio) 10%, var(--surface));
  border-color: color-mix(in srgb, var(--spot-radio) 22%, transparent);
}

.logo-frame--minutes {
  background: color-mix(in srgb, var(--spot-minutes) 16%, var(--surface));
  border-color: color-mix(in srgb, var(--spot-minutes) 28%, transparent);
}

.app-card__logo {
  width: 88px;
  height: 88px;
}

.app-card__logo--corner {
  width: 96px;
  height: 96px;
  object-fit: contain;
  object-position: 100% 100%;
}

.app-card__copy {
  min-width: 0;
  flex: 1;
}

.app-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-card__title::before {
  content: "";
  width: 3px;
  height: 1.15em;
  border-radius: 2px;
  background: var(--card-accent);
  flex-shrink: 0;
}

.app-card__desc {
  margin: 0 0 0.65rem;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.app-card__cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--card-accent);
}

.app-card:hover .app-card__cta {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Footer */
.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--header-border);
}

.site-footer__legal {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  justify-content: center;
  align-items: center;
  font-size: 0.875rem;
}

.site-footer__legal a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

.site-footer__legal a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.site-footer__legal a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.site-footer__sep {
  color: var(--text-muted);
  user-select: none;
}

/* Rechtstexte (kurz) */
.legal-page {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(2rem, 5vw, 3rem);
  max-width: 40rem;
}

.legal-page__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal-page__lead {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.legal-page h2 {
  margin: 1.65rem 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.legal-page h2:first-of-type {
  margin-top: 1.35rem;
}

.legal-page p {
  margin: 0 0 1rem;
  line-height: 1.55;
}

.legal-page p:last-child {
  margin-bottom: 0;
}
