:root {
  --bg: #f8f7f4;
  --surface: #ffffff;
  --text: #111111;
  --muted: #6b6b6b;
  --faint: #9a9a9a;
  --line: #e4e2dd;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(17, 17, 17, 0.04), 0 2px 8px rgba(17, 17, 17, 0.04);
  --shadow-hover: 0 4px 12px rgba(17, 17, 17, 0.06), 0 12px 32px rgba(17, 17, 17, 0.08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.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;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 20;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line), 0 2px 8px rgba(17, 17, 17, 0.03);
}
.header__inner {
  max-width: 1160px; margin: 0 auto;
  padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 6px 8px; margin-left: -8px;
  border-radius: var(--radius-sm); cursor: pointer;
}
.brand:hover { background: var(--bg); }
.brand__mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at center, #fff 0 5px, transparent 5.5px), var(--accent);
}
.brand__word { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.brand__caret { width: 16px; height: 16px; color: var(--muted); }

.header__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; background: none; border-radius: 50%; cursor: pointer; color: var(--muted);
}
.icon-btn:hover { background: var(--bg); color: var(--text); }
.icon-btn svg { width: 22px; height: 22px; }
.btn-outline {
  display: inline-flex; align-items: center;
  height: 40px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  font-weight: 600; font-size: 14px;
  transition: border-color .15s, background .15s;
}
.btn-outline:hover { border-color: var(--text); }

/* ---------- Layout ---------- */
.page { max-width: 1160px; margin: 0 auto; padding: 0 24px 64px; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 72px 0 32px; }
.hero__title {
  margin: 0;
  font-size: clamp(34px, 5.5vw, 54px);
  line-height: 1.08; font-weight: 800; letter-spacing: -0.035em;
}
.hero__sub { margin: 14px auto 0; max-width: 560px; color: var(--muted); font-size: 17px; }
.hero__sub a { color: var(--accent); font-weight: 500; }
.hero__sub a:hover { color: var(--accent-hover); text-decoration: underline; }

/* ---------- Search ---------- */
.search {
  position: relative; display: block;
  max-width: 680px; margin: 32px auto 0;
}
.search__icon {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--faint); pointer-events: none;
}
.search input {
  width: 100%; height: 56px;
  padding: 0 24px 0 52px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--surface); box-shadow: var(--shadow);
  font: inherit; font-size: 16px; color: var(--text);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.search input::placeholder { color: var(--faint); }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12); }

/* ---------- Filters ---------- */
#entdecken { scroll-margin-top: 80px; }

.filters {
  display: flex; align-items: center; gap: 8px;
  margin: 8px 0 28px;
}
.filters__scroll {
  display: flex; gap: 8px; flex: 1; min-width: 0;
  overflow-x: auto; scrollbar-width: none;
  padding: 4px 2px;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
          mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
}
.filters__scroll::-webkit-scrollbar { display: none; }
.filters__end { display: flex; gap: 8px; flex-shrink: 0; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  height: 38px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--surface); cursor: pointer;
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: border-color .15s, background .15s, color .15s;
}
.pill:hover { border-color: #c9c6bf; }
.pill.is-active { background: var(--text); border-color: var(--text); color: #fff; }
.pill--icon svg { width: 16px; height: 16px; }

/* ---------- Grid & Cards ---------- */
.grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.card__thumb {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  display: flex; align-items: flex-end; padding: 18px;
  color: #fff;
}
.card__thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.35), transparent 60%);
}
.card__thumb-emoji {
  position: absolute; right: 14px; top: 8px;
  font-size: 64px; line-height: 1; opacity: .9;
  transform: rotate(-8deg);
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.18));
}
.card__thumb-title {
  position: relative; z-index: 1; margin: 0;
  font-size: 24px; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em;
  text-transform: uppercase; max-width: 75%;
}
.card__rank {
  position: absolute; left: 12px; top: 12px; z-index: 1;
  font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,.92); color: var(--text);
  padding: 2px 9px; border-radius: var(--radius-pill);
}

.card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.card__head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.card__avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: #fff;
}
.card__name {
  margin: 0; font-size: 16px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card__desc {
  margin: 0; color: var(--muted); font-size: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__meta { margin: auto 0 0; padding-top: 4px; color: var(--faint); font-size: 13px; }
.card__meta .sep { margin: 0 6px; }

.empty { text-align: center; color: var(--muted); padding: 48px 0; }

/* ---------- Pagination ---------- */
.pagination {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px;
  margin-top: 48px;
}
.page-btn {
  min-width: 38px; height: 38px; padding: 0 12px;
  border: 0; border-radius: var(--radius-pill); background: none; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--muted);
}
.page-btn:hover:not(:disabled) { background: var(--surface); color: var(--text); }
.page-btn.is-current { background: var(--text); color: #fff; }
.page-btn:disabled { opacity: .4; cursor: default; }
.page-gap { color: var(--faint); padding: 0 4px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--surface); }
/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 640px) {
  .header__inner { padding: 10px 16px; }
  .page { padding: 0 16px 48px; }
  .hero { padding: 44px 0 24px; }
  .hero__sub { font-size: 15px; }
  .search { margin-top: 24px; }
  .search input { height: 50px; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .filters { margin-bottom: 20px; }
  .filters__end .pill:first-child { display: none; }
  .filters__end .pill--icon { padding: 0 12px; }
}

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

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 40;
  background: var(--surface); padding: 10px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { left: 16px; }

/* ---------- Header nav ---------- */
.header__nav { display: flex; gap: 26px; font-size: 14px; font-weight: 500; color: var(--muted); }
.header__nav a { padding: 4px 0; border-bottom: 2px solid transparent; }
.header__nav a:hover { color: var(--text); border-bottom-color: var(--text); }

/* ---------- Hero stats ---------- */
.stats {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 48px;
  margin: 36px 0 0;
}
.stats__item { text-align: center; }
.stats dt { color: var(--faint); font-size: 13px; }
.stats dd { margin: 2px 0 0; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }

/* ---------- Generic section ---------- */
.section { padding: 72px 0 0; scroll-margin-top: 80px; }
.section__head { text-align: center; max-width: 620px; margin: 0 auto 36px; }
.section__title {
  margin: 0; font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.15;
}
.section__sub { margin: 12px 0 0; color: var(--muted); font-size: 16px; }

/* ---------- Steps ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr));
  counter-reset: step;
}
.step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow);
}
.step__num {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 15px; font-weight: 700;
}
.step__title { margin: 16px 0 6px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.step__text { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Plans ---------- */
.plans {
  display: grid; gap: 24px; align-items: start;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow);
}
.plan--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-hover);
}
.plan__badge {
  position: absolute; top: -12px; left: 26px;
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  padding: 4px 12px; border-radius: var(--radius-pill);
}
.plan__name { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.plan__desc { margin: 6px 0 0; color: var(--muted); font-size: 14px; min-height: 40px; }
.plan__price { margin: 18px 0 0; display: flex; align-items: baseline; gap: 4px; }
.plan__amount { font-size: 36px; font-weight: 800; letter-spacing: -0.04em; }
.plan__period { color: var(--muted); font-size: 15px; }
.plan__cta {
  display: flex; align-items: center; justify-content: center;
  height: 44px; margin: 22px 0 0;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 600;
  transition: border-color .15s, background .15s, color .15s;
}
.plan__cta:hover { border-color: var(--text); }
.plan__cta--solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.plan__cta--solid:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.plan__features {
  list-style: none; margin: 24px 0 0; padding: 20px 0 0;
  border-top: 1px solid var(--line);
  display: grid; gap: 10px; font-size: 14px;
}
.plan__features li { position: relative; padding-left: 26px; color: var(--muted); }
.plan__features li::before {
  content: ""; position: absolute; left: 4px; top: 6px;
  width: 11px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plans__note { margin: 24px 0 0; text-align: center; color: var(--faint); font-size: 13px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 4px 22px;
}
.faq__q {
  list-style: none; cursor: pointer;
  padding: 16px 28px 16px 0; position: relative;
  font-size: 16px; font-weight: 600;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: ""; position: absolute; right: 4px; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s;
}
.faq__item[open] .faq__q::after { transform: rotate(-135deg); margin-top: -2px; }
.faq__a { margin: 0 0 18px; color: var(--muted); font-size: 15px; }

/* ---------- CTA ---------- */
.cta {
  margin: 80px 0 0; padding: 56px 24px; text-align: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.cta__title { margin: 0; font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; letter-spacing: -0.03em; }
.cta__sub { margin: 10px 0 0; color: var(--muted); font-size: 16px; }
.cta__btn {
  display: inline-flex; align-items: center; height: 48px; margin-top: 26px; padding: 0 30px;
  background: var(--accent); color: #fff;
  border-radius: var(--radius-pill); font-size: 15px; font-weight: 600;
  transition: background .15s;
}
.cta__btn:hover { background: var(--accent-hover); }

/* ---------- Footer (erweitert) ---------- */
.footer__inner {
  max-width: 1160px; margin: 0 auto; padding: 48px 24px 32px;
  display: grid; gap: 32px;
  grid-template-columns: 2fr repeat(3, 1fr);
}
.footer__logo { display: inline-flex; align-items: center; gap: 8px; }
.footer__tag { margin: 12px 0 0; color: var(--muted); font-size: 14px; max-width: 260px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); }
.footer__col h3 { margin: 0 0 2px; font-size: 14px; font-weight: 700; color: var(--text); }
.footer__col a:hover { color: var(--text); }
.footer__bar {
  border-top: 1px solid var(--line);
  max-width: 1160px; margin: 0 auto; padding: 18px 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px;
  color: var(--faint); font-size: 13px;
}
.footer__bar p { margin: 0; }
.footer__legal { display: flex; gap: 20px; }
.footer__legal a:hover { color: var(--text); }

/* ---------- Responsive (neue Blöcke) ---------- */
@media (max-width: 960px) {
  .header__nav { display: none; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .plans { grid-template-columns: 1fr; gap: 20px; }
  .plan--featured { order: -1; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .stats { gap: 12px 28px; margin-top: 28px; }
  .stats dd { font-size: 20px; }
  .section { padding-top: 56px; }
  .cta { margin-top: 56px; padding: 40px 20px; }
  .footer__inner { grid-template-columns: 1fr; padding: 36px 16px 24px; }
  .footer__bar { padding: 16px; justify-content: center; }
}
