/* ============================================================ Grundlagen == */

:root {
  --bg: #0d0907;
  --bg-2: #140d0a;
  --panel: #191110;
  --panel-2: #211714;
  --line: rgba(234, 183, 125, 0.14);
  --line-strong: rgba(234, 183, 125, 0.32);
  --text: #f6eee5;
  --muted: #b3a194;
  --muted-2: #8d7c70;
  --honey: #eab77d;
  --honey-soft: #f3cfa6;
  --clay: #c97a56;
  --ink: #1c110b;
  --radius: 20px;
  --radius-lg: 28px;
  --serif: "Fraunces", ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 560px at 88% -6%, rgba(201, 122, 86, 0.18), transparent 62%),
    radial-gradient(760px 520px at 4% 8%, rgba(234, 183, 125, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.locked {
  overflow: hidden;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 14px;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.7rem);
}

h3 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

p {
  margin: 0 0 14px;
}

a {
  color: inherit;
  text-decoration: none;
}

em {
  font-style: italic;
  color: var(--honey);
}

::selection {
  background: rgba(234, 183, 125, 0.3);
}

/* ============================================================== Buttons == */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 26px;
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid var(--honey);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(140deg, var(--honey-soft), var(--honey) 46%, #d9995f);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 14px 32px -18px rgba(234, 183, 125, 0.9);
}

.btn-primary:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 18px 38px -18px rgba(234, 183, 125, 1);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--honey);
  background: rgba(234, 183, 125, 0.09);
}

.btn-sm {
  padding: 9px 17px;
  font-size: 0.84rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: progress;
  transform: none;
}

/* ================================================================ Marken == */

.mark {
  width: 26px;
  height: 26px;
  flex: none;
  background: url('/assets/logo.svg') center / contain no-repeat;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.04rem;
  letter-spacing: -0.01em;
  display: inline-flex;
  gap: 0.28em;
  align-items: baseline;
}

.brand-name em {
  font-style: italic;
}

.badge {
  display: inline-grid;
  place-items: center;
  padding: 3px 9px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  background: rgba(234, 183, 125, 0.08);
  color: var(--honey);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* ================================================================ Gate === */

.gate {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(760px 500px at 50% -4%, rgba(234, 183, 125, 0.2), transparent 66%),
    rgba(8, 5, 4, 0.95);
  backdrop-filter: blur(10px);
}

.gate[hidden] {
  display: none;
}

.gate-card {
  width: min(640px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(520px 260px at 100% -10%, rgba(201, 122, 86, 0.16), transparent 70%),
    linear-gradient(180deg, #1b1310, #120c09);
  box-shadow: 0 50px 100px -50px #000, inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: rise 0.45s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gate-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.gate-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  color: var(--muted);
  font-size: 1rem;
}

.gate-kicker {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--honey);
  margin-bottom: 12px;
}

.gate-card h1 {
  font-size: clamp(1.6rem, 4.2vw, 2.3rem);
  margin-bottom: 22px;
}

.gate-card h1 span {
  display: block;
  font-size: 0.6em;
  color: var(--muted-2);
  font-style: italic;
  margin-top: 8px;
}

.gate-text {
  color: var(--muted);
  font-size: 0.97rem;
  margin-bottom: 26px;
  max-width: 46ch;
}

.gate-fine {
  margin: 22px 0 0;
  font-size: 0.77rem;
  color: rgba(141, 124, 112, 0.9);
}

.gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lang-grid {
  display: grid;
  gap: 10px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
}

.lang-btn:hover {
  background: rgba(234, 183, 125, 0.08);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.lang-code {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(234, 183, 125, 0.1);
  color: var(--honey);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.lang-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.lang-copy strong {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 500;
}

.lang-copy small {
  color: var(--muted-2);
  font-size: 0.8rem;
}

.lang-arrow {
  margin-left: auto;
  color: var(--honey);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lang-btn:hover .lang-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================== Header === */

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  padding: 14px 20px 0;
}

.header-bar {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 9px 9px 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(20, 13, 10, 0.78);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 20px 50px -34px #000;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.nav-pill {
  display: flex;
  gap: 2px;
  margin-left: 6px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.nav-pill a {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav-pill a:hover {
  color: var(--text);
  background: rgba(234, 183, 125, 0.1);
}

.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted-2);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch button.is-active {
  background: rgba(234, 183, 125, 0.16);
  color: var(--honey);
}

.header-auth,
.header-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* „Rechtliches" oben rechts: Impressum und Datenschutz ohne Anmeldung */
.legal-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.legal-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legal-menu-btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.legal-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  min-width: 184px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.85);
}

.legal-pop a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  font-size: 0.92rem;
  text-decoration: none;
}

.legal-pop a:hover,
.legal-pop a:focus-visible {
  background: rgba(234, 183, 125, 0.1);
  outline: none;
}

/* Auf schmalen Geräten bleibt nur das Symbol, der Text fällt weg. */
@media (max-width: 620px) {
  .legal-menu-btn span {
    display: none;
  }

  .legal-menu-btn {
    padding: 8px 9px;
  }
}

/* Rechtliches unten in der 18+-Anzeige */
.gate-legal {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.86rem;
  color: var(--muted-2);
}

.gate-legal a {
  color: var(--muted);
  text-decoration: none;
}

.gate-legal a:hover,
.gate-legal a:focus-visible {
  color: var(--honey);
}

.gate-legal span {
  margin: 0 8px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--honey-soft), var(--clay));
  color: var(--ink);
  font-weight: 600;
  font-size: 0.84rem;
  text-transform: uppercase;
}

.avatar-lg {
  width: 62px;
  height: 62px;
  font-size: 1.35rem;
  border-radius: 20px;
}

.avatar[data-avatar="honey"] {
  background: linear-gradient(140deg, #f7d8b4, #d9995f);
}

.avatar[data-avatar="clay"] {
  background: linear-gradient(140deg, #f0b49a, #c2694c);
}

.avatar[data-avatar="plum"] {
  background: linear-gradient(140deg, #e6b9db, #a2609a);
}

.avatar[data-avatar="sage"] {
  background: linear-gradient(140deg, #d3e3c0, #7e9a68);
}

.avatar[data-avatar="ocean"] {
  background: linear-gradient(140deg, #bcdbea, #5d89a6);
}

.avatar[data-avatar="rose"] {
  background: linear-gradient(140deg, #f8c8cb, #d16e7a);
}

.header-username {
  font-size: 0.86rem;
  font-weight: 500;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ================================================================ Hero === */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 68px) 24px clamp(30px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 10px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(234, 183, 125, 0.06);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--honey);
}

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--honey);
  box-shadow: 0 0 0 4px rgba(234, 183, 125, 0.16);
}

.hero-title {
  font-size: clamp(2.15rem, 5.2vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 20ch;
}

.hero-title em {
  display: inline;
}

.hero-text {
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 50ch;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fact strong {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--honey);
}

.fact span {
  font-size: 0.76rem;
  color: var(--muted-2);
  letter-spacing: 0.02em;
  line-height: 1.35;
}

/* Hero-Visual */

.hero-visual {
  position: relative;
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 430px;
}

.visual-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 260px 260px 26px 26px;
  background: #150e0a;
  box-shadow:
    0 50px 90px -50px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.visual-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 80px 20px rgba(13, 9, 7, 0.55);
  pointer-events: none;
}

.visual-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 760 / 900;
  object-fit: cover;
  object-position: 50% 50%;
}

/* Manga-Raster über dem Artwork */
.visual-frame.is-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background-image: radial-gradient(rgba(43, 26, 23, 0.65) 1px, transparent 1.2px);
  background-size: 6px 6px;
  opacity: 0.16;
  mix-blend-mode: multiply;
}

.visual-frame.is-art::after {
  box-shadow:
    inset 0 0 60px 8px rgba(43, 26, 23, 0.16),
    inset 0 0 0 1px rgba(43, 26, 23, 0.16);
}

.is-art ~ .visual-credit {
  color: rgba(43, 26, 23, 0.72);
  text-shadow: none;
}

.visual-credit {
  position: absolute;
  left: 20px;
  bottom: 14px;
  z-index: 2;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: rgba(246, 238, 229, 0.62);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.visual-chip {
  position: absolute;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(22, 15, 11, 0.82);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  box-shadow: 0 16px 30px -22px #000;
}

.chip-top {
  top: 26px;
  left: 18px;
  color: var(--honey);
  font-weight: 600;
}

.chip-bottom {
  top: 26px;
  right: 18px;
  color: var(--muted);
}

/* ============================================================= Sections == */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(46px, 6vw, 78px) 24px;
}

.section-head {
  max-width: 62ch;
  margin-bottom: 32px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--honey);
  margin-bottom: 16px;
}

.eyebrow .index {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(234, 183, 125, 0.28), transparent);
}

.section-text {
  color: var(--muted);
  margin: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  padding: 26px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: border-color 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

.card:hover {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018));
  transform: translateY(-3px);
}

.card-plain {
  background: rgba(255, 255, 255, 0.02);
}

.card-mark {
  display: block;
  width: 30px;
  height: 3px;
  margin-bottom: 18px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--honey), transparent);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

/* Community-Band */

.band {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(700px 320px at 12% 0%, rgba(201, 122, 86, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0));
}

.band .section {
  padding-top: clamp(46px, 6vw, 74px);
  padding-bottom: clamp(46px, 6vw, 74px);
}

/* Split */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.split-seal {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.seal-line {
  width: 42px;
  height: 1px;
  background: var(--line-strong);
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.list li {
  position: relative;
  padding: 22px 0 22px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.list li:first-child {
  border-top: 0;
  padding-top: 4px;
}

.list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 30px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--honey);
}

.list li:first-child::before {
  top: 12px;
}

.list h3 {
  font-size: 1.04rem;
  margin-bottom: 5px;
}

.list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

/* Kodex */

.codex {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 52px);
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(560px 300px at 96% -10%, rgba(234, 183, 125, 0.13), transparent 70%),
    linear-gradient(180deg, #191110, #120c09);
}

.codex-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: none;
}

.codex-list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.94rem;
}

.codex-list li:first-child {
  border-top: 0;
  padding-top: 2px;
}

.codex-num {
  font-family: var(--serif);
  font-size: 0.82rem;
  color: var(--honey);
  opacity: 0.75;
  flex: none;
}

/* ================================================================ Auth === */

.auth-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 16px;
  align-items: stretch;
}

.auth-card {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(420px 220px at 0% 0%, rgba(234, 183, 125, 0.09), transparent 70%),
    linear-gradient(180deg, #1a1210, #130d0a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.tab {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted-2);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.tab.is-active {
  background: rgba(234, 183, 125, 0.16);
  color: var(--honey);
}

.form {
  display: grid;
  gap: 15px;
}

.field {
  display: grid;
  gap: 7px;
}

.field > span {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--muted);
}

input[type="text"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(0, 0, 0, 0.38);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

textarea {
  resize: vertical;
  min-height: 104px;
  line-height: 1.6;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 20px, calc(100% - 15px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

input::placeholder {
  color: rgba(141, 124, 112, 0.7);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--honey);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(234, 183, 125, 0.14);
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.83rem;
  color: var(--muted);
  cursor: pointer;
}

.check input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex: none;
  accent-color: var(--honey);
}

.form-error {
  margin: 0;
  padding: 10px 13px;
  border-radius: 11px;
  border: 1px solid rgba(201, 122, 86, 0.45);
  background: rgba(201, 122, 86, 0.13);
  color: #f4c6b1;
  font-size: 0.84rem;
}

.form-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted-2);
  text-align: center;
}

.form-hint button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--honey);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-side {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(200deg, rgba(201, 122, 86, 0.16), rgba(255, 255, 255, 0.02) 55%);
}

.side-arcs {
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(234, 183, 125, 0.2);
  pointer-events: none;
}

.side-arcs::before,
.side-arcs::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(234, 183, 125, 0.16);
}

.side-arcs::before {
  inset: 42px;
}

.side-arcs::after {
  inset: 84px;
}

.auth-side h3 {
  font-size: 1.16rem;
}

.auth-side ul {
  position: relative;
  margin: 14px 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}

.auth-side li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-side li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--honey);
  opacity: 0.85;
}

.auth-note {
  position: relative;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.77rem;
  color: var(--muted-2);
}

/* App-Download in der Anmelde-Spalte */
.auth-app {
  margin: 18px 0 12px;
}

/* ============================================================== Member === */

.member {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(680px 340px at 100% -10%, rgba(234, 183, 125, 0.16), transparent 68%),
    linear-gradient(180deg, #1a1210, #120c09);
  animation: rise 0.45s ease both;
}

.member-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 26px;
}

.member-top h3 {
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  margin-bottom: 6px;
}

.member-top p:last-child {
  margin: 0;
}

.member-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: 16px;
  align-items: start;
}

.member-profile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.member-name {
  font-family: var(--serif);
  font-size: 1.24rem;
  font-weight: 500;
  margin-top: 12px;
  word-break: break-word;
}

.meta {
  margin: 16px 0 0;
  display: grid;
  gap: 0;
}

.meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.85rem;
}

.meta dt {
  color: var(--muted-2);
}

.meta dd {
  margin: 0;
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

.member-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.member-bio {
  margin: 8px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.member-bio.is-empty {
  color: var(--muted-2);
  font-style: italic;
}

.member-settings {
  margin-top: 16px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.member-settings h4 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  align-items: start;
}

.settings-grid .field-bio {
  grid-column: 1 / -1;
}

.settings-location-toggle {
  margin-top: 14px;
}

.settings-sound-toggle {
  margin-top: 10px;
}

.settings-push-toggle {
  margin-top: 10px;
}

.settings-push-status {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--muted-2);
}

.settings-push-status:empty {
  display: none;
}

.field-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Körper & Angaben */

.profile-body {
  margin: 26px 0 0;
  padding: 22px 0 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-body legend {
  padding: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.profile-body .section-text {
  margin: 6px 0 0;
}

.bmi-value {
  min-height: 24px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--honey);
}

.chip-group {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.chip:hover {
  border-color: rgba(255, 255, 255, 0.26);
  color: var(--text);
}

.chip.is-on {
  border-color: rgba(232, 178, 106, 0.55);
  background: rgba(232, 178, 106, 0.14);
  color: var(--honey);
}

.chip:focus-within {
  outline: 2px solid rgba(232, 178, 106, 0.45);
  outline-offset: 2px;
}

.member-modal-tags {
  display: grid;
  gap: 12px;
  width: 100%;
  margin-top: 14px;
}

.tag-group {
  display: grid;
  gap: 6px;
  text-align: left;
}

.tag-label {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.tag-values {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.75rem;
  color: var(--text);
}

@media (max-width: 760px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-grid .field-bio {
    grid-column: auto;
  }
}

.settings-avatar {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.field-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.avatar-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.avatar-option .avatar {
  width: 30px;
  height: 30px;
  font-size: 0.76rem;
}

.avatar-option {
  padding: 2px;
  border: 2px solid transparent;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.avatar-option:hover {
  transform: translateY(-2px);
}

.avatar-option.is-active {
  border-color: var(--honey);
}

.avatar-option:focus-visible {
  outline: 2px solid var(--honey);
  outline-offset: 2px;
}

.field-hint {
  font-size: 0.73rem;
  color: var(--muted-2);
  line-height: 1.45;
}

.settings-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.settings-status {
  font-size: 0.82rem;
  color: var(--honey);
}

.settings-status.is-error {
  color: #f4c6b1;
}

/* Feed */

.feed {
  display: grid;
  gap: 18px;
}

.feed-composer {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.028);
}

.feed-pick-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
}

.feed-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 200px;
  padding: 16px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font: inherit;
  font-size: 0.87rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.feed-pick:hover {
  border-color: var(--honey);
  color: var(--text);
}

.feed-pick-icon {
  color: var(--honey);
  font-size: 1.05rem;
}

.feed-preview {
  position: relative;
  margin: 0;
  width: 120px;
}

.feed-preview img {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
}

.feed-preview-remove {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
}

.feed-preview-remove:hover {
  border-color: var(--honey);
  color: var(--text);
}

.feed-login-hint {
  margin: 0;
  padding: 16px 18px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted-2);
  font-size: 0.86rem;
}

.feed-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.feed-post {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.feed-post-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.feed-post-head:hover .feed-who strong {
  color: var(--honey);
}

.feed-who {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.feed-who strong {
  font-size: 0.92rem;
  font-weight: 600;
}

.feed-time {
  font-size: 0.74rem;
  color: var(--muted-2);
}

.feed-post-body {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.feed-post-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: var(--panel);
}

.feed-comments {
  display: grid;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.feed-comment {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.feed-comment-author {
  margin-right: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.feed-comment-author:hover {
  color: var(--honey);
  text-decoration: underline;
}

.feed-comment-form {
  display: flex;
  gap: 8px;
}

.feed-comment-form input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
}

.feed-comment-form input:focus {
  outline: none;
  border-color: var(--line-strong);
}

.feed-empty {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.88rem;
}

/* App-Ansicht (angemeldet): Tabs statt Marketing-Seite */

.app-tabs {
  display: none;
  gap: 0;
  margin-left: 4px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.app-tab {
  padding: 7px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.app-tab:hover {
  color: var(--text);
  background: rgba(234, 183, 125, 0.1);
}

.app-tab.is-active {
  color: var(--text);
  background: rgba(234, 183, 125, 0.18);
  font-weight: 600;
}

body.is-app .app-tabs {
  display: flex;
}

body.is-app .nav-pill,
body.is-app .site-footer,
body.is-app #top {
  display: none;
}

/* Eigener Bereich für Mitglieder */
#app {
  max-width: var(--max);
  margin: 20px auto 0;
  padding: clamp(20px, 3vw, 34px);
}

#app .section {
  max-width: none;
  padding: 0;
}

#app .members {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

#app #feed .eyebrow {
  display: none;
}

@media (max-width: 760px) {
  body.is-app .header-bar {
    flex-wrap: wrap;
  }

  body.is-app .app-tabs {
    order: 3;
    width: 100%;
    margin: 8px 0 0;
    overflow-x: auto;
  }
}

/* Profilfoto */

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.avatar-photo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Mitglieder-Profil */

.modal-open {
  overflow: hidden;
}

.member-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
}

.member-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 5, 4, 0.78);
  backdrop-filter: blur(6px);
}

.member-modal-card {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(380px, 100%);
  padding: 32px 26px 26px;
  text-align: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.member-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.member-modal-close:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.avatar-xl {
  width: 104px;
  height: 104px;
  border-radius: 30px;
  font-size: 2rem;
}

.member-modal-name {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.member-modal-role {
  color: var(--honey);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.member-modal-meta {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.78rem;
}

.member-modal-bio {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.member-modal-facts {
  width: 100%;
  margin: 12px 0 0;
  display: grid;
  gap: 0;
  text-align: left;
}

.member-modal-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.79rem;
}

.member-modal-facts dt {
  color: var(--muted-2);
}

.member-modal-facts dd {
  margin: 0;
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

/* Selfie-Aufnahme */

.capture-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
}

.capture-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(420px, 100%);
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.capture-card video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: #000;
  transform: scaleX(-1);
}

.capture-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Feed-Sichtbarkeit */

.feed-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.feed-setting-copy {
  min-width: 0;
}

.feed-setting-copy strong {
  font-size: 0.94rem;
  font-weight: 600;
}

.feed-setting-text {
  margin: 4px 0 0;
  max-width: 48ch;
  color: var(--muted-2);
  font-size: 0.81rem;
}

.switch {
  position: relative;
  display: inline-flex;
  flex: none;
  cursor: pointer;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch-track {
  display: block;
  width: 54px;
  height: 32px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.switch-knob {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--muted-2);
  transition: transform 0.22s ease, background 0.2s ease;
}

.switch input:checked + .switch-track {
  border-color: var(--honey);
  background: rgba(234, 183, 125, 0.2);
}

.switch input:checked + .switch-track .switch-knob {
  transform: translateX(22px);
  background: var(--honey);
}

.switch input:focus-visible + .switch-track {
  outline: 2px solid var(--honey);
  outline-offset: 2px;
}

.switch input:disabled + .switch-track {
  opacity: 0.55;
}

/* Mitgliederliste */

.members {
  margin-top: 22px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.members-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.members-head > div {
  min-width: 0;
}

.members-head .chip {
  flex: none;
  white-space: nowrap;
  align-self: flex-start;
}

.members-head h4 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.member-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
  gap: 12px;
}

.member-card {
  display: flex;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.member-card:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.member-card .avatar {
  width: 44px;
  height: 44px;
  font-size: 1rem;
}

.member-card-body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.member-card-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.member-card-name {
  font-size: 0.94rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-badge {
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--honey);
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.member-badge-you {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--muted);
}

.member-card-meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted-2);
}

.member-card-bio {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.member-empty {
  margin: 0;
  font-size: 0.87rem;
  color: var(--muted-2);
}

/* ============================================================== Footer === */

.site-footer {
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.26);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 38px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 26px;
  flex-wrap: wrap;
}

.footer-brand {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 10px;
  justify-content: start;
}

.footer-brand .footer-text {
  grid-column: 1 / -1;
}

.footer-text {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--muted-2);
  max-width: 48ch;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* =============================================================== Toast === */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 500;
  max-width: min(440px, calc(100vw - 32px));
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #241813;
  color: var(--text);
  font-size: 0.88rem;
  box-shadow: 0 24px 60px -26px #000;
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============================================================== Mobil ==== */

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 380px;
    margin-top: 8px;
  }

  .nav-pill {
    display: none;
  }

  .split,
  .codex,
  .auth-wrap,
  .member-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .split-seal {
    margin-bottom: 22px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .site-header {
    padding: 10px 12px 0;
  }

  .header-bar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 10px 8px 14px;
    border-radius: 18px;
  }

  .header-username {
    display: none;
  }

  .header-auth .btn-ghost {
    display: none;
  }

  .hero {
    padding-top: 26px;
  }

  .hero-facts {
    gap: 12px;
  }

  .fact strong {
    font-size: 1.4rem;
  }

  .gate-actions .btn {
    width: 100%;
  }

  .visual-chip.chip-bottom {
    right: 10px;
    top: 20px;
  }

  .member-top {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}


/* ============================================================ Steuerung == */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.lang-pick {
  position: relative;
  display: inline-flex;
}

.lang-pick select {
  appearance: none;
  padding: 7px 26px 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}

.lang-pick::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  pointer-events: none;
  opacity: 0.6;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.theme-toggle:hover {
  border-color: var(--text);
}

.theme-choice {
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

/* Design-Wahl oben im Profil: eine schmale Zeile, immer sichtbar. */
.profile-design {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 14px 0 18px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.profile-design .field-label {
  margin: 0;
}

.profile-design .theme-choice {
  flex: 0 0 auto;
}

.profile-design .theme-choice-btn {
  flex: 0 0 auto;
  padding: 6px 14px;
}

/* ============================================================ App-Menü == */
/* Öffnet sich hinter dem Profilbild: eine Karte mit allen Wegen. */

.header-avatar-btn {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 999px;
}

.header-avatar-btn:focus-visible {
  outline: 2px solid var(--honey);
  outline-offset: 3px;
}

.app-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.app-menu[hidden] {
  display: none;
}

.app-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 5, 0.6);
}

.app-menu-panel {
  position: absolute;
  top: 72px;
  left: 50%;
  width: min(420px, calc(100% - 28px));
  max-height: calc(100% - 96px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, 0.85);
  transform: translateX(-50%);
  animation: menu-in 0.16s ease-out;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.app-menu-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}

.app-menu-head strong {
  font-size: 0.98rem;
  color: var(--text);
}

.app-menu-list {
  display: flex;
  flex-direction: column;
}

.app-menu-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.app-menu-row:last-child {
  border-bottom: 0;
}

.app-menu-row:hover,
.app-menu-row:focus-visible {
  background: rgba(234, 183, 125, 0.09);
  outline: none;
}

.app-menu-row svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--honey);
}

.app-menu-row--logout {
  color: var(--clay);
}

.app-menu-row--logout svg {
  color: var(--clay);
}

body.menu-open {
  overflow: hidden;
}

.theme-choice-btn {
  flex: 1;
  padding: 7px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}

.theme-choice-btn.is-active {
  background: var(--panel-2);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* ========================================================= Helles Design == */

html[data-theme="light"] body.is-app {
  --bg: #ffffff;
  --bg-2: #f7f7f5;
  --panel: #ffffff;
  --panel-2: #f4f3f0;
  --line: #e8e6e1;
  --line-strong: #d9d6cf;
  --text: #14161a;
  --muted: #5c6169;
  --muted-2: #8a8f96;
  --honey: #8a5a3b;
  --honey-soft: #a9795a;
  --clay: #8a5a3b;
  --ink: #ffffff;
  color-scheme: light;
  background: #ffffff;
}

html[data-theme="light"] body.is-app::after {
  display: none;
}

/* Flächen */
html[data-theme="light"] body.is-app .member {
  background: #ffffff;
}
html[data-theme="light"] body.is-app .header-bar {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: none;
}
html[data-theme="light"] body.is-app .gate-card {
  border-color: var(--line);
  background: #ffffff;
  box-shadow: 0 30px 70px -40px rgba(20, 22, 26, 0.4);
}
html[data-theme="light"] body.is-app .gate {
  background: rgba(255, 255, 255, 0.94);
}
html[data-theme="light"] body.is-app .card,
html[data-theme="light"] body.is-app .member-profile,
html[data-theme="light"] body.is-app .member-settings,
html[data-theme="light"] body.is-app .member-card,
html[data-theme="light"] body.is-app .feed-post,
html[data-theme="light"] body.is-app .feed-composer,
html[data-theme="light"] body.is-app .feed-setting,
html[data-theme="light"] body.is-app .feed-pick,
html[data-theme="light"] body.is-app .auth-side,
html[data-theme="light"] body.is-app .codex,
html[data-theme="light"] body.is-app .auth-card {
  border-color: var(--line);
  background: #ffffff;
}
html[data-theme="light"] body.is-app .card:hover,
html[data-theme="light"] body.is-app .member-card:hover {
  background: #ffffff;
  border-color: var(--line-strong);
}
html[data-theme="light"] body.is-app .card-plain,
html[data-theme="light"] body.is-app .band,
html[data-theme="light"] body.is-app .feed-pick,
html[data-theme="light"] body.is-app .visual-frame {
  background: #f7f7f5;
}
html[data-theme="light"] body.is-app .band {
  border-color: var(--line);
}
html[data-theme="light"] body.is-app .nav-pill,
html[data-theme="light"] body.is-app .app-tabs,
html[data-theme="light"] body.is-app .lang-switch {
  border-color: var(--line);
  background: #f2f1ee;
}
html[data-theme="light"] body.is-app .tabs {
  border-color: var(--line);
  background: #f2f1ee;
}
html[data-theme="light"] body.is-app .tab.is-active {
  background: #ffffff;
  color: var(--text);
}
html[data-theme="light"] body.is-app .lang-switch button {
  color: var(--muted);
}
html[data-theme="light"] body.is-app .lang-switch button.is-active {
  background: #ffffff;
  color: var(--text);
}
html[data-theme="light"] body.is-app .theme-choice {
  border-color: var(--line);
  background: #f2f1ee;
}
html[data-theme="light"] body.is-app .theme-choice-btn.is-active {
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(20, 22, 26, 0.12);
}
html[data-theme="light"] body.is-app .btn-ghost {
  border-color: var(--line-strong);
  background: #ffffff;
}
html[data-theme="light"] body.is-app .btn-ghost:hover {
  border-color: var(--text);
  background: #ffffff;
}
html[data-theme="light"] body.is-app .btn-primary {
  border-color: #14161a;
  background: #14161a;
  color: #ffffff;
  box-shadow: none;
}
html[data-theme="light"] body.is-app .chip,
html[data-theme="light"] body.is-app .tag,
html[data-theme="light"] body.is-app .member-badge {
  border-color: var(--line-strong);
}
html[data-theme="light"] body.is-app .switch-track {
  background: #e6e3dd;
}

/* Linien */
html[data-theme="light"] body.is-app .hero-facts,
html[data-theme="light"] body.is-app .list li,
html[data-theme="light"] body.is-app .codex-list li,
html[data-theme="light"] body.is-app .auth-note,
html[data-theme="light"] body.is-app .meta div,
html[data-theme="light"] body.is-app .profile-body,
html[data-theme="light"] body.is-app .feed-comments,
html[data-theme="light"] body.is-app .feed-comment-form input,
html[data-theme="light"] body.is-app .member-modal-facts > div,
html[data-theme="light"] body.is-app .members,
html[data-theme="light"] body.is-app .site-footer,
html[data-theme="light"] body.is-app .visual-chip,
html[data-theme="light"] body.is-app input[type="text"],
html[data-theme="light"] body.is-app input[type="password"],
html[data-theme="light"] body.is-app input[type="number"],
html[data-theme="light"] body.is-app select,
html[data-theme="light"] body.is-app textarea {
  border-color: var(--line);
}
html[data-theme="light"] body.is-app input[type="text"],
html[data-theme="light"] body.is-app input[type="password"],
html[data-theme="light"] body.is-app input[type="number"],
html[data-theme="light"] body.is-app select,
html[data-theme="light"] body.is-app textarea {
  background: #ffffff;
  color: var(--text);
}
html[data-theme="light"] body.is-app select:focus {
  background: #ffffff;
}
html[data-theme="light"] body.is-app .member-modal-card,
html[data-theme="light"] body.is-app .capture-card {
  background: #ffffff;
  border-color: var(--line);
  box-shadow: 0 30px 80px -40px rgba(20, 22, 26, 0.4);
}
html[data-theme="light"] body.is-app .member-modal-backdrop {
  background: rgba(20, 22, 26, 0.35);
}
html[data-theme="light"] body.is-app .feed-preview {
  border-color: var(--line);
}

/* ================================================= Modernes App-Design ===
   Mitgliederbereich: neutrale Flächen statt Braun, eine Schrift,
   flache Karten mit Hairline. Gilt für dunkel und hell über Tokens.
   ======================================================================== */

body.is-app {
  --bg: #0f1113;
  --bg-2: #141719;
  --panel: #16191c;
  --panel-2: #1c2024;
  --line: #262b30;
  --line-strong: #363c43;
  --text: #ecedef;
  --muted: #a2a8af;
  --muted-2: #7e858c;
  --honey: #d8a97c;
  --honey-soft: #e6c3a1;
  --clay: #c07a52;
  --ink: #0f1113;
  --radius: 14px;
  --radius-lg: 16px;
  --card: var(--panel);
  --header-bg: rgba(15, 17, 19, 0.88);
  --backdrop: rgba(8, 9, 10, 0.72);
  --primary-bg: #ecedef;
  --primary-fg: #14161a;
  --primary-bg-hover: #ffffff;
  background: var(--bg);
  background-image: none;
}

html[data-theme="light"] body.is-app {
  --card: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.92);
  --backdrop: rgba(20, 22, 26, 0.35);
  --primary-bg: #14161a;
  --primary-fg: #ffffff;
  --primary-bg-hover: #000000;
}

body.is-app::after {
  display: none;
}

/* Schrift */
body.is-app h1,
body.is-app h2,
body.is-app h3,
body.is-app h4,
body.is-app .member-name,
body.is-app .member-card-name,
body.is-app .member-modal-name,
body.is-app legend {
  font-family: var(--sans);
  font-weight: 600;
  font-variation-settings: normal;
  letter-spacing: -0.025em;
  color: var(--text);
}

body.is-app .member-name,
body.is-app .member-card-name,
body.is-app .member-modal-name {
  letter-spacing: -0.02em;
}

/* Kopf */
body.is-app .site-header {
  padding: 0;
}

body.is-app .header-bar {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--header-bg);
  box-shadow: none;
}

/* Flächen */
body.is-app .member,
body.is-app .gate-card,
body.is-app .codex,
body.is-app .auth-card,
body.is-app .card,
body.is-app .member-profile,
body.is-app .member-settings,
body.is-app .member-card,
body.is-app .feed-post,
body.is-app .feed-composer,
body.is-app .feed-setting,
body.is-app .auth-side,
body.is-app .member-modal-card,
body.is-app .capture-card {
  background: var(--card);
  background-image: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}

body.is-app .member {
  border: 0;
  border-radius: 0;
  background: var(--bg);
}

body.is-app .card-plain,
body.is-app .feed-pick,
body.is-app .visual-frame,
body.is-app .member-modal-facts > div {
  background: var(--panel-2);
  background-image: none;
  border-color: var(--line);
}

body.is-app .band {
  background: var(--bg-2);
  background-image: none;
  border-color: var(--line);
}

body.is-app .card:hover,
body.is-app .member-card:hover {
  background: var(--card);
  border-color: var(--line-strong);
  transform: none;
}

body.is-app .card-mark {
  display: none;
}

/* Buttons */
body.is-app .btn {
  border-radius: 10px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

body.is-app .btn-primary {
  border: 1px solid var(--primary-bg);
  background: var(--primary-bg);
  color: var(--primary-fg);
  box-shadow: none;
}

body.is-app .btn-primary:hover {
  background: var(--primary-bg-hover);
  border-color: var(--primary-bg-hover);
}

body.is-app .btn-ghost {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

body.is-app .btn-ghost:hover {
  border-color: var(--text);
  background: transparent;
  color: var(--text);
}

/* Navigation */
body.is-app .app-tabs,
body.is-app .nav-pill,
body.is-app .tabs,
body.is-app .lang-switch {
  border: 0;
  border-radius: 10px;
  background: var(--panel-2);
}

body.is-app .app-tab,
body.is-app .tab {
  border-radius: 8px;
  color: var(--muted);
  font-weight: 500;
}

body.is-app .app-tab.is-active,
body.is-app .tab.is-active {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

html[data-theme="light"] body.is-app .app-tab.is-active,
html[data-theme="light"] body.is-app .tab.is-active {
  box-shadow: 0 1px 2px rgba(20, 22, 26, 0.1);
}

/* Kleinteile */
body.is-app .chip,
body.is-app .tag,
body.is-app .member-badge {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

body.is-app .chip:hover {
  border-color: var(--text);
  color: var(--text);
}

body.is-app .chip.is-active,
body.is-app .tag.is-active {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

body.is-app .eyebrow {
  color: var(--muted-2);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

body.is-app .eyebrow .index {
  border: 0;
  padding: 0;
  background: none;
  color: var(--muted-2);
}

body.is-app .eyebrow::after {
  background: linear-gradient(90deg, var(--line), transparent);
}

/* Formular */
body.is-app input[type="text"],
body.is-app input[type="password"],
body.is-app input[type="number"],
body.is-app select,
body.is-app textarea {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--text);
}

body.is-app input:focus,
body.is-app select:focus,
body.is-app textarea:focus {
  border-color: var(--text);
  background: var(--bg-2);
  outline: 3px solid rgba(140, 150, 160, 0.14);
  outline-offset: 0;
}

body.is-app .switch-track {
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
}

/* Fußzeile und Modals */
body.is-app .site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

body.is-app .member-modal-backdrop {
  background: var(--backdrop);
}

body.is-app .brand-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

body.is-app .brand-name em {
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
}

body.is-app .gate-brand {
  font-family: var(--sans);
  color: var(--text);
}

body.is-app .gate-kicker {
  color: var(--muted-2);
  letter-spacing: 0.12em;
}

body.is-app .toast {
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* Feed: ein Beitrag pro Zeile statt Kacheln nebeneinander */
body.is-app .feed-list {
  grid-template-columns: minmax(0, 1fr);
}

body.is-app .feed-post,
body.is-app .feed-composer {
  max-width: 680px;
}

/* =========================================================== Nachrichten == */

body.is-app .tab-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--primary-bg);
  color: var(--primary-fg);
  font-size: 0.68rem;
  font-weight: 600;
  vertical-align: middle;
}

body.is-app .member-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  width: 100%;
  margin-top: 14px;
}

body.is-app .member-modal-actions.is-blocked #memberModalMessage {
  display: none;
}

body.is-app .dm {
  display: grid;
  gap: 16px;
  max-width: 760px;
}

body.is-app .dm-head h3 {
  margin: 6px 0;
}

body.is-app .dm-threads {
  display: grid;
  gap: 8px;
}

body.is-app .dm-thread-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  text-align: left;
  font: inherit;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
}

body.is-app .dm-thread-row:hover,
body.is-app .dm-thread-row.is-unread {
  border-color: var(--line-strong);
}

body.is-app .dm-thread-body {
  display: grid;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

body.is-app .dm-thread-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

body.is-app .dm-thread-top strong {
  font-size: 0.95rem;
}

body.is-app .dm-thread-time {
  font-size: 0.75rem;
  color: var(--muted-2);
  white-space: nowrap;
}

body.is-app .dm-thread-preview {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.is-app .dm-thread-count {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--primary-bg);
  color: var(--primary-fg);
  font-size: 0.72rem;
  font-weight: 600;
}

body.is-app .dm-empty {
  padding: 28px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}

body.is-app .dm-empty p {
  margin: 6px 0 0;
  font-size: 0.86rem;
  color: var(--muted-2);
}

body.is-app .dm-thread {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}

body.is-app .dm-thread-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

body.is-app .dm-back {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}

body.is-app .dm-back:hover {
  border-color: var(--text);
}

body.is-app .dm-partner {
  display: grid;
  gap: 1px;
}

body.is-app .dm-partner strong {
  font-size: 0.95rem;
}

body.is-app .dm-partner-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  text-align: left;
  cursor: pointer;
}

body.is-app .dm-partner-link:hover {
  color: var(--text);
}

body.is-app .dm-messages {
  display: grid;
  gap: 10px;
  padding: 16px 14px;
  max-height: 56vh;
  overflow-y: auto;
}

body.is-app .dm-note {
  margin: 0;
  padding: 20px 0;
  text-align: center;
  color: var(--muted-2);
  font-size: 0.86rem;
}

body.is-app .dm-message {
  display: grid;
  gap: 4px;
  justify-items: start;
}

body.is-app .dm-message.is-mine {
  justify-items: end;
}

body.is-app .dm-bubble {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

body.is-app .dm-message.is-mine .dm-bubble {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

body.is-app .dm-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

body.is-app .dm-time {
  font-size: 0.7rem;
  color: var(--muted-2);
}

body.is-app .dm-image {
  display: block;
  margin-top: 8px;
  max-width: 100%;
  max-height: 340px;
  width: auto;
  border-radius: 10px;
}

body.is-app .dm-bubble .dm-image:first-child {
  margin-top: 0;
}

body.is-app .dm-composer {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

body.is-app .dm-composer-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.is-app .dm-attach {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

body.is-app .dm-attach:hover {
  color: var(--text);
  border-color: var(--text);
}

body.is-app .dm-composer-row input[type="text"] {
  flex: 1;
  min-width: 0;
}

body.is-app .dm-preview {
  position: relative;
  margin: 0;
  width: 120px;
}

body.is-app .dm-preview img {
  display: block;
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
}

body.is-app .dm-preview-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text);
  line-height: 1;
  cursor: pointer;
}

/* Profil-Modal: oben beginnen statt mittig abschneiden, Inhalt scrollbar */
body.is-app .member-modal {
  place-items: start center;
  overflow-y: auto;
  padding: 80px 20px 40px;
}

body.is-app .member-modal-card {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] body.is-app .member-modal-card {
  box-shadow: 0 18px 40px rgba(20, 22, 26, 0.16);
}

/* Sprachwahl im Gate: sieben Sprachen passen in zwei Spalten */
@media (min-width: 600px) {
  .lang-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lang-grid .lang-btn:last-child {
    grid-column: 1 / -1;
  }
}

/* Kommentare: Profilbild neben Name und Text */
body.is-app .feed-comment {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
}

body.is-app .feed-comment .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

body.is-app .feed-comment-text {
  margin: 0;
  padding-top: 4px;
  font-size: 0.82rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* Bild und Name bilden zusammen einen Button. */
body.is-app .feed-comment-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  border-radius: 999px;
}

body.is-app .feed-comment-author:hover .feed-comment-name {
  color: var(--honey);
  text-decoration: underline;
}

body.is-app .feed-comment-author:hover .feed-comment-avatar {
  filter: brightness(1.08);
}

body.is-app .feed-comment-author:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

body.is-app .feed-comment-avatar {
  width: 26px;
  height: 26px;
  font-size: 0.66rem;
  pointer-events: none;
}

/* Blockierte Personen im Profil */
body.is-app .block-rows {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

body.is-app .block-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
}

body.is-app .block-row-name {
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================================== Meldungen === */

body.is-app .feed-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

body.is-app .report-flag {
  appearance: none;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted-2);
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

body.is-app .report-flag:hover,
body.is-app .report-flag:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
}

body.is-app .feed-comment {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
}

body.is-app .report-flag--comment {
  margin-left: auto;
  padding: 1px 7px;
  font-size: 0.68rem;
}

body.is-app .report-flag--dm {
  justify-self: end;
  padding: 1px 7px;
  font-size: 0.68rem;
}

/* ------------------------------------------------------- Melde-Dialog -- */

body.is-app .report-card {
  justify-items: stretch;
  width: min(440px, 100%);
  gap: 10px;
  text-align: left;
}

body.is-app .report-title {
  margin: 0;
  font-size: 1.05rem;
}

body.is-app .report-text {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

body.is-app .report-snippet {
  margin: 0;
  max-height: 96px;
  padding: 10px 12px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  font-size: 0.82rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

body.is-app .report-form {
  display: grid;
  gap: 12px;
}

body.is-app .report-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

body.is-app .report-reasons .chip {
  padding: 6px 11px;
  font-size: 0.76rem;
}

body.is-app .report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* --------------------------------------------------- Moderationsliste -- */

body.is-app .mod-count {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted-2);
}

body.is-app .mod-user-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
}

body.is-app .mod-user-form .field {
  flex: 1 1 200px;
  margin: 0;
}

body.is-app .mod-user-form input {
  width: 100%;
}

body.is-app .mod-list {
  display: grid;
  gap: 12px;
}

body.is-app .mod-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
}

body.is-app .mod-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

body.is-app .mod-kind {
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.is-app .mod-who {
  font-size: 0.9rem;
  font-weight: 600;
}

body.is-app .mod-when {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--muted-2);
}

body.is-app .mod-body {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

body.is-app .mod-image {
  max-width: 180px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

body.is-app .mod-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.is-app .mod-reason {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.72rem;
}

body.is-app .mod-reporters,
body.is-app .mod-note {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted-2);
}

body.is-app .mod-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

/* ====================================================== Konto & Daten === */

body.is-app .account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

body.is-app .account-danger {
  border-color: var(--line-strong);
  color: var(--text);
}

body.is-app .account-danger:hover,
body.is-app .account-danger:focus-visible {
  color: #ff8a7a;
  border-color: currentColor;
}

body.is-app .account-hint {
  margin: 10px 0 0;
  font-size: 0.76rem;
  color: var(--muted-2);
}

body.is-app .delete-card {
  justify-items: stretch;
  width: min(400px, 100%);
  gap: 12px;
  text-align: left;
}

body.is-app .delete-title {
  margin: 0;
  font-size: 1.05rem;
}

body.is-app .delete-warning {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

body.is-app .delete-form {
  display: grid;
  gap: 12px;
}

body.is-app .delete-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ================================================== Mitgliedersuche === */

.member-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  align-items: end;
  gap: 10px;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
}

.member-filter {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.member-filter-wide {
  grid-column: span 2;
}

.member-filter input,
.member-filter select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
}

.member-filter input:focus-visible,
.member-filter select:focus-visible {
  outline: none;
  border-color: var(--line-strong);
}

.member-reset {
  justify-self: start;
}

.member-card-seen {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted-2);
}

@media (max-width: 560px) {
  .member-filter-wide {
    grid-column: span 1;
  }
}

body.is-app .is-confirming {
  color: #ff8a7a;
  border-color: currentColor;
}

/* --------------------------------------------------- Footer: Rechtliches -- */

.footer-links {
  display: flex;
  flex-basis: 100%;
  flex-wrap: wrap;
  order: 3;
  gap: 18px;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}

.footer-links a {
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  border-bottom-color: currentColor;
  color: var(--text);
}

/* ------------------------------------------- Moderation: Rollenverwaltung -- */

body.is-app .mod-roles {
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
}

body.is-app .mod-roles-head {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

body.is-app .mod-roles-head h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

body.is-app .mod-role-list {
  display: grid;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

body.is-app .mod-role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

body.is-app .mod-role-name {
  font-weight: 500;
}

body.is-app .mod-role-tag {
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(234, 183, 125, 0.16);
  color: var(--honey);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.is-app .mod-role .btn {
  margin-left: auto;
}

body.is-app .mod-role-hint {
  margin: 0 0 10px;
  color: var(--muted-2);
  font-size: 0.8rem;
}

body.is-app .mod-role-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
}

body.is-app .mod-role-form .field {
  flex: 1 1 200px;
  margin: 0;
}

body.is-app .mod-role-form input {
  width: 100%;
}

/* ------------------------------------- Registrierung: Honigtopf-Feld ------ */

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* --------------------------------------------------------- Folgen (UI) --- */

body.is-app .follow-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

body.is-app .follow-group {
  display: grid;
  gap: 6px;
  align-content: start;
}

body.is-app .follow-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

body.is-app .follow-rows {
  display: grid;
  gap: 6px;
}

body.is-app .follow-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
}

body.is-app .follow-row:hover,
body.is-app .follow-row:focus-visible {
  border-color: var(--line-strong);
}

body.is-app .follow-row .avatar {
  width: 26px;
  height: 26px;
  font-size: 0.78rem;
}

body.is-app .follow-empty {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.84rem;
}

body.is-app #memberModalFollow[aria-pressed="true"] {
  border-color: var(--line-strong);
  color: var(--honey);
}

@media (max-width: 640px) {
  body.is-app .follow-lists {
    grid-template-columns: 1fr;
  }
}

/* Neuer Follower: dezente Markierung, ohne aufdringliche Farbe. */
body.is-app .follow-row.is-new {
  border-color: var(--line-strong);
}

body.is-app .follow-new {
  margin-left: auto;
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--honey);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* „Mehr anzeigen“ unter den Follow-Listen – unaufdringlich, wie ein Link. */
body.is-app .follow-more {
  justify-self: start;
  margin-top: 2px;
  padding: 4px 2px;
  border: 0;
  background: none;
  color: var(--honey);
  font: inherit;
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

body.is-app .follow-more:hover {
  color: var(--honey-soft);
}

body.is-app .follow-more:disabled {
  color: var(--muted-2);
  cursor: default;
}

/* Moderationsprotokoll: eine Zeile pro Aktion, bewusst knapp. */
body.is-app .mod-log-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

body.is-app .mod-log-row {
  display: grid;
  grid-template-columns: 84px minmax(0, auto) minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  font-size: 0.82rem;
}

body.is-app .mod-log-when {
  color: var(--muted-2);
  font-size: 0.74rem;
  white-space: nowrap;
}

body.is-app .mod-log-who {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.is-app .mod-log-what {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.is-app .mod-log-label {
  grid-column: 2 / -1;
  color: var(--muted-2);
  font-size: 0.76rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.is-app .mod-log-empty {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.84rem;
}

@media (max-width: 560px) {
  body.is-app .mod-log-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  body.is-app .mod-log-label {
    grid-column: 1;
  }
}

body.is-app .mod-log-more {
  margin-top: 10px;
}

/* Moderationssymbol neben dem Namen – ein Schild mit Haken. */
.member-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.member-modal-card .member-name-row {
  justify-content: center;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  color: var(--honey);
}

.admin-badge[hidden] {
  display: none;
}

.admin-badge svg {
  width: 100%;
  height: 100%;
}

/* Krone für die Inhaberrolle, Schild für Moderation. */
.admin-badge .badge-crown {
  display: none;
}

.admin-badge.is-owner .badge-shield {
  display: none;
}

.admin-badge.is-owner .badge-crown {
  display: block;
}

body.is-app .mod-role-owner {
  color: var(--honey);
  border-color: color-mix(in srgb, var(--honey) 40%, transparent);
}

/* Inhaberrolle weitergeben – eigener Block unter der Rollenliste. */
body.is-app .mod-owner {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

body.is-app .mod-owner h5 {
  margin: 0 0 4px;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

body.is-app .mod-owner-confirm {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--honey) 40%, transparent);
  border-radius: 10px;
  background: var(--panel);
}

body.is-app .mod-owner-confirm p {
  margin: 0 0 8px;
  font-size: 0.84rem;
}

body.is-app .mod-owner-confirm-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Passwort ändern – eigener Block im Konto-Bereich. */
body.is-app .account-password {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

body.is-app .account-password h5 {
  margin: 0 0 4px;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

/* Auge in Passwortfeldern */
body.is-app .pw-wrap,
.pw-wrap {
  position: relative;
  display: block;
}

/* Platz für das Auge – muss die Landing-Regeln für input[type] schlagen. */
html body .pw-wrap input[type="password"],
html body .pw-wrap input[type="text"] {
  padding-right: 46px;
}

.pw-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}

.pw-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pw-toggle:hover {
  color: var(--text);
  background: rgba(234, 183, 125, 0.12);
}

.pw-toggle.is-on {
  color: var(--honey);
}

.pw-toggle:focus-visible {
  outline: 2px solid var(--honey);
  outline-offset: 1px;
}

/* ==========================================================================
   Politur in der App: Karten mit Tiefe, warme Kanten, ruhige Übergänge
   ========================================================================== */

/* Kopfzeile bekommt eine warme Kante */
body.is-app .header-bar {
  border-bottom: 1px solid color-mix(in srgb, var(--honey) 22%, transparent);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
}

/* Beiträge heben sich beim Überfahren leicht an */
body.is-app .feed-post {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body.is-app .feed-post:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--honey) 42%, transparent);
  box-shadow: 0 22px 40px -30px rgba(0, 0, 0, 0.85);
}

/* Einstellungs-Kacheln im Profil */
body.is-app .member-settings {
  transition: border-color 0.2s ease, background 0.2s ease;
}

body.is-app .member-settings:hover {
  border-color: color-mix(in srgb, var(--honey) 34%, transparent);
}

/* Knöpfe: der warme Verlauf bleibt, dazu etwas Bewegung */
body.is-app .btn-primary {
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

body.is-app .btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03) saturate(1.05);
}

body.is-app .btn-ghost {
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

body.is-app .btn-ghost:hover {
  border-color: color-mix(in srgb, var(--honey) 45%, transparent);
}

/* Dunkele Ansicht: der Hauptknopf trägt die warme Farbe des Hauses */
html[data-theme="dark"] body.is-app .btn-primary {
  border-color: transparent;
  background: linear-gradient(140deg, var(--honey-soft), var(--honey) 52%, #d9995f);
  color: #241a12;
  box-shadow: 0 12px 28px -18px color-mix(in srgb, var(--honey) 80%, transparent);
}

html[data-theme="dark"] body.is-app .btn-primary:hover {
  border-color: transparent;
  background: linear-gradient(140deg, #f7d9b8, var(--honey-soft) 52%, #e8a969);
  color: #241a12;
}

@media (prefers-reduced-motion: no-preference) {
  body.is-app .feed-post,
  body.is-app .member-card,
  body.is-app .thread {
    animation: app-rise 0.45s ease both;
  }
}

@keyframes app-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.is-app .feed-post,
  body.is-app .btn-primary,
  body.is-app .member-settings {
    transition: none;
  }
}

/* Schmale Fenster: Bereichs-Tabs scrollen, aber ohne harte Scrollleiste */
@media (max-width: 760px) {
  body.is-app .app-tabs {
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
  }

  body.is-app .app-tabs::-webkit-scrollbar {
    display: none;
    height: 0;
  }
}

/* ================================================================ Themen == */

body.is-app .topic-composer {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

body.is-app .topic-list {
  display: grid;
  gap: 10px;
}

body.is-app .topic-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

body.is-app .topic-item:hover {
  border-color: color-mix(in srgb, var(--honey) 40%, transparent);
  transform: translateY(-1px);
}

body.is-app .topic-open {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

body.is-app .topic-open strong {
  font-size: 1rem;
  line-height: 1.3;
}

body.is-app .topic-meta {
  color: var(--muted-2);
  font-size: 0.8rem;
}

body.is-app .topic-detail {
  display: grid;
  gap: 14px;
}

body.is-app .topic-detail-title {
  margin: 6px 0 0;
  font-size: 1.3rem;
  line-height: 1.25;
}

body.is-app .topic-start {
  margin: 0;
  padding: 14px 16px;
  border-left: 2px solid color-mix(in srgb, var(--honey) 55%, transparent);
  border-radius: 0 12px 12px 0;
  background: var(--panel);
  white-space: pre-wrap;
  line-height: 1.55;
}

body.is-app .topic-posts {
  display: grid;
  gap: 10px;
}

body.is-app .topic-post {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 70%, transparent);
}

body.is-app .topic-post-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 6px;
  color: var(--muted-2);
  font-size: 0.8rem;
}

body.is-app .topic-post-head strong {
  color: var(--text);
  font-size: 0.86rem;
}

body.is-app .topic-post-body {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.55;
}

body.is-app .topic-reply {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

/* ================================================= Eigene Inhalte löschen == */

body.is-app .link-danger {
  padding: 2px 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted-2);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}

body.is-app .link-danger:hover {
  color: var(--clay);
  background: color-mix(in srgb, var(--clay) 12%, transparent);
}

body.is-app .link-danger.is-armed {
  color: var(--clay);
  font-weight: 600;
  background: color-mix(in srgb, var(--clay) 16%, transparent);
}

body.is-app .link-danger--comment {
  margin-left: 4px;
}

body.is-app .feed-actions {
  gap: 8px;
}

body.is-app .topic-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* ========================================= Hintergrund: warmes Abendlicht ==
   Der Mitgliederbereich liegt wie hinter Glas über einem warmen Licht:
   Bernstein links oben, ein Hauch Pflaume rechts oben, Glut von unten.
   Dunkel und hell jeweils mit eigenen Werten.
   ========================================================================= */

body.is-app {
  background-color: #0a090c;
  background-image:
    radial-gradient(62% 72% at 12% -14%, rgba(255, 196, 136, 0.34), transparent 70%),
    radial-gradient(58% 66% at 88% -10%, rgba(170, 122, 212, 0.28), transparent 72%),
    radial-gradient(72% 58% at 48% 116%, rgba(220, 110, 84, 0.2), transparent 72%),
    linear-gradient(180deg, #151119 0%, #0b0a0e 54%, #08070a 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Die Fläche ist angelehnt transparent – das Licht scheint durch. */
body.is-app #app {
  position: relative;
  background-color: rgba(19, 20, 24, 0.64);
  -webkit-backdrop-filter: blur(26px) saturate(1.2);
  backdrop-filter: blur(26px) saturate(1.2);
  /* Weiches Licht in der Fläche selbst: links oben warm, rechts oben kühl,
     unten ein Hauch Glut. Alles auslaufend, keine Kanten. */
  background-image:
    radial-gradient(72% 58% at 4% 0%, rgba(255, 200, 148, 0.16), transparent 62%),
    radial-gradient(62% 52% at 98% 4%, rgba(166, 118, 190, 0.14), transparent 64%),
    radial-gradient(84% 62% at 46% 106%, rgba(214, 118, 88, 0.09), transparent 68%);
  border: 1px solid rgba(246, 214, 180, 0.13);
  border-radius: 22px;
  box-shadow:
    0 1px 0 rgba(255, 236, 214, 0.09) inset,
    0 60px 100px -76px #000;
}

/* Auf schmalen Fenstern braucht die Fläche Luft zum Rand – und die
   Kopfleiste denselben Abstand, damit beide Kanten fluchten. */
@media (max-width: 1200px) {
  body.is-app #app {
    margin-left: 12px;
    margin-right: 12px;
  }

  body.is-app .site-header {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* -------------------------------------------------------------- hell ---- */

html[data-theme="light"] body.is-app {
  background-color: #f7efe5;
  background-image:
    radial-gradient(58% 46% at 14% -8%, rgba(244, 186, 126, 0.55), transparent 70%),
    radial-gradient(54% 42% at 88% -6%, rgba(206, 158, 176, 0.4), transparent 74%),
    radial-gradient(70% 46% at 48% 112%, rgba(232, 168, 130, 0.3), transparent 74%),
    linear-gradient(180deg, #fdf7f0 0%, #f8f0e7 52%, #f3e9df 100%);
}

html[data-theme="light"] body.is-app #app {
  background-color: rgba(255, 255, 255, 0.8);
  background-image:
    radial-gradient(72% 58% at 4% 0%, rgba(255, 196, 140, 0.36), transparent 62%),
    radial-gradient(62% 52% at 98% 4%, rgba(214, 160, 186, 0.26), transparent 66%),
    radial-gradient(84% 62% at 46% 106%, rgba(240, 176, 146, 0.2), transparent 68%);
  border-color: rgba(150, 110, 78, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 56px 96px -78px rgba(40, 26, 18, 0.55);
}



/* ====================================== Seitenspalte neben dem Feed =======
   Auf breiten Fenstern stand rechts neben dem Feed nur leere Fläche. Dort
   stehen jetzt zwei kleine Karten: wer im Kreis ist und worüber geredet wird.
   ========================================================================= */

.feed-side {
  display: none;
}

@media (min-width: 1080px) {
  body.is-app #feed {
    display: grid;
    grid-template-columns: minmax(0, 680px) minmax(260px, 320px);
    justify-content: space-between;
    column-gap: 32px;
    row-gap: 20px;
    align-items: start;
  }

  body.is-app #feed .section-head,
  body.is-app #feed .feed {
    grid-column: 1;
  }

  body.is-app #feed .feed-side {
    display: grid;
    gap: 14px;
    grid-column: 2;
    grid-row: 1 / span 2;
    position: sticky;
    top: 100px;
    margin-top: 6px;
  }
}

.side-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.side-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.side-head h3 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0;
}

.side-more {
  padding: 0;
  border: 0;
  background: none;
  color: var(--honey);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.side-more:hover {
  text-decoration: underline;
}

.side-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-member,
.side-topic {
  display: flex;
  gap: 10px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease;
}

.side-member {
  align-items: center;
}

.side-topic {
  flex-direction: column;
  gap: 2px;
}

.side-member:hover,
.side-topic:hover {
  background: rgba(255, 255, 255, 0.045);
}

html[data-theme="light"] .side-member:hover,
html[data-theme="light"] .side-topic:hover {
  background: rgba(20, 22, 26, 0.045);
}

.side-avatar {
  width: 30px;
  height: 30px;
  font-size: 0.74rem;
}

.side-member-text {
  display: grid;
  min-width: 0;
}

.side-member-text strong,
.side-topic strong {
  font-size: 0.88rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-meta {
  color: var(--muted-2);
  font-size: 0.76rem;
}

.side-empty {
  padding: 7px 8px;
  color: var(--muted-2);
  font-size: 0.82rem;
}

/* ============================== Muster: feine Wellen und Profilkarte ===== */

/* Feine Ringe, die von unten rechts und oben links auslaufen – als Muster
   auf dem Grund hinter der Fläche. */
body.is-app::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    repeating-radial-gradient(
      circle at 104% 112%,
      rgba(255, 208, 164, 0.08) 0 1px,
      transparent 1.5px 64px
    ),
    repeating-radial-gradient(
      circle at -4% -10%,
      rgba(196, 150, 220, 0.06) 0 1px,
      transparent 1.5px 92px
    );
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.7) 58%, rgba(0, 0, 0, 0.4) 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.7) 58%, rgba(0, 0, 0, 0.4) 100%);
}

html[data-theme="light"] body.is-app::before {
  background-image:
    repeating-radial-gradient(
      circle at 104% 112%,
      rgba(196, 122, 82, 0.11) 0 1px,
      transparent 1.5px 64px
    ),
    repeating-radial-gradient(
      circle at -4% -10%,
      rgba(206, 158, 176, 0.1) 0 1px,
      transparent 1.5px 92px
    );
}

/* Profilkarte in der Seitenspalte */
.side-me-body {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 10px;
}

.side-me-open {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.side-me-open:hover {
  background: rgba(234, 183, 125, 0.12);
  border-color: rgba(234, 183, 125, 0.35);
}

html[data-theme="light"] .side-me-open {
  background: #ffffff;
}

html[data-theme="light"] .side-me-open:hover {
  background: #fdf4ea;
  border-color: rgba(192, 122, 82, 0.35);
}

/* Feines Linienraster in der Fläche selbst – das gibt der großen leeren
   Fläche Struktur, ohne den Inhalt zu stören (liegt hinter den Karten). */
body.is-app #app {
  background-image:
    radial-gradient(72% 58% at 4% 0%, rgba(255, 200, 148, 0.16), transparent 62%),
    radial-gradient(62% 52% at 98% 4%, rgba(166, 118, 190, 0.14), transparent 64%),
    radial-gradient(84% 62% at 46% 106%, rgba(214, 118, 88, 0.09), transparent 68%),
    linear-gradient(0deg, rgba(255, 240, 225, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 240, 225, 0.025) 1px, transparent 1px);
  background-size: auto, auto, auto, 30px 30px, 30px 30px;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat;
}

html[data-theme="light"] body.is-app #app {
  background-image:
    radial-gradient(72% 58% at 4% 0%, rgba(255, 196, 140, 0.36), transparent 62%),
    radial-gradient(62% 52% at 98% 4%, rgba(214, 160, 186, 0.26), transparent 66%),
    radial-gradient(84% 62% at 46% 106%, rgba(240, 176, 146, 0.2), transparent 68%),
    linear-gradient(0deg, rgba(120, 96, 74, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 96, 74, 0.055) 1px, transparent 1px);
  background-size: auto, auto, auto, 30px 30px, 30px 30px;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat;
}

/* Etwas kräftiger, damit das Muster auch auf hellen Displays lesbar ist. */
body.is-app::before {
  background-image:
    repeating-radial-gradient(
      circle at 104% 112%,
      rgba(255, 208, 164, 0.1) 0 1px,
      transparent 1.5px 64px
    ),
    repeating-radial-gradient(
      circle at -4% -10%,
      rgba(196, 150, 220, 0.075) 0 1px,
      transparent 1.5px 92px
    );
}

body.is-app #app {
  background-image:
    radial-gradient(72% 58% at 4% 0%, rgba(255, 200, 148, 0.16), transparent 62%),
    radial-gradient(62% 52% at 98% 4%, rgba(166, 118, 190, 0.14), transparent 64%),
    radial-gradient(84% 62% at 46% 106%, rgba(214, 118, 88, 0.09), transparent 68%),
    linear-gradient(0deg, rgba(255, 240, 225, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 240, 225, 0.035) 1px, transparent 1px);
  background-size: auto, auto, auto, 30px 30px, 30px 30px;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat;
}

/* ============================== Kopfleiste: Glas statt schwarzem Balken ==
   Vorher lag über die ganze Breite ein fast schwarzer Streifen. Jetzt
   schwebt die Leiste als Glasplatte über dem warmen Grund, bündig mit der
   Fläche darunter, ohne harte Unterkante.
   ========================================================================= */

body.is-app .site-header {
  padding: 12px 20px 0;
}

body.is-app .header-bar {
  max-width: var(--max);
  border: 1px solid rgba(246, 214, 180, 0.12);
  border-radius: 16px;
  background: rgba(23, 18, 25, 0.55);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  backdrop-filter: blur(22px) saturate(1.25);
  box-shadow:
    0 1px 0 rgba(255, 236, 214, 0.08) inset,
    0 24px 60px -46px #000;
}

body.is-app #app {
  margin-top: 16px;
}

/* Der obere Rand des Grundes bekommt etwas Licht, damit dort kein Schwarz
   steht. */
body.is-app {
  background-image:
    radial-gradient(46% 16% at 50% -3%, rgba(255, 208, 172, 0.22), transparent 74%),
    radial-gradient(62% 72% at 12% -14%, rgba(255, 196, 136, 0.34), transparent 70%),
    radial-gradient(58% 66% at 88% -10%, rgba(170, 122, 212, 0.28), transparent 72%),
    radial-gradient(72% 58% at 48% 116%, rgba(220, 110, 84, 0.2), transparent 72%),
    linear-gradient(180deg, #17121c 0%, #0b0a0e 54%, #08070a 100%);
}

html[data-theme="light"] body.is-app .header-bar {
  border-color: rgba(168, 126, 94, 0.18);
  background: rgba(255, 252, 248, 0.7);
  box-shadow:
    0 1px 0 #fff inset,
    0 24px 60px -50px rgba(120, 80, 50, 0.4);
}

html[data-theme="light"] body.is-app {
  background-image:
    radial-gradient(46% 16% at 50% -3%, rgba(255, 214, 176, 0.5), transparent 74%),
    radial-gradient(58% 46% at 14% -8%, rgba(244, 186, 126, 0.55), transparent 70%),
    radial-gradient(54% 42% at 88% -6%, rgba(206, 158, 176, 0.4), transparent 74%),
    radial-gradient(70% 46% at 48% 112%, rgba(232, 168, 130, 0.3), transparent 74%),
    linear-gradient(180deg, #fdf7f0 0%, #f8f0e7 52%, #f3e9df 100%);
}

/* Oben etwas mehr Licht, damit der Streifen neben der Kopfleiste nicht
   wieder schwarz wirkt. */
body.is-app {
  background-image:
    radial-gradient(60% 26% at 50% -6%, rgba(255, 208, 172, 0.28), transparent 76%),
    radial-gradient(62% 72% at 12% -14%, rgba(255, 196, 136, 0.34), transparent 70%),
    radial-gradient(58% 66% at 88% -10%, rgba(170, 122, 212, 0.28), transparent 72%),
    radial-gradient(72% 58% at 48% 116%, rgba(220, 110, 84, 0.2), transparent 72%),
    linear-gradient(180deg, #17121c 0%, #0b0a0e 54%, #08070a 100%);
}

html[data-theme="light"] body.is-app {
  background-image:
    radial-gradient(60% 26% at 50% -6%, rgba(255, 218, 182, 0.6), transparent 76%),
    radial-gradient(58% 46% at 14% -8%, rgba(244, 186, 126, 0.55), transparent 70%),
    radial-gradient(54% 42% at 88% -6%, rgba(206, 158, 176, 0.4), transparent 74%),
    radial-gradient(70% 46% at 48% 112%, rgba(232, 168, 130, 0.3), transparent 74%),
    linear-gradient(180deg, #fdf7f0 0%, #f8f0e7 52%, #f3e9df 100%);
}

/* ================================ Mehrere Kategorien (Chips) ============= */

/* Im Mitgliederfilter sitzen die Chips zwischen den Feldern – etwas kleiner
   und ohne die Feld-Optik, die für Selects gedacht ist. */
.chips-compact {
  gap: 6px;
}

.chips-compact .chip {
  padding: 5px 10px;
  font-size: 0.75rem;
}

.member-filter .chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  background: none;
}

.chip-group {
  grid-column: 1 / -1;
}

/* Rollen unter dem Namen in der Seitenspalte bleiben einzeilig. */
.side-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Angehakte Chips müssen sichtbar sein – die App-Regeln für .chip sind
   spezifischer als .chip.is-on und haben die Auswahl vorher überdeckt. */
body.is-app .chip.is-on {
  border-color: rgba(232, 178, 106, 0.6);
  background: rgba(232, 178, 106, 0.16);
  color: var(--honey);
  font-weight: 600;
}

html[data-theme="light"] body.is-app .chip.is-on {
  border-color: rgba(176, 110, 60, 0.55);
  background: rgba(240, 194, 140, 0.4);
  color: #7d4318;
}

/* ================================= Anwesenheit (Online-Punkt am Avatar) ==
   Grün = online, gelb = abwesend, kein Punkt = offline.
   ========================================================================= */

/* Anmelde-Status im Profil: dauerhaft angemeldet oder nur im Browser. */
.settings-session {
  display: grid;
  gap: 6px;
  justify-items: start;
  margin: 14px 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(234, 183, 125, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.settings-session-status[data-state="ok"] {
  color: #46c97a;
}

.settings-session-status[data-state="cookie"] {
  color: #e9b64d;
}

.settings-session-list {
  display: grid;
  gap: 4px;
  margin: 2px 0 4px;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: rgba(253, 246, 236, 0.72);
}

.settings-session-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.settings-session-device {
  color: rgba(253, 246, 236, 0.55);
  font-size: 0.78rem;
}

html[data-theme="light"] .settings-session-device {
  color: rgba(42, 27, 18, 0.55);
}

.settings-session-item.is-current {
  color: #f3cfa6;
}

.settings-session-end-one {
  padding: 2px 10px;
  border: 1px solid rgba(226, 133, 124, 0.35);
  border-radius: 999px;
  background: transparent;
  color: rgba(226, 133, 124, 0.9);
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}

.settings-session-end-one:hover,
.settings-session-end-one:focus-visible {
  border-color: rgba(226, 133, 124, 0.7);
  color: #e2857c;
}

.settings-session-end-one:disabled {
  opacity: 0.55;
  cursor: default;
}

.settings-session-tag {
  padding: 1px 8px;
  border: 1px solid rgba(234, 183, 125, 0.45);
  border-radius: 999px;
  font-size: 0.72rem;
  color: #eab77d;
}

html[data-theme="light"] .settings-session-list {
  color: rgba(42, 27, 18, 0.75);
}

html[data-theme="light"] .settings-session-item.is-current {
  color: #8a5416;
}

.settings-session-end.is-armed {
  color: #e2857c;
  border-color: rgba(226, 133, 124, 0.5);
}

.avatar {
  position: relative;
}

.avatar[data-presence]::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border: 2px solid #14161a;
  border-radius: 50%;
  pointer-events: none;
}

.avatar[data-presence="online"]::after {
  background: #46c97a;
}

.avatar[data-presence="away"]::after {
  background: #e9b64d;
}

html[data-theme="light"] .avatar[data-presence]::after {
  border-color: #fdf8f2;
}

/* In der Kopfleiste sitzt der Avatar auf der Glasplatte – etwas dunklerer
   Ring, damit der Punkt nicht mit dem Rand verschmilzt. */
body.is-app .header-bar .avatar[data-presence]::after {
  border-color: #1b1520;
}

/* ==================================== Reaktionen und Glocke ============== */

/* „Gefällt mir“ an Beiträgen und Kommentaren */
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.like-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.like-btn.is-liked {
  color: #f0709a;
  border-color: rgba(240, 112, 154, 0.45);
  background: rgba(240, 112, 154, 0.1);
}

.like-heart {
  font-size: 0.9rem;
  line-height: 1;
}

.like-count {
  font-variant-numeric: tabular-nums;
}

/* Kurzes Aufblitzen des angesprungenen Beitrags */
.feed-post.is-highlight {
  border-color: rgba(232, 178, 106, 0.6);
  box-shadow: 0 0 0 3px rgba(232, 178, 106, 0.16);
}

/* Glocke im Reiter */
.tab-bell {
  font-size: 0.92rem;
  line-height: 1;
}

.notif-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.notif-list {
  display: grid;
  gap: 2px;
  margin: 18px 0 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(18, 19, 23, 0.62);
  list-style: none;
}

.notif-item {
  display: flex;
  gap: 10px;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.notif-item:hover {
  background: rgba(255, 255, 255, 0.045);
}

.notif-item.is-new {
  background: rgba(232, 178, 106, 0.08);
}

.notif-avatar {
  width: 30px;
  height: 30px;
  font-size: 0.74rem;
}

.notif-body {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.notif-body strong {
  font-size: 0.84rem;
}

.notif-text {
  color: var(--muted);
  font-size: 0.8rem;
}

.notif-time {
  color: var(--muted-2);
  font-size: 0.72rem;
}

.notif-empty {
  padding: 10px 8px;
  color: var(--muted-2);
  font-size: 0.82rem;
}

html[data-theme="light"] .notif-list {
  background: rgba(255, 253, 250, 0.9);
}

html[data-theme="light"] .notif-item:hover {
  background: rgba(20, 22, 26, 0.045);
}

html[data-theme="light"] .notif-item.is-new {
  background: rgba(232, 178, 106, 0.16);
}

/* Glocke als Reiter: nur Symbol, der Name steht im aria-label. */
.app-tab--bell {
  padding-left: 10px;
  padding-right: 10px;
}

.app-tab--bell .tab-bell {
  font-size: 1.02rem;
}

.app-tab--bell .tab-badge {
  margin-left: 5px;
}

/* Handy: die Reiterleiste lässt sich seitlich schieben, damit alle
   Bereiche (inklusive Glocke) erreichbar bleiben. */
@media (max-width: 720px) {
  body.is-app .app-tabs {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body.is-app .app-tabs::-webkit-scrollbar {
    display: none;
  }
}
