/* Cliqsta – klar, kantig, weiß. Angelehnt an das frühe Facebook & Google+. */
:root {
  --blue: #4D57CF;
  --blue-dark: #3B44B5;
  --blue-light: #EDEFFC;
  --green: #1FA877;
  --magenta: #cb1ce1;
  --red: #c9372c;
  --bg: #F6F8FF;
  --card: #fff;
  --line: #E1E4F0;
  --line-soft: #EEF0F8;
  --text: #0A0E1F;
  --muted: #5E6275;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(10, 14, 31, .05);
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-y: scroll; scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 var(--font); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.grow { flex: 1; min-width: 0; }
.inline { display: inline; margin: 0; }

/* ---------- Topbar (hell, wie cliqsta.de) ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(246, 248, 255, .88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(10, 14, 31, .07); }
.topbar-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 18px; height: 60px; padding: 0 14px; }
.logo { color: var(--blue); font-weight: 600; font-size: 22px; letter-spacing: -.2px; }
.logo:hover { text-decoration: none; }
.brand-dot { color: var(--magenta); }
.search { position: relative; flex: 1; max-width: 300px; }
.search-ic { position: absolute; left: 12px; top: 50%; transform: translateY(-52%); color: var(--muted); font-size: 17px; pointer-events: none; }
.search input { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px 0 34px; background: #fff; font: inherit; }
.search input:focus { outline: 3px solid var(--blue-light); border-color: var(--blue); }
.topnav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.topnav a { color: var(--muted); font-weight: 500; padding: 8px 13px; border-radius: 999px; display: flex; align-items: center; gap: 7px; font-size: 14px; transition: background .15s, color .15s; position: relative; }
.topnav a:hover { background: var(--blue-light); color: var(--blue); text-decoration: none; }
.topnav a.active { background: var(--blue-light); color: var(--blue); font-weight: 600; }
.topnav .ic { font-size: 15px; width: 16px; text-align: center; }
.topnav .me { padding: 4px 13px 4px 4px; border: 1px solid var(--line); background: #fff; margin-left: 6px; }
.topnav .me img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.logout-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; font-size: 15px; margin-left: 4px; }
.logout-btn:hover { color: var(--red); border-color: #f1c2be; }
.badge { background: var(--magenta); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 9px; }

/* ---------- Layout ---------- */
.layout { max-width: 1180px; margin: 16px auto; padding: 0 14px; display: grid; grid-template-columns: 220px minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.layout-2 { grid-template-columns: 260px minmax(0, 1fr); max-width: 980px; }
.col-left, .col-right { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 80px); overflow: auto; scrollbar-width: thin; }
.col-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.narrow { max-width: 460px; margin: 40px auto; padding: 0 14px; }
.narrow:has(.prose) { max-width: 760px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.card-title { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #4b5260; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.card-title .muted { text-transform: none; letter-spacing: 0; font-weight: 400; }
.empty { text-align: center; padding: 32px 20px; }
.stack { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Formulare & Buttons ---------- */
input, textarea, select { font: inherit; color: inherit; border: 1px solid var(--line); border-radius: 2px; padding: 8px 10px; background: #fff; width: 100%; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--blue-light); border-color: var(--blue); }
input[type=checkbox], input[type=radio] { width: auto; }
textarea { resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 14px; border: 1px solid #c5cad3; background: #f6f7f9; color: var(--text); font: 600 13px var(--font); border-radius: 2px; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #ebedf0; text-decoration: none; }
.btn-primary { background: var(--blue); border-color: var(--blue-dark); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-green { background: var(--green); border-color: #17946A; color: #fff; font-size: 15px; padding: 10px; }
.btn-green:hover { background: #17946A; }
.btn-danger { background: var(--red); border-color: #a52a20; color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); cursor: pointer; font: inherit; }
.icon-btn { background: none; border: 0; font-size: 18px; cursor: pointer; color: var(--muted); padding: 2px 8px; border-radius: 2px; }
.icon-btn:hover { background: var(--line-soft); }
.danger { color: var(--red) !important; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.seg label { flex: 1; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 8px 6px; cursor: pointer; font-size: 13px; background: #f6f7f9; border-right: 1px solid var(--line); }
.seg label:last-child span { border-right: 0; }
.seg input:checked + span { background: var(--blue-light); color: var(--blue); font-weight: 700; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Switch */
input.switch { appearance: none; -webkit-appearance: none; width: 38px; height: 22px; background: #c8ccd4; border-radius: 11px; position: relative; cursor: pointer; flex-shrink: 0; border: 0; padding: 0; transition: background .15s; }
input.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform .15s; }
input.switch:checked { background: var(--blue); }
input.switch:checked::after { transform: translateX(16px); }
.switch-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; cursor: pointer; font-size: 13px; }

/* ---------- Flash ---------- */
.flash { max-width: 1152px; margin: 12px auto 0; padding: 10px 14px; border-radius: 2px; border: 1px solid; }
.flash-info { background: #eef4ff; border-color: #c4d4f5; }
.flash-success { background: #edf8ea; border-color: #bfe3b6; }
.flash-error { background: #fdeeee; border-color: #f1c2be; color: #8a1f17; }

/* ---------- Avatare ---------- */
.avatar-xs { width: 24px; height: 24px; border-radius: 2px; object-fit: cover; vertical-align: middle; }
.avatar-sm { width: 40px; height: 40px; border-radius: 2px; object-fit: cover; flex-shrink: 0; }
.avatar-lg { width: 52px; height: 52px; border-radius: 2px; object-fit: cover; }
.avatar-xl { width: 168px; height: 168px; border-radius: 4px; object-fit: cover; border: 5px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15); background: #fff; }

/* ---------- Linke Spalte ---------- */
.mini-profile { display: flex; gap: 10px; align-items: center; }
.mini-profile > div { min-width: 0; }
.mini-profile .name { font-weight: 700; color: var(--text); }
.mini-profile .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-nav { padding: 6px; display: flex; flex-direction: column; }
.side-nav .card-title { padding: 6px 8px 0; }
.side-nav a { display: flex; gap: 10px; align-items: center; padding: 7px 8px; color: var(--text); border-radius: 2px; font-size: 13.5px; }
.side-nav a span { width: 20px; text-align: center; }
.side-nav a:hover { background: var(--line-soft); text-decoration: none; }
.side-nav a.active { background: var(--blue-light); color: var(--blue); font-weight: 700; }

/* ---------- Rechte Spalte ---------- */
.whats-up { display: flex; gap: 10px; padding: 8px; margin: 0 -8px; border-radius: 2px; color: var(--text); }
.whats-up:hover { background: var(--line-soft); text-decoration: none; }
.wu-icon { font-size: 22px; width: 34px; height: 34px; display: grid; place-items: center; background: #fff7e0; border: 1px solid #f1e2b0; border-radius: 3px; flex-shrink: 0; }
.online-list { list-style: none; margin: 0; padding: 0; }
.online-list li a { display: flex; align-items: center; gap: 8px; padding: 5px 4px; color: var(--text); font-size: 13px; border-radius: 2px; }
.online-list li a:hover { background: var(--line-soft); text-decoration: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3cb43c; box-shadow: 0 0 0 2px #d8f3d8; flex-shrink: 0; }
/* ICQ-Blume */
.flower { width: 14px; height: 14px; display: inline-block; background:
  radial-gradient(circle at 50% 50%, #e8c51e 0 2px, transparent 2.5px),
  radial-gradient(circle at 50% 12%, #3cb43c 0 3px, transparent 3.5px),
  radial-gradient(circle at 88% 38%, #3cb43c 0 3px, transparent 3.5px),
  radial-gradient(circle at 74% 84%, #3cb43c 0 3px, transparent 3.5px),
  radial-gradient(circle at 26% 84%, #3cb43c 0 3px, transparent 3.5px),
  radial-gradient(circle at 12% 38%, #3cb43c 0 3px, transparent 3.5px); }
.person-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.person-row:first-of-type { border-top: 0; }
.card-title + .person-row { border-top: 0; }
.empty-hint { margin: 0; }
.group-icon { width: 40px; height: 40px; display: grid; place-items: center; background: var(--blue-light); color: var(--blue); font-weight: 800; font-size: 18px; border-radius: 2px; flex-shrink: 0; }
.tag { font-size: 11px; padding: 1px 7px; border-radius: 2px; background: var(--line-soft); color: #4b5260; font-weight: 600; }
.tag-familie { background: #fde9e6; color: #a2372a; }
.tag-lange_freunde { background: rgba(31,168,119,.12); color: #0e6b4a; }
.rel-mini { width: auto; padding: 4px 6px; font-size: 12px; }

/* ---------- Composer (schlank) ---------- */
.composer { padding: 0; }
.composer-form { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.composer-top { display: flex; gap: 12px; align-items: flex-start; }
.round { border-radius: 50% !important; }
.composer-top textarea { border: 0; padding: 9px 0 4px; font-size: 16px; min-height: 40px; resize: none; overflow: hidden; line-height: 1.4; }
.composer-top textarea:focus { outline: 0; }
.attach { display: flex; flex-direction: column; gap: 8px; padding: 10px; background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.attach select { width: auto; align-self: flex-start; }
.composer-bar { display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.chips { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; min-width: 36px; justify-content: center; padding: 0 9px; border: 0; background: none; border-radius: 999px; font: 500 17px var(--font); color: var(--muted); cursor: pointer; }
.chip span { display: none; font-size: 13px; }
.chip.active span { display: inline; }
.chip:hover { background: var(--line-soft); color: var(--text); }
.chip.active { background: var(--blue-light); color: var(--blue); }
.vis-select { width: auto; padding: 6px 8px; font-size: 13px; border-radius: 999px; }
.activity-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.pick input { position: absolute; opacity: 0; }
.pick span { display: inline-block; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 13px; background: #fff; }
.pick input:checked + span { border-color: var(--blue); background: var(--blue-light); color: var(--blue); font-weight: 600; }
.image-previews { display: flex; gap: 6px; flex-wrap: wrap; }
.image-previews:empty { display: none; }
.image-previews img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.map-preview { height: 160px; border: 1px solid var(--line); border-radius: var(--radius); }
/* Suche Musik/Serien */
.lookup { position: relative; }
.lookup-results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(10,14,31,.12); z-index: 20; max-height: 340px; overflow: auto; }
.lookup-item { display: flex; gap: 10px; align-items: center; width: 100%; padding: 8px 10px; background: none; border: 0; border-bottom: 1px solid var(--line-soft); text-align: left; cursor: pointer; font: inherit; }
.lookup-item:hover { background: var(--bg); }
.lookup-item img, .picked img, .noimg { width: 44px; height: 44px; border-radius: 4px; object-fit: cover; flex-shrink: 0; background: var(--line-soft); display: grid; place-items: center; }
.lookup-item img.poster, .picked img.poster { width: 34px; height: 50px; }
.lookup-item strong, .picked strong { display: block; font-size: 14px; }
.lookup-item small, .picked small { color: var(--muted); font-size: 12px; }
.lookup-empty { padding: 12px; color: var(--muted); font-size: 13px; }
.picked { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; }

/* Musik/Serie im Beitrag */
.media-card { margin: 10px 14px 0; display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, #F8F9FF, #F1F2FD); }
.mc-cover { width: 76px; height: 76px; border-radius: 6px; object-fit: cover; box-shadow: 0 2px 8px rgba(10,14,31,.15); flex-shrink: 0; }
.mc-poster { width: 64px; height: 94px; border-radius: 6px; object-fit: cover; box-shadow: 0 2px 8px rgba(10,14,31,.15); flex-shrink: 0; }
.mc-empty { display: grid; place-items: center; font-size: 28px; background: #fff; }
.mc-title { font-weight: 700; font-size: 16px; }
.mc-badge { font-size: 20px; opacity: .5; }
.tag-platform { display: inline-block; margin-top: 6px; background: var(--blue-light); color: var(--blue); }

/* ---------- Beitrag ---------- */
.post { padding: 0; position: relative; overflow: hidden; }
.post.is-highlight { border-color: #e7c55a; box-shadow: 0 0 0 1px #f3e2a5, var(--shadow); }
.lifebar { height: 3px; background: var(--line-soft); }
.lifebar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--blue)); transition: width 1s linear; }
.post-head { display: flex; gap: 10px; padding: 12px 14px 0; align-items: flex-start; }
.post-head .name { font-weight: 700; color: var(--text); }
.countdown { color: #b46a1d; font-weight: 600; }
.hl-badge { color: #a67c00; font-weight: 700; }
.post-menu { position: relative; }
.menu { position: absolute; right: 0; top: 30px; background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(0,0,0,.12); border-radius: 2px; min-width: 210px; z-index: 5; padding: 4px 0; }
.menu button { display: block; width: 100%; text-align: left; padding: 8px 12px; background: none; border: 0; font: inherit; cursor: pointer; }
.menu button:hover { background: var(--line-soft); }
.post-body { padding: 10px 14px; font-size: 15px; white-space: normal; overflow-wrap: anywhere; }
.post-head + .post-body { padding-top: 10px; }
.images { display: grid; gap: 2px; margin-top: 4px; }
.images.n1 { grid-template-columns: 1fr; }
.images.n2, .images.n4 { grid-template-columns: 1fr 1fr; }
.images.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.images.n3 a:first-child { grid-row: span 2; }
.images a { display: block; background: #f2f3f5; }
.images img { width: 100%; height: 100%; object-fit: cover; display: block; max-height: 520px; }
.images:not(.n1) img { aspect-ratio: 1; }
.map { height: 220px; margin: 0 14px 10px; border: 1px solid var(--line); border-radius: 2px; }
.travel-label { padding: 0 14px 8px; font-size: 15px; }
.travel-label .arrow { color: var(--blue); font-weight: 800; margin: 0 6px; }
.travel-arrow { font-size: 22px; color: var(--blue); text-shadow: 0 0 3px #fff, 0 0 3px #fff; line-height: 1; }

.activity-card { margin: 12px 14px 0; padding: 12px; border: 1px solid #f0dfa8; background: linear-gradient(#fffbea, #fff8de); border-radius: 3px; display: flex; gap: 12px; align-items: center; }
.post-event .activity-card { border-color: #D3D7F6; background: linear-gradient(#F8F9FF, #EFF1FD); }
.act-icon { font-size: 30px; width: 52px; height: 52px; display: grid; place-items: center; background: #fff; border: 1px solid #f0dfa8; border-radius: 3px; flex-shrink: 0; }
.act-title { font-weight: 800; font-size: 16px; }
.cal { width: 52px; text-align: center; border: 1px solid #D3D7F6; border-radius: 3px; overflow: hidden; background: #fff; flex-shrink: 0; }
.cal span { display: block; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 0; }
.cal b { display: block; font-size: 22px; padding: 3px 0; }
.joiners { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; margin-top: 6px; }
.joiners .muted { margin-left: 4px; }

/* Ansichten – nur für Autor:in, verschwommen bis Klick */
.views { padding: 4px 14px 0; }
.views-btn { background: none; border: 0; padding: 4px 0; color: var(--muted); font: 12px var(--font); cursor: pointer; display: flex; align-items: center; gap: 8px; }
.views-btn[disabled] { cursor: default; }
.blurred-faces { display: inline-flex; }
.blurred-faces img { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; margin-left: -6px; filter: blur(2.5px); object-fit: cover; }
.blurred-faces img:first-child { margin-left: 0; }
.views.open .blurred-faces img { filter: none; }
.views-list { list-style: none; padding: 6px 0 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.views-list a { display: flex; align-items: center; gap: 6px; color: var(--text); }

.comments { background: #f8f9fb; border-top: 1px solid var(--line-soft); padding: 8px 14px 12px; margin-top: 10px; }
.comment { display: flex; gap: 8px; padding: 6px 0; font-size: 13.5px; }
.comment .name { font-weight: 700; color: var(--text); }
.comment-form input { background: #fff; padding: 7px 10px; font-size: 13px; }

/* Feed */
.feed-loader { text-align: center; padding: 16px; }
.feed-end { text-align: center; font-weight: 600; color: var(--green); }
.compact-summary .who-posted { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 4px; }
.who-posted a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; color: var(--text); position: relative; }
.who-posted b { position: absolute; top: -4px; right: -6px; background: var(--blue); color: #fff; font-size: 10px; padding: 0 5px; border-radius: 8px; }
.person-head { margin: 10px 2px 0; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #4b5260; }

/* ---------- Profil ---------- */
.profile-top { max-width: 1152px; margin: 16px auto 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 1180px) { .profile-top { margin: 16px 14px 0; } }
@media (max-width: 760px) { .profile-top { margin: 8px 8px 0; } }
.cover { height: 300px; background: linear-gradient(135deg, #4D57CF 0%, #5C68E0 55%, #9AA1EE 100%) center/cover; position: relative; }
.cover-edit { position: absolute; right: 14px; top: 14px; z-index: 5; background: rgba(255,255,255,.92); color: var(--text); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 13px; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.cover-edit:hover { background: #fff; }
.avatar-edit { position: absolute; left: 10px; bottom: 12px; width: 40px; height: 40px; display: grid; place-items: center; background: #fff; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.2); cursor: pointer; font-size: 17px; }
.busy { opacity: .55; pointer-events: none; }
.busy::after { content: " …"; }
.profile-edit { max-width: 520px; margin: 12px auto 0; display: flex; flex-direction: column; gap: 8px; }
.row-actions.center { justify-content: center; }
.welcome-bar { max-width: 1152px; margin: 12px auto 0; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius); }
.profile-id { text-align: center; margin-top: -100px; padding: 0 20px 14px; position: relative; pointer-events: none; }
.profile-id > * { pointer-events: auto; }
.avatar-xl-wrap { position: relative; display: inline-block; }
.online-dot { position: absolute; right: 12px; bottom: 12px; width: 18px; height: 18px; background: #3cb43c; border: 3px solid #fff; border-radius: 50%; }
.profile-id h1 { margin: 8px 0 2px; font-size: 28px; }
.bio { max-width: 520px; margin: 10px auto; }
.profile-actions { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.rel-select { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; background: var(--blue-light); padding: 4px 4px 4px 12px; border-radius: 2px; color: var(--blue); }
.rel-select select { width: auto; padding: 4px; }
.profile-tabs { display: flex; justify-content: center; border-top: 1px solid var(--line); }
.profile-tabs a { padding: 12px 20px; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; }
.profile-tabs a.active { color: var(--blue); border-bottom-color: var(--blue); }
.profile-tabs a:hover { text-decoration: none; background: var(--line-soft); }
.friend-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.friend-grid a { font-size: 11px; color: var(--text); text-align: center; }
.friend-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; display: block; }
.friend-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.friend-card { border: 1px solid var(--line-soft); border-radius: 3px; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--text); }
.friend-card a { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text); }
.friend-card img { width: 80px; height: 80px; object-fit: cover; border-radius: 2px; }
.group-head h1 { font-size: 24px; }

/* ---------- Landing ---------- */
.landing .landing-wrap { max-width: 1060px; margin: 0 auto; padding: 48px 20px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
.landing-hero h1 { font-size: 46px; letter-spacing: -1px; color: var(--blue); font-weight: 600; }
.landing-hero h1 span { color: var(--text); }
.lead { font-size: 19px; color: #3b4250; max-width: 520px; }
.usp { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 14px; }
.usp li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; }
.usp b { font-size: 22px; width: 42px; height: 42px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; flex-shrink: 0; }
.landing-forms { display: flex; flex-direction: column; gap: 16px; }
.auth-card { display: flex; flex-direction: column; gap: 10px; }
.auth-card form { display: flex; flex-direction: column; gap: 10px; }
.auth-card h2 { font-size: 20px; margin: 0; }
.code-input { font-size: 28px; letter-spacing: 12px; text-align: center; font-weight: 700; }
.handle-preview strong { color: var(--blue); }
.welcome { border-left: 4px solid var(--green); }
.danger-zone { border: 1px solid #f1c2be; background: #fff8f7; padding: 12px; border-radius: 2px; margin-top: 6px; }
.prose { padding: 28px 32px; font-size: 15px; }
.prose li { margin-bottom: 6px; }

/* ---------- Footer: Made in Europe ---------- */
.footer { text-align: center; padding: 32px 16px 40px; color: rgba(255,255,255,.7); font-size: 13px; margin-top: 32px; background: var(--blue); }
.footer a { color: rgba(255,255,255,.85); }
.footer-brand { font-size: 20px; font-weight: 600; color: #fff; margin-bottom: 14px; }
.footer .brand-dot { color: #f08cff; }
.made-in { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: #fff; color: var(--text); box-shadow: 0 4px 18px rgba(10,14,31,.15); }
.flag-de { display: inline-flex; flex-direction: column; width: 26px; height: 16px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.flag-de i { flex: 1; }
.flag-de i:nth-child(1) { background: #000; }
.flag-de i:nth-child(2) { background: #dd0000; }
.flag-de i:nth-child(3) { background: #ffce00; }
.eu-stars { width: 24px; height: 16px; display: inline-grid; place-items: center; background: #003399; color: #ffcc00; font-size: 10px; border-radius: 2px; }
.footer-claim { margin: 12px 0 6px; }
.footer-links { display: flex; gap: 16px; justify-content: center; }

/* ---------- Dialog ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(20, 25, 35, .45); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal { background: #fff; border-radius: 3px; width: 100%; max-width: 400px; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.modal h3 { padding: 14px 16px; margin: 0; border-bottom: 1px solid var(--line); background: #f6f7f9; font-size: 15px; }
.modal-body { padding: 14px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.modal-body p { grid-column: 1 / -1; margin: 0 0 6px; }
.modal-foot { padding: 10px 16px; border-top: 1px solid var(--line-soft); display: flex; justify-content: flex-end; gap: 8px; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: grid; place-items: center; z-index: 100; cursor: zoom-out; }
.lightbox img { max-width: 94vw; max-height: 92vh; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #222; color: #fff; padding: 10px 18px; border-radius: 3px; z-index: 120; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .layout { grid-template-columns: 200px minmax(0, 1fr); }
  .layout > .col-right { display: none; }
}
@media (max-width: 760px) {
  .layout, .layout-2 { grid-template-columns: 1fr; margin-top: 8px; padding: 0 8px; }
  .col-left { position: static; max-height: none; }
  .col-left .mini-profile, .col-left .side-nav { display: none; }
  .search, .life-hint { display: none; }
  .logo { font-size: 18px; }
  .topbar-inner { gap: 8px; }
  .landing .landing-wrap { grid-template-columns: 1fr; padding: 24px 16px; gap: 24px; }
  .landing-hero h1 { font-size: 32px; }
  .cover { height: 180px; }
  .avatar-xl { width: 120px; height: 120px; }
  .profile-id { margin-top: -70px; }
  .row2 { grid-template-columns: 1fr; }
  .activity-card { flex-wrap: wrap; }
}

/* Einstellungen */
.settings { display: flex; flex-direction: column; gap: 14px; }
.settings details { border-top: 1px solid var(--line-soft); padding-top: 12px; }
.settings summary { cursor: pointer; font-weight: 600; margin-bottom: 10px; }
.settings details[open] summary { margin-bottom: 12px; }

@media (max-width: 760px) {
  .topnav .lbl { display: none; }
  .topnav a { padding: 8px 10px; }
  .topnav .me { padding: 3px; }
  .topbar-inner { gap: 10px; height: 54px; }
}

.invite-box summary { cursor: pointer; margin-bottom: 0; list-style: none; }
.invite-box[open] summary { margin-bottom: 10px; }
.invite-box summary::-webkit-details-marker { display: none; }

/* Finde ich auch gut */
.agree { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 14px 0; }
.agree-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font: 500 13px var(--font); color: var(--muted); cursor: pointer; }
.agree-btn:hover { border-color: var(--blue); color: var(--blue); }
.agree-btn.on { background: var(--blue-light); border-color: var(--blue-light); color: var(--blue); }
.agree-who { display: inline-flex; align-items: center; gap: 2px; }
.agree-who .avatar-xs { margin-left: -6px; border: 2px solid #fff; }
.agree-who .avatar-xs:first-child { margin-left: 0; }
.agree-who .muted { margin-left: 6px; }

/* Abstand zwischen Beiträgen */
#feed { display: flex; flex-direction: column; gap: 14px; }
.person-head { margin: 12px 2px -4px; }
/* Hinzufügen: Freunde / Familie */
.add-choice { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.tag-freunde { background: rgba(31,168,119,.12); color: #0e6b4a; }
.person-row:has(.add-choice) { flex-wrap: wrap; }
.person-row .add-choice { width: 100%; justify-content: flex-start; padding-left: 50px; }
.person-row .sent { white-space: nowrap; }
