/* ==========================================================================
   Mobile-First + Desktop-First Hybrid
   - Mobile (<= 1023px): Bottom-Nav, schlanke Karten
   - Desktop (>= 1024px): Side-Rail, Mega-Container, Glas-Effekte
   ========================================================================== */
:root {
  --c-bg-1: #07080c;
  --c-bg-2: #0c0e14;
  --c-surface: #131620;
  --c-surface-2: #1b1f2c;
  --c-surface-3: #232838;
  --c-text: #f4f6fb;
  --c-muted: #9aa3b2;
  --c-primary: #ff3b6e;
  --c-primary-2: #ff7e54;
  --c-accent: #ffd166;
  --c-success: #1bd884;
  --c-danger: #ef4444;
  --c-info: #60a5fa;
  --c-border: rgba(255,255,255,.07);
  --c-border-strong: rgba(255,255,255,.16);
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 4px 12px rgba(0,0,0,.30);
  --shadow-md: 0 14px 32px rgba(0,0,0,.42);
  --shadow-glow: 0 8px 30px rgba(255,59,110,.35);
  --tap: 48px;
  --safe-bottom: env(safe-area-inset-bottom);
  --tx-fast: 140ms cubic-bezier(.2,.8,.2,1);
  --tx-mid: 240ms cubic-bezier(.2,.8,.2,1);
  --tx-slow: 420ms cubic-bezier(.2,.8,.2,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--c-text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
  letter-spacing: .1px;
  background:
    radial-gradient(1200px 800px at -10% -10%, rgba(255,59,110,.10), transparent 60%),
    radial-gradient(1000px 700px at 110% 20%, rgba(255,209,102,.06), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(96,165,250,.06), transparent 60%),
    var(--c-bg-1);
  padding-bottom: calc(80px + var(--safe-bottom));
}

/* === Animations === */
@keyframes fadeUp { from{opacity:0;transform:translateY(14px);} to{opacity:1;transform:translateY(0);} }
@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }
@keyframes pop    { 0%{opacity:0;transform:scale(.85);} 60%{opacity:1;transform:scale(1.04);} 100%{transform:scale(1);} }
@keyframes shimmer { 0%{background-position:-200px 0;} 100%{background-position:200px 0;} }
@keyframes pulse  { 0%,100%{box-shadow:0 0 0 0 rgba(255,59,110,.55);} 50%{box-shadow:0 0 0 14px rgba(255,59,110,0);} }
@keyframes float  { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-3px);} }
@keyframes slideInRight { from{opacity:0;transform:translateX(24px);} to{opacity:1;transform:translateX(0);} }
@keyframes slideUp { from{transform:translateY(100%);} to{transform:translateY(0);} }
@keyframes spin   { to{transform:rotate(360deg);} }
@keyframes ripple { to{transform:scale(4);opacity:0;} }
@keyframes shimmerName { 0%{background-position:0% 50%;} 100%{background-position:200% 50%;} }
@keyframes auroraDrift { 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(2%,-2%) scale(1.05);} }

img { max-width: 100%; display: block; }
a { color: var(--c-primary-2); text-decoration: none; transition: color var(--tx-fast); }
a:hover { color: var(--c-primary); }
hr { border: none; border-top: 1px solid var(--c-border); }

/* === Layout: Mobile === */
.container { width: 100%; max-width: 100%; padding: 16px; animation: fadeUp .45s var(--ease-spring) both; }

/* === Layout: Desktop === */
@media (min-width: 1024px) {
  body {
    padding-bottom: 24px;
    --safe-bottom: 0px;
  }
  .container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 32px 60px;
  }
  /* Bottom-Nav am Desktop ausblenden – wir nutzen Top-Bar mit Side-Rail */
  .bottomnav { display: none !important; }
}
@media (min-width: 1440px) {
  .container { max-width: 1320px; }
}

/* === Top Bar === */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: linear-gradient(180deg, rgba(7,8,12,.85), rgba(7,8,12,.62));
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid var(--c-border);
  transition: transform var(--tx-mid), background var(--tx-mid);
}
.topbar.is-hidden { transform: translateY(-100%); }
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; gap: 12px;
}
@media (min-width: 1024px) {
  .topbar__inner { padding: 16px 32px; max-width: 1320px; margin: 0 auto; }
}
.brand {
  font-weight: 800; letter-spacing: .3px; color: var(--c-text);
  display: inline-flex; align-items: center; gap: 8px;
  position: relative;
  font-size: 18px;
}
.brand__name {
  background: linear-gradient(90deg, #fff 0%, var(--c-primary-2) 50%, var(--c-primary) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%;
  animation: shimmerName 6s linear infinite;
}
.brand__tag { color: var(--c-muted); font-weight: 400; font-size: 12px; }
.brand:hover { text-decoration: none; }

/* Desktop-Menü (sichtbar ab 1024px) */
.topnav {
  display: none;
  gap: 6px;
  align-items: center;
}
.topnav a {
  padding: 8px 14px; border-radius: 10px; color: var(--c-muted); font-weight: 600; font-size: 14px;
  transition: all var(--tx-fast);
}
.topnav a:hover { color: var(--c-text); background: rgba(255,255,255,.05); }
.topnav a.is-active { color: var(--c-text); background: var(--c-surface-2); }
@media (min-width: 1024px) { .topnav { display: flex; } }

/* === Sprach-Dropdown === */
.lang-dd { position: relative; }
.lang-dd > summary {
  list-style: none;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 10px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border-strong);
  border-radius: 8px;
  color: var(--c-text);
  font-size: 12px; font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: all var(--tx-fast);
}
.lang-dd > summary::-webkit-details-marker { display: none; }
.lang-dd > summary:hover { border-color: var(--c-primary); }
.lang-dd[open] > summary { border-color: var(--c-primary); }
.lang-dd__chev { font-size: 10px; transition: transform .2s; opacity: .7; }
.lang-dd[open] .lang-dd__chev { transform: rotate(180deg); }
.lang-dd__menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: 10px;
  padding: 4px;
  min-width: 180px;
  box-shadow: var(--shadow-md);
  z-index: 60;
  animation: pop .2s var(--ease-spring) both;
}
.lang-dd__menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--c-text);
  font-size: 13px; font-weight: 500;
  transition: background var(--tx-fast), color var(--tx-fast);
  text-decoration: none;
}
.lang-dd__menu a:hover { background: var(--c-surface-2); }
.lang-dd__menu a strong {
  width: 28px; text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; font-weight: 700;
  color: var(--c-muted);
  letter-spacing: .5px;
}
.lang-dd__menu a.is-active {
  background: linear-gradient(135deg, rgba(255,59,110,.18), rgba(255,126,84,.06));
  color: #fff;
}
.lang-dd__menu a.is-active strong { color: var(--c-primary); }

/* === Bottom Nav (Mobile) === */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: linear-gradient(180deg, rgba(19,22,32,.86), rgba(19,22,32,.96));
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-top: 1px solid var(--c-border);
  padding: 6px 6px calc(6px + var(--safe-bottom));
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  animation: slideUp .55s var(--ease-spring) both;
}
.bottomnav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 64px; color: var(--c-muted); font-size: 11px; gap: 3px; border-radius: 14px;
  position: relative; transition: color var(--tx-fast), transform var(--tx-fast), background var(--tx-fast);
}
.bottomnav a:hover { color: var(--c-text); transform: translateY(-2px); }
.bottomnav a.is-active {
  color: var(--c-text);
  background: linear-gradient(180deg, rgba(255,59,110,.14), rgba(255,59,110,.04));
}
.bottomnav a.is-active::after {
  content: ""; position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-2));
  box-shadow: 0 0 12px rgba(255,59,110,.6);
  animation: pop .35s var(--ease-spring) both;
}
.bottomnav .ico { font-size: 20px; line-height: 1; transition: transform var(--tx-fast); }
.bottomnav a:active .ico { transform: scale(.9); }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap); padding: 10px 20px; border-radius: var(--r-md);
  background: var(--c-surface-2); color: var(--c-text);
  border: 1px solid var(--c-border-strong); font-weight: 700; font-size: 15px;
  cursor: pointer; text-decoration: none; gap: 8px; letter-spacing: .2px;
  transition: transform var(--tx-fast), background var(--tx-fast),
              box-shadow var(--tx-fast), border-color var(--tx-fast);
  position: relative; overflow: hidden; isolation: isolate;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.25); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.btn--primary {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-2) 100%);
  border: none; color: #fff;
  box-shadow: 0 6px 22px rgba(255,59,110,.35);
}
.btn--primary:hover { box-shadow: 0 14px 36px rgba(255,59,110,.45); transform: translateY(-2px); }
.btn--ghost { background: transparent; }
.btn--block { width: 100%; }
.btn--danger { background: var(--c-danger); border: none; color: #fff; }
.btn--danger:hover { background: #ff5b5b; }
.btn--success { background: var(--c-success); border: none; color: #052; }
.btn .ico { display: inline-flex; }

.back-btn { padding: 8px 12px; min-height: 40px; border-radius: 10px; font-size: 13px; }
.back-btn .ico { font-size: 18px; line-height: 1; }

.btn .ripple {
  position: absolute; border-radius: 50%; transform: scale(0);
  background: rgba(255,255,255,.4); pointer-events: none;
  animation: ripple .6s linear forwards; z-index: 0;
}
.btn > * { position: relative; z-index: 1; }

/* === Forms === */
.form { display: grid; gap: 14px; }
.form label { display: block; font-size: 12px; color: var(--c-muted); margin-bottom: 6px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.form input[type="text"], .form input[type="email"], .form input[type="password"],
.form input[type="tel"], .form input[type="date"], .form input[type="number"],
.form input[type="range"], .form input[type="file"], .form select, .form textarea {
  width: 100%; min-height: var(--tap); padding: 12px 14px;
  background: var(--c-surface);
  color: var(--c-text);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-md); font-size: 16px;
  transition: border-color var(--tx-fast), background var(--tx-fast), box-shadow var(--tx-fast);
}
.form input[type="range"] { padding: 12px 0; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--c-primary); background: var(--c-surface-2);
  box-shadow: 0 0 0 4px rgba(255,59,110,.15);
}
.form textarea { min-height: 120px; resize: vertical; }
.form .checkbox {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  padding: 10px 12px; border-radius: var(--r-md); cursor: pointer;
  transition: border-color var(--tx-fast), background var(--tx-fast);
}
.form .checkbox:hover { border-color: var(--c-border-strong); }
.form .checkbox input { transform: scale(1.2); margin-top: 4px; accent-color: var(--c-primary); }

/* === Cards === */
.card {
  background: linear-gradient(180deg, var(--c-surface) 0%, var(--c-surface-2) 100%);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--tx-mid), box-shadow var(--tx-mid), border-color var(--tx-mid);
  animation: fadeUp .5s var(--ease-spring) both;
}
.card + .card { margin-top: 14px; }
.card:hover { box-shadow: var(--shadow-md); border-color: var(--c-border-strong); }
.card h2, .card h3 { margin-top: 0; }
@media (min-width: 1024px) { .card { padding: 24px; } }

/* === Profile Card === */
.profile-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  transition: transform var(--tx-mid), box-shadow var(--tx-mid), border-color var(--tx-mid);
  animation: fadeUp .55s var(--ease-spring) both;
  cursor: pointer;
}
.profile-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255,59,110,.25);
  border-color: rgba(255,59,110,.35);
}
.profile-card .img {
  aspect-ratio: 4/5; background: #1a1d27;
  background-size: cover; background-position: center;
  transition: transform var(--tx-slow);
}
.profile-card:hover .img { transform: scale(1.06); }
.profile-card .body { padding: 12px; }
.profile-card .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.profile-card .name { font-weight: 800; font-size: 15px; }
.profile-card .meta { color: var(--c-muted); font-size: 13px; }

/* Subtle inner glow on hover */
.profile-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(60% 50% at 50% 0%, rgba(255,59,110,.2), transparent 60%);
  opacity: 0; transition: opacity var(--tx-mid);
}
.profile-card:hover::after { opacity: 1; }

/* === Badges === */
.profile-card .badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.badge {
  display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  background: rgba(0,0,0,.55); color: #fff; border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(6px); animation: pop .45s var(--ease-spring) both;
}
.badge--verified { background: linear-gradient(135deg, #1bd884, #14b86b); border-color: transparent; box-shadow: 0 4px 18px rgba(27,216,132,.35); }
.badge--highlight {
  background: linear-gradient(135deg, var(--c-accent), var(--c-primary-2));
  border-color: transparent; color: #2a1500;
  box-shadow: 0 4px 18px rgba(255,209,102,.4);
  animation: pulse 2s infinite, pop .45s var(--ease-spring) both;
}

/* === Grid === */
.grid { display: grid; gap: 14px; }
.grid--cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 768px)  { .grid--cards { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1024px) { .grid--cards { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; } }
@media (min-width: 1440px) { .grid--cards { grid-template-columns: repeat(5, minmax(0,1fr)); } }

.grid > *:nth-child(1) { animation-delay: .03s; }
.grid > *:nth-child(2) { animation-delay: .06s; }
.grid > *:nth-child(3) { animation-delay: .09s; }
.grid > *:nth-child(4) { animation-delay: .12s; }
.grid > *:nth-child(5) { animation-delay: .15s; }
.grid > *:nth-child(6) { animation-delay: .18s; }
.grid > *:nth-child(7) { animation-delay: .21s; }
.grid > *:nth-child(8) { animation-delay: .24s; }
.grid > *:nth-child(n+9) { animation-delay: .27s; }

/* === Hero === */
.hero {
  padding: 36px 16px 24px; text-align: center;
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(255,59,110,.22), transparent 60%),
    radial-gradient(50% 60% at 80% 30%, rgba(255,209,102,.16), transparent 70%),
    radial-gradient(50% 60% at 20% 70%, rgba(96,165,250,.14), transparent 70%);
  margin-bottom: 16px;
  animation: fadeIn .6s ease-out both;
}
@media (min-width: 1024px) {
  .hero { padding: 80px 32px 56px; border-radius: 32px; }
  .hero h1 { font-size: 48px !important; }
  .hero p  { font-size: 17px !important; }
}
.hero h1 { font-size: 32px; line-height: 1.1; margin: 0 0 12px; font-weight: 900; letter-spacing: -.5px; }
.hero h1 .accent {
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
  background-size: 200% 100%;
  animation: shimmerName 5s linear infinite;
}
.hero p { color: var(--c-muted); margin: 0 0 20px; font-size: 15px; }
.hero::before, .hero::after {
  content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-accent); filter: blur(1px); opacity: .6;
  animation: float 4s ease-in-out infinite;
}
.hero::before { top: 30px; left: 14%; }
.hero::after  { bottom: 36px; right: 16%; animation-delay: 1.2s; background: var(--c-primary); }

/* === Flash === */
.flash-stack { display: grid; gap: 10px; margin: 12px 0; }
.flash {
  padding: 12px 14px 12px 44px; border-radius: var(--r-md); font-size: 14px;
  border: 1px solid var(--c-border-strong);
  background: var(--c-surface);
  position: relative;
  animation: slideInRight .35s var(--ease-spring) both;
}
.flash::before {
  content: "ⓘ"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 18px; font-weight: 800;
}
.flash--success { border-color: rgba(27,216,132,.45); background: linear-gradient(180deg, rgba(27,216,132,.10), rgba(27,216,132,.02)); }
.flash--success::before { content: "✓"; color: var(--c-success); }
.flash--error   { border-color: rgba(239,68,68,.45);  background: linear-gradient(180deg, rgba(239,68,68,.10), rgba(239,68,68,.02)); }
.flash--error::before { content: "✕"; color: var(--c-danger); }
.flash--info    { border-color: rgba(96,165,250,.45); background: linear-gradient(180deg, rgba(96,165,250,.10), rgba(96,165,250,.02)); }
.flash--info::before { content: "i"; color: var(--c-info); font-style: italic; }

/* === 18+ Modal === */
.adult-overlay {
  position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.86);
  backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center; padding: 16px;
  animation: fadeIn .25s ease-out both;
}
.adult-overlay.is-open { display: flex; }
.adult-modal {
  background: var(--c-surface); border: 1px solid var(--c-border-strong);
  border-radius: var(--r-xl); padding: 28px;
  max-width: 480px; width: 100%; text-align: center;
  box-shadow: var(--shadow-md), 0 0 60px rgba(255,59,110,.2);
  animation: pop .45s var(--ease-spring) both;
}
.adult-modal h2 { margin-top: 0; font-size: 22px; }
.adult-modal .actions { display: grid; gap: 10px; margin-top: 16px; }

/* === Utility === */
.text-muted { color: var(--c-muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; }
.kv .k { color: var(--c-muted); }
.pill {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: var(--c-surface-2); border: 1px solid var(--c-border-strong);
  color: var(--c-text); font-size: 12px; font-weight: 600;
  transition: transform var(--tx-fast), background var(--tx-fast);
}
.pill:hover { transform: translateY(-1px); background: var(--c-surface-3); }
.divider { height: 1px; background: var(--c-border); margin: 14px 0; }

/* === Stepper === */
.stepper { display: grid; grid-auto-flow: column; gap: 6px; margin: 8px 0 16px; }
.stepper .step {
  text-align: center; font-size: 12px; color: var(--c-muted);
  border-bottom: 3px solid var(--c-border); padding-bottom: 8px;
  font-weight: 700; letter-spacing: .3px; transition: color var(--tx-mid), border-color var(--tx-mid);
}
.stepper .step.is-active {
  color: var(--c-text); border-color: var(--c-primary); position: relative;
}
.stepper .step.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: -3px; transform: translateX(-50%);
  width: 24px; height: 3px; background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  border-radius: 2px; animation: pop .4s var(--ease-spring) both;
}
.stepper .step.is-done { color: var(--c-muted); border-color: var(--c-success); }

.hint { color: var(--c-muted); font-size: 12px; margin-top: 4px; }

/* === Auth box (login/register) === */
.auth-box { max-width: 480px; margin: 14px auto 0; }
@media (min-width: 1024px) {
  .auth-box { max-width: 560px; margin-top: 32px; }
}

/* === Skeleton === */
.skel {
  background: linear-gradient(90deg, var(--c-surface) 0%, var(--c-surface-2) 30%, var(--c-surface) 60%);
  background-size: 600px 100%;
  animation: shimmer 1.6s infinite linear;
  border-radius: var(--r-md);
}
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: #fff; display: inline-block;
  animation: spin 800ms linear infinite;
}

/* === Reveal === */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .5s; }
.reveal.is-in { opacity: 1; transform: none; }

/* === Thumb Grid (kompakte Vorschauen, klickbar zum Zoomen) === */
.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}
@media (min-width: 768px)  { .thumb-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); } }
@media (min-width: 1280px) { .thumb-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); } }
.thumb-grid img,
.thumb-grid .img {
  transition: transform var(--tx-fast);
}
.thumb-grid img:hover,
.thumb-grid .img:hover {
  transform: scale(1.04);
  filter: brightness(1.05);
}
.thumb-grid .upload-tile { margin: 0; }
.thumb-grid .img {
  width: 100%; aspect-ratio: 1/1;
  background-size: cover; background-position: center;
  border-radius: 10px; cursor: zoom-in;
}

/* === Upload Tile (Shop) === */
.upload-tile { position: relative; }
.x-btn-form {
  position: absolute; top: 6px; right: 6px; margin: 0;
}
.x-btn {
  width: 32px; height: 32px; padding: 0; border-radius: 50%;
  background: rgba(0,0,0,.7); color: #fff; border: 1px solid rgba(255,255,255,.3);
  font-size: 18px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--tx-fast), transform var(--tx-fast);
  backdrop-filter: blur(8px);
}
.x-btn:hover { background: var(--c-danger); transform: scale(1.08); }

/* === Tabs (allgemein) === */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs .tab {
  display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 10px;
  color: var(--c-muted); font-weight: 600; font-size: 14px;
  text-decoration: none; transition: all var(--tx-fast);
}
.tabs .tab:hover { color: var(--c-text); background: rgba(255,255,255,.04); }
.tabs .tab.is-active { color: var(--c-text); background: var(--c-surface-2); box-shadow: inset 0 -2px 0 var(--c-primary); }

/* === Chip-Group (Service-Auswahl + Anzeige) === */
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--c-surface-2); color: var(--c-text);
  border: 1px solid var(--c-border-strong); font-size: 13px; font-weight: 600;
  cursor: pointer; user-select: none;
  transition: all var(--tx-fast);
}
.chip:hover { transform: translateY(-1px); border-color: rgba(255,126,84,.4); }
.chip input { display: none; }
.chip:has(input:checked) {
  background: linear-gradient(135deg, rgba(255,59,110,.18), rgba(255,126,84,.12));
  border-color: var(--c-primary); color: #fff;
  box-shadow: 0 0 0 1px var(--c-primary), 0 6px 16px rgba(255,59,110,.18);
}
.chip--accent { border-color: rgba(27,216,132,.5); }
.chip--accent:has(input:checked) {
  background: linear-gradient(135deg, rgba(27,216,132,.18), rgba(96,165,250,.10));
  border-color: var(--c-success); box-shadow: 0 0 0 1px var(--c-success);
}
.chip--display {
  cursor: default;
  background: var(--c-surface-2);
}
.chip--protection {
  cursor: default;
  background: rgba(27,216,132,.10);
  color: #cbf6db;
  border-color: rgba(27,216,132,.4);
}

/* === Profil-Hero (Cover + Avatar) === */
.profile-hero {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  isolation: isolate;
}
.profile-hero__cover {
  position: absolute; inset: 0;
  background: #1a1d27 center/cover no-repeat;
  filter: saturate(1.05);
}
.profile-hero__cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,8,12,.30) 0%, rgba(7,8,12,.55) 50%, rgba(7,8,12,.92) 100%);
}
.profile-hero__content {
  position: relative; z-index: 1;
  padding: 64px 20px 28px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
@media (min-width: 1024px) { .profile-hero__content { padding: 110px 32px 40px; } }
.profile-hero__avatar {
  width: 160px; height: 160px; border-radius: 50%; overflow: hidden;
  border: 4px solid var(--c-bg-1);
  box-shadow: 0 16px 36px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.1);
  background: var(--c-surface-2);
  margin-bottom: 6px;
  animation: pop .6s var(--ease-spring) both;
}
@media (min-width: 1024px) { .profile-hero__avatar { width: 200px; height: 200px; border-width: 5px; } }
.profile-hero__avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero__avatar-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 60px; font-weight: 800; color: var(--c-muted); background: var(--c-surface-2);
}
.profile-name {
  font-size: 26px; font-weight: 800; margin: 8px 0 0;
}
@media (min-width: 1024px) { .profile-name { font-size: 36px; } }
.verified-tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #1bd884, #14b86b);
  color: #fff; font-size: 16px; font-weight: 800;
  vertical-align: middle; margin-left: 6px;
  box-shadow: 0 4px 14px rgba(27,216,132,.5);
}
.rating { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 4px 0; }
.rating__score {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--c-accent); color: #2a1500;
  padding: 4px 12px; border-radius: 999px;
  font-weight: 800; font-size: 14px;
  box-shadow: 0 4px 16px rgba(255,209,102,.35);
}
.rating__count { color: var(--c-muted); font-size: 13px; }
.profile-meta {
  color: var(--c-accent);
  font-weight: 700; letter-spacing: 1px; font-size: 13px;
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 12px;
}
.profile-meta span:not(:first-child) { color: var(--c-muted); }
.offer-pills { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 6px 0 16px; }
.offer-pill {
  display: inline-flex; padding: 8px 14px; border-radius: 10px;
  border: 1px solid rgba(255,209,102,.35);
  background: rgba(255,209,102,.06);
  color: #ffd9a3; font-size: 13px; font-weight: 600;
}
.contact-actions {
  display: flex; gap: 10px; justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Dezente Pill-CTAs mit Icon + Label-Stack */
.cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  min-height: 48px;
  border-radius: 12px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border-strong);
  color: var(--c-text);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--tx-fast), background var(--tx-fast),
              border-color var(--tx-fast), box-shadow var(--tx-fast);
  font-family: inherit;
  font-size: 14px;
}
.cta-btn:hover { transform: translateY(-2px); border-color: var(--c-border-strong); box-shadow: var(--shadow-sm); }
.cta-btn:active { transform: translateY(0) scale(.98); }
.cta-btn__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  flex-shrink: 0;
}
.cta-btn__label { display: inline-flex; flex-direction: column; line-height: 1.2; text-align: left; }
.cta-btn__sub  { font-size: 11px; color: var(--c-muted); letter-spacing: .3px; text-transform: uppercase; }
.cta-btn__main { font-weight: 700; font-size: 14px; letter-spacing: .2px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Variante: Anruf */
.cta-btn--call {
  background: linear-gradient(135deg, rgba(255,59,110,.12), rgba(255,126,84,.06));
  border-color: rgba(255,59,110,.35);
}
.cta-btn--call:hover { border-color: rgba(255,59,110,.6); box-shadow: 0 6px 22px rgba(255,59,110,.18); }
.cta-btn--call .cta-btn__ico { background: linear-gradient(135deg, var(--c-primary), var(--c-primary-2)); color:#fff; }
.cta-btn--call .cta-btn__main { font-family: inherit; }

/* Variante: WhatsApp */
.cta-btn--wa {
  background: linear-gradient(135deg, rgba(37,211,102,.10), rgba(37,211,102,.04));
  border-color: rgba(37,211,102,.35);
}
.cta-btn--wa:hover { border-color: rgba(37,211,102,.6); box-shadow: 0 6px 22px rgba(37,211,102,.18); }
.cta-btn--wa .cta-btn__ico { background: #25D366; color:#fff; }
.cta-btn--wa .cta-btn__main { font-family: inherit; }

/* Variante: Favorit */
.cta-btn--fav .cta-btn__ico { font-size: 18px; }
.cta-btn--fav { background: var(--c-surface-2); }
.cta-btn--fav:hover { border-color: var(--c-accent); }

/* === Profil-Grid (Über mich / Preise) === */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (min-width: 768px) { .profile-grid { grid-template-columns: 1fr 1fr; } }
.section-title {
  color: var(--c-accent); text-transform: uppercase;
  font-size: 12px; letter-spacing: 1.2px; margin: 16px 0 10px;
  font-weight: 800;
}
.section-title:first-child { margin-top: 0; }
.kv-table { width: 100%; border-collapse: collapse; }
.kv-table td { padding: 10px 0; border-top: 1px solid var(--c-border); }
.kv-table tr:first-child td { border-top: none; }
.kv-table td:last-child { text-align: right; }
.kv-table .price { color: var(--c-accent); font-weight: 800; }

/* === Profil-Tabs (Galerie/Shop/Reviews) === */
.profile-tabs-host { padding: 0; }
.profile-tabs {
  display: flex;
  border-bottom: 1px solid var(--c-border);
}
.profile-tabs .ptab {
  flex: 1;
  position: relative;
  padding: 18px 8px 16px;
  text-align: center;
  color: var(--c-muted);
  font-weight: 700; letter-spacing: .8px; text-transform: uppercase; font-size: 12px;
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: color var(--tx-fast);
}
@media (min-width: 1024px) { .profile-tabs .ptab { font-size: 13px; padding: 22px 8px 20px; } }
.profile-tabs .ptab:hover { color: var(--c-text); }
.profile-tabs .ptab.is-active { color: var(--c-accent); }
.profile-tabs .ptab::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -1px;
  width: 0; height: 3px;
  background: var(--c-accent);
  border-radius: 2px 2px 0 0;
  transform: translateX(-50%);
  transition: width var(--tx-mid);
}
.profile-tabs .ptab.is-active::after { width: 60%; }
.profile-tabs .ptab .badge { padding: 2px 8px; font-size: 10px; }

.ptab-body { padding: 18px; animation: fadeUp .4s var(--ease-spring) both; }
@media (min-width: 1024px) { .ptab-body { padding: 24px; } }
.reviews { list-style:none; padding:0; margin:0; }
.review { padding: 12px 0; border-top: 1px solid var(--c-border); }
.review:first-child { border-top: none; }

/* === <details> / <summary> Polish === */
details > summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-weight: 600;
  color: var(--c-muted);
  user-select: none;
}
details > summary::-webkit-details-marker { display: none; }
details > summary::before {
  content: "›";
  display: inline-flex;
  width: 18px; height: 18px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--c-surface-2);
  color: var(--c-text);
  font-weight: 800;
  transition: transform .25s var(--ease-spring);
}
details[open] > summary::before { transform: rotate(90deg); }
details > summary:hover { color: var(--c-text); }

/* === Smart Phone Input === */
.phone-input {
  display: grid; grid-template-columns: 200px 1fr; gap: 8px; align-items: stretch;
}
@media (max-width: 600px) { .phone-input { grid-template-columns: 1fr; } }
.phone-input select, .phone-input input[type="tel"] {
  min-height: var(--tap);
}
.phone-input__preview {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--c-success); font-weight: 700; font-size: 13px; margin-top: 4px;
  min-height: 18px;
}

/* === Smart Image Uploader === */
.upload-zone { display: grid; gap: 12px; }
.upload-zone__drop {
  position: relative; cursor: pointer;
  border: 2px dashed var(--c-border-strong);
  border-radius: var(--r-lg);
  padding: 28px 16px; text-align: center;
  background: var(--c-surface);
  transition: all var(--tx-fast);
}
.upload-zone__drop:hover { border-color: var(--c-primary); background: var(--c-surface-2); }
.upload-zone.is-drag .upload-zone__drop {
  border-color: var(--c-primary);
  background: linear-gradient(180deg, rgba(255,59,110,.10), rgba(255,59,110,.02));
  transform: scale(1.01);
}
.upload-zone__drop input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.upload-zone__hint { color: var(--c-muted); font-size: 14px; line-height: 1.5; pointer-events: none; }
.upload-zone__hint::before {
  content: "📷"; display: block; font-size: 36px; margin-bottom: 6px;
  filter: grayscale(.2);
}
.upload-zone__hint span { color: var(--c-text); opacity: .8; font-size: 13px; }

.upload-zone__previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.upload-zone:not(.has-files) .upload-zone__previews { display: none; }

.upload-prev {
  position: relative; aspect-ratio: 1/1;
  border-radius: var(--r-md); overflow: hidden;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  animation: pop .35s var(--ease-spring) both;
}
.upload-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload-prev .x-btn {
  position: absolute; top: 6px; right: 6px;
}
.upload-prev__name {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 6px 8px;
  font-size: 11px; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.7));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* === Shop Card === */
.shop-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  cursor: pointer;
  transition: transform var(--tx-mid), box-shadow var(--tx-mid), border-color var(--tx-mid);
  animation: fadeUp .55s var(--ease-spring) both;
}
.shop-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255,209,102,.35);
  border-color: rgba(255,209,102,.45);
}
.shop-card__img {
  aspect-ratio: 4/5;
  background: #1a1d27 center/cover no-repeat;
  transition: transform var(--tx-slow);
}
.shop-card:hover .shop-card__img { transform: scale(1.05); }
.shop-card__price {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 14px; border-radius: 999px;
  background: linear-gradient(135deg, var(--c-accent), var(--c-primary-2));
  color: #2a1500; font-weight: 800; font-size: 13px;
  box-shadow: 0 4px 16px rgba(255,209,102,.4);
  letter-spacing: .3px;
}
.shop-card__type {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(0,0,0,.6); color: #fff;
  font-size: 10.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .5px;
  backdrop-filter: blur(6px);
}
.shop-card__body { padding: 14px; }
.shop-card__title { font-weight: 800; font-size: 15px; }
.shop-card__owned {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  text-align: center;
  padding: 6px 10px; border-radius: 8px;
  background: rgba(27,216,132,.18);
  color: #c2f5d6; font-size: 12px; font-weight: 700;
  border: 1px solid rgba(27,216,132,.4);
}

/* === Lightbox === */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center; justify-content: center;
}
.lightbox.is-open { display: flex; animation: fadeIn .2s ease-out both; }
.lightbox__stage {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 56px 16px;
}
.lightbox__img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
  animation: pop .35s var(--ease-spring) both;
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.20);
  color: #fff; font-weight: 800;
  border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--tx-fast), transform var(--tx-fast);
  backdrop-filter: blur(8px);
}
.lightbox__close:hover, .lightbox__nav:hover {
  background: rgba(255,255,255,.20); transform: scale(1.05);
}
.lightbox__close { top: 16px; right: 16px; width: 44px; height: 44px; font-size: 24px; }
.lightbox__nav   { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; font-size: 32px; }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.05); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
@media (max-width: 768px) {
  .lightbox__nav { width: 44px; height: 44px; font-size: 26px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}
.lightbox__counter {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  color: #fff; font-weight: 700; font-size: 13px;
  background: rgba(0,0,0,.55);
  padding: 6px 14px; border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* === Shop Modal === */
.shop-modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center; justify-content: center;
  padding: 16px;
  overflow-y: auto;
}
.shop-modal.is-open { display: flex; animation: fadeIn .25s ease-out both; }
.shop-modal__inner {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: linear-gradient(180deg, var(--c-surface) 0%, var(--c-surface-2) 100%);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: var(--shadow-md), 0 0 60px rgba(255,59,110,.15);
  animation: pop .4s var(--ease-spring) both;
  margin: auto;
}
.shop-modal__close {
  position: absolute; top: 12px; right: 12px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--c-surface-2); border: 1px solid var(--c-border-strong);
  color: var(--c-text); font-size: 20px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--tx-fast);
}
.shop-modal__close:hover { background: var(--c-danger); border-color: transparent; transform: scale(1.05); }
.shop-modal__image {
  aspect-ratio: 4/5;
  background: #1a1d27 center/cover no-repeat;
  border-radius: var(--r-lg);
  margin: 4px 0 14px;
}
.shop-modal__title { font-size: 22px; margin: 6px 0 8px; }
.shop-modal__desc  { white-space: pre-line; }
.shop-modal__price {
  display: inline-flex; align-items: center;
  background: linear-gradient(135deg, var(--c-accent), var(--c-primary-2));
  color: #2a1500;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 800; font-size: 16px;
  box-shadow: 0 4px 16px rgba(255,209,102,.4);
}

/* === Webcam Capture === */
.cam-input { position: relative; }
.cam-input__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  background: var(--c-surface-2);
  border: 1px dashed var(--c-border-strong);
  border-radius: 12px;
  color: var(--c-text);
  font-weight: 600; font-size: 14px;
  cursor: pointer;
  transition: all var(--tx-fast);
}
.cam-input__btn:hover { border-color: var(--c-primary); background: var(--c-surface); }
.cam-input__prev {
  margin-top: 10px;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 4/3;
  border-radius: 12px;
  background: var(--c-surface-2) center/cover no-repeat;
  border: 1px solid var(--c-border-strong);
}
.cam-input__prev.has-img { border-color: var(--c-success); }

.cam-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: #000;
  display: none;
  align-items: center; justify-content: center;
}
.cam-overlay.is-open { display: flex; animation: fadeIn .2s; }
.cam-overlay__inner {
  width: 100%; height: 100%; max-width: 800px;
  display: flex; flex-direction: column;
  position: relative;
  background: #000;
}
.cam-overlay__video {
  flex: 1; width: 100%; min-height: 0;
  object-fit: contain; background: #000;
}
.cam-overlay__bar {
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  display: flex; justify-content: center; gap: 14px;
  background: #000;
}
.cam-overlay__shot {
  width: 84px; height: 84px; border-radius: 50%;
  background: #fff;
  border: 6px solid rgba(255,255,255,.3);
  cursor: pointer;
  font-size: 0;
  transition: transform var(--tx-fast);
}
.cam-overlay__shot:active { transform: scale(.92); }
.cam-overlay__close {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,.6); color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  font-size: 22px; cursor: pointer; z-index: 2;
}
.cam-overlay__msg {
  position: absolute; left: 16px; right: 16px; top: 50%; transform: translateY(-50%);
  max-width: 480px; margin: 0 auto;
  background: rgba(255,255,255,.95);
  color: #111; padding: 18px 20px; border-radius: 14px;
  text-align: center; font-size: 15px; line-height: 1.5;
  z-index: 3;
}
.cam-overlay__msg--error { background: #fff0f1; color: #6a0d18; border: 1px solid #ef4444; }
.cam-overlay__msg--loading { background: rgba(255,255,255,.9); color: #111; }
.cam-overlay__msg--loading::before {
  content: ""; display: inline-block; width: 14px; height: 14px;
  border-radius: 50%; border: 2px solid rgba(0,0,0,.2); border-top-color: #6c8eff;
  margin-right: 8px; vertical-align: middle;
  animation: spin 700ms linear infinite;
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
