/* ============================================================
   einfach nur chatten – warmes, freundliches, modernes Design
   (Hell, einladend, nicht spin.de-artig. Teal-Akzent auf Creme.)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #faf7f2;
  --bg2: #f3eee6;
  --surface: #ffffff;
  --line: #ece4d8;
  --line2: #ddd2c2;
  --text: #2b2620;
  --muted: #7a7065;
  --accent: #0d9488;
  --accent-d: #0a7a70;
  --accent-l: #e0f2ef;
  --accent-soft: #f0faf8;
  --err: #c2410c;
  --ok: #15803d;
  --nick: #7c3aed;
  --mine: #0d7a6e;
  --shadow-sm: 0 1px 2px rgba(60,45,25,.06);
  --shadow: 0 8px 24px rgba(60,45,25,.09);
  --shadow-lg: 0 20px 50px rgba(60,45,25,.14);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --transition: 180ms cubic-bezier(.2,.7,.3,1);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

body {
  font: 15px/1.55 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(900px 500px at 10% -5%, #fdebd3 0%, transparent 55%),
    radial-gradient(700px 400px at 100% 0%, #d8f0ea 0%, transparent 50%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}

#app { width: 100%; }

h1 { margin: 0 0 6px; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
h2 { margin: 1.4em 0 .5em; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: .5em 0; }
.muted { color: var(--muted); font-size: .88rem; line-height: 1.55; }
.ok { color: var(--ok); font-size: .9rem; font-weight: 600; }
.err { color: var(--err); margin: 10px 0 0; font-size: .9rem; }
.err[hidden], .ok[hidden] { display: none !important; }

/* ---------- Layout-Rahmen ---------- */

body.in-auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  min-height: 100vh;
}
body.in-auth #app { width: 100%; max-width: 440px; }

body.in-page { display: block; padding: 0; background: var(--bg); }
.page-wrap {
  min-height: 100vh;
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.page-card {
  background: var(--surface);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--text);
  flex: 1;
  padding: 36px 28px;
  margin: 0;
}
.page-card a { color: var(--accent); }

body.in-chat { background: var(--bg); padding: 0; }
body.in-chat #app { height: 100vh; display: flex; flex-direction: column; }
body.in-chat .card.chat { flex: 1; min-height: 0; margin: 14px 16px 0; }
body.in-chat .site-footer { flex: none; margin: 0 16px 12px; }

/* ---------- Bausteine ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.btn, button {
  appearance: none;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background var(--transition), border-color var(--transition),
              color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}
.btn:hover, button:hover { background: var(--accent-d); border-color: var(--accent-d); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(13,148,136,.25); }
.btn:active, button:active { transform: translateY(0); box-shadow: none; }
.btn:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn.primary { background: var(--accent); border-color: var(--accent); }

.btn.ghost, button.ghost {
  background: var(--surface);
  border: 1px solid var(--line2);
  color: var(--muted);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.btn.ghost:hover, button.ghost:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

input[type="text"], input[type="password"], input[type="number"], textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line2);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(13,148,136,.12); background: #fff; }
input::placeholder { color: #b3a99c; }
input[type="number"] { max-width: 160px; }
textarea { resize: vertical; }
input[type="file"] { font-size: .88rem; color: var(--muted); padding: 6px 0; }

/* Segmentierte Auswahl */
.pick-row { margin: 14px 0 0; }
.pick-label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.pick-hint { font-size: .8rem; color: var(--muted); margin: 6px 0 0; font-style: italic; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid var(--line2);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
  transition: all var(--transition);
}
.seg label:hover span { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.seg input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(13,148,136,.28);
}
.seg input:disabled + span { opacity: .4; cursor: not-allowed; text-decoration: line-through; }

/* Chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 4px; }
.chip {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--line2);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
  transition: all var(--transition);
}
.chip.accent { background: var(--accent-l); border-color: #bfe3dd; color: var(--accent-d); }

/* ---------- Kopfzeile ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 22px;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.brand::before {
  content: "";
  width: 11px; height: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #34d399);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.topnav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.topnav .btn { font-size: .86rem; padding: 8px 14px; border-radius: var(--radius-sm); }
.topnav .me {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: .88rem;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.topnav .me:hover { border-color: var(--accent); box-shadow: var(--shadow); text-decoration: none; }
.me-nick { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Fußzeile ---------- */

.site-footer {
  flex: none;
  background: rgba(255,255,255,.6);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
  padding: 12px 18px;
  margin-top: auto;
  backdrop-filter: blur(6px);
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
  justify-content: space-between;
}
.footer-note { font-style: italic; }
.footer-links a { color: var(--accent); text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }
.footer-links .sep { margin: 0 6px; color: var(--line2); }
body.in-auth .site-footer { background: transparent; border-top: 0; text-align: center; padding: 16px 0 0; }
body.in-auth .footer-inner { justify-content: center; }

/* ---------- Anmeldung ---------- */

.card.auth {
  padding: 34px 30px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.card.auth::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #34d399, #fbbf24);
}
.card.auth h1 { text-align: center; margin-bottom: 4px; font-size: 1.6rem; }
.tagline { text-align: center; color: var(--muted); font-size: .9rem; margin: 0 0 8px; }

.tabs {
  display: flex;
  gap: 4px;
  margin: 20px 0 6px;
  padding: 5px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.tab {
  flex: 1;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 700;
  font-size: .88rem;
  padding: 10px 6px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.tab:hover { color: var(--text); background: rgba(255,255,255,.7); }
.tab.active { background: var(--surface); color: var(--accent-d); box-shadow: var(--shadow-sm); }

.authform { display: flex; flex-direction: column; padding-top: 12px; }
.authform[hidden] { display: none !important; }
.authform input[type="text"], .authform input[type="password"] { margin: 7px 0; }
.authform .btn { margin-top: 14px; width: 100%; justify-content: center; padding: 12px 16px; font-size: .95rem; border-radius: var(--radius-sm); }
.authform .muted { margin-top: 12px; text-align: center; }

.taken {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #f3d9a8;
  border-radius: var(--radius);
  background: #fdf6e8;
}
.taken[hidden] { display: none !important; }
.taken .err { margin-top: 0; color: #9a6b16; }
.taken-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* ---------- Raumauswahl ---------- */

.rooms-body { padding: 60px 28px 60px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.rooms-body h1 { margin-top: 0; font-size: 2.6rem; letter-spacing: -0.035em; font-weight: 800; color: var(--text); }
.rooms-intro { margin: 0 0 32px; color: var(--muted); font-size: 1.1rem; max-width: 560px; line-height: 1.5; }

.room-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.room-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition),
              box-shadow var(--transition), background var(--transition);
}
.room-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--transition);
}
.room-card:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.room-card:hover::before { opacity: 1; }
.room-card .rc-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 2px;
}
.rc-name { font-weight: 800; color: var(--accent-d); font-size: 1.15rem; letter-spacing: -0.01em; }
.rc-topic { font-size: .84rem; color: var(--muted); line-height: 1.45; }

/* Raum-Icons per href */
.room-card[href*="enter=allgemein"] .rc-icon { content: none; }
.room-card[href*="enter=allgemein"]::after { /* placeholder hook */ }

/* ---------- Chat ---------- */

.card.chat {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--text);
  overflow: hidden;
}

.chat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent), #34d399);
  color: #fff;
  padding: 11px 16px;
  flex: none;
  box-shadow: 0 2px 8px rgba(13,148,136,.2);
}
.chat-top .brand { color: #fff; font-weight: 800; font-size: 1rem; letter-spacing: -0.01em; }
.chat-top .brand::before { background: rgba(255,255,255,.85); box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.brand-link { color: #fff; text-decoration: none; }
.brand-link:hover { color: #fff; opacity: .85; text-decoration: none; }
.chat-top .hdr-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.chat-top .who { font-weight: 700; }
.chat-top .hint { opacity: .85; font-size: .8rem; }
.chat-top .reglink { color: #d1fae5; text-decoration: underline; }
.chat-top .ghost, a.ghost.room-back {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  padding: 6px 13px;
  font-size: .82rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.chat-top .ghost:hover, a.ghost.room-back:hover {
  background: rgba(255,255,255,.3);
  border-color: #fff;
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}

.welcome-line {
  padding: 10px 16px;
  font-size: .92rem;
  color: var(--muted);
  background: linear-gradient(90deg, var(--accent-soft), transparent);
  border-bottom: 1px solid var(--line);
  font-style: italic;
}

.roomline {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-size: .86rem;
  flex: none;
}
.room-label { color: var(--muted); font-weight: 600; }
.room-name { font-weight: 800; color: var(--accent-d); letter-spacing: -0.005em; }
.room-topic { color: var(--muted); }

.panes {
  flex: 1;
  display: flex;
  min-height: 0;
  background: var(--surface);
}

.public {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

#msgs {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  font-size: .95rem;
  line-height: 1.55;
}

.line.sys {
  color: var(--accent-d); font-weight: 600; font-size: .85rem;
  padding: 4px 10px; margin: 2px 0;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}
.line.sys .nick { color: var(--accent-d); font-weight: 700; }
.line { padding: 3px 0; word-break: break-word; transition: background var(--transition); }
.line .nick { font-weight: 700; color: var(--nick); }
.line .sep { color: var(--text); font-weight: 400; margin: 0 1px; }
.line.mine .nick { color: var(--mine); }
.line:hover { background: rgba(13,148,136,.03); }

#post {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  flex: none;
}
#post input {
  flex: 1;
  border: 1px solid var(--line2);
  background: #fff;
  color: var(--text);
  padding: 10px 13px;
  font-size: .95rem;
  border-radius: var(--radius-sm);
}
#post input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(13,148,136,.12); }
#post button {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: .92rem;
}

/* ---------- Seite: Benutzer ---------- */

.side {
  width: 220px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--bg);
  flex: none;
}
.pane-title {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  padding: 11px 14px 6px;
  flex: none;
}
#userlist {
  list-style: none;
  margin: 0;
  padding: 4px 8px 8px;
  overflow-y: auto;
  flex: 1;
}
.userbtn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .9rem;
  font-weight: 600;
  padding: 7px 9px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.userbtn:hover { background: var(--surface); box-shadow: var(--shadow-sm); transform: translateX(2px); }
.unick { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge {
  background: var(--err);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: .68rem;
  padding: 2px 7px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(194,65,12,.3);
}

.uavatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-l), #d1fae5);
  color: var(--accent-d);
  font-size: .8rem;
  font-weight: 800;
  flex: none;
  overflow: hidden;
  border: 2px solid var(--surface);
  box-shadow: var(--shadow-sm);
}
.uavatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uavatar.ini { text-transform: uppercase; }

.side-hint { padding: 8px 14px 14px; font-size: .85rem; line-height: 1.5; color: var(--muted); }
.side-hint a, .reglink { color: var(--accent); font-weight: 600; }

/* ---------- PM-Panel ---------- */

#pmbox {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.pm-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  font-size: .88rem;
}
.pm-head .ghost { padding: 4px 10px; font-size: .85rem; border-radius: var(--radius-sm); }
#pm-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 90px;
  font-size: .88rem;
}
#pm-post { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line); background: var(--bg); }
#pm-post input { flex: 1; padding: 8px 10px; font-size: .88rem; border-radius: var(--radius-sm); }
#pm-post button { padding: 8px 14px; border-radius: var(--radius-sm); font-size: .85rem; }

/* ---------- Overlay ---------- */

.ov {
  position: fixed;
  inset: 0;
  background: rgba(43,38,32,.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 60;
  animation: ovFade .18s ease;
}
.ov[hidden] { display: none !important; }
@keyframes ovFade { from { opacity: 0; } to { opacity: 1; } }

.ov-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px 22px 20px;
  text-align: center;
  max-height: 88vh;
  overflow-y: auto;
  animation: ovPop .22s cubic-bezier(.2,.7,.3,1);
}
@keyframes ovPop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

.ov-x {
  position: absolute;
  top: 8px; right: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.ov-x:hover { background: var(--bg); color: var(--text); }
.ov-photo-link { display: inline-block; text-decoration: none; }
.ov-photo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-l), #d1fae5);
  color: var(--accent-d);
  font-size: 2.6rem;
  font-weight: 800;
  border: 4px solid var(--surface);
  box-shadow: 0 8px 22px rgba(13,148,136,.25);
  transition: transform var(--transition);
}
.ov-photo-link:hover .ov-photo { transform: scale(1.04); }
.ov-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ov-id { margin-top: 12px; }
.ov-nick { font-size: 1.15rem; font-weight: 800; display: block; letter-spacing: -0.01em; }
.prof-kind {
  font-size: .68rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  vertical-align: 3px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.ov-id .chip-row { justify-content: center; margin-top: 8px; }
.ov-line { font-size: .86rem; color: var(--text); margin-top: 6px; }
.ov-line b { color: var(--muted); font-weight: 700; }
.ov-about {
  font-size: .86rem;
  color: var(--muted);
  margin-top: 9px;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  max-height: 96px;
  overflow-y: auto;
  line-height: 1.5;
}
.ov-pm { display: flex; gap: 7px; margin-top: 16px; }
.ov-pm input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  font-size: .88rem;
  border-radius: var(--radius-sm);
}
.ov-pm .btn { padding: 9px 14px; font-size: .86rem; border-radius: var(--radius-sm); }
.ov-card > .btn.ghost { margin-top: 10px; width: 100%; justify-content: center; border-radius: var(--radius-sm); }
.ov-card > .muted { margin-top: 14px; }

/* ---------- Profil ---------- */

.profile-page { max-width: 760px; margin-left: auto; margin-right: auto; }

.prof-head {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.prof-photo {
  width: 136px;
  height: 136px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-l), #d1fae5);
  color: var(--accent-d);
  font-size: 3.2rem;
  font-weight: 800;
  border: 4px solid var(--surface);
  box-shadow: 0 10px 26px rgba(13,148,136,.22);
  flex: none;
}
.prof-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prof-photo.small { width: 96px; height: 96px; font-size: 2.3rem; }
.prof-initials { text-transform: uppercase; }
.prof-id h1 { margin-bottom: 4px; font-size: 1.6rem; }
.prof-since { margin-top: 6px; font-size: .82rem; }

.prof-facts {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.prof-facts > div { flex: 1; min-width: 100px; }
.prof-facts dt { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.prof-facts dd { margin: 4px 0 0; font-size: 1.15rem; font-weight: 800; color: var(--accent-d); }
.prof-text { margin: 0; line-height: 1.65; font-size: .95rem; }

.prof-form { margin-top: 8px; }
.prof-form h2 { margin-top: 1.8em; }
.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px 18px;
  margin-top: 18px;
}
.field { display: block; margin-top: 16px; }
.field > span {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.field > span i { font-weight: 400; font-style: normal; text-transform: none; letter-spacing: 0; opacity: .75; }
.field-grid .field { margin-top: 0; }

.seek-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip.pick {
  cursor: pointer;
  padding: 8px 15px;
  font-size: .86rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  position: relative;
}
.chip.pick input { position: absolute; opacity: 0; pointer-events: none; }
.chip.pick:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.chip.pick.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 3px 10px rgba(13,148,136,.28);
}

.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

.photo-form { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 18px; }
.photo-row { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.photo-actions { flex: 1; min-width: 240px; }
.photo-btns { display: flex; gap: 9px; margin-top: 12px; flex-wrap: wrap; }

/* ---------- Empty states ---------- */

#userlist:empty::before {
  content: "Niemand online.";
  display: block; color: var(--muted); font-size: .85rem;
  text-align: center; padding: 28px 12px;
}

/* ---------- Mobil ---------- */

@media (max-width: 700px) {
  body.in-auth { padding: 18px 14px; }
  .card.auth { padding: 26px 20px 22px; border-radius: var(--radius); }
  .card.auth h1 { font-size: 1.4rem; }
  .room-grid { grid-template-columns: 1fr; gap: 10px; }
  .room-card { padding: 14px 16px; }
  .panes { flex-direction: column; }
  .public { border-right: 0; }
  .side {
    width: 100%;
    border-top: 1px solid var(--line);
    max-height: 36%;
  }
  #msgs { font-size: 1rem; padding: 10px 12px; }
  body.in-chat #app { height: auto; min-height: 100vh; }
  body.in-chat .card.chat { min-height: 84vh; margin: 10px 10px 0; }
  body.in-chat .site-footer { margin: 0 10px 10px; }
  .page-card { margin: 12px 10px; padding: 20px 16px; border-radius: var(--radius); }
  .prof-photo { width: 104px; height: 104px; font-size: 2.4rem; }
  .topbar { padding: 12px 14px; }
  .topnav { width: 100%; }
  #post { flex-wrap: wrap; }
  .ov-card { max-width: 94vw; padding: 22px 18px 18px; }
  .prof-facts > div { min-width: 80px; }
}

@media (max-width: 420px) {
  .topnav .btn { font-size: .8rem; padding: 7px 11px; }
  .brand { font-size: 1rem; }
}