:root {
  --bg-deep: #180810;
  --bg-card: rgba(58, 22, 38, 0.78);
  --accent: #e06b8a;
  --accent-soft: #f4b8c8;
  --accent-glow: rgba(224, 107, 138, 0.5);
  --accent-warm: #c9786a;
  --gold: #d4a574;
  --gold-soft: rgba(212, 165, 116, 0.35);
  --violet: #a8557a;
  --wine: #4a1528;
  --cream: #fff4f0;
  --text: #fde8ef;
  --text-muted: #d4a8b8;
  --radius: 18px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --font: 'Outfit', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

.bg-animated {
  position: fixed; inset: 0; z-index: -3;
  background: radial-gradient(ellipse 80% 60% at 15% 25%, rgba(120, 30, 55, 0.55) 0%, transparent 55%),
              radial-gradient(ellipse 70% 50% at 85% 75%, rgba(90, 25, 45, 0.5) 0%, transparent 50%),
              linear-gradient(135deg, #120608, #1a0a10, #220e16);
  animation: bgShift 20s ease-in-out infinite alternate;
}
@keyframes bgShift {
  0% { filter: hue-rotate(0deg) brightness(1); }
  100% { filter: hue-rotate(8deg) brightness(1.06); }
}

.bg-silk {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 45% 35% at 70% 20%, rgba(212, 165, 116, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 25% 80%, rgba(224, 107, 138, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse 30% 25% at 50% 50%, rgba(168, 85, 122, 0.08) 0%, transparent 50%);
  animation: silkDrift 24s ease-in-out infinite alternate;
}
@keyframes silkDrift {
  0% { transform: scale(1) translate(0, 0); opacity: 0.85; }
  100% { transform: scale(1.04) translate(-1%, 1%); opacity: 1; }
}

.particles {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(2px 2px at 20px 30px, var(--accent-soft), transparent),
                    radial-gradient(2px 2px at 100px 150px, var(--gold), transparent),
                    radial-gradient(1px 1px at 200px 80px, rgba(255,240,245,0.6), transparent);
  background-size: 300px 300px;
  animation: floatParticles 25s linear infinite;
  opacity: 0.4;
}
@keyframes floatParticles {
  from { transform: translateY(0); }
  to { transform: translateY(-300px); }
}

.site-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1rem;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  backdrop-filter: blur(12px);
  background: rgba(24, 8, 16, 0.65); border-bottom: 1px solid rgba(212, 165, 116, 0.08);
  position: sticky; top: 0; z-index: 100;
}
.logo { font-size: 1.25rem; font-weight: 700; color: var(--cream); text-decoration: none; letter-spacing: -0.02em; flex-shrink: 0; }
.brand-echt { color: var(--cream); font-weight: 600; }
.brand-und { color: var(--text-muted); font-weight: 400; font-size: 0.92em; }
.brand-frei { color: var(--accent-soft); font-weight: 700; text-shadow: 0 0 18px var(--accent-glow); }
.glow-text { text-shadow: 0 0 20px var(--accent-glow); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0.5rem; margin-left: auto;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 12px;
  background: rgba(255,255,255,0.06); cursor: pointer; flex-shrink: 0;
}
.nav-toggle-bar {
  display: block; width: 100%; height: 2px; border-radius: 2px; background: var(--cream);
  transition: transform 0.25s, opacity 0.25s;
}
body.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-nav-wrap { display: contents; }
.main-nav { display: flex; gap: 0.35rem; flex-wrap: wrap; align-items: center; }
.nav-link {
  background: transparent; border: none; color: var(--text-muted); cursor: pointer;
  font-family: inherit; font-size: 0.95rem; padding: 0.5rem 0.85rem; border-radius: 999px;
  min-height: 44px; touch-action: manipulation;
}
.nav-link:hover { color: var(--cream); background: rgba(255,255,255,0.06); }
.nav-link, .header-actions .btn { margin: 0; min-height: 44px; }
.header-actions { display: flex; gap: 0.35rem; flex-wrap: wrap; align-items: center; }

.btn {
  border: none; cursor: pointer; font-family: inherit; font-weight: 500;
  padding: 0.65rem 1.25rem; border-radius: 999px; transition: transform 0.2s, box-shadow 0.2s;
  min-height: 44px; touch-action: manipulation;
}
.btn:hover { transform: translateY(-2px); }
@media (hover: none) { .btn:hover { transform: none; } }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--violet), var(--accent-warm));
  color: white; box-shadow: 0 4px 24px var(--accent-glow);
}
.btn-secondary { background: rgba(255,255,255,0.1); color: var(--cream); border: 1px solid rgba(255,255,255,0.15); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-lg { padding: 0.9rem 1.8rem; font-size: 1.05rem; }
.btn-sm { padding: 0.35rem 0.8rem; font-size: 0.85rem; }

.view { display: none; padding: 1.25rem 1rem; max-width: 1100px; margin: 0 auto; }
.view.active { display: block; }
.view.view-enter { animation: viewEnter 0.22s ease; }
@keyframes viewEnter { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .view.view-enter { animation: none; }
  html { scroll-behavior: auto; }
}

#app-main { min-height: calc(100vh - 140px); min-height: calc(100dvh - 140px); }

.hero { text-align: center; padding: 2.5rem 0.5rem 3rem; }
.hero-badge { display: inline-block; padding: 0.4rem 1rem; border-radius: 999px; background: rgba(232,121,168,0.2); margin-bottom: 1.5rem; }
.pulse { animation: pulse 2.5s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 var(--accent-glow); } 50% { box-shadow: 0 0 0 12px transparent; } }
.hero-title { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin: 0 0 1rem; }
.hero-title .brand-echt,
.hero-title .brand-frei { font-size: 1.05em; }
.hero-brand {
  max-width: 640px; margin: 0 auto 2rem; padding: 1.25rem 1.5rem;
  border-radius: var(--radius); font-size: 1.05rem; line-height: 1.55;
  background: linear-gradient(135deg, rgba(74, 21, 40, 0.65), rgba(58, 22, 38, 0.5));
  border: 1px solid rgba(212, 165, 116, 0.2);
  box-shadow: 0 0 40px rgba(224, 107, 138, 0.08);
}
.hero-brand .brand-echt { color: var(--gold); text-shadow: 0 0 12px var(--gold-soft); }
.hero-brand .brand-frei { color: var(--accent-soft); }
.hero-sub { font-size: 1.15rem; color: var(--text-muted); max-width: 620px; margin: 0 auto 2rem; }
.hero-men-link { margin-top: 1.25rem; }
.hero-men-link .btn-link {
  background: none; border: none; color: var(--gold); cursor: pointer;
  font-family: inherit; font-size: 0.95rem; text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-men-link .btn-link:hover { color: var(--accent-soft); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 2rem; }
.trust-chip { padding: 0.45rem 0.9rem; border-radius: var(--radius); background: var(--bg-card); font-size: 0.9rem; border: 1px solid rgba(255,255,255,0.08); }
.trust-chip-highlight {
  background: linear-gradient(135deg, rgba(74, 21, 40, 0.85), rgba(58, 22, 38, 0.7));
  border-color: rgba(212, 165, 116, 0.35);
  color: var(--cream);
  font-weight: 500;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.promo-banner { margin-top: 2rem; padding: 1rem; border-radius: var(--radius); background: linear-gradient(90deg, rgba(155,109,255,0.25), rgba(232,121,168,0.25)); animation: shimmer 4s ease-in-out infinite; }
@keyframes shimmer { 0%,100% { opacity: 0.85; } 50% { opacity: 1; } }
.social-proof { margin-top: 1.5rem; color: var(--accent-soft); }

.card {
  background: var(--bg-card); backdrop-filter: blur(16px);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.08);
}
.form-card { max-width: 440px; margin: 1rem auto; width: 100%; }
.form-card label { display: block; margin-bottom: 1rem; font-size: 0.9rem; color: var(--text-muted); }
.form-field { margin-bottom: 1rem; }
.form-field > label { display: block; margin-bottom: 0.35rem; font-size: 0.9rem; color: var(--text-muted); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 0.75rem 1rem; border-radius: 12px; border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25); color: var(--text); font-family: inherit; font-size: 16px;
}
.form-card input, .form-card select, .form-card textarea {
  display: block; width: 100%; margin-top: 0.35rem; padding: 0.75rem 1rem;
  border-radius: 12px; border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25); color: var(--text); font-family: inherit;
}
.form-error { color: #ff8fab; margin-top: 0.75rem; }
.hidden { display: none !important; }

.chat-layout { display: grid; grid-template-columns: 280px 1fr; gap: 1rem; min-height: 70vh; }
.chat-messages { flex: 1; overflow-y: auto; max-height: 60vh; padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.chat-bubble {
  max-width: 75%; padding: 0.75rem 1rem; border-radius: 16px;
  background: rgba(155,109,255,0.25); align-self: flex-start;
  animation: bubbleIn 0.35s ease;
}
.chat-bubble.mine { align-self: flex-end; background: rgba(232,121,168,0.3); }
@keyframes bubbleIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.chat-input-row { display: flex; gap: 0.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.08); align-items: center; }
.chat-input-row input[type=text] { flex: 1; padding: 0.75rem; border-radius: 12px; border: none; background: rgba(0,0,0,0.25); color: var(--text); }

.community-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.community-card { cursor: pointer; transition: transform 0.25s, box-shadow 0.25s; }
.community-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px var(--accent-glow); }
.community-card .btn-link {
  display: inline-block; margin-top: 0.75rem; background: none; border: none;
  color: var(--gold); cursor: pointer; font-family: inherit; font-size: 0.9rem;
  text-decoration: underline; text-underline-offset: 3px; padding: 0;
}
.community-card .btn-link:hover { color: var(--accent-soft); }

.tips-card { max-width: 760px; margin: 0 auto; }
.tips-card h2 { margin-top: 0; }
.tips-intro { color: var(--text-muted); line-height: 1.6; margin-bottom: 2rem; }
.tips-section { margin-bottom: 2rem; }
.tips-section h3 {
  font-size: 1.1rem; margin: 0 0 0.75rem; color: var(--accent-soft);
  border-bottom: 1px solid rgba(212, 165, 116, 0.2); padding-bottom: 0.5rem;
}
.tips-list { margin: 0; padding-left: 1.25rem; line-height: 1.65; }
.tips-list li { margin-bottom: 0.65rem; color: var(--text); }
.tips-list.tips-do li::marker { color: var(--gold); }
.tips-list.tips-dont li::marker { color: var(--accent); }
.tips-footer {
  margin-top: 2rem; padding: 1rem 1.25rem; border-radius: var(--radius);
  background: rgba(74, 21, 40, 0.4); border-left: 3px solid var(--gold);
  font-style: italic; color: var(--text-muted);
}

.verify-steps { display: flex; gap: 0.35rem; margin-bottom: 1rem; }
.verify-steps .step { flex: 1; text-align: center; padding: 0.55rem 0.35rem; border-radius: 10px; background: rgba(0,0,0,0.2); font-size: 0.72rem; line-height: 1.25; }
.verify-card { max-width: 520px; }
.verify-panel { margin-top: 0.5rem; transition: opacity 0.2s ease; }
.verify-panel.is-leaving { opacity: 0; pointer-events: none; }
.verify-steps .step.active { background: rgba(232,121,168,0.3); }
.verify-video, .verify-preview { width: 100%; max-width: 400px; border-radius: var(--radius); margin: 1rem auto; display: block; }
.verify-preview { border: 2px solid var(--gold-soft); }
.verify-id-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.5rem; }
.verify-id-actions .file-upload { cursor: pointer; margin: 0; }
.verify-id-actions .file-upload input { display: none; }
.verify-camera-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.5rem; }
.verify-hint { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.verify-id-live-hint {
  font-size: 0.9rem; margin: -0.5rem 0 1rem; padding: 0.65rem 0.85rem;
  border-radius: 12px; background: rgba(74, 21, 40, 0.5); border: 1px solid rgba(212, 165, 116, 0.25);
}
.verify-id-live-hint.is-warn { color: #ffb4c8; border-color: rgba(255, 107, 138, 0.45); }
.verify-id-live-hint.is-ok { color: #a8e6c0; border-color: rgba(110, 231, 160, 0.35); }
.verify-panel { margin-top: 0.5rem; }
.verify-cancel { margin-top: 1.25rem; width: 100%; }

.verify-guide { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.verify-guide-item {
  display: flex; gap: 1rem; align-items: flex-start; padding: 0.85rem 1rem;
  border-radius: var(--radius); background: rgba(0,0,0,0.2); border: 1px solid transparent;
  font-size: 0.9rem; color: var(--text-muted);
}
.verify-guide-item.active { border-color: var(--gold-soft); background: rgba(74, 21, 40, 0.45); }
.verify-guide-item strong { display: block; color: var(--text); margin-bottom: 0.25rem; }
.verify-guide-item p { margin: 0; line-height: 1.45; }
.verify-guide-icon { flex-shrink: 0; width: 80px; }
.verify-guide-icon svg { width: 80px; height: auto; display: block; }
.verify-guide-compact { flex-direction: row; flex-wrap: wrap; }
.verify-guide-compact .verify-guide-item {
  flex: 1; min-width: 140px; padding: 0.5rem 0.75rem; align-items: center; gap: 0.5rem;
}
.verify-guide-compact .verify-guide-item span {
  display: inline-flex; width: 1.5rem; height: 1.5rem; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--accent); color: white; font-size: 0.8rem; font-weight: 600;
}
.verify-guide-compact .verify-guide-item.active span { background: var(--gold); color: #1a0a10; }

.verify-video-wrap { position: relative; width: 100%; max-width: min(400px, 100%); margin: 0 auto 1rem; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: #000; }
.verify-video-wrap .verify-video { width: 100%; height: 100%; object-fit: cover; margin: 0; transform: scaleX(-1); display: block; }
.verify-face-oval {
  position: absolute; inset: 8% 15%; border: 3px dashed rgba(212, 165, 116, 0.7);
  border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 9999px rgba(0,0,0,0.35);
}
.gesture-hint-large { font-size: 1.15rem; font-weight: 600; color: var(--accent-soft); text-align: center; margin: 0.75rem 0; }
.verify-progress { height: 6px; background: rgba(255,255,255,0.1); border-radius: 999px; overflow: hidden; margin: 0.75rem 0; }
.verify-progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--gold)); transition: width 0.15s ease; }
.verify-live-status { text-align: center; color: var(--text-muted); min-height: 1.4em; font-size: 0.95rem; }

.pwa-install-hint {
  position: fixed; bottom: 5rem; left: 50%; transform: translateX(-50%);
  max-width: min(420px, calc(100vw - 2rem)); padding: 0.85rem 1.1rem;
  background: var(--bg-card); border: 1px solid var(--gold-soft); border-radius: var(--radius);
  color: var(--text-muted); font-size: 0.9rem; text-align: center; z-index: 90;
  box-shadow: var(--shadow);
}

@media (display-mode: standalone) {
  body { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
  .site-header { padding-top: calc(0.75rem + env(safe-area-inset-top)); }
}

body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }

.avatar-preview { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; margin: 0 auto 1rem; background: rgba(255,255,255,0.1); }
.avatar-preview img, .avatar-preview svg { width: 100%; height: 100%; object-fit: cover; }

.admin-layout { display: flex; flex-direction: column; gap: 1rem; }
.admin-bell { font-size: 1.5rem; cursor: pointer; }
.admin-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.admin-tabs button { background: rgba(255,255,255,0.08); border: none; color: var(--text); padding: 0.5rem 1rem; border-radius: 10px; cursor: pointer; }
.admin-tabs button.active { background: var(--accent); color: white; }
.admin-panel { min-height: 300px; }

.site-footer {
  text-align: center; padding: 2rem; color: var(--text-muted);
  display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap;
}
.site-footer button { background: none; border: none; color: var(--text-muted); cursor: pointer; text-decoration: underline; }

.username-status.available { color: #6ee7a0; font-weight: 500; }
.username-status.taken, .username-status.invalid { color: #ff6b8a; font-weight: 500; }
.username-field .username-status { margin: 0 0 0.4rem; font-size: 0.85rem; min-height: 1.2em; }
.username-field .username-status:empty { margin: 0; min-height: 0; }
.username-field .form-hint { margin-top: 0.35rem; margin-bottom: 0; }
.form-hint { font-size: 0.85rem; color: var(--text-muted); margin: 0.25rem 0 0.75rem; }
.verify-apology { font-size: 1.05rem; line-height: 1.6; color: var(--text-muted); margin: 1.25rem 0 1.5rem; }
.verify-apology-card { max-width: 520px; margin: 2rem auto; text-align: center; }
.recovery-codes { background: rgba(0,0,0,0.35); padding: 1rem; border-radius: 12px; font-size: 1.1rem; letter-spacing: 0.05em; }
.badge { background: var(--accent); color: white; border-radius: 999px; padding: 0.1rem 0.45rem; font-size: 0.75rem; margin-left: 0.25rem; }
.inbox-item { padding: 1rem; margin-bottom: 0.75rem; border-radius: 12px; background: rgba(0,0,0,0.2); cursor: pointer; }
.inbox-item.unread { border-left: 3px solid var(--accent); }
.inbox-item header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.9rem; }

.cookie-consent {
  position: fixed; bottom: max(1rem, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  background: var(--bg-card); padding: 1rem 1.25rem; border-radius: var(--radius);
  display: flex; align-items: center; gap: 0.75rem; z-index: 200; box-shadow: var(--shadow);
  max-width: min(520px, calc(100vw - 1.5rem)); flex-wrap: wrap; justify-content: center;
  text-align: center; font-size: 0.9rem;
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .header-nav-wrap {
    display: none; flex-basis: 100%; flex-direction: column; gap: 0.75rem;
    padding: 0.75rem 0 0.25rem; border-top: 1px solid rgba(255,255,255,0.08);
  }
  body.nav-open .header-nav-wrap { display: flex; }
  .main-nav { flex-direction: column; align-items: stretch; width: 100%; }
  .main-nav .nav-link { width: 100%; text-align: left; justify-content: flex-start; display: flex; align-items: center; }
  .header-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .header-actions .btn { width: 100%; justify-content: center; }
  .site-header { padding-bottom: 0.75rem; }
}

@media (max-width: 768px) {
  .chat-layout { grid-template-columns: 1fr; min-height: auto; }
  .chat-messages { max-height: 50vh; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-trust { gap: 0.45rem; }
  .trust-chip { font-size: 0.82rem; padding: 0.4rem 0.65rem; }
  .community-grid { grid-template-columns: 1fr; }
  .verify-guide-item { flex-direction: column; align-items: center; text-align: center; }
  .verify-guide-icon { width: 64px; }
  .verify-guide-icon svg { width: 64px; }
  .verify-id-actions { flex-direction: column; }
  .verify-id-actions .btn, .verify-camera-actions .btn { width: 100%; }
  .verify-camera-actions { flex-direction: column; }
  .site-footer { flex-direction: column; gap: 0.75rem; padding: 1.5rem 1rem; }
  .admin-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.25rem; -webkit-overflow-scrolling: touch; }
  .admin-tabs button { flex-shrink: 0; min-height: 44px; }
  .card { padding: 1.15rem; }
  .pwa-install-hint { bottom: max(5.5rem, calc(4rem + env(safe-area-inset-bottom))); font-size: 0.85rem; }
}

@media (max-width: 480px) {
  .logo { font-size: 1.1rem; }
  .hero { padding-top: 1.5rem; }
  .hero-title { font-size: clamp(1.65rem, 8vw, 2.2rem); }
  .verify-steps .step { font-size: 0.65rem; padding: 0.45rem 0.2rem; }
  .verify-guide-compact .verify-guide-item { min-width: 100%; }
}
