:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #0066cc;
  --grad: linear-gradient(100deg, #0a84ff 0%, #bf5af2 55%, #ff375f 100%);
  --radius: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-soft: #161617;
    --card: #1c1c1e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: #38383a;
    --accent: #2997ff;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.47;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Icons (all4u Icon-Set) */
.ic { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic .f { fill: currentColor; fill-opacity: .18; stroke: none; }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-family: Quicksand, 'Space Grotesk', var(--font); font-weight: 300; font-size: 22px; letter-spacing: -0.035em; }
.brand:hover { text-decoration: none; }
.brand b { font-weight: 700; }
.brand picture { display: flex; }
.brand img { border-radius: 7px; box-shadow: 0 2px 6px -2px rgba(0,0,0,.35); }
.brand.small { font-size: 16px; margin-bottom: 14px; }
.brand.small img { border-radius: 5px; }
.topnav { display: flex; gap: 22px; }
.topnav a { color: var(--text); font-size: 13px; opacity: .85; }

/* Hero */
.hero { padding: 64px 22px 32px; }
.eyebrow { margin: 0 0 10px; font-size: 17px; font-weight: 600; color: var(--muted); }
.hero h1 { font-size: clamp(38px, 6.4vw, 64px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; margin: 0 0 18px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 21px; color: var(--muted); max-width: 620px; margin: 0 0 32px; }

/* Interessen */
.interests { display: flex; flex-wrap: wrap; gap: 10px; }
.interest {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px 0 12px; border-radius: 980px;
  background: var(--bg-soft); border: 1.5px solid transparent;
  cursor: pointer; font-size: 15px; font-weight: 500;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.interest .ic { width: 22px; height: 22px; color: var(--c); flex: none; }
.interest:hover { border-color: var(--c); }
.interest:active { transform: scale(.97); }
.interest[aria-pressed="true"] { background: var(--c); color: #fff; border-color: var(--c); }
.interest[aria-pressed="true"] .ic { color: #fff; }

/* Toolbar */
.toolbar {
  position: sticky; top: 52px; z-index: 10;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 16px 0; margin-top: 24px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.search {
  flex: 1 1 240px; display: flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px; border-radius: 12px; background: var(--bg-soft);
}
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 16px; }
.search:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }

.segmented { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--bg-soft); }
.segmented button {
  border: 0; background: transparent; min-height: 38px; padding: 0 14px; border-radius: 9px;
  font-size: 14px; cursor: pointer; white-space: nowrap;
}
.segmented button[aria-pressed="true"] { background: var(--card); box-shadow: 0 1px 4px rgba(0,0,0,.12); font-weight: 600; }

.occasions { display: flex; flex-wrap: wrap; gap: 8px; }
.occasions button {
  min-height: 38px; padding: 0 14px; border-radius: 980px; font-size: 14px; cursor: pointer;
  border: 1px solid var(--line); background: transparent;
}
.occasions button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

.sort select {
  min-height: 44px; padding: 0 34px 0 14px; border-radius: 12px; border: 0; background: var(--bg-soft);
  font-size: 14px; cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}

.resultbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 20px; }
.resultbar p { margin: 0; font-size: 14px; color: var(--muted); }
.reset { border: 0; background: none; color: var(--accent); font-size: 14px; cursor: pointer; min-height: 44px; padding: 0; }
.reset[hidden] { display: none; }

/* Tipp */
.tipp {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--t); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 20px;
}
.tipp[hidden] { display: none; }
.tipp .ic { width: 28px; height: 28px; flex: none; color: var(--c); }
.tipp p { margin: 0; font-size: 15px; color: #1d1d1f; }
.tipp b { color: var(--c); }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; background: var(--card); color: var(--text);
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
.card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.09); }
.card-media { position: relative; height: 170px; display: grid; place-items: center; background: var(--t); }
.card-media .ic { width: 84px; height: 84px; color: var(--c); stroke-width: 1.3; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.card:hover .card-media .ic { transform: scale(1.08) rotate(-3deg); }
.card-media .badge {
  position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 600;
  background: #fff; color: #1d1d1f; padding: 4px 10px; border-radius: 980px;
}
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-kat { font-size: 12px; font-weight: 600; color: var(--c); margin-bottom: 4px; }
@media (prefers-color-scheme: dark) { .card-kat { filter: brightness(1.6); } }
.card h3 { font-size: 18px; line-height: 1.25; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.01em; }
.card p { font-size: 14px; color: var(--muted); margin: 0 0 16px; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.card-foot .tier { color: var(--muted); }
.card-foot .cta { color: var(--accent); font-weight: 500; }
.card-foot .cta::after { content: " ›"; }

.empty { text-align: center; padding: 48px 0; color: var(--muted); }
.empty[hidden] { display: none; }
.note { font-size: 12px; color: var(--muted); margin: 24px 0 0; }

/* Welten */
.worlds { background: var(--bg-soft); margin-top: 80px; padding: 72px 0; }
.worlds h2, .about h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.025em; font-weight: 700; margin: 0 0 28px; }
.world-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.world {
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  min-height: 140px; padding: 18px; border-radius: var(--radius);
  background: var(--card); border: 0; text-align: left; cursor: pointer; color: var(--text);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
}
.world:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.08); }
.world .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--t); display: grid; place-items: center; }
.world .ic { width: 26px; height: 26px; color: var(--c); }
.world b { font-size: 17px; font-weight: 600; display: block; }
.world small { font-size: 13px; color: var(--muted); }

/* About */
.about { padding: 80px 22px; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.about p { font-size: 19px; color: var(--muted); margin: 0; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.facts li { display: grid; gap: 2px; }
.facts b { font-size: 17px; }
.facts span { color: var(--muted); font-size: 15px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 12px; color: var(--muted); }
.footer p { margin: 0 0 10px; }
.footnav { display: flex; gap: 18px; margin-bottom: 10px; }
.footnav a { color: var(--muted); }

/* Rechtstexte */
.legal { padding: 56px 22px 80px; max-width: 760px; }
.legal h1 { font-size: 40px; letter-spacing: -0.02em; margin: 0 0 28px; }
.legal h2 { font-size: 21px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.fill { background: #fff3cd; color: #664d03; padding: 0 4px; border-radius: 4px; }

@media (max-width: 640px) {
  .topnav { gap: 14px; }
  .topnav a:nth-child(3) { display: none; }
  .hero { padding: 40px 22px 20px; }
  .lead { font-size: 18px; }
  .toolbar { position: static; }
  .segmented { width: 100%; }
  .segmented button { flex: 1 1 0; min-width: 0; padding: 4px 6px; font-size: 13px; line-height: 1.2; white-space: normal; }
  .occasions { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .occasions::-webkit-scrollbar { display: none; }
  .occasions button { flex: none; }
  .sort { width: 100%; }
  .sort select { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .card:hover, .world:hover { text-decoration: none; transform: none; }
}

.card-foot .cta, .card-foot .tier { white-space: nowrap; }
@media (max-width: 640px) {
  .interests { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .interest { text-align: left; font-size: 14px; padding: 6px 10px; gap: 6px; line-height: 1.2; }
  .interest svg { width: 20px; height: 20px; flex: none; }
}

/* Kategorieseite */
.cat-hero { padding: 40px 22px 8px; }
.back { display: inline-block; font-size: 14px; margin-bottom: 24px; min-height: 24px; }
.cat-head { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; }
.cat-ico { width: 88px; height: 88px; flex: none; border-radius: 22px; background: var(--t); display: grid; place-items: center; }
.cat-ico .ic { width: 52px; height: 52px; color: var(--c); stroke-width: 1.4; }
.cat-hero h1 { font-size: clamp(34px, 5.6vw, 56px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; margin: 0; }
.cat-hero .claim { margin: 6px 0 0; font-size: 21px; font-weight: 600; color: var(--c); }
.cat-hero .lead { margin: 0 0 8px; }
@media (prefers-color-scheme: dark) { .cat-hero .claim, .cat-ico .ic { filter: brightness(1.6); } }
.groups { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0 0; scrollbar-width: none; }
.groups::-webkit-scrollbar { display: none; }
.groups button {
  flex: none; min-height: 44px; padding: 0 18px; border-radius: 980px; font-size: 15px; font-weight: 500;
  border: 1.5px solid transparent; background: var(--bg-soft); cursor: pointer;
}
.groups button:hover { border-color: var(--c); }
.groups button[aria-pressed="true"] { background: var(--c); color: #fff; }
.card .hint { font-size: 12px; color: #8a5300; background: #fff6e0; border-radius: 8px; padding: 6px 8px; margin: -8px 0 14px; flex: none; }
@media (max-width: 640px) {
  .cat-ico { width: 64px; height: 64px; border-radius: 16px; }
  .cat-ico .ic { width: 38px; height: 38px; }
  .cat-head { gap: 14px; }
  .cat-hero .claim { font-size: 17px; }
}

/* Favoriten-Herz auf Karten */
.card { position: relative; }
.card-link { display: flex; flex-direction: column; flex: 1; color: inherit; }
.card-link:hover { text-decoration: none; }
.fav {
  position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.fav .heart, .me .heart, .onlyfav .heart, .avatar .heart { width: 22px; height: 22px; fill: none; stroke: #1d1d1f; stroke-width: 1.8; stroke-linejoin: round; }
.fav[aria-pressed="true"] .heart { fill: #ff2d55; stroke: #ff2d55; }
.fav.pop .heart { animation: pop .32s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { 40% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* Navigation: Mein wow4u */
.me { display: inline-flex; align-items: center; gap: 6px; position: relative; }
.me .heart { width: 16px; height: 16px; stroke: currentColor; }
.me .count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ff2d55; color: #fff; font-size: 11px; font-weight: 600; display: inline-grid; place-items: center; }
.me .count[hidden] { display: none; }

/* Nur Favoriten */
.resultactions { display: flex; align-items: center; gap: 16px; }
.onlyfav { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 980px; border: 1px solid var(--line); background: transparent; font-size: 14px; cursor: pointer; }
.onlyfav .heart { width: 16px; height: 16px; stroke: currentColor; }
.onlyfav[aria-pressed="true"] { background: #ff2d55; border-color: #ff2d55; color: #fff; }
.onlyfav[aria-pressed="true"] .heart { fill: #fff; stroke: #fff; }

/* Profilseite */
.profil { padding-top: 48px; padding-bottom: 80px; }
.profil-head { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.profil-head h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.03em; margin: 0 0 4px; }
.profil-head .lead { margin: 0; font-size: 18px; }
.avatar { width: 72px; height: 72px; flex: none; border-radius: 20px; background: #ffe5ea; display: grid; place-items: center; }
.avatar .heart { width: 34px; height: 34px; fill: #ff2d55; stroke: #ff2d55; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 40px; }
.stats div { background: var(--bg-soft); border-radius: 16px; padding: 16px 18px; display: grid; gap: 2px; }
.stats b { font-size: 28px; letter-spacing: -0.02em; }
.stats span { font-size: 13px; color: var(--muted); }
.profil-sec { margin-bottom: 44px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-head h2 { font-size: 24px; margin: 0; letter-spacing: -0.02em; }
.muted { color: var(--muted); font-size: 14px; }
.klicks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.klicks li { display: flex; align-items: center; gap: 14px; background: var(--bg-soft); border-radius: 14px; padding: 10px 14px; }
.li-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--t); display: grid; place-items: center; flex: none; }
.li-ico .ic { width: 24px; height: 24px; color: var(--c); }
.li-text { flex: 1; min-width: 0; display: grid; }
.li-text b { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-text small { font-size: 12px; color: var(--muted); }
.li-go { font-size: 14px; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.int-list { display: flex; flex-wrap: wrap; gap: 8px; }
.int-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 980px; background: var(--t); color: var(--text); font-size: 15px; font-weight: 500; }
.int-chip .ic { width: 20px; height: 20px; color: var(--c); }
.orders { background: var(--bg-soft); border-radius: 20px; padding: 22px 24px; }
.orders p { margin: 0 0 16px; color: var(--muted); }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 980px; background: var(--text); color: var(--bg); font-size: 15px; font-weight: 500; border: 0; cursor: pointer; }
.btn:hover { text-decoration: none; opacity: .9; }
.btn.ghost { background: transparent; color: #d70015; border: 1px solid var(--line); }
@media (max-width: 640px) {
  .resultbar { flex-wrap: wrap; }
  .me span:not(.count) { display: none; }
  .stats b { font-size: 22px; }
}
