/* ──────────────────────────────────────────────────────────────────────────
 * bildschirm-teilen.de – Stylesheet
 * Modern, hell mit Glas-Akzenten und dezentem Rainbow-Hintergrund.
 * ──────────────────────────────────────────────────────────────────────── */

:root {
  --bst-bg: #f7f8fb;
  --bst-surface: #ffffff;
  --bst-surface-soft: #f1f3f8;
  --bst-text: #0f172a;
  --bst-muted: #64748b;
  --bst-border: #e2e8f0;
  --bst-accent: #2563eb;
  --bst-accent-hover: #1d4ed8;
  --bst-accent-soft: #dbeafe;
  --bst-success: #16a34a;
  --bst-danger: #dc2626;
  --bst-warn: #ca8a04;
  --bst-radius: 14px;
  --bst-radius-lg: 22px;
  --bst-shadow: 0 6px 24px rgba(15, 23, 42, .06);
  --bst-shadow-lg: 0 24px 60px rgba(15, 23, 42, .12);
  --easing: cubic-bezier(.22,.61,.36,1);
  --bst-font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--bst-font);
  color: var(--bst-text);
  background: var(--bst-bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Rainbow-Hintergrund (Akzent, kein Hauptelement) ─────────────────── */
.bst-rainbow {
  position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(45deg, #fb0094, #7c3aed, #3b82f6, #22c55e, #fde047, #ef4444, #fb0094);
  background-size: 320% 320%;
  animation: bstRainbow 18s linear infinite;
  opacity: .18; filter: blur(60px) saturate(150%); transform: scale(1.1);
}
@keyframes bstRainbow {
  0% { background-position: 0% 50% }
  50% { background-position: 100% 50% }
  100% { background-position: 0% 50% }
}
@media (prefers-reduced-motion: reduce) {
  .bst-rainbow { animation: none; }
}

a { color: var(--bst-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.bst-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  backdrop-filter: saturate(180%) blur(10px);
  background: rgba(255,255,255,.78);
  border-bottom: 1px solid rgba(226,232,240,.7);
  position: sticky; top: 0; z-index: 100;
}
.bst-brand {
  font-size: 1.05rem; color: var(--bst-text); text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
}
.bst-brand:hover { text-decoration: none; }
.bst-brand-tld { color: var(--bst-muted); font-weight: 500; }
.bst-logo {
  width: 28px; height: 28px; display: block;
  border-radius: 7px;
  box-shadow: 0 2px 6px rgba(37,99,235,.18), 0 0 0 1px rgba(37,99,235,.06);
  transition: transform .2s var(--easing);
}
.bst-brand:hover .bst-logo { transform: translateY(-1px) rotate(-2deg); }
.bst-nav-links { display: flex; align-items: center; gap: 14px; }
.bst-nav-links a {
  color: var(--bst-text); text-decoration: none; font-weight: 500; font-size: .96rem;
  padding: 8px 12px; border-radius: 10px; transition: background .15s var(--easing);
}
.bst-nav-links a:hover { background: var(--bst-surface-soft); }

.bst-user-menu { position: relative; }
.bst-user-menu summary {
  list-style: none; cursor: pointer; padding: 8px 14px;
  border-radius: 10px; background: var(--bst-surface-soft);
  font-weight: 500; font-size: .94rem;
}
.bst-user-menu summary::-webkit-details-marker { display: none; }
.bst-user-dropdown {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px;
  background: var(--bst-surface); border: 1px solid var(--bst-border);
  border-radius: var(--bst-radius); box-shadow: var(--bst-shadow-lg);
  display: flex; flex-direction: column; padding: 8px;
}
.bst-user-dropdown a { padding: 9px 12px; border-radius: 8px; color: var(--bst-text); }
.bst-user-dropdown a:hover { background: var(--bst-surface-soft); text-decoration: none; }
.bst-user-type {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .04em;
  font-weight: 600; padding: 4px 10px; margin: 4px 8px 8px;
  border-radius: 999px; display: inline-block;
}
.bst-user-type-private  { background: var(--bst-accent-soft); color: var(--bst-accent); }
.bst-user-type-business { background: #fef3c7; color: #92400e; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.bst-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border: 1px solid transparent; border-radius: 12px;
  font: inherit; font-weight: 600; cursor: pointer;
  background: var(--bst-surface); color: var(--bst-text);
  transition: transform .12s var(--easing), background .15s var(--easing), box-shadow .15s var(--easing);
  text-decoration: none;
}
.bst-btn:hover { background: var(--bst-surface-soft); text-decoration: none; }
.bst-btn:active { transform: translateY(1px); }
.bst-btn-primary {
  background: var(--bst-accent); color: #fff;
  box-shadow: 0 6px 18px rgba(37,99,235,.28);
}
.bst-btn-primary:hover { background: var(--bst-accent-hover); }
.bst-btn-ghost { background: transparent; color: var(--bst-text); border-color: var(--bst-border); }
.bst-btn-danger { background: var(--bst-danger); color: #fff; }
.bst-btn-danger:hover { background: #b91c1c; }
.bst-btn-full  { width: 100%; }
.bst-btn[disabled], .bst-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Hauptbereich ───────────────────────────────────────────────────────── */
main { flex: 1; }
.bst-container {
  max-width: 1100px; margin: 0 auto; padding: 32px 24px;
}
.bst-narrow { max-width: 720px; margin: 0 auto; padding: 32px 24px; }

/* ── Hero / Landing ─────────────────────────────────────────────────────── */
.bst-hero {
  text-align: center; padding: 80px 24px 48px;
}
.bst-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.1;
  margin: 0 0 18px; letter-spacing: -0.02em;
}
.bst-hero h1 .bst-grad {
  background: linear-gradient(45deg, #fb0094, #7c3aed, #3b82f6, #22c55e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bst-hero p.lead {
  color: var(--bst-muted); font-size: 1.15rem; max-width: 620px;
  margin: 0 auto 30px;
}
.bst-hero-cta {
  display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.bst-hero-meta {
  margin-top: 28px; color: var(--bst-muted); font-size: .92rem;
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
}
.bst-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ── Feature-Grid ───────────────────────────────────────────────────────── */
.bst-features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px; margin: 40px 0;
}
.bst-feature {
  background: var(--bst-surface); border: 1px solid var(--bst-border);
  border-radius: var(--bst-radius-lg); padding: 24px;
  box-shadow: var(--bst-shadow); transition: transform .2s var(--easing);
}
.bst-feature:hover { transform: translateY(-2px); }
.bst-feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--bst-accent-soft); color: var(--bst-accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.bst-feature h3 { margin: 0 0 6px; font-size: 1.08rem; }
.bst-feature p { margin: 0; color: var(--bst-muted); font-size: .96rem; }

/* ── Cards / Surface ────────────────────────────────────────────────────── */
.bst-card {
  background: var(--bst-surface); border: 1px solid var(--bst-border);
  border-radius: var(--bst-radius-lg); padding: 28px;
  box-shadow: var(--bst-shadow);
}
.bst-card + .bst-card { margin-top: 18px; }
.bst-card h2 { margin: 0 0 14px; font-size: 1.4rem; }
.bst-card h3 { margin: 22px 0 8px; font-size: 1.05rem; }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.bst-form .bst-field { margin-bottom: 16px; }
.bst-form label {
  display: block; font-size: .9rem; font-weight: 500;
  color: var(--bst-text); margin-bottom: 6px;
}
.bst-input, .bst-select, .bst-textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--bst-border);
  border-radius: 11px; background: #fff; font: inherit;
  transition: border-color .15s var(--easing), box-shadow .15s var(--easing);
}
.bst-input:focus, .bst-select:focus, .bst-textarea:focus {
  outline: none; border-color: var(--bst-accent);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
.bst-textarea { resize: vertical; min-height: 100px; }
.bst-hint { color: var(--bst-muted); font-size: .85rem; margin: 6px 0 0; }
.bst-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px) { .bst-form-row { grid-template-columns: 1fr; } }
.bst-check-row {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .92rem; color: var(--bst-text); padding: 8px 0;
}
.bst-check-row input { margin-top: 3px; }

/* Account-Typ-Toggle (Privat / Geschäftlich) */
.bst-acctype {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px;
  background: var(--bst-surface-soft); padding: 6px; border-radius: 14px;
}
.bst-acctype label {
  margin: 0; padding: 14px; border-radius: 10px; cursor: pointer;
  text-align: center; font-weight: 500;
  transition: background .15s var(--easing), color .15s var(--easing);
}
.bst-acctype input { display: none; }
.bst-acctype input:checked + span {
  background: var(--bst-surface); box-shadow: var(--bst-shadow);
  color: var(--bst-text); border-radius: 10px;
}
.bst-acctype label span {
  display: block; padding: 12px; border-radius: 10px; color: var(--bst-muted);
}
.bst-acctype small { display: block; font-weight: 400; color: var(--bst-muted); margin-top: 4px; font-size: .8rem; }

/* ── Alerts ─────────────────────────────────────────────────────────────── */
.bst-alert {
  padding: 12px 16px; border-radius: 12px; margin: 0 0 14px;
  font-size: .94rem; border: 1px solid transparent;
}
.bst-alert-success { background: #dcfce7; color: #14532d; border-color: #bbf7d0; }
.bst-alert-danger  { background: #fee2e2; color: #7f1d1d; border-color: #fecaca; }
.bst-alert-info    { background: var(--bst-accent-soft); color: var(--bst-accent); border-color: #bfdbfe; }
.bst-alert-warn    { background: #fef9c3; color: #713f12; border-color: #fde68a; }

/* ── Tabs (Login/Register) ─────────────────────────────────────────────── */
.bst-tabs {
  display: flex; gap: 4px; margin-bottom: 22px;
  background: var(--bst-surface-soft); padding: 4px; border-radius: 12px;
}
.bst-tab {
  flex: 1; padding: 10px 14px; border: 0; background: transparent;
  border-radius: 10px; cursor: pointer; font: inherit; font-weight: 500;
  color: var(--bst-muted); transition: background .15s var(--easing);
}
.bst-tab.active { background: var(--bst-surface); color: var(--bst-text); box-shadow: var(--bst-shadow); }
.bst-tab-panel { display: none; }
.bst-tab-panel.active { display: block; }

/* ── Member-Bereich: Session-Liste ──────────────────────────────────────── */
.bst-session-list { display: flex; flex-direction: column; gap: 10px; }
.bst-session-item {
  display: flex; gap: 16px; align-items: center;
  padding: 14px; border: 1px solid var(--bst-border); border-radius: 14px;
  background: var(--bst-surface);
}
.bst-session-item .bst-session-info { flex: 1; min-width: 0; }
.bst-session-item h4 { margin: 0 0 4px; font-size: 1rem; }
.bst-session-item .bst-mono {
  font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace;
  font-size: .82rem; color: var(--bst-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bst-session-empty {
  text-align: center; padding: 40px 20px; color: var(--bst-muted);
  background: var(--bst-surface-soft); border-radius: var(--bst-radius);
}

/* ── Share-Seite (Host) ─────────────────────────────────────────────────── */
.bst-share-stage {
  display: grid; grid-template-columns: 2fr 1fr; gap: 22px;
  margin-top: 12px;
}
@media (max-width: 900px) { .bst-share-stage { grid-template-columns: 1fr; } }
.bst-video-wrap {
  background: #0b1220; border-radius: 18px; padding: 12px;
  box-shadow: var(--bst-shadow-lg);
  position: relative; aspect-ratio: 16/9; overflow: hidden;
}
.bst-video-wrap video {
  width: 100%; height: 100%; object-fit: contain;
  border-radius: 12px; background: #000;
}
.bst-video-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; color: #94a3b8;
  text-align: center; padding: 20px;
}
.bst-share-panel { display: flex; flex-direction: column; gap: 14px; }
.bst-share-status {
  padding: 12px 14px; border-radius: 12px;
  background: var(--bst-surface-soft); color: var(--bst-text);
  font-size: .92rem;
}
.bst-share-status.live {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #14532d;
}
.bst-share-status .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--bst-muted); margin-right: 8px;
}
.bst-share-status.live .dot { background: #16a34a; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: .55; }
}

.bst-share-link {
  display: flex; gap: 8px; align-items: center;
  background: var(--bst-surface-soft); padding: 10px 12px; border-radius: 12px;
}
.bst-share-link input {
  flex: 1; border: 0; background: transparent; font: inherit;
  font-family: ui-monospace, Menlo, monospace; font-size: .9rem; min-width: 0;
}
.bst-viewer-count {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .92rem; color: var(--bst-muted);
}

/* ── View-Seite (Zuschauer) ─────────────────────────────────────────────── */
.bst-view-stage {
  max-width: 1280px; margin: 0 auto; padding: 18px;
}
.bst-view-stage .bst-video-wrap {
  aspect-ratio: 16/9; max-height: calc(100vh - 200px);
}
.bst-view-stage video { background: #000; }
.bst-view-status {
  text-align: center; color: var(--bst-muted); margin-top: 14px;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.bst-footer {
  background: var(--bst-surface); border-top: 1px solid var(--bst-border);
  margin-top: 60px; padding: 28px 24px;
}
.bst-footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center;
  justify-content: space-between;
}
.bst-footer-trust { display: flex; gap: 12px; flex-wrap: wrap; }
.bst-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; color: var(--bst-muted);
  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--bst-border);
}
.bst-badge svg { width: 14px; height: 14px; }
.bst-footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.bst-footer-links a { color: var(--bst-muted); font-size: .92rem; }
.bst-footer-copy { color: var(--bst-muted); font-size: .85rem; width: 100%; text-align: center; padding-top: 8px; }

/* ── SEO-Content (Landing-Bottom) ───────────────────────────────────────── */
.bst-seo { padding: 60px 24px; max-width: 760px; margin: 0 auto; color: #334155; }
.bst-seo h2 { margin-top: 2.4em; font-size: 1.5rem; }
.bst-seo ul, .bst-seo ol { padding-left: 1.4em; }
.bst-seo li { margin-bottom: 6px; }
