/* TransFlirt: Schwarz und Pink, ueberschreibt Basis-Design aus main.css */
:root {
    --tf-pink: #ff2d95;
    --tf-pink-2: #ff5db1;
    --tf-bg: #0b0810;
    --tf-panel: #14101a;
    --tf-line: #3b2740;
    --neon-pink: #ff2d95;
    --hot-pink: #ff5db1;
    --pink: #ff2d95;
    --pink-bar: #ff2d95;
    --bg: #0b0810;
    --bg-panel: #14101a;
    --bg-card: #1b1523;
    --bg-nav: #07050b;
    --border: #3b2740;
    --gradient-pink: linear-gradient(135deg, #ff5db1 0%, #ff2d95 55%, #e0147c 100%);
}
body { background: radial-gradient(circle at 15% 0%, rgba(255,45,149,.14), transparent 40%), var(--bg); }
.logo-img { height: 46px; width: auto; display: block; }
.site-header .logo { display: inline-flex; align-items: center; }

/* ===== Landing ===== */
.tf-landing { font-family: "Segoe UI", Roboto, Arial, sans-serif; padding-bottom: 96px; }
.tf-landing #ageGate { display: none !important; }
.tf-wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
.tf-nav { background: rgba(7,5,11,.92); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid #1f1626; }
.tf-nav-row { display: flex; align-items: center; gap: 28px; padding: 12px 0; }
.tf-logo img { height: 54px; display: block; }
.tf-menu { display: flex; gap: 26px; flex: 1; }
.tf-menu a { color: #e9dbe4; text-decoration: none; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.tf-menu a:hover, .tf-menu a.active { color: var(--tf-pink-2); border-bottom-color: var(--tf-pink); }
.tf-nav-actions { display: flex; gap: 12px; }
.tf-btn { display: inline-flex; align-items: center; gap: 10px; justify-content: center; border-radius: 999px; padding: 11px 22px; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s, box-shadow .15s; font-family: inherit; }
.tf-btn:hover { transform: translateY(-1px); }
.tf-btn-pink { background: var(--tf-pink); color: #fff; box-shadow: 0 0 22px rgba(255,45,149,.45); }
.tf-btn-ghost { background: transparent; color: #fff; border-color: #6d4a72; }
.tf-btn-lg { padding: 16px 32px; font-size: 1.05rem; }

.tf-hero { position: relative; min-height: 520px; background: radial-gradient(circle at 75% 40%, rgba(255,45,149,.18), transparent 55%), #0b0810; border-bottom: 1px solid #1f1626; overflow: hidden; }
.tf-hero-pic { position: absolute; right: 0; top: 0; bottom: 0; width: min(46%, 520px); background: var(--hero) center top / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%); mask-image: linear-gradient(90deg, transparent 0, #000 38%); }
.tf-hero-inner { position: relative; padding: 70px 0 60px; }
.tf-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: #e9dbe4; margin: 0 0 18px; }
.tf-hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 5.2vw, 3.6rem); line-height: 1.08; margin: 0 0 22px; font-weight: 700; }
.tf-hero h1 span { color: var(--tf-pink-2); }
.tf-lead { max-width: 480px; font-size: 1.08rem; color: #f2e8ee; margin: 0 0 28px; }
.tf-checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.tf-checks li { position: relative; padding-left: 36px; color: #f2e8ee; }
.tf-checks li::before { content: "✓"; position: absolute; left: 0; top: -2px; width: 24px; height: 24px; border-radius: 50%; background: var(--tf-pink); color: #fff; text-align: center; line-height: 24px; font-size: .85rem; font-weight: 700; }
.tf-script { position: absolute; right: 24px; bottom: 40px; z-index: 2; text-align: right; font-family: "Brush Script MT","Segoe Script","Lucida Handwriting",cursive; font-style: italic; font-size: 1.5rem; color: var(--tf-pink-2); text-shadow: 0 0 14px rgba(255,45,149,.7); margin: 0; }

.tf-usps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 0; }
.tf-usps > div { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; }
.tf-usps .tf-ico { grid-row: span 2; font-size: 1.9rem; color: var(--tf-pink); text-shadow: 0 0 12px rgba(255,45,149,.6); text-align: center; }
.tf-usps b { font-size: .95rem; }
.tf-usps small { color: #b9a9b4; }

.tf-section { padding: 28px 0 8px; }
.tf-section h2 { font-size: 1.8rem; margin: 0 0 18px; }
.tf-section h2 span { color: var(--tf-pink); }
.tf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tf-more { color: var(--tf-pink-2); text-decoration: none; font-size: .95rem; }
.tf-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.tf-card { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; border: 1px solid var(--tf-line); background: #1b1523; }
.tf-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tf-card::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.tf-card-info { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; display: grid; }
.tf-card-info b { color: #fff; font-size: .98rem; }
.tf-card-info small { color: #e0d3dc; }
.tf-heart { position: absolute; right: 10px; top: 8px; z-index: 2; color: #fff; font-size: 1.4rem; text-shadow: 0 1px 6px #000; }
.tf-dot { position: absolute; right: 12px; bottom: 14px; z-index: 2; width: 11px; height: 11px; border-radius: 50%; background: #3be05d; box-shadow: 0 0 8px #3be05d; }

.tf-steps { display: grid; grid-template-columns: repeat(3, 1fr) 1.2fr; gap: 20px; align-items: center; }
.tf-steps > div { display: flex; gap: 14px; align-items: flex-start; }
.tf-steps em { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--tf-pink); color: #fff; font-style: normal; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 18px rgba(255,45,149,.5); }
.tf-steps b { display: block; margin-bottom: 4px; }
.tf-steps p { margin: 0; color: #b9a9b4; font-size: .92rem; }
.tf-script-sm { position: static; font-size: 1.25rem; text-align: right; }
.tf-safety { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tf-safety > div { background: var(--tf-panel); border: 1px solid var(--tf-line); border-radius: 12px; padding: 18px; }
.tf-safety p { margin: 6px 0 0; color: #b9a9b4; font-size: .92rem; }

.tf-cta { margin: 36px 0 30px; border: 1px solid #5b2a58; border-radius: 16px; padding: 38px 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
    background: linear-gradient(90deg, rgba(20,8,24,.95) 35%, rgba(20,8,24,.55)), var(--hero) right 30% / cover no-repeat; }
.tf-cta h2 { margin: 0 0 8px; font-size: 1.7rem; }
.tf-cta p { margin: 0; color: #f2e8ee; }
.tf-cta-act { text-align: center; }
.tf-cta-act small { display: block; margin-top: 10px; color: #b9a9b4; }

.tf-footer { border-top: 1px solid #1f1626; background: #0a070e; }
.tf-age { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; width: 100%; max-width: none; margin: 0; padding: 14px max(16px, calc((100% - 1180px) / 2)); display: flex; align-items: center; gap: 22px; background: #0d0912; border-top: 1px solid #2a1c2f; flex-wrap: wrap; }
.tf-18 { flex: none; width: 62px; height: 62px; border-radius: 50%; border: 3px solid var(--tf-pink); color: var(--tf-pink-2); display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; box-shadow: 0 0 14px rgba(255,45,149,.5); }
.tf-age p { margin: 0; flex: 1; min-width: 240px; font-size: .92rem; }
.tf-age small { color: #b9a9b4; }
.tf-age-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.tf-foot-links { display: flex; gap: 22px; padding: 18px 0 24px; color: #8f7f8b; font-size: .85rem; flex-wrap: wrap; }
.tf-foot-links a { color: #b9a9b4; text-decoration: none; }

@media (max-width: 900px) {
    .tf-menu { display: none; }
    .tf-nav-row { justify-content: space-between; }
    .tf-cards { grid-template-columns: repeat(3, 1fr); }
    .tf-usps { grid-template-columns: repeat(2, 1fr); }
    .tf-steps, .tf-safety { grid-template-columns: 1fr; }
    .tf-script { display: none; }
    .tf-hero-pic { width: 100%; opacity: .35; -webkit-mask-image: none; mask-image: none; }
    .tf-hero-inner > *:not(.tf-hero-pic) { position: relative; z-index: 1; }
    .tf-landing { padding-bottom: 170px; }
}
@media (max-width: 520px) {
    .tf-nav-actions .tf-btn { padding: 9px 14px; font-size: .85rem; }
    .tf-logo img { height: 42px; }
    .tf-cards { grid-template-columns: repeat(2, 1fr); }
    .tf-cta { padding: 26px 20px; }
}



/* Gesperrter Mitglieder-Bereich der Startseite */
.tf-locked { position: relative; border: 1px solid var(--tf-line); border-radius: 14px; overflow: hidden; background: var(--tf-panel); }
.tf-locked-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; padding: 12px; filter: blur(3px); opacity: .55; }
.tf-locked-cards i { display: block; aspect-ratio: 3 / 4; border-radius: 12px; background: linear-gradient(160deg, #3a1b3e, #1b1523 70%); }
.tf-locked-box { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 20px; background: rgba(11,8,16,.55); }
.tf-locked-box b { font-size: 1.35rem; }
.tf-locked-box p { margin: 0; max-width: 460px; color: #e9dbe4; }
.tf-locked-box .tf-btn { min-width: 240px; }
@media (max-width: 900px) { .tf-locked-cards { grid-template-columns: repeat(3, 1fr); } .tf-locked-cards i:nth-child(n+4) { display: none; } .tf-locked { min-height: 360px; } }

/* Kompakter Gast-Header, Schreiben-Hinweis auf Karten */
.tf-nav-row { padding: 6px 0; gap: 22px; }
.tf-logo img { height: 44px; }
.tf-nav-actions .tf-btn { padding: 8px 18px; font-size: .9rem; }
.tf-write { color: var(--tf-pink-2) !important; font-weight: 600; margin-top: 2px; }

/* Spruch auf dem Hero-Foto: dunkler Verlauf unten, gut lesbar */
.tf-hero .tf-script { right: 0; bottom: 0; width: min(46%, 520px); padding: 70px 28px 26px; text-align: center; font-size: 1.9rem; line-height: 1.25; color: #fff;
    background: linear-gradient(180deg, rgba(11,8,16,0) 0%, rgba(11,8,16,.82) 55%, rgba(11,8,16,.95) 100%);
    text-shadow: 0 0 14px rgba(255,45,149,.9), 0 2px 8px rgba(0,0,0,.9); }
@media (max-width: 900px) { .tf-hero .tf-script { display: block; position: relative; width: 100%; padding: 14px 0 0; background: none; text-align: left; font-size: 1.4rem; } }

/* ===== Hell-Modus: volle Kontraste, kein Glas ===== */
html[data-theme="light"] {
    --bg: #f5f0f5;
    --bg-panel: #ffffff;
    --bg-card: #ffffff;
    --bg-nav: #2b1633;
    --text: #1b1220;
    --text-muted: #55485b;
    --border: #c9bacd;
    --tf-line: #c9bacd;
    --pink: #c4126d;
    --pink-dark: #a80d5c;
    --neon-pink: #c4126d;
    --hot-pink: #d6197d;
    --pink-bar: #c4126d;
    --online: #0f8a3c;
}
html[data-theme="light"] body,
html.glass-ui[data-theme="light"] body { background: #f5f0f5; color: #1b1220; }
html[data-theme="light"] .site-header,
html[data-theme="light"] .section,
html[data-theme="light"] .modal,
html[data-theme="light"] .presence-overlay,
html[data-theme="light"] .presence-headbar,
html[data-theme="light"] .presence-filters,
html[data-theme="light"] .presence-scroll,
html[data-theme="light"] .presence-tile,
html[data-theme="light"] .presence-empty,
html[data-theme="light"] .quick-chat-head,
html[data-theme="light"] .site-footer,
html.glass-ui[data-theme="light"] .site-header,
html.glass-ui[data-theme="light"] .section,
html.glass-ui[data-theme="light"] .modal,
html.glass-ui[data-theme="light"] .presence-overlay,
html.glass-ui[data-theme="light"] .presence-filters,
html.glass-ui[data-theme="light"] .presence-scroll,
html.glass-ui[data-theme="light"] .presence-tile,
html.glass-ui[data-theme="light"] .presence-empty,
html.glass-ui[data-theme="light"] .quick-chat-head {
    background: #ffffff; color: #1b1220; backdrop-filter: none; -webkit-backdrop-filter: none;
    border-color: #c9bacd;
}
html[data-theme="light"] .section { box-shadow: 0 1px 3px rgba(60,20,70,.12); }
html[data-theme="light"] .presence-tile { border-bottom: 1px solid #e6dce8; }
html[data-theme="light"] .presence-tile:hover { background: #fbe6f1; }
html[data-theme="light"] .presence-tile *, html[data-theme="light"] .presence-headbar { color: #1b1220; }
html[data-theme="light"] h1, html[data-theme="light"] h2, html[data-theme="light"] h3,
html[data-theme="light"] .section-title { color: #1b1220; }
html[data-theme="light"] .text-muted, html[data-theme="light"] small { color: #55485b; }
html[data-theme="light"] .text-primary, html[data-theme="light"] a { color: #b50f66; }
html[data-theme="light"] a:hover { color: #8c0a4d; }
html[data-theme="light"] .section-rule { border-color: #c4126d; background: #c4126d; }
html[data-theme="light"] input, html[data-theme="light"] select, html[data-theme="light"] textarea,
html.glass-ui[data-theme="light"] input, html.glass-ui[data-theme="light"] select, html.glass-ui[data-theme="light"] textarea,
html.glass-ui[data-theme="light"] .header-search input, html[data-theme="light"] .login-inline, html.glass-ui[data-theme="light"] .login-inline {
    background: #ffffff; color: #1b1220; border: 1px solid #a995ae; backdrop-filter: none;
}
html[data-theme="light"] input::placeholder, html[data-theme="light"] textarea::placeholder { color: #75687b; }
html[data-theme="light"] .login-inline input { border: 0; background: transparent; }
html[data-theme="light"] .btn-ghost, html[data-theme="light"] .icon-btn, html.glass-ui[data-theme="light"] .btn-ghost, html.glass-ui[data-theme="light"] .icon-btn,
html[data-theme="light"] .user-pill {
    background: #ffffff; color: #1b1220; border: 1px solid #a995ae; backdrop-filter: none;
}
html[data-theme="light"] .btn-ghost.active, html[data-theme="light"] .btn-ghost:hover { background: #fbe6f1; border-color: #c4126d; color: #8c0a4d; }
html[data-theme="light"] .user-pill span { color: #1b1220; }
html[data-theme="light"] .btn-primary, html[data-theme="light"] .btn-reg, html[data-theme="light"] .btn-success {
    background: #c4126d; color: #ffffff; border-color: #a80d5c;
}
html[data-theme="light"] .main-nav { background: #2b1633; }
html[data-theme="light"] .main-nav a { color: #ffffff; }
html[data-theme="light"] .main-nav a:hover, html[data-theme="light"] .main-nav a.active { color: #ffd0e8; }
html[data-theme="light"] .filter-tabs a { background: #ffffff; color: #1b1220; border: 1px solid #a995ae; }
html[data-theme="light"] .filter-tabs a.active, html[data-theme="light"] .filter-tabs a:hover { background: #c4126d; color: #ffffff; border-color: #a80d5c; }
html[data-theme="light"] .data-table th { background: #efe5f0; color: #1b1220; }
html[data-theme="light"] .data-table td { color: #1b1220; border-color: #ddd0e0; }
html[data-theme="light"] .alert-success { background: #e3f5e9; color: #0b5a27; border-color: #7fcf9b; }
html[data-theme="light"] .alert-error { background: #fde7e7; color: #8a1111; border-color: #e59a9a; }
html[data-theme="light"] .community-name, html[data-theme="light"] .stat-card { color: #1b1220; }
html[data-theme="light"] .stat-card { background: #ffffff; border: 1px solid #c9bacd; }
html[data-theme="light"] .site-footer, html[data-theme="light"] .footer-links a { color: #1b1220; }
html[data-theme="light"] .cookie-banner { background: #ffffff; color: #1b1220; border-top: 2px solid #c4126d; }
.logo-light { display: none; }
html[data-theme="light"] .logo-dark { display: none; }
html[data-theme="light"] .logo-light { display: block; }
html[data-theme="light"] .livecam-head, html[data-theme="light"] .livecam-status { color: #ffffff; background: rgba(27,18,32,.88); }
html[data-theme="light"] .livecam-head .gender, html[data-theme="light"] .livecam-head .age { color: #ffd0e8; }

/* ===== Moderationscenter (Vollbild-Arbeitsplatz) ===== */
body.desk-mode:has(.mod-app) .desk-main { padding: 0; height: calc(100vh - 46px); }
.mod-app { display: grid; grid-template-columns: 330px minmax(0, 1fr) 350px; height: 100%; min-height: 0; width: 100%; background: var(--bg); }
.mod-col { display: flex; flex-direction: column; min-height: 0; min-width: 0; border-right: 1px solid var(--border); background: var(--bg-panel); }
.mod-col:last-child { border-right: 0; }
.mod-colhead { flex: none; padding: 10px 12px; border-bottom: 1px solid var(--border); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.mod-colhead h1, .mod-colhead h2 { margin: 0; font-size: 1rem; width: 100%; }
.mod-tab { padding: 5px 12px; border-radius: 99px; border: 1px solid var(--border); font-size: .82rem; text-decoration: none; color: inherit; }
.mod-tab.active { background: var(--tf-pink); color: #fff; border-color: var(--tf-pink); }
.mod-list { flex: 1; overflow-y: auto; min-height: 0; }
.mod-conv { display: flex; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; position: relative; align-items: center; }
.mod-conv img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; }
.mod-conv span { display: grid; min-width: 0; }
.mod-conv b { font-size: .9rem; }
.mod-conv b i { color: var(--text-muted); font-weight: 400; }
.mod-conv small { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mod-conv time { color: var(--text-muted); font-size: .75rem; }
.mod-conv.active, .mod-conv:hover { background: rgba(255,45,149,.14); }
.mod-conv em { position: absolute; right: 10px; top: 10px; background: var(--tf-pink); color: #fff; font-style: normal; font-size: .7rem; padding: 2px 7px; border-radius: 99px; }
.mod-thread { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--bg); }
.mod-thread-head { flex: none; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--bg-panel); display: flex; align-items: center; gap: 10px; }
.mod-thread-head img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.mod-thread-head h2 { margin: 0; font-size: 1rem; }
.mod-msgs { flex: 1; overflow-y: auto; min-height: 0; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.mod-msg { max-width: 72%; padding: 8px 12px; border-radius: 14px; background: #251c2e; align-self: flex-start; }
.mod-msg p { margin: 0; word-break: break-word; }
.mod-msg time { color: var(--text-muted); font-size: .72rem; }
.mod-msg.from-profile { align-self: flex-end; background: rgba(255,45,149,.24); }
.mod-empty { margin: auto; color: var(--text-muted); }
.mod-compose { flex: none; border-top: 1px solid var(--border); background: var(--bg-panel); padding: 8px 12px 12px; }
.mod-emojis { display: flex; gap: 2px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.mod-emojis button { flex: none; border: 0; background: transparent; font-size: 1.35rem; line-height: 1; padding: 4px 6px; border-radius: 8px; cursor: pointer; }
.mod-emojis button:hover { background: rgba(255,45,149,.18); }
.mod-reply { display: flex; gap: 10px; align-items: flex-end; }
.mod-reply textarea { flex: 1; resize: none; background: #0f0b14; color: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px; font: inherit; max-height: 160px; }
.mod-hint { color: var(--text-muted); font-size: .72rem; margin-top: 4px; }
.mod-notes { overflow-y: auto; min-height: 0; padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.mod-card { border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); padding: 10px 12px; }
.mod-card h3 { margin: 0 0 8px; font-size: .9rem; }
.mod-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; font-size: .84rem; }
.mod-card dt { color: var(--text-muted); }
.mod-card dd { margin: 0; word-break: break-word; }
.mod-card label { display: block; font-size: .76rem; color: var(--text-muted); margin: 8px 0 3px; }
.mod-card textarea, .mod-card input { width: 100%; background: #0f0b14; color: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 7px 9px; font: inherit; font-size: .85rem; }
.mod-card textarea { resize: vertical; min-height: 64px; }
.mod-save { margin-top: 8px; display: flex; gap: 10px; align-items: center; }
.mod-save span { font-size: .78rem; color: var(--text-muted); }
html[data-theme="light"] .mod-msg { background: #eee4f0; color: #1b1220; }
html[data-theme="light"] .mod-msg.from-profile { background: #fbd5e8; }
html[data-theme="light"] .mod-reply textarea, html[data-theme="light"] .mod-card textarea, html[data-theme="light"] .mod-card input { background: #fff; color: #1b1220; border-color: #a995ae; }
html[data-theme="light"] .mod-conv.active, html[data-theme="light"] .mod-conv:hover { background: #fbe6f1; }
html[data-theme="light"] .mod-conv a, html[data-theme="light"] .mod-tab { color: #1b1220; }
html[data-theme="light"] .mod-tab.active { color: #fff; }

/* ===== Modals (Anschreiben, Bezahlen) ===== */
.tf-modal { position: fixed; inset: 0; z-index: 200000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(5,3,9,.78); backdrop-filter: blur(6px); }
.tf-modal[hidden] { display: none; }
body.tf-modal-open { overflow: hidden; }
.tf-modal-box { position: relative; width: min(560px, 100%); max-height: 92vh; overflow-y: auto; border-radius: 18px; border: 1px solid var(--tf-line); background: linear-gradient(180deg, #181120, #0d0912); color: var(--text); padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.tf-modal-small { width: min(420px, 100%); text-align: center; }
.tf-modal-box h2 { margin: 4px 0 8px; font-size: 1.3rem; }
.tf-modal-x { position: absolute; top: 10px; right: 12px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
html[data-theme="light"] .tf-modal-box { background: #fff; border-color: #c9bacd; }
/* Anschreiben */
.tf-write-box { padding: 0; width: min(440px, 100%); }
.tf-write-box.loading { min-height: 320px; opacity: .6; }
.tf-write-hero { position: relative; height: min(48vh, 420px); background: #1b1523; overflow: hidden; }
.tf-write-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tf-write-profile { position: absolute; top: 12px; left: 12px; padding: 6px 14px; border-radius: 99px; background: rgba(0,0,0,.5); color: #fff !important; text-decoration: none; font-size: .8rem; font-weight: 600; border: 1px solid rgba(255,255,255,.3); }
.tf-write-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 12px; background: linear-gradient(transparent, rgba(0,0,0,.88)); color: #fff; display: grid; }
.tf-write-meta b { font-size: 1.15rem; }
.tf-write-meta span { font-size: .85rem; color: #f3e6ee; }
.tf-write-body { padding: 14px 16px 6px; }
.tf-write-bio { margin: 0 0 10px; font-size: .88rem; color: var(--text-muted); }
.tf-write-body textarea { width: 100%; resize: none; border-radius: 12px; border: 1px solid var(--tf-line); background: #0f0b14; color: #fff; padding: 11px 12px; font: inherit; }
html[data-theme="light"] .tf-write-body textarea { background: #fff; color: #1b1220; border-color: #a995ae; }
.tf-write-note { margin: 8px 0 0; font-size: .78rem; color: var(--text-muted); }
.tf-write-err { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: rgba(255,60,80,.16); color: #ffb3bd; font-size: .85rem; }
html[data-theme="light"] .tf-write-err { background: #fde7e7; color: #8a1111; }
.tf-write-ok { text-align: center; font-size: 1.15rem; color: #3be05d; padding: 28px 0; margin: 0; }
html[data-theme="light"] .tf-write-ok { color: #0b5a27; }
.tf-write-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 16px 16px; }
/* Guthaben */
.pay-balance { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; border: 1px solid #6a2a63; border-radius: 16px; padding: 18px 20px; background: linear-gradient(135deg, rgba(255,45,149,.2), rgba(255,255,255,.03) 60%, transparent); margin: 14px 0 22px; }
.pay-eyebrow { margin: 0; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.pay-amount { margin: 4px 0 0; font-size: 2.3rem; font-weight: 700; letter-spacing: -.02em; }
.pay-amount span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.pay-tiles { display: flex; gap: 10px; }
.pay-tiles > div { min-width: 120px; border: 1px solid var(--tf-line); border-radius: 12px; padding: 8px 12px; background: rgba(255,255,255,.04); display: grid; }
.pay-tiles b { font-size: 1.3rem; }
.pay-tiles small { color: var(--text-muted); font-size: .72rem; }
.pay-h2 { margin: 6px 0 12px; font-size: 1.1rem; }
.pay-packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pay-pack { position: relative; display: grid; gap: 4px; text-align: center; padding: 22px 14px 16px; border-radius: 16px; border: 1px solid var(--tf-line); background: var(--bg-card); color: var(--text); cursor: pointer; font: inherit; transition: transform .15s, border-color .15s, box-shadow .15s; }
.pay-pack:hover { transform: translateY(-3px); border-color: var(--tf-pink); box-shadow: 0 0 22px rgba(255,45,149,.3); }
.pay-pack-name { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.pay-pack-dia { font-size: 1.9rem; font-weight: 700; }
.pay-pack-hint { font-size: .78rem; color: var(--text-muted); }
.pay-pack-price { font-size: 1.15rem; font-weight: 700; margin-top: 6px; }
.pay-pack-cta { margin-top: 10px; padding: 9px 0; border-radius: 99px; background: var(--tf-pink); color: #fff; font-weight: 600; }
.pay-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); padding: 3px 12px; border-radius: 99px; background: #ffd24d; color: #1b1220; font-size: .7rem; font-weight: 700; white-space: nowrap; }
.pay-note { margin-top: 14px; font-size: .82rem; }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.pay-method { display: grid; gap: 10px; justify-items: center; padding: 18px 8px; border-radius: 14px; border: 1px solid var(--tf-line); background: rgba(255,255,255,.05); color: var(--text); cursor: pointer; font: inherit; font-size: .88rem; font-weight: 600; }
.pay-method:hover { border-color: var(--tf-pink); background: rgba(255,45,149,.12); }
.pay-logos { display: flex; gap: 6px; align-items: center; height: 34px; background: #fff; border-radius: 8px; padding: 4px 8px; }
.pay-logos img { height: 24px; width: auto; display: block; }
.pay-wip { font-size: 2.6rem; margin: 6px 0; }
.tf-modal-small .btn { margin-top: 10px; }
@media (max-width: 800px) { .pay-packs { grid-template-columns: repeat(2, 1fr); } .pay-methods { grid-template-columns: 1fr; } }

/* ===== Responsive Header: Burger-Menü rechts oben, Suche bleibt sichtbar ===== */
.nav-burger { display: none; }
@media (max-width: 900px) {
    .site-header .header-top { padding: .5rem 0 .55rem; }
    .site-header .header-row { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; position: relative; }
    .site-header .logo { order: 1; flex: 1 1 auto; min-width: 0; }
    .site-header .logo-img { height: 42px; max-width: 190px; }
    .nav-burger { order: 2; display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-card); cursor: pointer; flex: none; }
    .nav-burger span { display: block; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
    .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-burger.open span:nth-child(2) { opacity: 0; }
    .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .site-header .header-search { order: 3; flex: 1 1 100%; max-width: none; min-width: 0; width: 100%; }
    .site-header .header-search input { flex: 1; min-width: 0; font-size: 1rem; }
    .site-header .header-actions { order: 4; display: none; flex: 1 1 100%; width: 100%; margin: 0; padding: 10px; flex-direction: column; align-items: stretch; gap: .45rem; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-panel); box-shadow: 0 14px 40px rgba(0,0,0,.45); }
    .site-header .header-actions.open { display: flex; }
    .site-header .header-actions > * { width: 100%; justify-content: flex-start; text-align: left; margin: 0; }
    .site-header .header-actions .btn, .site-header .header-actions .user-pill { padding: .7rem .9rem; font-size: .95rem; }
    .site-header .header-actions .icon-btn { width: 100%; height: auto; padding: .65rem .9rem; justify-content: flex-start; }
    .site-header .header-actions .login-inline { flex-direction: column; gap: .4rem; padding: 0; border: 0; background: transparent; }
    .site-header .header-actions .login-inline input, .site-header .header-actions .login-inline button { width: 100%; min-height: 44px; }
    .site-header .header-social { display: none; }
    .main-nav .nav-list { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .main-nav .nav-list::-webkit-scrollbar { display: none; }
}
@media (max-width: 520px) {
    .site-header .container { padding-left: 14px; padding-right: 14px; }
    .section { padding: 14px; }
}
html[data-theme="light"] .nav-burger { background: #fff; border-color: #a995ae; }
html[data-theme="light"] .site-header .header-actions { background: #fff; border-color: #c9bacd; }
@media (max-width: 900px) {
    .site-header .header-actions #themeToggle::after { content: "  Hell / Dunkel"; font-size: .95rem; font-weight: 700; }
    .site-header .header-actions a.icon-btn[title="Logout"]::after { content: "  Abmelden"; font-size: .95rem; font-weight: 700; }
}

/* ===== Admin: Chatprofile ===== */
.cp-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.cp-head h2 { margin: 0; flex: 1 1 auto; }
.cp-search { display: flex; gap: 6px; }
.cp-search input { min-width: 200px; }
.cp-form { border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 18px; background: var(--bg-card); }
.cp-form[hidden] { display: none; }
.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 10px; }
.cp-block { margin-bottom: 10px; }
.cp-form input:not([type=checkbox]), .cp-form select, .cp-form textarea { width: 100%; }
.cp-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.cp-state { color: var(--text-muted); font-size: .85rem; }
.cp-check { display: flex; gap: 8px; align-items: center; font-size: .9rem; margin: 8px 0; }
.cp-av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; vertical-align: middle; }
.cp-edit-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.cp-drop { border: 2px dashed var(--border); border-radius: 12px; padding: 16px; text-align: center; display: grid; gap: 8px; justify-items: center; color: var(--text-muted); font-size: .85rem; }
.cp-drop.over { border-color: var(--tf-pink); background: rgba(255,45,149,.1); }
.cp-thumbs, .cp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 10px; }
.cp-thumb, .cp-gallery figure { position: relative; margin: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #1b1523; aspect-ratio: 3 / 4; }
.cp-thumb.is-avatar { border-color: var(--tf-pink); }
.cp-thumb img, .cp-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-badge { display: none; position: absolute; top: 6px; left: 6px; background: var(--tf-pink); color: #fff; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.cp-thumb.is-avatar .cp-badge { display: block; }
.cp-thumb > div, .cp-gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 4px; padding: 6px; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.cp-thumb button, .cp-gallery figcaption button { flex: 1; border: 0; border-radius: 6px; padding: 5px 4px; font-size: .7rem; cursor: pointer; background: rgba(255,255,255,.2); color: #fff; }
.cp-thumb button[data-a=rm], .cp-gallery figcaption .danger { flex: 0 0 auto; background: rgba(220,40,60,.8); }
.cp-gallery figcaption { opacity: 1; }
@media (max-width: 900px) { .cp-edit-grid { grid-template-columns: 1fr; } .cp-search input { min-width: 0; flex: 1; } }

/* Moderation: Handy/Tablet = eine Ansicht, Wechsel zwischen Liste, Chat und Notizen */
.mod-mbar { display: none; }
.mod-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 10px 0 4px; }
.mod-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
@media (min-width: 1001px) { .mod-app { grid-template-columns: 300px minmax(0, 1fr) 340px; } }
@media (max-width: 1000px) {
    .mod-app { grid-template-columns: 1fr; }
    .mod-app.has-conv .mod-listcol { display: none; }
    .mod-app:not(.has-conv) .mod-thread, .mod-app:not(.has-conv) .mod-side { display: none; }
    .mod-app.has-conv[data-view="chat"] .mod-side { display: none; }
    .mod-app.has-conv[data-view="notes"] .mod-thread { display: none; }
    .mod-app.has-conv[data-view="notes"] .mod-side { display: flex; }
    .mod-mbar { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--border); background: var(--bg-panel); }
    .mod-back { font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
    .mod-seg { display: flex; flex: 1; border: 1px solid var(--border); border-radius: 99px; overflow: hidden; }
    .mod-seg button { flex: 1; border: 0; padding: 7px 8px; font: inherit; font-size: .82rem; font-weight: 600; background: transparent; color: var(--text); cursor: pointer; }
    .mod-seg button.active { background: var(--tf-pink); color: #fff; }
    .mod-kbd { display: none; }
    .mod-msg { max-width: 88%; }
    body.desk-mode:has(.mod-app) .desk-main { height: calc(100dvh - 46px); }
}
@media (pointer: coarse) { .mod-kbd { display: none; } }
html[data-theme="light"] .mod-seg { border-color: #a995ae; }
html[data-theme="light"] .mod-seg button { color: #1b1220; }
html[data-theme="light"] .mod-seg button.active { color: #fff; }
.cp-actions [hidden], #cpApp [hidden] { display: none !important; }
@media (min-width: 1001px) { .mod-mbar-side { display: none !important; } }
