/* Helles, moderneres UI mit Akzentfarbe */
:root{ --bg:#ffffff; --fg:#0f172a; --muted:#64748b; --card:#f8fafc; --border:#e2e8f0; --acc:#2563eb; --acc-ghost:#e8f0ff; --shadow:0 6px 24px rgba(15,23,42,.06); }
*{ box-sizing:border-box }
html,body{ margin:0; padding:0; background:var(--bg); color:var(--fg); font:16px/1.65 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial; }
a{ color: var(--acc); text-decoration: none; }
.container{ max-width: 1100px; margin:0 auto; padding: 16px; }
.header-row{ display:flex; align-items:center; justify-content:space-between; }
.site-header{ position: sticky; top:0; background:#fff; border-bottom:1px solid var(--border); z-index:10; backdrop-filter:saturate(1.2) blur(4px); }
.site-header .logo{ color:#0b1220; font-weight:800; letter-spacing:.2px; font-size:1.15rem }
.site-header .logo span{ color: var(--acc); }
nav a{ margin-left:16px; color:#1f2937 }
.btn{ padding:10px 14px; background:var(--acc); color:#fff; border-radius:12px; font-weight:700; box-shadow: var(--shadow); }
.btn-outlined{ padding:10px 14px; border:1px solid var(--border); border-radius:12px; background:#fff; color:#111; }
.grid{ display:grid; gap:18px; grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); }
.card{ background: var(--card); border:1px solid var(--border); border-radius:16px; overflow:hidden; box-shadow: var(--shadow); }
.card .thumb{ display:block; width:100%; aspect-ratio:4/3; object-fit:cover; background:#e5e7eb; }
.card .pad{ padding:14px; }
label{ display:block; margin-top:12px; margin-bottom:6px; color:var(--muted); font-size:.95em; }
input, textarea, select{ width:100%; padding:12px; border-radius:12px; border:1px solid var(--border); background:#fff; color:#111; }
input[type=file]{ padding:8px; }
form .actions{ display:flex; gap:12px; margin-top:16px; }
.form-card{ max-width: 720px; margin: 0 auto; }
.searchbar{ display:grid; gap:10px; grid-template-columns: 1fr 180px 140px; }
@media (max-width:680px){ .searchbar{ grid-template-columns:1fr; }}
.badge{ font-size:.9em; color:#475569 }
.site-footer{ border-top:1px solid var(--border); margin-top:32px; }
.empty{ opacity:.9; padding:20px; text-align:center; background:#fff; border:1px dashed var(--border); border-radius:14px; }

/* Galerie */
.gallery{ background:#fff; border:1px solid var(--border); border-radius:16px; overflow:hidden; box-shadow: var(--shadow); }
.gallery-main{ width:100%; aspect-ratio:4/3; object-fit:cover; background:#f1f5f9; }
.thumbs{ display:flex; gap:10px; overflow:auto; padding:10px; border-top:1px solid var(--border); background:#f8fafc; }
.thumbs img{ width:100px; height:72px; object-fit:cover; border:2px solid transparent; border-radius:10px; cursor:pointer; transition:transform .15s ease; }
.thumbs img:hover{ transform: translateY(-2px); }
.thumbs img.active{ border-color: var(--acc); background: var(--acc-ghost); }

/* Messaging UI */
.chat-wrap{ display:flex; gap:18px; }
@media (max-width:900px){ .chat-wrap{ flex-direction:column; } }
.thread-list .row{ border-top:1px solid var(--border); padding:12px 14px; display:block; }
.bubble{ max-width:72%; padding:10px 12px; border-radius:14px; border:1px solid var(--border); background:#fff; }
.bubble.mine{ background:#eef2ff; border-color:#c7d2fe; }
.msg-time{ font-size:.8em; color:#64748b; margin-bottom:4px; }
.chat-body{ padding: 8px 12px 12px; max-height: 60vh; overflow:auto; background:#fff; border-top:1px solid var(--border); }
.chat-header{ padding:12px 14px; }

/* Notification dot in header */
.badge-parent{ position:relative; display:inline-flex; align-items:center; gap:6px; }
.dot{ position:absolute; top:-6px; right:-10px; width:10px; height:10px; border-radius:999px; background:#ef4444; box-shadow:0 0 0 2px #fff inset; }
.count-pill{ position:absolute; top:-10px; right:-24px; background:#ef4444; color:#fff; font-size:.72rem; padding:2px 6px; border-radius:999px; }
.avatar{ padding:8px 10px; background:#fff; border:1px solid var(--border); border-radius:999px; }
