/* =========================================================
   TGP-Galerie – Stylesheet (Frontend + Admin)
   ========================================================= */
:root {
    /* Light theme (default) */
    --bg: #ffffff;
    --surface: #f6f7f9;
    --surface-2: #eef0f4;
    --text: #16181d;
    --muted: #6b7280;
    --accent: #e6007e;
    --accent-2: #c30068;
    --danger: #e0533d;
    --border: #e4e7ec;
    --radius: 10px;
    --header-bg: #ffffff;
    --nav-bg: #1d2027;
    --nav-text: #e9ebee;
    --shadow: 0 1px 3px rgba(0,0,0,.08);
}
/* Dark theme – explicit choice via toggle */
[data-theme="dark"] {
    --bg: #0f1115;
    --surface: #1a1d24;
    --surface-2: #232730;
    --text: #e8eaed;
    --muted: #9aa0aa;
    --accent: #ff2e88;
    --accent-2: #e6007e;
    --border: #2c313c;
    --header-bg: #1a1d24;
    --nav-bg: #15171c;
    --nav-text: #e8eaed;
    --shadow: 0 1px 3px rgba(0,0,0,.4);
}
/* Dark theme – follow system when the user made no explicit choice */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0f1115;
        --surface: #1a1d24;
        --surface-2: #232730;
        --text: #e8eaed;
        --muted: #9aa0aa;
        --accent: #ff2e88;
        --accent-2: #e6007e;
        --border: #2c313c;
        --header-bg: #1a1d24;
        --nav-bg: #15171c;
        --nav-text: #e8eaed;
        --shadow: 0 1px 3px rgba(0,0,0,.4);
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 24px 16px 64px; }

/* ---- Kopf / Fuss ---- */
.site-header {
    padding: 14px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.head-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.head-search { display: flex; }
.head-search input {
    background: var(--surface-2); border: 1px solid var(--border); border-right: none;
    color: var(--text); padding: 7px 12px; border-radius: 8px 0 0 8px; font-size: .9rem; min-width: 160px;
}
.head-search button {
    background: var(--accent); color: #fff; border: 1px solid var(--accent);
    border-radius: 0 8px 8px 0; padding: 0 12px; cursor: pointer; font-size: 1.1rem;
}
.lang-switch { display: flex; gap: 4px; }
.lang-switch a {
    color: var(--muted); font-size: .8rem; font-weight: 600; padding: 4px 7px;
    border: 1px solid var(--border); border-radius: 6px;
}
.lang-switch a:hover { color: var(--text); text-decoration: none; border-color: var(--accent); }
.lang-switch a.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Tags */
.taglist { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.tag {
    background: var(--surface); border: 1px solid var(--border); color: var(--muted);
    padding: 4px 11px; border-radius: 999px; font-size: .85rem;
}
.tag:hover { color: #fff; background: var(--accent); border-color: var(--accent); text-decoration: none; }

/* Suchformular */
.search-form { display: flex; gap: 10px; margin: 0 0 24px; max-width: 520px; }
.search-form input {
    flex: 1; background: var(--surface-2); border: 1px solid var(--border);
    color: var(--text); padding: 10px 14px; border-radius: 8px; font-size: 1rem;
}

/* Tag-Wolke */
.section-title { font-size: 1.1rem; margin: 32px 0 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cloud-section { border-top: 1px solid var(--border); margin-top: 32px; }
.tagcloud { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tagcloud .tag { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); padding: 5px 11px; border-radius: 6px; font-size: .85rem; }
.tagcloud .tag:hover { color: #fff; background: var(--accent); border-color: var(--accent); text-decoration: none; }
.taglist-label { color: var(--muted); font-size: .85rem; margin-right: 4px; }
.taglist-view { margin-top: 18px; align-items: center; }

/* Partner-Toplist */
.toplist { border-top: 1px solid var(--border); margin-top: 32px; }
.toplist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.toplist-item {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 10px; color: var(--text); text-align: center; font-size: .9rem;
}
.toplist-item:hover { border-color: var(--accent); text-decoration: none; }
.toplist-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }

/* Werbezonen */
.adzone { margin: 18px 0; text-align: center; min-height: 0; }
.adzone:empty { display: none; }
.ad-banner img { max-width: 100%; height: auto; border-radius: 6px; }

/* Sponsor / Paysite */
.sponsor { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 22px 0; padding: 12px 16px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.sponsor-label { color: var(--muted); font-size: .9rem; }
.sponsor-link { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.sponsor-link:hover { color: var(--accent); text-decoration: none; }
.sponsor-link img { height: 40px; width: auto; border-radius: 6px; }

/* Interstitial-Overlay */
.interstitial { position: fixed; inset: 0; background: rgba(0,0,0,.8); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.interstitial[hidden] { display: none; }
.interstitial-box { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 18px 18px; max-width: 720px; width: 100%; }
.interstitial-close { position: absolute; top: 6px; right: 10px; background: none; border: none; color: var(--text); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.interstitial .adzone { margin: 0; }

/* Meldung / Report */
.flash-ok {
    background: #16361f; color: #9be0ac; border: 1px solid #1f5130;
    padding: 10px 14px; border-radius: 8px; margin: 0 0 16px;
}
.report-box { margin: 0; }
.report-toggle { cursor: pointer; list-style: none; }
.report-form { max-width: 480px; margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.report-form label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.report-form select, .report-form textarea, .report-form input[type=email] {
    width: 100%; margin-top: 4px; padding: 9px 12px; background: var(--surface-2);
    color: var(--text); border: 1px solid var(--border); border-radius: 8px; font-size: .92rem; font-family: inherit;
}
.report-form .btn { align-self: flex-start; }
.report-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Admin: Auswahl-Checkbox auf Thumbnails */
.sel-check { position: absolute; top: 6px; left: 6px; z-index: 3; }
.sel-check input { width: 20px; height: 20px; cursor: pointer; }
.toolbar-buttons { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar-buttons form { margin: 0; }
label.inline { display: inline-flex; align-items: center; gap: 6px; margin-right: 16px; }
label.inline input { width: auto; margin: 0; }
.design-form select, .form-stacked select { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; }
.site-footer {
    text-align: center;
    color: var(--muted);
    padding: 28px 16px;
    border-top: 1px solid var(--border);
    font-size: .9rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin-bottom: 10px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.page-content { max-width: 760px; line-height: 1.7; }
.page-content h2 { margin-top: 1.5em; }
.page-content a { color: var(--accent); }
.page-title { margin: 8px 0 24px; font-size: 1.6rem; }

/* ---- Raster ---- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
/* Galerieseite: etwas kleinere Thumbs */
.grid.thumbs { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

.card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .12s ease, border-color .12s ease;
    color: var(--text);
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); text-decoration: none; }

.card-thumb {
    aspect-ratio: var(--thumb-ratio, 2 / 3);
    background: var(--surface-2);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.noimg, .noimg-sm { color: var(--muted); font-size: .85rem; }

.card-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.card-title { font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-count { color: var(--muted); font-size: .8rem; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.card-count .cc { display: inline-flex; align-items: center; gap: 4px; }
.card-count .ci { color: var(--accent); flex: 0 0 auto; }

/* ---- Breadcrumb / Beschreibung ---- */
.breadcrumb { color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.breadcrumb span { color: var(--text); }
.gallery-desc { color: var(--muted); margin: 0 0 20px; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }

/* ---- Einzelbild-Viewer ---- */
.viewer {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    gap: 8px;
    margin: 8px 0 16px;
}
.viewer-stage {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    max-height: 80vh;
}
.viewer-stage img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0,0,0,.5);
}
.viewer-nav {
    flex: 0 0 auto;
    font-size: 2.4rem; line-height: 1;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 54px; height: 54px;
    display: flex; align-items: center; justify-content: center;
}
.viewer-nav:hover { background: var(--accent); text-decoration: none; }
.viewer-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 9px 16px;
    font-size: .95rem;
    cursor: pointer;
    text-decoration: none;
}
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-secondary { background: transparent; }
.btn-danger { color: #fff; background: var(--danger); border-color: var(--danger); }
.btn-small { padding: 5px 10px; font-size: .8rem; }
.btn[disabled] { opacity: .5; cursor: default; }

/* ---- Pagination ---- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 28px 0 8px; }
.pg {
    min-width: 38px; text-align: center;
    padding: 7px 10px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
    color: var(--text);
}
.pg:hover { border-color: var(--accent); text-decoration: none; }
.pg.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pg.dots { border: none; background: none; }
.pagination-info { text-align: center; color: var(--muted); font-size: .85rem; }

/* ---- Age-Gate ---- */
.agegate-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 16px; }
.agegate {
    max-width: 460px; text-align: center;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px 28px;
}
.agegate h1 { margin-top: 0; }
.agegate-form { display: flex; flex-direction: column; gap: 12px; margin: 22px 0 12px; }
.agegate-note { color: var(--muted); font-size: .8rem; }

/* =========================================================
   ADMIN
   ========================================================= */
body.admin { background: #0d0f13; }
.admin-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 22px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.admin-brand { font-weight: 700; }
.admin-nav a { margin-left: 16px; color: var(--muted); }
.admin-nav a:hover { color: var(--text); }
.admin-main { max-width: 1100px; margin: 0 auto; padding: 24px 16px 64px; }
.admin-footer { text-align: center; color: var(--muted); padding: 24px; }

.login-box { max-width: 360px; margin: 8vh auto 0; background: var(--surface); padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); }
.login-box h1 { margin-top: 0; }

.msg { padding: 10px 14px; border-radius: 8px; margin: 0 0 18px; }
.msg.ok { background: #16361f; color: #9be0ac; border: 1px solid #1f5130; }
.msg.error { background: #3a1a16; color: #f0a99c; border: 1px solid #5a241d; }

label { display: block; margin-bottom: 14px; font-size: .9rem; color: var(--muted); }
input[type=text], input[type=password], textarea, input[type=file] {
    display: block; width: 100%; margin-top: 5px;
    padding: 10px 12px; background: var(--surface-2); color: var(--text);
    border: 1px solid var(--border); border-radius: 8px; font-size: .95rem;
}
textarea { resize: vertical; }

.form-inline { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.form-inline label { flex: 1; min-width: 180px; margin-bottom: 0; }
.form-stacked { max-width: 600px; }

.admin-create, .admin-upload, .admin-meta, .admin-list, .admin-images {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px 22px; margin-bottom: 22px;
}
.hint { color: var(--muted); font-size: .82rem; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { color: var(--muted); font-weight: 600; font-size: .85rem; }
.t-thumb img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.t-actions { display: flex; gap: 8px; align-items: center; }
.t-actions form { margin: 0; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 4px; font-size: .85em; }

.admin-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.acard { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.acard.is-cover { border-color: var(--accent); }
.acard-thumb { position: relative; aspect-ratio: 1/1; background: #000; }
.acard-thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 6px; left: 6px; background: var(--accent); color: #fff; font-size: .7rem; padding: 2px 7px; border-radius: 5px; }
.acard-actions { display: flex; gap: 6px; padding: 8px; }
.acard-actions form { margin: 0; flex: 1; }
.acard-actions .btn { width: 100%; }

/* ---- Sortier-Leiste (Index) ---- */
.sortbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; }
.sort-tab {
    padding: 7px 14px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border); color: var(--muted);
}
.sort-tab:hover { color: var(--text); text-decoration: none; border-color: var(--accent); }
.sort-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.site-intro { color: var(--muted); margin: -8px 0 20px; }

/* ---- Theme-Bausteine ---- */
.theme-header, .theme-footer { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.theme-header { padding-top: 16px; }
.theme-footer { padding-bottom: 8px; color: var(--muted); }

/* ---- Design-Editor ---- */
.design-form fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px; }
.design-form legend { padding: 0 8px; color: var(--accent); font-weight: 600; }
textarea.code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .85rem; line-height: 1.45; }

/* ---- Drag & Drop Bildsortierung ---- */
.order-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.order-toolbar .hint { margin: 0; flex: 1; min-width: 220px; }
.order-toolbar form { margin: 0; }
.sortable .acard { cursor: grab; }
.sortable .acard.dragging { opacity: .4; outline: 2px dashed var(--accent); }
.drag-handle { position: absolute; top: 6px; right: 8px; color: #fff; background: rgba(0,0,0,.45); border-radius: 5px; padding: 0 6px; font-size: .9rem; cursor: grab; z-index: 2; }
.pos { position: absolute; bottom: 6px; right: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: .72rem; padding: 1px 7px; border-radius: 5px; }

@media (max-width: 600px) {
    .form-inline { flex-direction: column; align-items: stretch; }
    .viewer-nav { width: 44px; height: 44px; font-size: 1.8rem; }
}

/* ---- Models ---- */
.head-nav { display: inline-flex; gap: 14px; margin-left: 18px; }
.head-nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.head-nav a:hover { color: var(--accent); }
.sortbar { display: flex; align-items: center; gap: 12px; margin: 6px 0 18px; color: var(--muted); font-size: .9rem; }
.sortbar a { color: var(--muted); text-decoration: none; padding: 3px 10px; border: 1px solid var(--border); border-radius: 999px; }
.sortbar a.active, .sortbar a:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.model-thumb { aspect-ratio: var(--thumb-ratio, 2/3); }
.model-credit { margin: 4px 0 10px; color: var(--muted); }
.model-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.model-link:hover { text-decoration: underline; }
.model-header { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 22px; flex-wrap: wrap; }
.model-avatar img { width: 160px; height: 240px; object-fit: cover; border-radius: var(--radius); }
.model-meta { flex: 1; min-width: 220px; }
.model-count { color: var(--muted); margin: 2px 0 10px; }
.model-bio { color: var(--text); max-width: 60ch; }
@media (max-width: 600px) { .model-avatar img { width: 120px; height: 180px; } }

/* =========================================================
   PHASE 1: Header, Theme-Toggle, Meta-Boxen, Share, Footer, Feedback
   ========================================================= */

/* ---- Header (zwei Reihen wie pornpics) ---- */
.site-header { display: block; padding: 0; background: var(--header-bg); border-bottom: 1px solid var(--border); }
.header-top { max-width: 1200px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; color: var(--text); font-weight: 700; }
.brand:hover { text-decoration: none; }
.logo { height: 40px; width: auto; display: block; }
.head-search { display: flex; flex: 1; max-width: 560px; min-width: 180px; }
.head-search input { flex: 1; min-width: 0; }
.header-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.theme-toggle { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: 1rem; line-height: 1; }
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle .ic-sun { display: none; }
.theme-toggle .ic-moon { display: inline; }
[data-theme="dark"] .theme-toggle .ic-sun { display: inline; }
[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .ic-sun { display: inline; }
    :root:not([data-theme="light"]) .theme-toggle .ic-moon { display: none; }
}

/* dark nav strip */
.main-nav { background: var(--nav-bg); }
.main-nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a { color: var(--nav-text); font-weight: 600; font-size: .92rem; padding: 12px 14px; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.main-nav .nav-ext { color: #ff9ccb; }

/* ---- Meta-Panel (Quelle / Model / Tags als Boxen) ---- */
.meta-panel { margin: 22px 0 14px; display: flex; flex-direction: column; gap: 10px; }
.meta-row { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.meta-label { flex: 0 0 90px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.meta-vals { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.meta-box { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); padding: 5px 11px; border-radius: 6px; font-size: .85rem; }
.meta-box:hover { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; }
.meta-box-accent { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.meta-box-accent:hover { background: var(--accent-2); }

/* ---- Action-Bar (Share + Report) ---- */
.action-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; margin: 0 0 24px; }
.action-bar details { position: relative; }
.action-bar summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
    background: var(--surface); border: 1px solid var(--border); color: var(--text);
    padding: 8px 14px; border-radius: 8px; font-size: .9rem; font-weight: 600; }
.action-bar summary::-webkit-details-marker { display: none; }
.action-bar summary:hover { border-color: var(--accent); color: var(--accent); }
.share-menu { position: absolute; z-index: 20; margin-top: 6px; background: var(--bg); border: 1px solid var(--border);
    border-radius: 10px; box-shadow: var(--shadow); padding: 8px; min-width: 180px; display: flex; flex-direction: column; gap: 2px; }
.share-link { display: block; padding: 8px 12px; border-radius: 6px; color: var(--text); background: none; border: none; text-align: left; width: 100%; font: inherit; cursor: pointer; }
.share-link:hover { background: var(--surface-2); text-decoration: none; }
.report-box .report-form { position: absolute; z-index: 20; margin-top: 6px; background: var(--bg); border: 1px solid var(--border);
    border-radius: 10px; box-shadow: var(--shadow); padding: 16px; width: min(420px, 92vw); }
.report-box[open] > summary { border-color: var(--accent); color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Verwandte Galerien ---- */
.related { margin-top: 36px; border-top: 1px solid var(--border); padding-top: 8px; }

/* ---- Footer ---- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 40px; }
.footer-cols { max-width: 1200px; margin: 0 auto; padding: 32px 16px 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; }
.footer-col h4 { margin: 0 0 12px; font-size: .9rem; color: var(--text); }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--muted); font-size: .88rem; }
.footer-links a:hover { color: var(--accent); }
.footer-col-brand .footer-brand { font-weight: 700; color: var(--text); font-size: 1.05rem; }
.footer-age { color: var(--muted); font-size: .82rem; margin-top: 8px; }
.footer-copy { max-width: 1200px; margin: 0 auto; padding: 8px 16px 28px; color: var(--muted); font-size: .8rem; }

/* ---- Feedback-Widget ---- */
.feedback-fab { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 50px; height: 50px; border-radius: 50%;
    background: var(--accent); color: #fff; border: none; font-size: 1.3rem; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.feedback-fab:hover { background: var(--accent-2); }
.feedback-modal { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; padding: 16px; }
.feedback-modal[hidden] { display: none; }
.feedback-box { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 22px; width: min(440px, 96vw); position: relative; }
.feedback-box h3 { margin: 0 0 6px; }
.feedback-close { position: absolute; top: 10px; right: 12px; background: none; border: none; color: var(--muted); font-size: 1.4rem; cursor: pointer; }
.feedback-ok { color: #1aa251; font-weight: 600; }

/* ---- Kontakt-Formular ---- */
.contact-form { max-width: 560px; }
.contact-intro { color: var(--muted); }

/* ---- Tag-Index ---- */
.tagindex .tag-count { opacity: .65; font-size: .8em; }

@media (max-width: 600px) {
    .header-top { gap: 10px; }
    .head-search { order: 3; flex-basis: 100%; max-width: none; }
    .meta-label { flex-basis: 100%; }
}

/* =========================================================
   PHASE 2: Mitgliederbereich (Auth, Like/Fav, Kommentare)
   ========================================================= */
.auth-link { color: var(--text); font-weight: 600; font-size: .9rem; }
.auth-link:hover { color: var(--accent); text-decoration: none; }

/* Auth-Seiten */
.auth-card { max-width: 400px; margin: 24px auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.auth-card h1 { margin: 0 0 18px; font-size: 1.4rem; }
.auth-form label { display: block; margin-bottom: 14px; color: var(--muted); font-size: .9rem; }
.auth-form input { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 8px; font-size: 1rem; }
.auth-form .btn { width: 100%; margin-top: 4px; }
.auth-alt { margin-top: 16px; color: var(--muted); font-size: .9rem; }
.account-greeting { color: var(--muted); margin-bottom: 18px; }

/* Member-Bar (Like/Dislike/Favorit) */
.member-bar { display: inline-flex; gap: 8px; }
.mb-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border); color: var(--text); padding: 8px 13px; border-radius: 8px; font-size: .9rem; font-weight: 600; cursor: pointer; }
.mb-btn:hover { border-color: var(--accent); }
.mb-btn .mb-ic { font-size: .95rem; line-height: 1; }
.mb-like.active { background: #1aa251; border-color: #1aa251; color: #fff; }
.mb-dislike.active { background: var(--danger); border-color: var(--danger); color: #fff; }
.mb-fav .mb-ic { color: var(--danger); }
.mb-fav.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.mb-fav.active .mb-ic { color: #fff; }

/* Kommentare */
.comments { margin-top: 32px; border-top: 1px solid var(--border); padding-top: 8px; }
.comment-form { max-width: 640px; margin-bottom: 22px; }
.comment-form textarea { width: 100%; padding: 10px 12px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: .95rem; resize: vertical; }
.comment-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.comment-note { color: #1aa251; font-weight: 600; font-size: .9rem; }
.comment-login a { font-weight: 600; }
.comment-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.comment { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
.comment-head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 4px; }
.comment-author { font-weight: 600; }
.comment-date { color: var(--muted); font-size: .78rem; }
.comment-body { white-space: pre-line; }
