/* ===================================================================
   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; }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 /* 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; }body.page-auth /* ---------- RESPONSIVE ---------- */
    @media (max-width: 860px) {
        .gate { grid-template-columns: 1fr; }
        .promo { display: none; }
        .login-card .brand { display: flex; justify-content: center; }
    }@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 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 .greeting {min-width:185px}body.page-app .greeting h1 {margin:0;font-size:15px}body.page-app .greeting p {margin:2px 0 0;font-size:10px;color:var(--muted)}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:15px;padding:10px 15px 3px;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(3,1fr);gap:10px;padding:15px}body.page-app .reel {
    position:relative;aspect-ratio:9/14;border-radius:11px;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:92px 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 .greeting {min-width:0;flex:1}body.page-app .greeting p {display:none}body.page-app .search {display:none}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(2,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:7px}body.page-app .group-layout {padding:10px}
}



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


/* ---------- IMPRESSUM/KONTAKT (einfache, eigenständige Seiten) ---------- */
body.page-legal { min-height: 100vh; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, Arial, sans-serif; }
body.page-legal .legal-wrap { max-width: 640px; margin: 0 auto; padding: 50px 20px; }
body.page-legal .legal-wrap a.back { color: var(--accent); text-decoration: none; font-size: 12.5px; font-weight: 650; }
body.page-legal .legal-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; margin-top: 18px; }
body.page-legal .legal-card h1 { font-size: 22px; margin: 0 0 18px; }
body.page-legal .legal-card h2 { font-size: 14px; margin: 22px 0 6px; }
body.page-legal .legal-card p { font-size: 13px; line-height: 1.6; color: #3d4148; margin: 0 0 10px; }
body.page-legal .legal-card .placeholder { background: #fdf6e3; border: 1px dashed #e0c877; border-radius: 8px; padding: 10px 12px; font-size: 11.5px; color: #8a6d1a; margin-bottom: 16px; }

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: 640px; width: 100%;
    max-height: 90vh; 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; }
body.page-app .modal-comments { border-top: 1px solid var(--line); margin-top: 4px; }
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;
}

/* ---------- 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; }
