/* Global styles for anoschat.com */

:root {
  --bg-color: #0f172a;
  --bg-elevated: #111827;
  --accent: #22d3ee;
  --accent-soft: #38bdf8;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --danger: #f97373;
  --border-subtle: rgba(148, 163, 184, 0.35);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 999px;
  --shadow-soft: 0 24px 80px rgba(15, 23, 42, 0.95);
}

html[data-theme="light"] {
  --bg-color: #f1f5f9;
  --bg-elevated: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border-subtle: rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 48px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] body {
  background: var(--bg-color);
  color: var(--text);
}

html[data-theme="light"] .home-root,
html[data-theme="light"] .chat-page {
  background: var(--bg-color);
  color: var(--text);
}

html[data-theme="light"] .home-header,
html[data-theme="light"] .chat-header {
  border-bottom-color: var(--border-subtle);
}

html[data-theme="light"] .footer.shell {
  border-top-color: var(--border-subtle);
}

.anoschat-theme-wrap {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
}
.anoschat-theme-select {
  font-size: 0.8rem;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text);
  max-width: 7rem;
}
html[data-theme="light"] .anoschat-theme-select {
  background: #fff;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #1f2937 0, #020617 55%)
    fixed;
  color: var(--text);
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

.page-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-inner {
  flex: 1;
  padding: 1.5rem 1.5rem 3rem;
}

@media (min-width: 900px) {
  .page-inner {
    padding: 2.5rem 4vw 4rem;
  }
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
}

/* Top navigation */

.nav {
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(
      120deg,
      rgba(34, 211, 238, 0.12),
      rgba(148, 163, 184, 0.02)
    ),
    rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 1rem;
  z-index: 30;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 16px;
  background: radial-gradient(circle at 10% 0, #22d3ee 0, transparent 52%),
    radial-gradient(circle at 95% 80%, #38bdf8 0, transparent 55%), #020617;
  border: 1px solid rgba(148, 163, 184, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.9);
}

.brand-signal {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(34, 211, 238, 0.9);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.7),
    0 0 0 1px rgba(15, 23, 42, 0.9);
}

.brand-text-main {
  font-size: 1rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 600;
}

.brand-text-sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link span.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.5);
}

.nav-link:hover {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.7);
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 55%);
  text-decoration: none;
}

.nav-link.active {
  color: var(--text);
  border-color: rgba(34, 211, 238, 0.85);
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.25), transparent);
}

.nav-mobile-toggle {
  display: none;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.95);
  color: var(--text);
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .nav-inner {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    width: 100%;
    justify-content: flex-start;
    margin-top: 0.25rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-mobile-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }
}

/* Page header and layout */

.page-header {
  margin-bottom: 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 2.25rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .page-header {
    grid-template-columns: minmax(0, 1fr);
  }
}

.page-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.page-title {
  font-size: clamp(1.8rem, 2.2vw + 1.3rem, 2.6rem);
  letter-spacing: 0.03em;
  margin: 0 0 0.9rem;
}

.page-lead {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 40rem;
}

.page-meta-card {
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 0 0, rgba(34, 211, 238, 0.18), transparent 55%),
    rgba(15, 23, 42, 0.9);
}

.page-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.page-meta-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.7rem;
}

.page-meta-value {
  color: var(--text);
}

.page-meta-divider {
  margin: 0.8rem 0;
  border-top: 1px dashed rgba(148, 163, 184, 0.4);
}

.page-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-pill {
  font-size: 0.7rem;
  padding: 0.18rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.55);
  color: var(--muted);
}

.tag-pill.highlight {
  border-color: rgba(34, 211, 238, 0.85);
  color: var(--accent-soft);
}

/* Sections */

.sections {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1.25fr);
  gap: 2.25rem;
}

@media (max-width: 1024px) {
  .sections {
    grid-template-columns: minmax(0, 1fr);
  }
}

main {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.card {
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.8), rgba(2, 6, 23, 0.94));
}

.card.soft {
  background: radial-gradient(circle at 0 0, rgba(34, 211, 238, 0.12), rgba(15, 23, 42, 0.96));
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-kicker {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.card-body {
  font-size: 0.9rem;
  color: var(--muted);
}

.card-body p {
  margin: 0 0 0.8rem;
}

.card-body p:last-child {
  margin-bottom: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.7rem;
  color: var(--muted);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #22d3ee, #38bdf8);
}

.badge-success {
  border-color: rgba(34, 197, 94, 0.9);
  color: #bbf7d0;
}

/* Typography utilities */

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: 0.03em;
}

h2 {
  font-size: 1.25rem;
  margin: 0 0 0.6rem;
}

h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin: 1.3rem 0 0.4rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
  margin: 0.2rem 0 1rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose strong {
  color: var(--text);
}

.prose a {
  text-decoration: underline;
  text-decoration-style: dotted;
}

.muted {
  color: var(--muted);
}

.inline-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.85em;
  padding: 0.08rem 0.25rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

/* Lists / definition blocks */

.definition-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem;
  margin: 0.4rem 0 1rem;
}

.definition-item {
  padding: 0.55rem 0.7rem;
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(31, 41, 55, 0.9);
}

.definition-term {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.definition-description {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Timeline / roadmap */

.timeline {
  border-left: 1px dashed rgba(148, 163, 184, 0.6);
  padding-left: 1.25rem;
  margin: 0.3rem 0 0.3rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.25rem;
}

.timeline-bullet {
  position: absolute;
  left: -1.5rem;
  top: 0.2rem;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 0, #22d3ee, #38bdf8);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 1),
    0 0 0 4px rgba(34, 211, 238, 0.45);
}

.timeline-label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.1rem;
}

.timeline-title {
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}

.timeline-body {
  font-size: 0.9rem;
  color: var(--muted);
}

/* FAQ */

.faq-item {
  border-radius: 1rem;
  border: 1px solid rgba(31, 41, 55, 0.95);
  background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.95), #020617);
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
}

.faq-question {
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.faq-answer {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Tables */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0.3rem 0 1.1rem;
}

.table th,
.table td {
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid rgba(31, 41, 55, 0.95);
}

.table th {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted);
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:nth-child(even) td {
  background: rgba(15, 23, 42, 0.8);
}

/* SVG Diagrams */

.diagram-card {
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.13), #020617);
}

.diagram-caption {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.5rem;
}

.diagram {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(30, 64, 175, 0.8);
  background: radial-gradient(circle at 10% 0, #0f172a, #020617);
}

/* Forms */

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.form-control {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.88rem;
}

.form-label {
  color: var(--muted);
}

.form-input,
.form-textarea,
.form-select {
  border-radius: 0.9rem;
  border: 1px solid rgba(30, 64, 175, 0.95);
  background: rgba(15, 23, 42, 0.96);
  color: var(--text);
  padding: 0.6rem 0.75rem;
  font: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.9);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.7);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-help {
  font-size: 0.78rem;
  color: var(--muted);
}

.button-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn-primary {
  border-radius: var(--radius-sm);
  padding: 0.55rem 1.4rem;
  border: 1px solid rgba(34, 211, 238, 1);
  background: radial-gradient(circle at 0 0, #22d3ee, #38bdf8);
  color: #020617;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.2rem;
  border: 1px dashed rgba(148, 163, 184, 0.9);
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.9);
}

/* Footer */

.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-inner {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(30, 64, 175, 1);
  background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.98), #020617);
  padding: 1.1rem 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
}

.footer-links a:hover {
  color: var(--accent-soft);
}

/* Header-/Footer-Links als „Button“ mit blauem Rahmen (global anpassbar via --accent) */
.home-header-actions a,
.chat-header-actions a,
.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent);
  background: rgba(15, 23, 42, 0.35);
  color: var(--accent-soft);
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.2;
  margin-left: 0;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.home-header-actions a:hover,
.chat-header-actions a:hover,
.footer-links a:hover {
  border-color: var(--accent-soft);
  color: var(--text);
  text-decoration: none;
  background: rgba(34, 211, 238, 0.08);
}

.inner-back {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent);
  background: rgba(15, 23, 42, 0.35);
  font-size: 0.9rem;
  color: var(--accent-soft);
  text-decoration: none;
}

.inner-back:hover {
  border-color: var(--accent-soft);
  color: var(--text);
  text-decoration: none;
}

/* ========== Startseite (Omegle-Style) ========== */

.home-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.home-header {
  padding: 1rem 1.5rem 0;
  flex-shrink: 0;
}

.home-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.home-main {
  flex: 1;
  padding: 1.5rem 1.5rem 2rem;
}

@media (min-width: 900px) {
  .home-main { padding: 2rem 4vw 3rem; }
}

.hero {
  text-align: center;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(1.75rem, 4vw + 1rem, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw + 0.5rem, 1.35rem);
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--accent-soft);
  line-height: 1.35;
}

.home-seo-intro {
  max-width: 42rem;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
  text-align: left;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.65;
}

.home-seo-intro p {
  margin: 0 0 1rem;
}

.home-seo-links {
  font-size: 0.9rem;
}

@media (min-width: 900px) {
  .home-seo-intro {
    padding: 0 4vw;
  }
}

/* Startseite: Einleitung, Karten, FAQ (sprachgetrennte URLs) */
.home-intro {
  max-width: 40rem;
  margin: 0 auto 2.25rem;
  padding: 0 1.5rem;
  text-align: left;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.home-benefit-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  max-width: 56rem;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
}

@media (min-width: 720px) {
  .home-benefit-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-benefit-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem;
  background: rgba(15, 23, 42, 0.55);
  font-size: 0.95rem;
  line-height: 1.55;
}

.home-benefit-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--accent-soft);
}

.home-benefit-card p {
  margin: 0;
  color: var(--muted);
}

.home-why {
  max-width: 42rem;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
  text-align: left;
}

.home-why h2 {
  font-size: clamp(1.2rem, 1.5vw + 1rem, 1.5rem);
  margin: 0 0 0.75rem;
  color: var(--text);
}

.home-why p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.98rem;
}

.home-faq {
  max-width: 40rem;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}

.home-faq h2 {
  font-size: clamp(1.2rem, 1.5vw + 1rem, 1.45rem);
  margin: 0 0 1rem;
}

.home-faq details {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  padding: 0.65rem 1rem;
  background: rgba(15, 23, 42, 0.45);
}

.home-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style-position: outside;
}

.home-faq details[open] summary {
  margin-bottom: 0.5rem;
}

.home-faq .faq-a {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.home-links-row {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

.lang-switch a.lang-switch-btn {
  text-decoration: none;
  display: inline-block;
}
.lang-switch a.lang-switch-btn:hover {
  text-decoration: none;
  color: var(--accent);
}

.hero-lead {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.btn-hero {
  display: inline-block;
  padding: 0.9rem 1.75rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.15s;
  min-width: 160px;
  text-align: center;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #22d3ee, #38bdf8);
  color: #0f172a;
  border: none;
}

.btn-hero-primary:hover {
  filter: brightness(1.1);
}

.btn-hero-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-hero-secondary:hover {
  background: rgba(34, 211, 238, 0.12);
}

.hero-safety {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.hero-note {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-visual {
  margin-bottom: 2rem;
}

.hero-visual-inner {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.6);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-placeholder {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-visual-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.benefit-pill {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  border: 1px solid rgba(34, 211, 238, 0.5);
  color: var(--accent-soft);
}

.footer-tagline {
  margin: 0;
  font-size: 0.8rem;
}

/* ========== Chat-Seiten (/text, /video) ========== */

.chat-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chat-header .brand {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  padding: 1rem;
}

.chat-state {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 280px;
}

.chat-state.active {
  display: flex;
}

.chat-state.hidden {
  display: none !important;
}

.hidden {
  display: none !important;
}

/* Nur für Screenreader sichtbar (Überschriften für SEO ohne Layout-Sprung) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chat-toolbar {
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chat-btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border-subtle);
}

.chat-msg-img {
  max-width: 100%;
  max-height: 240px;
  border-radius: 8px;
  display: block;
}

.report-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.report-modal-inner {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem;
  max-width: 360px;
  width: 90%;
}

.report-modal-inner h3 { margin-top: 0; }
.report-modal-inner label { display: block; margin-bottom: 0.75rem; font-size: 0.9rem; }
.report-modal-inner select,
.report-modal-inner input[type="text"] {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-color);
  color: var(--text);
}

.report-modal-actions { margin-top: 1rem; }

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.chat-status-msg {
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.chat-messages-wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem 0.5rem;
}

.chat-messages-wrap .chat-archive-label {
  text-align: center;
  font-size: 0.85rem;
  margin: 0 0 0.35rem;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 200px;
}

.chat-msg {
  padding: 0.5rem 0.85rem;
  border-radius: 12px;
  max-width: 85%;
  word-break: break-word;
}

.chat-msg.own {
  align-self: flex-end;
  background: rgba(34, 211, 238, 0.2);
  border: 1px solid var(--accent);
}

.chat-msg.stranger {
  align-self: flex-start;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.chat-input-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.chat-input-row input {
  flex: 1;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1rem;
}

.chat-input-row input:focus {
  outline: none;
  border-color: var(--accent);
}

.chat-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: transform 0.12s ease, filter 0.12s ease, opacity 0.12s ease;
}
.chat-btn:hover { filter: brightness(1.05); }
.chat-btn:active { transform: translateY(1px); }
.chat-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.chat-btn-primary {
  background: var(--accent);
  color: #0f172a;
}

.chat-btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.chat-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  align-items: center;
}

/* Video-Chat-Bereich */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  flex: 1;
  min-height: 300px;
}

@media (max-width: 600px) {
  .video-grid { grid-template-columns: 1fr; }
}

.video-cell {
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: #0b1220;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.video-cell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.video-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  align-items: center;
}

.chat-inline-error {
  margin-top: 0.5rem;
  color: var(--danger);
  font-size: 0.85rem;
  min-height: 1.1rem;
}

.chat-inline-error.hidden,
.chat-inline-info.hidden {
  display: none;
}

.chat-inline-info {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.chat-connection-banner {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--accent-soft);
  min-height: 0;
}

.chat-auth-hint {
  margin: 0.25rem 0 0.75rem;
  font-size: 0.8rem;
  line-height: 1.35;
}

.chat-auth-hint a {
  color: var(--accent);
}

.chat-contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.chat-contact-row .contact-status {
  flex: 1 1 12rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.35;
}

.chat-contact-row .contact-status a {
  color: var(--accent);
}

.upload-preview-wrap {
  margin: 0.5rem 0;
}

.upload-preview-wrap.hidden {
  display: none;
}

.upload-preview-img {
  max-width: 160px;
  max-height: 160px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  object-fit: cover;
  vertical-align: middle;
}

/* ========== Innenseiten (Privacy, Terms, Safety, FAQ, About, Contact) ========== */

.inner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.inner-header .brand {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.content-inner {
  padding: 0 1.5rem 2rem;
  max-width: 720px;
}

@media (min-width: 900px) {
  .content-inner { padding: 0 4vw 3rem; }
}

.content-title {
  font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
  margin: 0 0 0.5rem;
}

.content-lead {
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 1rem;
}

.content-inner .card {
  margin-bottom: 1rem;
}

.content-inner .card h2 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

/* Zweisprachige Inhalte: Standard im HTML ist Englisch; Deutsch per html[lang="de"] */
html[lang='en'] .lang-de {
  display: none !important;
}
html[lang='de'] .lang-en {
  display: none !important;
}
.lang-block.lang-en,
.lang-block.lang-de {
  display: block;
}

/* Sprachumschalter (localStorage + Browser-Erkennung in locale.js) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.35rem;
  vertical-align: middle;
}
.lang-switch-btn {
  font: inherit;
  font-size: 0.75rem;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.6);
  color: var(--muted);
  cursor: pointer;
  line-height: 1.2;
}
.lang-switch-btn.is-active,
.lang-switch-btn[aria-pressed='true'] {
  color: var(--accent);
  border-color: var(--accent-soft);
}
.chat-header-actions .lang-switch {
  margin-left: 0.5rem;
}
.home-header-actions {
  flex-wrap: wrap;
}

/* Account-Modal (Chat, ohne Redirect) */
.account-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}
.account-modal.hidden {
  display: none !important;
}
.account-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}
.account-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  max-height: min(90vh, 640px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.account-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.account-modal-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.account-tab {
  flex: 1;
  padding: 0.45rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-color);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}
.account-tab.is-active {
  border-color: var(--accent);
  color: var(--accent);
}
.account-pane label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}
.account-pane input {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-color);
  color: var(--text);
}
.account-modal-error {
  color: #f97373;
  font-size: 0.85rem;
  margin: 0.5rem 0;
}
body.account-modal-open {
  overflow: hidden;
}

@media (max-width: 390px) {
  .chat-header.shell {
    flex-wrap: wrap;
    gap: 0.35rem;
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }
  .chat-header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
    font-size: 0.85rem;
  }
  .chat-input-row {
    flex-wrap: wrap;
  }
  .chat-input-row input[type="text"] {
    min-width: 0;
    flex: 1 1 100%;
  }
  .chat-btn-group {
    flex-wrap: wrap;
  }
  .home-header-actions {
    gap: 0.35rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 320px) {
  .brand-text-main {
    font-size: 0.95rem;
  }
}

.prose .form-field {
  margin-bottom: 1rem;
}
.prose .form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.prose .form-field input,
.prose .form-field select,
.prose .form-field textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-color);
  color: var(--text);
  font: inherit;
  box-sizing: border-box;
}

