/* ===================================================================
   encount – zentrale Stylesheet-Datei (aus allen Templates extrahiert)
   Jede Seite bekommt am <body> eine Klasse (page-auth / page-admin /
   page-admin-login / page-app), darüber sind alle Regeln unten sauber
   voneinander isoliert, damit sich z.B. Login- und Admin-CSS nicht
   gegenseitig überschreiben.
   =================================================================== */

:root{
    --bg:#f4f5f8;
    --card:#ffffff;
    --text:#181a20;
    --muted:#7b808c;
    --line:#eceef2;
    --accent:#6c5ce7;
    --accent-hover:#5b4bd6;
    --accent-soft:#efedff;
    --pink:#e85d9e;
    --green:#35b88a;
    --orange:#ef8b55;
    --blue:#4b8fe8;
    --radius:14px;
    --shadow:0 3px 18px rgba(27,31,43,.045);
    --shadow-lg:0 18px 60px rgba(27,31,43,.12);
}

/* ---------- AUTH (Login / Registrieren / Passwort vergessen & zurücksetzen) ---------- */
body.page-auth * { box-sizing: border-box; }body.page-auth {
        margin: 0;
        min-height: 100vh;
        background: var(--bg);
        color: var(--text);
        font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
        font-size: 14px;
        line-height: 1.45;
    }body.page-auth button, body.page-auth input { font: inherit; }body.page-auth button { border: 0; cursor: pointer; }body.page-auth a { color: var(--accent); text-decoration: none; }body.page-auth a:hover { text-decoration: underline; }body.page-auth /* ---------- LOGO ---------- */
    .brand {
        display: flex;
        align-items: center;
        gap: 11px;
        font-size: 20px;
        font-weight: 750;
        letter-spacing: -.3px;
    }body.page-auth .brand-mark {
        width: 26px;
        height: 26px;
        border: 6px solid var(--accent);
        border-right-color: transparent;
        border-radius: 50%;
        transform: rotate(-28deg);
        position: relative;
        flex: 0 0 auto;
    }body.page-auth .brand-mark::after {
        content: "";
        width: 6px;
        height: 6px;
        background: var(--accent);
        border-radius: 50%;
        position: absolute;
        right: -6px;
        top: 3px;
    }body.page-auth /* ---------- GATE / LAYOUT ---------- */
    .gate {
        min-height: 100vh;
        display: grid;
        grid-template-columns: 1.05fr .95fr;
    }body.page-auth /* Left brand panel */
    .promo {
        position: relative;
        overflow: hidden;
        padding: 48px 56px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        color: #fff;
        background: linear-gradient(150deg, #6c5ce7 0%, #7d6cf0 55%, #8f6fe6 100%);
    }body.page-auth .promo::before {
        content: "";
        position: absolute;
        width: 420px; height: 420px;
        right: -120px; top: -120px;
        background: radial-gradient(circle, rgba(232,93,158,.55), transparent 68%);
        border-radius: 50%;
    }body.page-auth .promo::after {
        content: "";
        position: absolute;
        width: 320px; height: 320px;
        left: -100px; bottom: -110px;
        background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
        border-radius: 50%;
    }body.page-auth .promo .brand { color: #fff; position: relative; z-index: 1; align-self: flex-start; }body.page-auth .promo .brand-mark { border-color: #fff; border-right-color: transparent; }body.page-auth .promo .brand-mark::after { background: #fff; }body.page-auth .promo-body { position: relative; z-index: 1; max-width: 30ch; }body.page-auth .promo-body h1 {
        font-size: 34px;
        line-height: 1.15;
        letter-spacing: -.5px;
        font-weight: 780;
        margin: 0 0 14px;
    }body.page-auth .promo-body p {
        font-size: 15px;
        color: rgba(255,255,255,.86);
        margin: 0;
    }body.page-auth .promo-foot {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 13px;
        color: rgba(255,255,255,.9);
    }body.page-auth .stack {
        display: flex;
    }body.page-auth .stack img {
        width: 30px; height: 30px;
        border-radius: 50%;
        border: 2px solid #7d6cf0;
        margin-left: -9px;
        object-fit: cover;
    }body.page-auth .stack img:first-child { margin-left: 0; }body.page-auth .mobile-online {
        display: none;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-top: 18px;
        font-size: 12px;
        color: var(--muted);
    }body.page-auth .mobile-online .stack img { border-color: #fff; box-shadow: 0 0 0 1px var(--line); }body.page-auth /* Right form side */
    .panel {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px 24px;
    }body.page-auth .login-card {
        width: 100%;
        max-width: 380px;
        animation: rise .5s ease both;
    }@keyframes rise {
        from { opacity: 0; transform: translateY(10px); }
    }body.page-auth .login-card .brand { display: none; margin-bottom: 26px; }body.page-auth .login-head { margin-bottom: 24px; }body.page-auth .login-head h2 {
        margin: 0 0 5px;
        font-size: 22px;
        font-weight: 760;
        letter-spacing: -.4px;
    }body.page-auth .login-head p {
        margin: 0;
        color: var(--muted);
        font-size: 13px;
    }body.page-auth .field { margin-bottom: 15px; }body.page-auth .field label {
        display: block;
        font-size: 12px;
        font-weight: 650;
        margin-bottom: 6px;
        color: #464a54;
    }body.page-auth .input-wrap { position: relative; }body.page-auth .field input {
        width: 100%;
        height: 46px;
        padding: 0 14px;
        background: #f7f8fa;
        border: 1px solid #ebedf1;
        border-radius: 10px;
        color: var(--text);
        outline: 0;
        transition: border-color .15s, background .15s, box-shadow .15s;
    }body.page-auth .field input:focus {
        border-color: var(--accent);
        background: #fff;
        box-shadow: 0 0 0 3px var(--accent-soft);
    }body.page-auth .field input::placeholder { color: #b1b4bc; }body.page-auth .toggle-pass {
        position: absolute;
        right: 6px; top: 50%;
        transform: translateY(-50%);
        height: 34px; padding: 0 10px;
        background: transparent;
        color: var(--muted);
        font-size: 12px;
        font-weight: 600;
        border-radius: 8px;
    }body.page-auth .toggle-pass:hover { color: var(--accent); background: var(--accent-soft); }body.page-auth .row-between {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 4px 0 20px;
        font-size: 12.5px;
    }body.page-auth .remember {
        display: flex;
        align-items: center;
        gap: 7px;
        color: #4a4f59;
        cursor: pointer;
        user-select: none;
    }body.page-auth .remember input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }body.page-auth .btn-primary {
        width: 100%;
        height: 46px;
        border-radius: 10px;
        background: var(--accent);
        color: #fff;
        font-weight: 680;
        font-size: 14px;
        transition: background .15s, transform .05s;
    }body.page-auth .btn-primary:hover { background: var(--accent-hover); }body.page-auth .btn-primary:active { transform: translateY(1px); }body.page-auth .divider {
        display: flex;
        align-items: center;
        gap: 12px;
        margin: 22px 0;
        color: #a7abb4;
        font-size: 11px;
    }body.page-auth .divider::before, body.page-auth .divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--line);
    }body.page-auth .signup {
        text-align: center;
        font-size: 13px;
        color: var(--muted);
    }body.page-auth .error-msg {
        display: none;
        background: #fdecf3;
        color: #b8396f;
        border: 1px solid #f7d4e4;
        border-radius: 9px;
        padding: 9px 12px;
        font-size: 12.5px;
        margin-bottom: 16px;
    }body.page-auth .error-msg.show { display: block; }body.page-auth /* ---------- LOGGED-IN PLACEHOLDER ---------- */
    .after {
        display: none;
        min-height: 100vh;
        place-items: center;
        text-align: center;
        padding: 24px;
    }body.page-auth .after.show { display: grid; }body.page-auth .after .brand { justify-content: center; margin-bottom: 18px; }body.page-auth .after h2 { margin: 0 0 6px; font-size: 22px; font-weight: 760; }body.page-auth .after p { margin: 0 0 20px; color: var(--muted); }body.page-auth .after .spinner {
        width: 26px; height: 26px;
        border: 3px solid var(--accent-soft);
        border-top-color: var(--accent);
        border-radius: 50%;
        margin: 0 auto 18px;
        animation: spin .8s linear infinite;
    }@keyframes spin { to { transform: rotate(360deg); } }body.page-auth .link-btn {
        color: var(--accent);
        background: var(--accent-soft);
        padding: 9px 16px;
        border-radius: 9px;
        font-weight: 650;
        font-size: 13px;
    }/* ---------- COOKIE BANNER (global, auf allen Seiten gleich) ---------- */
    .cookie {
        position: fixed;
        left: 16px; right: 16px;
        bottom: 16px;
        z-index: 50;
        max-width: 560px;
        margin: 0 auto;
        background: var(--card);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
        padding: 20px;
        animation: rise .4s ease both;
    }.cookie.hidden { display: none; }.cookie h3 {
        margin: 0 0 6px;
        font-size: 15px;
        font-weight: 720;
    }.cookie p {
        margin: 0 0 14px;
        color: var(--muted);
        font-size: 12.5px;
    }.cookie p a { font-weight: 600; }.cookie-cats {
        display: none;
        flex-direction: column;
        gap: 2px;
        margin-bottom: 14px;
        border: 1px solid var(--line);
        border-radius: 10px;
        overflow: hidden;
    }.cookie-cats.show { display: flex; }.cat {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 13px;
        background: #fafbfc;
    }.cat + .cat { border-top: 1px solid var(--line); }.cat-info strong { font-size: 12.5px; }.cat-info span { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }.switch { position: relative; width: 38px; height: 22px; flex: 0 0 auto; margin-top: 2px; }.switch input { opacity: 0; width: 0; height: 0; }.slider {
        position: absolute; inset: 0;
        background: #d6d9df;
        border-radius: 22px;
        transition: .18s;
    }.slider::before {
        content: "";
        position: absolute;
        width: 16px; height: 16px;
        left: 3px; top: 3px;
        background: #fff;
        border-radius: 50%;
        transition: .18s;
    }.switch input:checked + .slider { background: var(--accent); }.switch input:checked + .slider::before { transform: translateX(16px); }.switch input:disabled + .slider { background: var(--green); opacity: .65; }.cookie-actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }.cookie-actions button { flex: 1; min-width: 130px; height: 40px; border-radius: 9px; font-weight: 650; font-size: 12.5px; }.btn-ghost { background: #f4f5f8; color: #4a4f59; }.btn-ghost:hover { background: #eceef2; }.btn-fill { background: var(--accent); color: #fff; }.btn-fill:hover { background: var(--accent-hover); }.btn-text { flex: 0 0 auto; background: transparent; color: var(--accent); min-width: auto !important; padding: 0 6px; }.btn-text:hover { text-decoration: underline; }/* ---------- RESPONSIVE (Auth) ----------
   1.1.1.172: vorher stand "body.page-auth" VOR dem @media → ungültig, Block
   wurde komplett ignoriert (mobil blieb zweigeteilt mit violettem Bereich). */
    @media (max-width: 860px) {
        body.page-auth .gate { grid-template-columns: 1fr; }
        body.page-auth .promo { display: none; }
        body.page-auth .panel { align-items: flex-start; padding-top: 34px; }
        body.page-auth .login-card .brand { display: flex; justify-content: center; margin-left: auto; margin-right: auto; }
        body.page-auth .login-head { text-align: center; }
        body.page-auth .mobile-online { display: flex; }
    }@media (prefers-reduced-motion: reduce) {body.page-auth * { animation: none !important; }
    }


/* ---------- APP-BEREICH (Start / Feed / Reels / Gruppen) ---------- */
body.page-app * {box-sizing:border-box}body.page-app {
    margin:0;background:var(--bg);color:var(--text);
    font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
    font-size:14px;
}body.page-app button, body.page-app input {font:inherit}body.page-app button {border:0;cursor:pointer}body.page-app .app {
    min-height:100vh;display:grid;
    grid-template-columns:240px minmax(560px,1fr) 260px;
    max-width:1500px;margin:auto;
}body.page-app .sidebar {
    background:#fff;border-right:1px solid var(--line);
    min-height:100vh;padding:27px 16px;position:sticky;top:0;height:100vh;
}body.page-app .brand {display:flex;align-items:center;gap:10px;padding:0 10px 28px;font-weight:800;font-size:17px}body.page-app .brand-mark {
    width:22px;height:22px;border:5px solid var(--accent);
    border-right-color:transparent;border-radius:50%;transform:rotate(-28deg);position:relative
}body.page-app .brand-mark::after {
    content:"";width:5px;height:5px;background:var(--accent);border-radius:50%;
    position:absolute;right:-5px;top:3px
}body.page-app .profile-mini {display:flex;gap:10px;align-items:center;padding:8px 10px 25px}body.page-app .avatar {width:40px;height:40px;border-radius:50%;object-fit:cover}body.page-app .avatar.sm {width:34px;height:34px}body.page-app .avatar.xs {width:30px;height:30px}body.page-app .name {font-weight:700;font-size:12px}body.page-app .handle {font-size:10px;color:var(--muted)}body.page-app .menu-title {font-size:9px;color:#a1a5ad;text-transform:uppercase;letter-spacing:.14em;font-weight:700;padding:0 12px 8px}body.page-app .nav {display:flex;flex-direction:column;gap:3px}body.page-app .nav a {
    display:flex;align-items:center;gap:11px;height:40px;padding:0 12px;
    color:#626773;text-decoration:none;border-radius:9px;font-weight:550;position:relative
}body.page-app .nav a:hover {background:#f7f7fa;color:var(--text)}body.page-app .nav a.active {background:var(--accent-soft);color:var(--accent);font-weight:700}body.page-app .nav a.active:before {
    content:"";position:absolute;left:-16px;top:10px;width:3px;height:20px;
    background:var(--accent);border-radius:0 4px 4px 0
}body.page-app .icon {width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center}body.page-app .icon i {font-size:18px;line-height:1}body.page-app .icon svg {width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}body.page-app .badge {margin-left:auto;background:#f4d9e8;color:#bd4b80;border-radius:20px;padding:3px 7px;font-size:9px}body.page-app .divider {height:1px;background:var(--line);margin:20px 0}body.page-app .shortcut {display:flex;align-items:center;gap:9px;padding:6px 10px;color:#5f6470;font-size:11px}body.page-app .gicon {
    width:28px;height:28px;border-radius:8px;color:white;display:grid;place-items:center;
    font-weight:800;font-size:11px
}body.page-app .purple {background:#7665e8}body.page-app .green {background:#42b994}body.page-app .pink {background:#e85d9e}body.page-app .orange {background:#ed8b55}body.page-app .main {min-width:0;padding:0 20px 50px}body.page-app .topbar {
    height:76px;display:flex;align-items:center;gap:15px;
    position:sticky;top:0;z-index:10;background:rgba(244,245,248,.94);backdrop-filter:blur(12px)
}body.page-app .search {
    height:38px;flex:1;background:#fff;border:1px solid var(--line);border-radius:8px;
    display:flex;align-items:center;padding:0 11px;color:#999da6
}body.page-app .search input {border:0;outline:0;width:100%;margin-left:7px}body.page-app .top-actions {display:flex;gap:6px}body.page-app .round {
    width:38px;height:38px;border-radius:9px;background:#fff;border:1px solid var(--line);
    display:grid;place-items:center;color:#656a75
}body.page-app .content {display:flex;flex-direction:column;gap:15px}body.page-app .card {background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}body.page-app .page-head {padding:20px 20px 13px}body.page-app .page-head h2 {font-size:20px;margin:0 0 4px;letter-spacing:-.4px}body.page-app .page-head p {margin:0;color:var(--muted);font-size:11px}body.page-app .tabs {display:flex;gap:4px;padding:0 20px;border-bottom:1px solid var(--line)}body.page-app .tab {
    background:none;padding:11px 13px;color:#818690;font-size:11px;font-weight:650;
    position:relative
}body.page-app .tab.active {color:var(--accent)}body.page-app .tab.active:after {
    content:"";position:absolute;bottom:-1px;left:10px;right:10px;height:2px;background:var(--accent);border-radius:3px
}body.page-app .composer {padding:14px}body.page-app .composer-top {display:flex;gap:10px;align-items:center}body.page-app .composer-input {height:40px;flex:1;border-radius:9px;background:#f7f8fa;border:1px solid #f0f1f4;padding:0 13px;display:flex;align-items:center;color:#999da6}body.page-app .composer-actions {display:flex;gap:7px;padding:11px 0 0 44px}body.page-app .caction {background:none;color:#707580;font-size:10px;padding:5px 8px;border-radius:7px}body.page-app .caction:hover {background:#f5f5f8}body.page-app .post-header {display:flex;gap:10px;align-items:center;padding:15px 15px 9px}body.page-app .post-meta {flex:1}body.page-app .post-author {font-size:12px;font-weight:700}body.page-app .post-time {font-size:10px;color:var(--muted)}body.page-app .more {background:none;color:#999;padding:4px;font-size:16px}body.page-app .post-text {font-size:12px;color:#50555f;padding:0 15px 12px}body.page-app .post-img {width:100%;aspect-ratio:16/9;object-fit:cover;display:block}body.page-app .post-actions {display:flex;gap:30px;padding:10px 15px 6px;color:#777c86;font-size:10px}body.page-app .post-actions button {background:none;color:inherit;padding:0}body.page-app .post-stats {padding:4px 15px 14px;color:#999da6;font-size:9px}body.page-app /* REELS */
.reel-grid {display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:15px}body.page-app .reel {
    position:relative;aspect-ratio:9/9;border-radius:9px;overflow:hidden;
    background:#ddd;cursor:pointer
}body.page-app .reel img {width:100%;height:100%;object-fit:cover}body.page-app .reel:after {
    content:"";position:absolute;inset:0;background:linear-gradient(transparent 50%,rgba(0,0,0,.72))
}body.page-app .reel-info {position:absolute;z-index:2;left:11px;right:11px;bottom:11px;color:white}body.page-app .reel-author {font-size:10px;font-weight:700}body.page-app .reel-caption {font-size:9px;margin-top:3px}body.page-app .reel-stats {display:flex;gap:10px;margin-top:7px;font-size:9px}body.page-app .reel-play {
    position:absolute;z-index:3;top:10px;right:10px;width:28px;height:28px;border-radius:50%;
    background:rgba(255,255,255,.9);color:#444;display:grid;place-items:center;font-size:11px
}body.page-app /* GROUPS */
.group-layout {padding:15px;display:grid;grid-template-columns:1fr 1fr;gap:12px}body.page-app .group-card {border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}body.page-app .group-cover {height:105px;position:relative;background:linear-gradient(135deg,#7565e8,#a69bf5)}body.page-app .group-cover.green-bg {background:linear-gradient(135deg,#3cae91,#88d6be)}body.page-app .group-cover.pink-bg {background:linear-gradient(135deg,#df5895,#f0a4c7)}body.page-app .group-cover.orange-bg {background:linear-gradient(135deg,#e9824f,#f4bd91)}body.page-app .group-symbol {
    position:absolute;left:13px;bottom:-17px;width:48px;height:48px;border-radius:13px;
    background:white;display:grid;place-items:center;font-weight:800;font-size:17px;color:#6253d6;
    box-shadow:0 3px 12px rgba(0,0,0,.1)
}body.page-app .group-body {padding:27px 13px 13px}body.page-app .group-name {font-weight:750;font-size:12px}body.page-app .members {font-size:9px;color:var(--muted);margin-top:2px}body.page-app .group-desc {font-size:10px;color:#686d77;margin:9px 0 12px;line-height:1.5}body.page-app .group-footer {display:flex;align-items:center;justify-content:space-between}body.page-app .join {background:var(--accent-soft);color:var(--accent);font-size:9px;font-weight:700;padding:7px 11px;border-radius:7px}body.page-app .activity {font-size:9px;color:#92969f}body.page-app /* RIGHT */
.rightbar {padding:76px 20px 35px 0}body.page-app .right-card {padding:15px;margin-bottom:13px}body.page-app .rhead {display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}body.page-app .rhead strong {font-size:11px}body.page-app .see {font-size:9px;color:var(--accent);font-weight:700}body.page-app .online {display:flex;gap:8px;overflow:hidden}body.page-app .person {width:42px;text-align:center;flex:0 0 auto}body.page-app .person .wrap {position:relative;width:34px;margin:auto}body.page-app .person .avatar {width:34px;height:34px}body.page-app .status {position:absolute;right:-1px;bottom:0;width:8px;height:8px;border-radius:50%;background:#35b88a;border:2px solid #fff}body.page-app .person span {font-size:8px;color:#777b84;display:block;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}body.page-app .activity-list {display:flex;flex-direction:column;gap:10px}body.page-app .activity-row {display:flex;gap:9px;align-items:center}body.page-app .aicon {width:29px;height:29px;border-radius:8px;color:#fff;display:grid;place-items:center;font-size:10px}body.page-app .atext strong {display:block;font-size:9px}body.page-app .atext span {font-size:8px;color:var(--muted)}body.page-app .rgroup {display:flex;gap:9px;align-items:center;margin-bottom:10px}body.page-app .rgroup:last-child {margin-bottom:0}body.page-app .rgroup .info {flex:1}body.page-app .info strong {font-size:9px;display:block}body.page-app .info span {font-size:8px;color:var(--muted)}body.page-app .follow {background:var(--accent-soft);color:var(--accent);font-size:8px;font-weight:700;padding:6px 8px;border-radius:6px}body.page-app /* mobile */
.mobile {display:none}@media(max-width:1200px) {body.page-app .app {grid-template-columns:220px minmax(0,1fr)}body.page-app .rightbar {display:none}
}@media(max-width:850px) {body.page-app .app {display:block}body.page-app .sidebar {display:none}body.page-app .main {padding:0 10px 78px}body.page-app .topbar {height:64px}body.page-app .mobile {
        display:grid;grid-template-columns:repeat(5,1fr);position:fixed;z-index:30;
        left:0;right:0;bottom:0;height:62px;background:rgba(255,255,255,.97);
        border-top:1px solid var(--line);backdrop-filter:blur(12px)
    }body.page-app .mobile a {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#888c96;text-decoration:none;font-size:8px;font-weight:650}body.page-app .mobile a.active {color:var(--accent)}body.page-app .reel-grid {grid-template-columns:repeat(3,1fr)}body.page-app .group-layout {grid-template-columns:1fr}
}@media(max-width:480px) {body.page-app .page-head {padding:17px 14px 10px}body.page-app .tabs {padding:0 10px;overflow:auto}body.page-app .tab {white-space:nowrap}body.page-app .reel-grid {padding:10px;gap:6px;grid-template-columns:repeat(2,1fr)}body.page-app .group-layout {padding:10px}
}



body.page-app .reel-stats button { background: none; color: inherit; padding: 0; font: inherit; }

/* ---------- Reel-Player (TikTok-Layout: Video links, Kommentare rechts) ---------- */
body.page-app .reel-player-box { display: flex; width: min(920px, 94vw); height: min(80vh, 720px); background: #fff; border-radius: 16px; overflow: hidden; position: relative; }
body.page-app .reel-player-media { position: relative; flex: 0 0 auto; width: 46%; background: #fff; display: flex; align-items: center; justify-content: center; }
body.page-app .reel-player-video { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
body.page-app .reel-progress { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,.25); z-index: 4; }
body.page-app .reel-progress span { display: block; height: 100%; width: 0; background: #fff; }
body.page-app .reel-nav { position: absolute; right: 12px; z-index: 4; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; cursor: pointer; display: grid; place-items: center; }
body.page-app .reel-player-overlay { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 3; }
body.page-app .reel-player-side { flex: 1; min-width: 0; display: flex; flex-direction: column; }
body.page-app .reel-side-actions { display: flex; gap: 20px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
body.page-app .reel-act { display: flex; align-items: center; gap: 5px; background: none; border: 0; font: inherit; color: #2d3038; cursor: pointer; font-size: 13px; }
body.page-app .reel-act i { font-size: 20px; }
body.page-app .reel-comments-head { padding: 12px 18px 6px; font-size: 13px; font-weight: 700; }
body.page-app .reel-comments-list { flex: 1; overflow-y: auto; padding: 4px 18px; min-height: 0; scrollbar-width: none; -ms-overflow-style: none; }
body.page-app .reel-comments-list::-webkit-scrollbar { display: none; }
body.page-app .reel-comment { display: flex; gap: 9px; padding: 8px 0; }
body.page-app .rc-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
body.page-app .rc-body { font-size: 12.5px; line-height: 1.45; color: #2d3038; }
body.page-app .rc-author { font-weight: 700; color: #2d3038; text-decoration: none; }
body.page-app .rc-meta { display: flex; gap: 14px; margin-top: 3px; }
body.page-app .rc-like, body.page-app .rc-reply-btn { background: none; border: 0; font: inherit; font-size: 10.5px; color: var(--muted); cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 3px; }
body.page-app .rc-like.liked { color: var(--pink); }
body.page-app .reel-player-like.liked { color: var(--pink); }
body.page-app .reel-save-btn.saved { color: var(--accent); }
body.page-app .reel-follow-btn { background: var(--accent); color: #fff; }
body.page-app .reel-follow-btn.following { background: rgba(255,255,255,.2); color: #fff; }
body.page-app .rc-toggle-replies { background: none; border: 0; font: inherit; font-size: 10.5px; color: var(--accent); cursor: pointer; padding: 4px 0 0; font-weight: 650; }
body.page-app .reel-comment-form { display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
body.page-app .rc-reply-form { display: flex; }
@media(max-width:760px) {
    body.page-app .reel-player-box { flex-direction: column; width: 94vw; height: 88vh; }
    body.page-app .reel-player-media { width: 100%; flex: 0 0 46%; }
    body.page-app .reel-player-side { flex: 1; }
}


/* ---------- IMPRESSUM/KONTAKT (einfache, eigenständige Seiten) ---------- */
body.page-app .modal-backdrop {
    position: fixed; inset: 0; background: rgba(20,20,28,.55); z-index: 500;
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
body.page-app .modal-backdrop.hidden { display: none; }
body.page-app .modal-box {
    background: #fff; border-radius: var(--radius); max-width: 760px; width: 100%;
    max-height: 94vh; display: flex; flex-direction: column; position: relative; box-shadow: var(--shadow-lg);
    overflow: hidden;
}
body.page-app .modal-close {
    position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%;
    background: #f4f5f8; color: #4a4f59; font-size: 13px; display: grid; place-items: center; z-index: 2;
}
body.page-app .modal-scroll { overflow-y: auto; flex: 1; scrollbar-width: none; -ms-overflow-style: none; }
body.page-app .modal-scroll::-webkit-scrollbar { display: none; }
body.page-app .modal-comments { border-top: 1px solid var(--line); margin-top: 4px; padding: 0 18px 12px; }
body.page-app .modal-comment-form {
    display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line);
    background: #fff; flex: 0 0 auto;
}

body.page-app .stories { display: flex; gap: 10px; overflow-x: auto; padding: 2px 1px 4px; scrollbar-width: none; }
body.page-app .stories::-webkit-scrollbar { display: none; }
body.page-app .story { min-width: 72px; text-align: center; }
body.page-app .story a { text-decoration: none; color: inherit; }
body.page-app .story-ring { width: 54px; height: 54px; margin: 0 auto 5px; padding: 2px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--pink)); }
body.page-app .story-ring > img, body.page-app .story-ring > .story-add { width: 100%; height: 100%; border-radius: 50%; display: block; border: 2px solid white; object-fit: cover; }
body.page-app .story-add { background: white; color: var(--accent); display: grid !important; place-items: center; font-size: 22px; font-weight: 300; }
body.page-app .story-name { font-size: 10px; color: #676c77; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

body.page-app .icon svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; display: block; }
body.page-app .round svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
body.page-app .mobile svg { width: 21px; height: 21px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Benachrichtigungs-Dropdown (Glocke) ---------- */
body.page-app .notif-dropdown { position: absolute; top: 46px; right: 0; width: 390px; max-width: calc(100vw - 32px); max-height: 440px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; -ms-overflow-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.14); z-index: 500; padding: 6px; }
body.page-app .notif-dropdown::-webkit-scrollbar { display: none; }
body.page-app .notif-item .ni-text, body.page-app .notif-item { overflow-wrap: anywhere; word-break: break-word; min-width: 0; }
body.page-app .notif-dropdown .nd-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 6px; font-size: 12px; font-weight: 750; }
body.page-app .notif-dropdown .nd-head a { font-size: 10.5px; color: var(--accent); text-decoration: none; font-weight: 600; }
body.page-app .notif-item { display: flex; gap: 10px; padding: 9px 10px; border-radius: 10px; cursor: pointer; text-decoration: none; color: inherit; align-items: flex-start; }
body.page-app .notif-item:hover { background: var(--accent-soft); }
body.page-app .notif-item.unread { background: #f0f6ff; }
body.page-app .notif-item .ni-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 5px; flex: 0 0 auto; }
body.page-app .notif-item .ni-dot.read { background: transparent; }
body.page-app .notif-item .ni-text { font-size: 11.5px; line-height: 1.4; }
body.page-app .notif-item .ni-time { font-size: 10px; color: var(--muted); margin-top: 2px; }
body.page-app .notif-empty { padding: 26px 12px; text-align: center; color: var(--muted); font-size: 11.5px; }

/* ---------- Profil-Hover-Karte (Avatar/Name beim Überfahren von Nutzer-Links) ---------- */
#userHoverCard { position: fixed; z-index: 700; width: 290px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.16); padding: 14px; display: none; }
#userHoverCard.visible { display: block; }
body.page-app .hovercard-body .join { font-size: 11.5px; }

/* ---------- #Hashtags / @Erwähnungen im Beitragstext ---------- */
/* 1.1.1.311: Hashtags nicht mehr fett – einfach normale Links in Akzentfarbe. */
body.page-app .post-hashtag { color: var(--accent); font-weight: 400; text-decoration: none; }
body.page-app .post-mention { color: var(--accent); font-weight: 650; text-decoration: none; }
body.page-app .post-hashtag:hover, body.page-app .post-mention:hover { text-decoration: underline; }

/* ---------- Beitrag: 3-Punkte-Menü (Fixieren/Bearbeiten/Archiv/Papierkorb) ---------- */
body.page-app .post-menu-wrap { position: relative; }
body.page-app .post-menu { position: absolute; top: 28px; right: 0; min-width: 190px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 34px rgba(0,0,0,.14); padding: 6px; z-index: 20; display: none; }
body.page-app .post-menu.open { display: block; }
body.page-app .post-menu button { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; background: none; border: 0; padding: 9px 10px; border-radius: 8px; font-size: 12.5px; color: var(--text); cursor: pointer; }
body.page-app .post-menu button:hover { background: var(--accent-soft); }
body.page-app .post-menu button.danger { color: #b8396f; }
body.page-app .post-pinned-label { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--accent); font-weight: 650; padding: 8px 15px 0; }
body.page-app .post-edited-label { font-size: 10px; color: var(--muted); margin-left: 4px; }
body.page-app .post-edit-form { padding: 0 15px 12px; }
body.page-app .post-edit-form textarea { width: 100%; min-height: 70px; border-radius: 8px; border: 1px solid var(--line); padding: 9px 11px; box-sizing: border-box; font: inherit; font-size: 12px; resize: vertical; }
body.page-app .post-edit-actions { display: flex; gap: 8px; margin-top: 8px; }
body.page-app .post-edit-actions button { flex: 1; height: 34px; border-radius: 8px; border: 0; font-size: 12px; font-weight: 650; cursor: pointer; }

/* ---------- START/DASHBOARD – eigene Ergänzung, gleiche Tokens/Sprache wie der Rest ---------- */
body.page-app .stat-row { display: flex; gap: 22px; flex-wrap: wrap; }
body.page-app .stat-row .num { font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
body.page-app .stat-row .label { font-size: 11px; color: var(--muted); margin-top: 2px; }
body.page-app .quick-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 20px 16px; }
body.page-app .quick-actions .caction { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
body.page-app .quick-actions .caction:hover { background: #e4e0ff; }

/* ---------- ADMIN-BEREICH (Layout: Sidebar, Tabellen, Formulare) ---------- */
body.page-admin * { box-sizing:border-box; }body.page-admin { margin:0; font-family: Inter, ui-sans-serif, Arial, sans-serif; background:var(--bg); color:var(--text); }body.page-admin .shell { display:grid; grid-template-columns:220px 1fr; min-height:100vh; }body.page-admin .sidebar { background:#181a20; color:#fff; padding:20px 16px; }body.page-admin .sidebar .brand { font-weight:750; font-size:18px; margin-bottom:24px; }body.page-admin .sidebar a { display:block; color:#c7c9d1; text-decoration:none; padding:9px 10px; border-radius:8px; font-size:13.5px; margin-bottom:2px; }body.page-admin .sidebar a:hover, body.page-admin .sidebar a.active { background:#2a2c35; color:#fff; }body.page-admin .main { padding:28px 32px; }body.page-admin .card { background:#fff; border:1px solid var(--line); border-radius:12px; padding:20px; margin-bottom:20px; }body.page-admin table { width:100%; border-collapse:collapse; font-size:13.5px; }body.page-admin th, body.page-admin td { text-align:left; padding:10px 8px; border-bottom:1px solid var(--line); }body.page-admin .btn { display:inline-block; background:var(--accent); color:#fff; border:0; border-radius:8px; padding:9px 14px; font-size:13px; font-weight:650; text-decoration:none; cursor:pointer; }body.page-admin .btn.ghost { background:#f0f0f3; color:#333; }body.page-admin .btn.danger { background:#e85d5d; }body.page-admin input, body.page-admin select { width:100%; padding:9px 11px; border:1px solid #dfe1e6; border-radius:8px; font: inherit; }body.page-admin label { display:block; font-size:12px; font-weight:650; margin:12px 0 5px; }body.page-admin .status { background:#eafaf1; color:#1f8a55; padding:9px 12px; border-radius:8px; font-size:13px; margin-bottom:16px; }body.page-admin .row { display:flex; gap:10px; align-items:center; }


/* ---------- ADMIN-LOGIN ---------- */
body.page-admin-login { margin:0; min-height:100vh; display:flex; align-items:center; justify-content:center; background:#181a20; font-family:Inter, ui-sans-serif, Arial, sans-serif; }body.page-admin-login .card { background:#fff; border-radius:14px; padding:32px; width:100%; max-width:360px; }body.page-admin-login h2 { margin:0 0 18px; }body.page-admin-login label { display:block; font-size:12px; font-weight:650; margin:10px 0 5px; }body.page-admin-login input { width:100%; padding:10px 12px; border:1px solid #dfe1e6; border-radius:8px; box-sizing:border-box; font:inherit; }body.page-admin-login button { width:100%; margin-top:18px; padding:11px; border:0; border-radius:8px; background:#6c5ce7; color:#fff; font-weight:650; cursor:pointer; }body.page-admin-login .err { background:#fdeeee; color:#c0392b; padding:9px 12px; border-radius:8px; font-size:13px; margin-bottom:10px; }

/* Titelbild-Entfernen: Ja/Nein-Bestaetigung erst nach Klick auf „Entfernen“ (kein Hover mehr).
   Identisch in Gruppe und Profil (Partial partials/cover-remove). */
body.page-app .cover-remove { position:relative; display:inline-block; }
body.page-app .cover-remove-pop { position:absolute; bottom:100%; right:0; display:none; align-items:center; gap:8px; background:var(--card); border:1px solid var(--line); box-shadow:var(--shadow); border-radius:10px; padding:8px 10px; white-space:nowrap; z-index:30; }
body.page-app .cover-remove.open .cover-remove-pop { display:flex; }
body.page-app .cover-remove-q { font-size:11.5px; color:#4a4f59; font-weight:600; }
body.page-app .cover-remove-yes,
body.page-app .cover-remove-no { font-size:11px; font-weight:700; padding:5px 13px; border-radius:7px; border:0; cursor:pointer; line-height:1.2; }
body.page-app .cover-remove-yes { background:#e5484d; color:#fff; }
body.page-app .cover-remove-no { background:#f4f5f8; color:#4a4f59; }

/* ---- Citymap (Prototyp: Landkreis Osnabrück) ---- */
body.page-app .citymap-wrap { max-width:820px; margin:0 auto; padding:4px 12px; }
body.page-app .citymap-svg { width:100%; height:auto; display:block; }
body.page-app .citymap-svg .cm-region { fill:#dcdee4; stroke:#fff; stroke-width:2; vector-effect:non-scaling-stroke; cursor:pointer; transition:fill .15s, opacity .15s; }
body.page-app .citymap-svg .cm-region:hover { filter:brightness(0.92); }
body.page-app .citymap-svg .cm-region.cm-sel { stroke:var(--accent); stroke-width:2; }
body.page-app .citymap-svg .cm-label { font-size:10px; fill:#1f2330; text-anchor:middle; pointer-events:none; font-weight:600; }
body.page-app .cm-legend-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 20px 10px; flex-wrap:wrap; }
body.page-app .cm-report { font-size:11.5px; color:var(--muted); text-decoration:none; display:inline-flex; align-items:center; gap:4px; }
body.page-app .cm-report:hover { color:var(--accent); }
body.page-app .cm-legend { display:flex; align-items:center; gap:8px; font-size:10.5px; color:var(--muted); }
body.page-app .cm-legend-bar { width:120px; height:8px; border-radius:5px; background:linear-gradient(90deg,#e7e8ec,#d9d6f6,#4b3fc0); }
body.page-app .cm-detail { border-top:1px solid var(--line); padding:14px 20px 18px; }
body.page-app .cm-detail-hint { color:var(--muted); font-size:12.5px; }
body.page-app .cm-detail h3 { font-size:15px; font-weight:750; margin:0 0 8px; }
body.page-app .cm-ev { display:flex; gap:10px; padding:9px 0; border-bottom:1px solid var(--line); text-decoration:none; color:inherit; }
body.page-app .cm-ev:last-child { border-bottom:0; }
body.page-app .cm-ev-when { font-size:11px; color:var(--muted); margin-top:2px; }
body.page-app .cm-active-list { display:flex; flex-wrap:wrap; gap:8px; }
body.page-app .cm-active { display:inline-flex; align-items:center; gap:7px; border:1px solid var(--line); background:#fff; border-radius:20px; padding:6px 12px; cursor:pointer; font-size:12px; font-weight:600; color:inherit; }
body.page-app .cm-active:hover { border-color:var(--accent); }
body.page-app .cm-dot { width:8px; height:8px; border-radius:50%; background:var(--accent); }
body.page-app .cm-active-count { background:var(--accent-soft); color:var(--accent); border-radius:10px; padding:1px 7px; font-size:11px; }

/* Citymap: eigener Hover-Tooltip (ersetzt den nativen Browser-Titel) */
body.page-app .cm-tooltip { position:fixed; z-index:60; display:none; pointer-events:none; background:#1f2330; color:#fff; font-size:11.5px; font-weight:600; padding:5px 9px; border-radius:7px; white-space:nowrap; box-shadow:0 4px 14px rgba(0,0,0,.22); }
body.page-app .cm-tooltip .cm-tip-sub { font-weight:400; opacity:.85; }

/* Mobile: Logo in Topbar, Plus-Button (FAB) + Erstellen-Sheet */
.topbar-brand { display:none; }
.mobile-plus { display:none; }
body.page-app .create-sheet-backdrop { position:fixed; inset:0; background:rgba(20,20,28,.5); z-index:500; display:flex; align-items:flex-end; }
body.page-app .create-sheet-backdrop.hidden { display:none; }
body.page-app .create-sheet { background:#fff; width:100%; border-radius:16px 16px 0 0; padding:10px 12px calc(14px + env(safe-area-inset-bottom,0px)); }
body.page-app .create-sheet-title { font-size:12px; font-weight:700; color:var(--muted); padding:8px 10px 6px; }
body.page-app .create-sheet a { display:flex; align-items:center; gap:12px; padding:13px 10px; font-size:15px; font-weight:600; color:var(--text); text-decoration:none; border-radius:10px; }
body.page-app .create-sheet a:active { background:#f4f5f8; }
body.page-app .create-sheet .cs-ico { width:34px; height:34px; border-radius:10px; background:var(--accent-soft); color:var(--accent); display:grid; place-items:center; font-size:17px; }
/* 1.1.1.172: Mobile Menü-Sheet + Beitrag/Moment-Auswahl */
.mobile-menu-btn { display:none; }
body.page-app #csMain.hidden, body.page-app #csPost.hidden { display:none; }
body.page-app .create-sheet .cs-arrow { margin-left:auto; color:var(--muted); font-size:17px; }
body.page-app .create-sheet .cs-txt { display:flex; flex-direction:column; }
body.page-app .create-sheet .cs-txt small { font-size:11.5px; font-weight:500; color:var(--muted); margin-top:2px; }
body.page-app .create-sheet a.cs-back { font-size:13px; color:var(--muted); padding:10px; }
body.page-app .create-sheet { max-height:85vh; overflow-y:auto; }
body.page-app .menu-sheet-grid { display:grid; grid-template-columns:1fr 1fr; gap:2px 6px; }
body.page-app .menu-sheet-grid a { font-size:13.5px; padding:10px 8px; }
body.page-app .menu-sheet-grid .ms-badge { background:var(--accent); color:#fff; border-radius:10px; padding:1px 7px; font-size:10.5px; margin-left:auto; }
body.page-app .menu-sheet-logout { border-top:1px solid var(--line); margin-top:8px; padding-top:6px; }
body.page-app .menu-sheet-logout button { all:unset; display:flex; align-items:center; gap:10px; width:100%; box-sizing:border-box; padding:12px 10px; font-size:14px; font-weight:600; color:#e85d5d; cursor:pointer; }
@media(max-width:850px){
    body.page-app .mobile-menu-btn { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; background:none; border:0; padding:0; font-family:inherit; font-size:8px; font-weight:650; color:#888c96; cursor:pointer; }
    body.page-app .topbar-brand { display:grid; place-items:center; width:38px; height:38px; margin-right:8px; text-decoration:none; }
    body.page-app .mobile-plus { display:flex; align-items:center; justify-content:center; justify-self:center; align-self:center; background:var(--accent); color:#fff; border:0; width:48px; height:48px; border-radius:50%; margin-top:-16px; box-shadow:0 5px 16px rgba(108,92,231,.42); cursor:pointer; }
    body.page-app .mobile-plus i { font-size:25px; }
}

/* ---- Gruppen-Karussell im Feed (große Karten, 2 sichtbar, Pfeile) 1.1.1.106 ---- */
body.page-app .gk-head { display:flex; justify-content:space-between; align-items:center; }
body.page-app .gk-rail { position:relative; }
body.page-app .gk-track { display:flex; gap:12px; overflow-x:auto; scroll-snap-type:x mandatory; padding:12px 15px 16px; scroll-behavior:smooth; -ms-overflow-style:none; scrollbar-width:none; }
body.page-app .gk-track::-webkit-scrollbar { display:none; }
body.page-app .gk-track .group-card { flex:0 0 calc(50% - 6px); scroll-snap-align:start; }
body.page-app .gk-arrow { position:absolute; top:50%; transform:translateY(-50%); z-index:3; width:34px; height:34px; border-radius:50%; border:1px solid var(--line); background:#fff; box-shadow:var(--shadow); color:#4a4f59; font-size:17px; cursor:pointer; display:flex; align-items:center; justify-content:center; }
body.page-app .gk-prev { left:6px; }
body.page-app .gk-next { right:6px; }
body.page-app .gk-dismiss { border:0; cursor:pointer; }
@media(max-width:480px) {
    body.page-app .gk-track .group-card { flex:0 0 78%; }
}

/* 1.1.1.173/174: Reels – Kategorie-Leiste (eine Zeile, Pfeile, ohne Scrollbalken) */
body.page-app .reel-cats-rail { position:relative; padding:12px 15px; }
body.page-app .reel-cats { display:flex; flex-wrap:nowrap; gap:7px; overflow-x:auto; scroll-behavior:smooth; scrollbar-width:none; -ms-overflow-style:none; padding:2px 40px; }
body.page-app .reel-cats::-webkit-scrollbar { display:none; }
body.page-app .reel-cat { flex:0 0 auto; display:inline-flex; align-items:center; gap:6px; border:1px solid var(--line); background:#fff; border-radius:20px; padding:6px 12px; font-size:12px; font-weight:600; color:var(--text); text-decoration:none; white-space:nowrap; }
body.page-app .reel-cat:hover { border-color:var(--accent); }
body.page-app .reel-cat.active { background:var(--accent); border-color:var(--accent); color:#fff; }
body.page-app .reel-cat span { background:var(--accent-soft); color:var(--accent); border-radius:10px; padding:0 6px; font-size:10.5px; }
body.page-app .reel-cat.active span { background:rgba(255,255,255,.25); color:#fff; }
body.page-app .rc-arrow { position:absolute; top:50%; transform:translateY(-50%); z-index:2; width:32px; height:32px; border-radius:50%; border:1px solid var(--line); background:#fff; box-shadow:var(--shadow); color:#4a4f59; font-size:16px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:opacity .15s; }
body.page-app .rc-arrow:hover { border-color:var(--accent); color:var(--accent); }
body.page-app .rc-prev { left:12px; }
body.page-app .rc-next { right:12px; }
body.page-app .rc-arrow.off { opacity:.35; pointer-events:none; }

/* 1.1.1.173: Personen-Karussell im Feed */
body.page-app .pk-card { flex:0 0 150px; scroll-snap-align:start; border:1px solid var(--line); border-radius:12px; padding:14px 10px; text-align:center; background:#fff; position:relative; }
body.page-app .pk-card img { width:64px; height:64px; border-radius:50%; object-fit:cover; }
body.page-app .pk-name { font-weight:700; font-size:12.5px; margin-top:8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.page-app .pk-name a { color:inherit; text-decoration:none; }
body.page-app .pk-sub { font-size:10.5px; color:var(--muted); margin:2px 0 10px; min-height:14px; }
body.page-app .pk-card .join { width:100%; }
body.page-app .pk-dismiss { position:absolute; top:6px; right:6px; border:0; background:none; color:var(--muted); cursor:pointer; font-size:15px; padding:2px; }

/* 1.1.1.179: Hover-Karte – Freund + Nachricht in einer Zeile, Blockieren volle Breite */
body.page-app .hovercard-actions { display:grid; grid-template-columns:1fr auto; gap:6px; margin-top:10px; align-items:center; }
body.page-app .hovercard-actions form, body.page-app .hovercard-actions .ajax-target form { margin:0; }
body.page-app .hovercard-actions .join { width:100%; box-sizing:border-box; text-align:center; white-space:nowrap; }
body.page-app .hovercard-actions .hc-full { grid-column:1 / -1; }

/* 1.1.1.179: „Nach oben"-Button rechts unten */
.to-top-btn { position:fixed; right:22px; bottom:26px; z-index:40; width:44px; height:44px; border-radius:50%; border:1px solid var(--line); background:#fff; color:var(--accent); box-shadow:0 6px 20px rgba(0,0,0,.14); display:flex; align-items:center; justify-content:center; font-size:21px; cursor:pointer; opacity:0; pointer-events:none; transform:translateY(10px); transition:opacity .2s, transform .2s; }
.to-top-btn.show { opacity:1; pointer-events:auto; transform:none; }
.to-top-btn:hover { background:var(--accent); color:#fff; border-color:var(--accent); }
@media(max-width:850px){ .to-top-btn { right:14px; bottom:calc(76px + env(safe-area-inset-bottom,0px)); width:40px; height:40px; } }

/* 1.1.1.184: Ankündigungs-Banner (Admin → Ankündigungen) */
body.page-app .ann { display:flex; align-items:flex-start; gap:10px; padding:12px 15px; font-size:13px; line-height:1.5; border:1px solid transparent; }
body.page-app .ann > .ti { font-size:18px; flex:0 0 auto; margin-top:1px; }
body.page-app .ann-text { flex:1; white-space:pre-line; }
body.page-app .ann-text a { color:inherit; font-weight:700; text-decoration:underline; }
body.page-app .ann-close { border:0; background:none; color:inherit; opacity:.6; cursor:pointer; font-size:16px; padding:0 2px; line-height:1; }
body.page-app .ann-close:hover { opacity:1; }
body.page-app .ann-blau { background:#eaf2fe; color:#1d4e9e; border-color:#cfe0fb; }
body.page-app .ann-gruen { background:#e7f7ef; color:#1f7a53; border-color:#c8ecd9; }
body.page-app .ann-gelb { background:#fdf6e3; color:#8a6d1a; border-color:#f1e1a8; }
body.page-app .ann-rot { background:#fdeeee; color:#b3261e; border-color:#f6cfcf; }

/* 1.1.1.186: Reaktionen (Smilies) – Picker beim Überfahren / langen Drücken */
body.page-app .reaction-wrap { position:relative; display:inline-flex; }
body.page-app .reaction-main.reacted { color:var(--accent); font-weight:700; }
body.page-app .reaction-img { width:18px; height:18px; vertical-align:-4px; object-fit:contain; }
body.page-app .reaction-picker { position:fixed; left:0; top:0; z-index:1300; display:flex; gap:2px; padding:5px 7px; background:#fff; border:1px solid var(--line); border-radius:24px; box-shadow:0 8px 26px rgba(0,0,0,.18); opacity:0; pointer-events:none; transform:translateY(6px) scale(.96); transition:opacity .15s, transform .15s; white-space:nowrap; visibility:hidden; }
body.page-app .reaction-picker.measuring { display:flex; opacity:0; }
body.page-app .reaction-picker.below { transform:translateY(-6px) scale(.96); }
body.page-app .reaction-wrap.open .reaction-picker { opacity:1; pointer-events:auto; transform:none; visibility:visible; }
body.page-app .reaction-picker.below .reaction-opt::after { bottom:auto; top:calc(100% + 4px); }
body.page-app .reaction-opt { background:none; border:0; padding:3px; border-radius:50%; cursor:pointer; line-height:0; position:relative; transition:transform .12s; }
body.page-app .reaction-opt img { width:30px; height:30px; object-fit:contain; }
body.page-app .reaction-opt:hover { transform:scale(1.25) translateY(-3px); }
body.page-app .reaction-opt.active { background:var(--accent-soft); }
body.page-app .reaction-opt::after { content:attr(data-reaction-label); position:absolute; bottom:calc(100% + 4px); left:50%; transform:translateX(-50%); background:#1f2330; color:#fff; font-size:10.5px; font-weight:600; padding:3px 7px; border-radius:6px; white-space:nowrap; opacity:0; pointer-events:none; transition:opacity .12s; line-height:1.3; }
body.page-app .reaction-opt:hover::after { opacity:1; }
body.page-app .reaction-stack { display:inline-flex; }
body.page-app .reaction-stack img { width:18px; height:18px; object-fit:contain; margin-left:-4px; background:#fff; border-radius:50%; }
body.page-app .reaction-stack img:first-child { margin-left:0; }


/* Moment-Viewer: Reaktionsleiste */
.moment-react-bar { display:flex; gap:4px; }
.moment-react-bar .moment-reaction-btn { background:rgba(255,255,255,.12); border:0; border-radius:50%; width:40px; height:40px; display:grid; place-items:center; cursor:pointer; transition:transform .12s, background .12s; padding:0; }
.moment-react-bar .moment-reaction-btn img { width:28px; height:28px; object-fit:contain; }
.moment-react-bar .moment-reaction-btn:hover { transform:scale(1.15); }
.moment-react-bar .moment-reaction-btn.active { background:rgba(255,255,255,.4); }

/* 1.1.1.186–188: Kommentar-Layer – am Desktop IMMER feste Standardgröße
   1028×554 px (auch ohne Bild), Inhalt scrollt innen; Bild/Video komplett
   sichtbar (contain). Mobil wie bisher. */
body.page-app .modal-box.pd-wide { max-width:none; width:1028px; height:554px; }
@media (max-width:1060px), (max-height:590px) { body.page-app .modal-box.pd-wide { width:100%; height:auto; max-height:94vh; } }
body.page-app .pd-media { background:#fff; display:flex; align-items:center; justify-content:center; margin-top:10px; }
body.page-app .pd-media img, body.page-app .pd-media video { display:block; max-width:100%; max-height:380px; width:auto; height:auto; object-fit:contain; }

/* 1.1.1.214: Bild-Layer – Bild links, Kommentare rechts (wie Reel-Player) */
body.page-app .modal-box.pd-split-box { flex-direction: row; }
body.page-app .pd-left { position: relative; flex: 0 0 52%; background: #fff; display: flex; align-items: center; justify-content: center; min-width: 0; }
body.page-app .pd-left-media { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
body.page-app .pd-left-media img, body.page-app .pd-left-media video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
body.page-app .pd-right { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; }
body.page-app .pd-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.85); color: #181a20; display: grid; place-items: center; z-index: 3; border: 0; cursor: pointer; }
body.page-app .pd-nav.pd-prev { left: 10px; }
body.page-app .pd-nav.pd-next { right: 10px; }
body.page-app .pd-report-btn { position: absolute; top: 10px; left: 10px; z-index: 3; background: rgba(20,22,30,.62); color: #fff; border: 0; border-radius: 20px; padding: 6px 12px; font-size: 11px; cursor: pointer; display: flex; align-items: center; gap: 5px; }
body.page-app .pd-report-form { display: none; position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 4; background: #fff; border-radius: 12px; padding: 12px; box-shadow: var(--shadow-lg); }
@media (max-width:1060px), (max-height:590px) {
    body.page-app .modal-box.pd-split-box { flex-direction: column; height: 90vh; }
    body.page-app .pd-left { flex: 0 0 42vh; }
    body.page-app .pd-right { flex: 1; min-height: 0; }
}

/* 1.1.1.215: Lautstärke-Regler im Reel-Player */
/* 1.1.1.216: Ton-Knopf bleibt oben links wie früher; der Lautstärke-Regler
   erscheint als kleiner Hover-Balken rechts daneben. */
body.page-app .reel-sound-wrap { position: absolute; top: 14px; left: 12px; z-index: 4; display: flex; align-items: center; gap: 8px; }
body.page-app .reel-sound-wrap .reel-sound-btn { position: static; }
body.page-app .reel-volume { display: none; width: 90px; height: 6px; cursor: pointer; accent-color: var(--accent); background: rgba(0,0,0,.5); border-radius: 12px; padding: 6px 10px; }
body.page-app .reel-sound-wrap:hover .reel-volume { display: block; }

/* 1.1.1.189: Zuschneide-Layer (Titelbild Profil/Gruppe) */
body.page-app .cropper-backdrop { position:fixed; inset:0; z-index:2000; background:rgba(0,0,0,.6); display:flex; align-items:center; justify-content:center; padding:16px; }
body.page-app .cropper-backdrop.hidden { display:none; }
body.page-app .cropper-card { background:var(--card); border-radius:14px; padding:16px; width:min(720px, 96vw); }
body.page-app .cropper-title { font-size:13px; font-weight:700; margin-bottom:10px; }
body.page-app .cropper-stage { position:relative; background:#16171b; border-radius:10px; overflow:hidden; display:flex; align-items:center; justify-content:center; min-height:160px; touch-action:none; user-select:none; }
body.page-app .cropper-stage img { display:block; max-width:100%; max-height:58vh; pointer-events:none; }
body.page-app .cropper-frame { position:absolute; border:2px solid #fff; box-shadow:0 0 0 9999px rgba(0,0,0,.55); cursor:move; box-sizing:border-box; border-radius:4px; }
body.page-app .cropper-frame::after { content:''; position:absolute; inset:0; background:linear-gradient(rgba(255,255,255,.25),rgba(255,255,255,.25)) 33.33% 0/1px 100% no-repeat, linear-gradient(rgba(255,255,255,.25),rgba(255,255,255,.25)) 66.66% 0/1px 100% no-repeat; }
body.page-app .cropper-zoom { display:flex; align-items:center; gap:10px; margin-top:12px; color:var(--muted); font-size:16px; }
body.page-app .cropper-zoom input { flex:1; }
body.page-app .cropper-hint { font-size:11px; color:var(--muted); margin-top:6px; line-height:1.5; }
body.page-app .cropper-actions { margin-top:14px; display:flex; justify-content:flex-end; gap:8px; }

/* 1.1.1.194: Kommentare automatisch nachladen – Ladezeile statt Knopf */
body.page-app .pc-autoload { display:block; width:100%; background:none; border:0; color:var(--muted); font-size:11px; padding:12px 0 4px; cursor:pointer; }
body.page-app #groupRulesOk:disabled { opacity:.45; cursor:not-allowed; }

/* 1.1.1.197: Datei-Anhänge */
body.page-app .post-files { display:flex; flex-direction:column; gap:6px; padding:0 15px 12px; }
body.page-app .post-file { display:flex; align-items:center; gap:10px; padding:9px 12px; border:1px solid var(--line); border-radius:10px; text-decoration:none; color:var(--text); background:#fafbfc; transition:border-color .15s, background .15s; }
body.page-app .post-file:hover { border-color:var(--accent); background:var(--accent-soft); }
body.page-app .post-file > .ti:first-child { font-size:20px; color:var(--accent); flex:0 0 auto; }
body.page-app .pf-name { flex:1; min-width:0; font-size:12.5px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; display:flex; flex-direction:column; }
body.page-app .pf-name small { font-size:10.5px; font-weight:500; color:var(--muted); }
body.page-app .pf-size { font-size:11px; color:var(--muted); white-space:nowrap; }
body.page-app .pf-dl { font-size:16px; color:var(--muted); }

/* 1.1.1.201: „Heute los" im Feed */
body.page-app .today-ev { display:flex; align-items:center; gap:12px; padding:9px 0; border-top:1px solid var(--line); text-decoration:none; color:var(--text); font-size:12.5px; }
body.page-app .today-ev strong { display:block; font-weight:650; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
body.page-app .today-ev small { display:block; font-size:10.5px; color:var(--muted); }
body.page-app .today-time { background:var(--accent-soft); color:var(--accent); font-weight:800; font-size:12px; border-radius:8px; padding:5px 8px; flex:0 0 auto; }
body.page-app .today-going { font-size:10.5px; color:var(--muted); white-space:nowrap; }

/* 1.1.1.206: Ton-Knopf im Reel-Layer */
body.page-app .reel-sound-btn { position:absolute; top:14px; left:12px; z-index:4; background:rgba(0,0,0,.55); color:#fff; border:0; border-radius:20px; padding:7px 12px; font-size:12px; font-family:inherit; display:inline-flex; align-items:center; gap:6px; cursor:pointer; }
body.page-app .reel-sound-btn:hover { background:rgba(0,0,0,.75); }

/* 1.1.1.208: Knöpfe im Reel passen sich dem Bild an – helles Bild → dunkle
   Knöpfe, dunkles Bild → helle Knöpfe (Klasse .rp-light am Media-Bereich) */
body.page-app .reel-nav, body.page-app .reel-sound-btn { transition:background .3s, color .3s; }
body.page-app .reel-player-media.rp-light .reel-nav { background:rgba(20,22,30,.62); color:#fff; }
body.page-app .reel-player-media.rp-light .reel-sound-btn { background:rgba(20,22,30,.62); color:#fff; }
body.page-app .reel-player-media.rp-dark .reel-nav { background:rgba(255,255,255,.85); color:#181a20; }
body.page-app .reel-player-media.rp-dark .reel-sound-btn { background:rgba(255,255,255,.85); color:#181a20; }

/* 1.1.1.260: Momente – runde Pfeile + Kopf-Buttons (Schließen/Löschen) einheitlich,
   Farbe passt sich dem Hintergrund an (wie bei den Reels). */
body.page-app .moment-top-btn { width:34px; height:34px; border-radius:50%; border:0; background:rgba(0,0,0,.45); color:#fff; font-size:19px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .3s, color .3s; }
body.page-app .moment-top-btn .ti { font-size:16px; }
body.page-app .moment-nav { position:absolute; top:50%; transform:translateY(-50%); z-index:5; width:34px; height:34px; border:0; border-radius:50%; background:rgba(255,255,255,.18); color:#fff; cursor:pointer; display:grid; place-items:center; font-size:18px; transition:background .3s, color .3s; }
body.page-app .moment-shell.mo-light .moment-nav,
body.page-app .moment-shell.mo-light .moment-top-btn { background:rgba(20,22,30,.62); color:#fff; }
body.page-app .moment-shell.mo-dark .moment-nav,
body.page-app .moment-shell.mo-dark .moment-top-btn { background:rgba(255,255,255,.85); color:#181a20; }

/* 1.1.1.261: Marktplatz-Pagination */
body.page-app .mp-page { display:inline-flex; align-items:center; justify-content:center; min-width:32px; height:32px; padding:0 10px; border:1px solid var(--line); border-radius:9px; font-size:12.5px; color:var(--text); text-decoration:none; background:var(--card); cursor:pointer; }
body.page-app a.mp-page:hover { border-color:var(--accent); color:var(--accent); }
body.page-app .mp-page.active { background:var(--accent); border-color:var(--accent); color:#fff; font-weight:650; }
body.page-app .mp-page-dots { color:var(--muted); font-size:12.5px; padding:0 2px; }

/* 1.1.1.263: Hashtags/Erwähnungen in Reel-Beschreibungen weiß (liegen auf dem Video). */
body.page-app .reel-caption-text a { color:#fff; text-decoration:underline; }

/* 1.1.1.266: Interesse-Abfrage bei Beiträgen von Fremden */
body.page-app .post-interest { border-top:1px solid var(--line); margin-top:6px; padding:12px 15px 14px; }
body.page-app .pi-ask { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
body.page-app .pi-q { font-size:12.5px; font-weight:650; color:var(--text); }
body.page-app .pi-btns { display:flex; gap:8px; }
body.page-app .pi-btns button { display:inline-flex; align-items:center; gap:5px; font-size:11.5px; border:1px solid var(--line); background:var(--card); color:var(--text); border-radius:20px; padding:6px 12px; cursor:pointer; }
body.page-app .pi-btns .pi-yes:hover { border-color:var(--accent); color:var(--accent); }
body.page-app .pi-btns .pi-no:hover { border-color:#b8396f; color:#b8396f; }
body.page-app .pi-panel { margin-top:4px; }
body.page-app .pi-h { font-size:11px; font-weight:700; color:var(--muted); margin:10px 0 6px; text-transform:uppercase; letter-spacing:.3px; }
body.page-app .pi-reasons, body.page-app .pi-actions { display:flex; flex-direction:column; gap:4px; }
body.page-app .pi-reasons button, body.page-app .pi-actions button { display:flex; align-items:center; gap:7px; width:100%; text-align:left; background:none; border:0; border-radius:8px; padding:8px 10px; font-size:12.5px; color:var(--text); cursor:pointer; }
body.page-app .pi-reasons button:hover, body.page-app .pi-actions button:hover { background:#f4f5f8; }
body.page-app .pi-done { font-size:12.5px; color:var(--accent); font-weight:650; display:flex; align-items:center; gap:6px; }

/* 1.1.1.252: Versions-Badge – zeigt die Version auch, wenn die rechte
   Seitenleiste ausgeblendet ist (unter 1200px). Oberhalb 1200px steht die
   Version weiter in der Seitenleiste; auf Mobil (<=850px) liegt unten die
   Mobil-Navigation, daher dort ausgeblendet. */
.app-version-badge { position:fixed; right:12px; bottom:10px; z-index:60; font-size:10px; color:var(--muted); background:#fff; padding:2px 9px; border-radius:9px; box-shadow:0 1px 5px rgba(0,0,0,.08); display:none; }
@media(max-width:1200px) { .app-version-badge { display:block; } }
@media(max-width:850px) { .app-version-badge { display:none; } }

/* 1.1.1.253: Links im 3-Punkte-Menü wie die Buttons aussehen lassen
   (Marktplatz/Freunde finden – „Bearbeiten", „Als verkauft"). */
.post-menu a { display:flex; align-items:center; gap:9px; width:100%; text-align:left; text-decoration:none; padding:9px 10px; border-radius:8px; font-size:12.5px; color:var(--text); cursor:pointer; box-sizing:border-box; }
.post-menu a:hover { background:var(--accent-soft); }

/* 1.1.1.310: e/community-Textfelder auf dem Desktop doppelt so hoch.
   Mobil bleibt die normale Höhe erhalten. */
.disc-textarea { min-height: 140px; }
@media (min-width: 768px) {
    .disc-textarea { min-height: 280px; }
}

/* 1.1.1.319: Kompaktere Tab-Leiste (Einstellungen – viele Tabs). */
body.page-app .tabs-compact { gap:2px; flex-wrap:wrap; }
body.page-app .tabs-compact .tab { padding:8px 9px; font-size:10.5px; }
