/* ============================================================
   PlaudR — Stylesheet
   Farben: Akzent #e2725b (Terrakotta), Grund #f7f5f3, Text #1c1a19
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: #f7f5f3;
  color: #1c1a19;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: #c25c46; text-decoration: none; }
a:hover { color: #a04a37; text-decoration: underline; }

input:focus { outline: none; }

@keyframes plaudrEin {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------- Login ---------------- */

.login-wrap {
  min-height: calc(100vh - 62px);
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

.login-col {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #e2725b;
}

.brand-sub { font-size: 14px; color: #8c847f; }

.card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(28,26,25,0.05), 0 8px 24px rgba(28,26,25,0.06);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.label {
  font-size: 12.5px;
  font-weight: 500;
  color: #6d6560;
  letter-spacing: 0.01em;
}

.inp {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 15px;
  padding: 11px 13px;
  border: 1px solid #e2ddd8;
  border-radius: 10px;
  background: #fcfbfa;
  color: #1c1a19;
  transition: border-color .12s, box-shadow .12s, background .12s;
}

.inp:focus {
  border-color: #e2725b;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(226,114,91,0.14);
}

.vorschlaege {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  background: #ffffff;
  border: 1px solid #eae5e0;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(28,26,25,0.12);
  overflow: hidden;
  z-index: 20;
  max-height: 220px;
  overflow-y: auto;
}

.vorschlag {
  padding: 10px 13px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid #f4f0ec;
}
.vorschlag:last-child { border-bottom: none; }
.vorschlag:hover { background: #fbf4f2; }
.vorschlag .v-email { color: #1c1a19; }
.vorschlag .v-name { font-size: 12px; color: #a09892; }

.fehler {
  font-size: 13px;
  color: #b23c2a;
  background: #fdf0ed;
  border: 1px solid #f6dcd6;
  border-radius: 9px;
  padding: 9px 11px;
}

.btn {
  margin-top: 4px;
  font: inherit;
  font-size: 15px;
  font-weight: 550;
  color: #ffffff;
  background: #e2725b;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background .12s;
}
.btn:hover  { background: #d0624c; }
.btn:active { background: #bd5741; }

.login-foot { text-align: center; font-size: 12px; color: #a8a09a; }

/* ---------------- Profil ---------------- */

.profil { animation: plaudrEin 0.24s ease both; }

.top { background: #ffffff; border-bottom: 1px solid #ece7e2; }
.top-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-logo { font-size: 21px; font-weight: 600; letter-spacing: -0.03em; color: #e2725b; cursor: pointer; flex: none; }
[data-home] { cursor: pointer; }
.top-right { display: flex; align-items: center; gap: 16px; flex: none; }

/* Profilsuche im Header */
.suche { position: relative; flex: 1; max-width: 280px; margin: 0 16px; }
.suche-inp {
  width: 100%; box-sizing: border-box;
  font: inherit; font-size: 13.5px;
  padding: 8px 13px;
  border: 1px solid #e2ddd8; border-radius: 20px;
  background: #fcfbfa; color: #1c1a19;
}
.suche-inp:focus { border-color: #e2725b; background: #ffffff; box-shadow: 0 0 0 3px rgba(226,114,91,0.12); }
.such-liste {
  position: absolute; top: 100%; left: 0; right: 0;
  margin-top: 6px;
  background: #ffffff; border: 1px solid #eae5e0; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(28,26,25,0.12);
  overflow: hidden; z-index: 30; max-height: 320px; overflow-y: auto;
}
.such-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; cursor: pointer;
  border-bottom: 1px solid #f4f0ec;
}
.such-item:last-child { border-bottom: none; }
.such-item:hover { background: #fbf4f2; }
.such-ava { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; background: #eee; }
.such-txt { display: flex; flex-direction: column; min-width: 0; }
.such-name { font-size: 13.5px; font-weight: 550; }
.such-user { font-size: 12px; color: #a09892; }
.me { font-size: 13.5px; font-weight: 550; color: #1c1a19; cursor: pointer; }
.me:hover { color: #c25c46; text-decoration: none; }
.abmelden { font-size: 13.5px; color: #8c847f; cursor: pointer; }
.abmelden:hover { color: #1c1a19; }

/* anklickbare Handles */
.mention { color: #c25c46; cursor: pointer; font-weight: 500; }
.mention:hover { text-decoration: underline; }
[data-goto] { cursor: pointer; }
.chat-name[data-goto]:hover { color: #c25c46; }

.profil-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 20px 64px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.p-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(28,26,25,0.05);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.p-head { display: flex; align-items: center; gap: 16px; }

.avatar {
  width: 74px; height: 74px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 26px; font-weight: 600; color: #ffffff;
  flex: none;
  background: #e2725b;
}

.p-idbox { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.p-name { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.p-user { font-size: 14.5px; color: #8c847f; }
.p-bio { font-size: 15px; line-height: 1.5; color: #302c2a; }

.p-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13.5px; color: #8c847f; }

.p-stats {
  display: flex; gap: 28px;
  padding-top: 14px;
  border-top: 1px solid #f1ece8;
}
.stat { display: flex; align-items: baseline; gap: 6px; }
.stat b { font-size: 16px; font-weight: 600; }
.stat span { font-size: 13px; color: #8c847f; }

/* Tabs */
.tabs {
  display: flex; gap: 6px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(28,26,25,0.05);
  padding: 6px;
}
.tab {
  flex: 1; text-align: center;
  font-size: 14px; font-weight: 550;
  padding: 9px 12px;
  border-radius: 9px;
  cursor: pointer;
  color: #8c847f;
  background: transparent;
}
.tab.aktiv { background: #fbeeeb; color: #c25c46; }

/* Nachrichten */
.chats { display: flex; flex-direction: column; gap: 12px; }
.chat-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(28,26,25,0.05);
  overflow: hidden;
}
.chat-head { padding: 16px 20px; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.chat-head:hover { background: #fdfaf9; }
.chat-ava {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 600; color: #6d6560;
  background: #f0ebe7; flex: none;
}
.chat-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.chat-line { display: flex; gap: 8px; align-items: baseline; }
.chat-name { font-size: 14.5px; font-weight: 550; }
.chat-mit { font-size: 12.5px; color: #a09892; }
.chat-prev { font-size: 13.5px; color: #8c847f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-time { font-size: 12px; color: #a09892; flex: none; }
.chat-body {
  border-top: 1px solid #f1ece8;
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 12px;
  background: #fcfbfa;
}
.msg-row { display: flex; flex-direction: column; gap: 4px; }
.msg-row.ich    { align-items: flex-end; }
.msg-row.partner{ align-items: flex-start; }
.bubble {
  max-width: 78%;
  font-size: 14.5px; line-height: 1.5;
  padding: 10px 13px;
  border-radius: 14px;
  background: #ffffff; color: #211e1c;
}
.msg-row.ich .bubble { background: #e2725b; color: #ffffff; }
.msg-time { font-size: 11.5px; color: #a09892; }

/* Beiträge */
.post {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(28,26,25,0.05);
  padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.post-head { display: flex; align-items: center; gap: 11px; }
.post-ava {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 600; color: #ffffff;
  flex: none; background: #e2725b;
}
.post-id { display: flex; flex-direction: column; }
.post-name { font-size: 14.5px; font-weight: 550; }
.post-time { font-size: 12.5px; color: #a09892; }
.post-text { font-size: 15.5px; line-height: 1.55; color: #211e1c; }
.post-bild {
  border-radius: 12px; height: 300px;
  background: repeating-linear-gradient(135deg, #ece8e4 0 10px, #e4dfda 10px 20px);
  display: grid; place-items: center;
}
.post-bild span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px; letter-spacing: 0.08em; color: #8e857e; text-transform: uppercase;
}
.post-actions { display: flex; gap: 20px; font-size: 13px; color: #8c847f; padding-top: 2px; }
.komm-link { cursor: pointer; color: #c25c46; }
.komm-link:hover { text-decoration: underline; }
.komm-list {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 12px; border-top: 1px solid #f1ece8;
}
.komm { display: flex; flex-direction: column; gap: 3px; }
.komm-kopf { display: flex; gap: 8px; align-items: baseline; }
.komm-von { font-size: 13.5px; font-weight: 550; }
.komm-zeit { font-size: 12px; color: #a09892; }
.komm-text { font-size: 14.5px; line-height: 1.5; color: #302c2a; }

/* Geschütztes Profil (Hinweis für nicht angemeldete Besucher) */
.gesperrt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 8px 2px 2px;
}
.gesperrt-titel { font-size: 15.5px; font-weight: 600; color: #1c1a19; }
.gesperrt-text { font-size: 14.5px; line-height: 1.5; color: #6d6560; }
.btn-inline {
  margin-top: 4px;
  font-size: 14px; font-weight: 550;
  color: #ffffff; background: #e2725b;
  border-radius: 9px; padding: 9px 15px; cursor: pointer;
}
.btn-inline:hover { background: #d0624c; color: #ffffff; text-decoration: none; }

/* Profilbilder als <img> */
img.avatar, img.post-ava, img.chat-ava { object-fit: cover; display: block; }
.post-bild { overflow: hidden; background: #ece8e4; }
.post-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Ladehinweis */
.ladehinweis {
  position: fixed; left: 12px; right: 12px; bottom: 12px;
  font-size: 12.5px; line-height: 1.4;
  background: #2a1215; color: #ffb3a7;
  border: 1px solid #5c2b2e; border-radius: 8px;
  padding: 10px 14px; z-index: 9999;
}