/* Zentrales Stylesheet für das gesamte Community-Script */
:root {
    --bg: #f4f6fb;
    --card: #ffffff;
    --text: #222;
    --muted: #697386;
    --primary: #6c4ff6;
    --danger: #d93636;
    --success: #168a45;
    --border: #dfe3ec;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--primary); text-decoration: none; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.logo { font-weight: bold; font-size: 22px; }
nav a { margin-left: 14px; font-weight: 600; }
.container { max-width: 1100px; margin: 24px auto; padding: 0 16px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: 0 8px 22px rgba(27, 39, 67, 0.05); margin-bottom: 18px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.btn, button { display: inline-block; border: 0; padding: 10px 14px; border-radius: 10px; background: var(--primary); color: #fff; cursor: pointer; font-weight: bold; }
.btn.danger { background: var(--danger); }
.btn.success { background: var(--success); }
input, select, textarea { width: 100%; padding: 11px; border: 1px solid var(--border); border-radius: 10px; margin: 6px 0 12px; background: #fff; }
textarea { min-height: 120px; resize: vertical; }
.notice { padding: 12px; border-radius: 10px; background: #eef3ff; margin-bottom: 14px; }
.badge { display: inline-block; padding: 4px 9px; border-radius: 999px; background: #eee; font-size: 12px; }
.badge.locked { background: #ffe8b8; }
.badge.role { background: #e5ddff; color: #3c2aa1; }
.profile-photo { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.dropzone { border: 2px dashed var(--primary); border-radius: 16px; padding: 30px; text-align: center; background: #fbfaff; }
.dropzone.dragover { background: #eeeaff; }
.photo-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.editor-toolbar button { margin-right: 6px; margin-bottom: 6px; }
.message-box { min-height: 150px; border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: #fff; }
.footer { text-align: center; color: var(--muted); padding: 25px; }
@media (max-width: 700px) { .topbar { align-items: flex-start; flex-direction: column; } nav a { display: inline-block; margin: 8px 8px 0 0; } }
