/* ============================================================
   Seeker – main.css
   Design-System nach claude/style-guide.md
   Fonts lokal – kein CDN, kein externer Request
   ============================================================ */

/* ---- Lokale Fonts (@font-face) ---- */
/* Dateien liegen unter /assets/fonts/ – Konvertierung via woff2_compress auf Server */

/* DM Sans – Variable Font (opsz,wght), Regular + Italic */
@font-face {
    font-family: 'DM Sans';
    src: url('/assets/fonts/DMSans-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'DM Sans';
    src: url('/assets/fonts/DMSans-Italic.woff2') format('woff2');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* DM Serif Display – Regular + Italic */
@font-face {
    font-family: 'DM Serif Display';
    src: url('/assets/fonts/DMSerifDisplay-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'DM Serif Display';
    src: url('/assets/fonts/DMSerifDisplay-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* ---- Custom Properties ---- */
:root {
    --bg:           #0a0908;
    --bg-surface:   #111010;
    --bg-elevated:  #161412;
    --border:       #1e1c1a;
    --border-active:#3d3830;

    --amber:        #c8922a;
    --amber-dim:    #7a5518;
    --amber-bg:     #1a1208;

    --text:         #e8e0d4;
    --text-soft:    #a09688;
    --text-muted:   #6b6358;
    --white:        #f5f0ea;

    --live:         #2ecc71;
    --live-dim:     #1a5c35;
    --offline:      #4a453e;
}

/* ---- Reset / Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    min-height: 100dvh;
}

/* ---- Grain Overlay ---- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.35;
}

/* ---- Typografie ---- */
h1, h2, h3, .display {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    color: var(--white);
    line-height: 1.25;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

.display-xl {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    color: var(--white);
    line-height: 1;
}

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

/* ---- Layout ---- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-sm   { max-width: 680px; margin: 0 auto; padding: 0 2rem; }
.container-flow { max-width: 560px; margin: 0 auto; padding: 0 2rem; }

/* ---- Header ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 9, 8, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    height: 60px;
    display: flex;
    align-items: center;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.logo-text {
    font-family: 'DM Serif Display', serif;
    font-size: 1.25rem;
    color: var(--white);
    letter-spacing: 0.05em;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-nav a {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--text);
}

/* ---- Progress Bar ---- */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 1px;
    background: var(--amber);
    box-shadow: 0 0 8px rgba(200, 146, 42, 0.4);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
}

/* ---- Karten ---- */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.25rem 1.5rem;
    transition: border-color 0.2s, transform 0.15s;
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--border-active);
    transform: translateX(3px);
}

.card.active,
.card.selected {
    border-color: var(--amber-dim);
    background: var(--amber-bg);
}

.card.active::before,
.card.selected::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--amber);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--amber-dim);
    color: var(--amber);
    padding: 12px 28px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    border-color: var(--amber);
    background: var(--amber);
    color: var(--bg);
    text-decoration: none;
}

.btn-ghost {
    border-color: var(--border);
    color: var(--text-muted);
}

.btn-ghost:hover {
    border-color: var(--border-active);
    color: var(--text-soft);
    background: transparent;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.72rem;
}

/* ---- Live Badge ---- */
.badge-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--live);
    background: var(--live-dim);
    padding: 3px 8px;
    border-radius: 2px;
}

.badge-live::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--live);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

/* ---- Tags / Badges allgemein ---- */
.badge {
    display: inline-block;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 2px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

/* ---- Sections ---- */
.section {
    padding: 4rem 0;
}

.section + .section {
    border-top: 1px solid var(--border);
}

.section-header {
    margin-bottom: 2rem;
}

.section-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 0.5rem;
}

/* ---- Grid ---- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3 { grid-template-columns: 1fr; }
}

/* ---- Divider ---- */
hr, .divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

/* ---- Text-Utilities ---- */
.text-amber  { color: var(--amber); }
.text-soft   { color: var(--text-soft); }
.text-muted  { color: var(--text-muted); }
.text-live   { color: var(--live); }
.text-sm     { font-size: 0.875rem; }
.text-xs     { font-size: 0.75rem; }
.text-center { text-align: center; }

/* ---- Spacing-Utilities ---- */
.mt-xs  { margin-top: 4px; }
.mt-sm  { margin-top: 8px; }
.mt-md  { margin-top: 16px; }
.mt-lg  { margin-top: 24px; }
.mt-xl  { margin-top: 48px; }
.mt-2xl { margin-top: 80px; }

.mb-sm  { margin-bottom: 8px; }
.mb-md  { margin-bottom: 16px; }
.mb-lg  { margin-bottom: 24px; }
.mb-xl  { margin-bottom: 48px; }

/* ---- Footer ---- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: 6rem;
}

.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-soft);
}

/* ---- 18+ Badge im Footer ---- */
.badge-18 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-active);
    border-radius: 2px;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ============================================================
   Live-Dashboard – Feature #1
   ============================================================ */

/* ---- Hero-Layout ---- */
.section-hero {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.live-hero {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: center;
}

/* ---- Live-Counter ---- */
.live-counter-wrap {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2rem;
    position: relative;
}

.live-counter-wrap::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--live);
    border-radius: 4px 0 0 4px;
}

.live-number {
    line-height: 1;
    margin-top: 0.5rem;
}

.live-age {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

/* ---- Quellen-Aufschlüsselung ---- */
.live-sources {
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.live-source-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ---- Balkendiagramm (Tagesverlauf) ---- */
.chart-wrap {
    max-width: 720px;
    width: 100%;
    overflow: hidden;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    height: 80px;
    gap: 3px;
}

.chart-bar-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    height: 100%;
}

.chart-bar {
    width: 100%;
    background: var(--border-active);
    border-radius: 1px 1px 0 0;
    transition: background 0.2s;
    min-height: 2px;
}

.chart-bar-col.is-current .chart-bar {
    background: var(--text-soft);
}

.chart-bar-col.is-peak .chart-bar {
    background: var(--amber);
    box-shadow: 0 0 6px rgba(200, 146, 42, 0.3);
}

.chart-bar-col.is-current.is-peak .chart-bar {
    background: var(--amber);
}

.chart-bar-label {
    font-size: 0.55rem;
    color: var(--text-muted);
    line-height: 1;
    min-width: 14px;
    text-align: center;
}

.chart-legend {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chart-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 1px;
    flex-shrink: 0;
}

.chart-legend-dot.is-current { background: var(--text-soft); }
.chart-legend-dot.is-peak    { background: var(--amber); }

/* ---- Wochenheatmap ---- */
.heatmap-wrap {
    overflow-x: auto;
}

.heatmap {
    border-collapse: separate;
    border-spacing: 3px;
    min-width: 340px;
}

.heatmap th {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 400;
    padding: 0 4px 6px;
    text-align: center;
}

.heatmap th:first-child { width: 32px; }

.heatmap-day {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    padding-right: 8px;
    white-space: nowrap;
}

.heatmap-today .heatmap-day {
    color: var(--amber);
}

.heatmap-cell {
    width: 64px;
    height: 28px;
    border-radius: 2px;
    transition: opacity 0.2s;
    cursor: default;
}

.heatmap-cell:hover {
    outline: 1px solid var(--amber-dim);
}

.heatmap-today .heatmap-cell {
    outline: 1px solid var(--border-active);
}

/* ---- Feature-Teasers ---- */
.teaser-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.teaser-card {
    text-decoration: none;
    display: block;
}

.teaser-card h3,
.teaser-card p {
    color: var(--white);
}

.teaser-card:hover {
    text-decoration: none;
}

.teaser-arrow {
    display: block;
    color: var(--amber-dim);
    font-size: 1.1rem;
    transition: color 0.2s, transform 0.2s;
}

.teaser-card:hover .teaser-arrow {
    color: var(--amber);
    transform: translateX(4px);
}

/* ---- Section Hints (details/summary) ---- */
.section-hint {
    margin-top: 1.5rem;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
}

.section-hint summary {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    user-select: none;
}

.section-hint summary::-webkit-details-marker { display: none; }

.section-hint summary::before {
    content: '▸';
    color: var(--amber-dim);
    font-size: 0.65rem;
    transition: transform 0.2s;
}

details[open].section-hint summary::before {
    transform: rotate(90deg);
}

.section-hint p {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-soft);
    line-height: 1.65;
    max-width: 560px;
}

/* ---- Responsive Dashboard ---- */
@media (max-width: 900px) {
    .live-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .teaser-grid {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   FEATURE #2 – MATCHING-FLOW
   ══════════════════════════════════════════════════════════════════════════════ */

/* ---- Progress Bar ---- */
.match-progress-wrap {
    position: sticky;
    top: 60px;          /* unterhalb des sticky Headers */
    z-index: 90;
    height: 2px;
    background: var(--border);
}

.match-progress-bar {
    height: 100%;
    width: 0;
    background: var(--amber);
    box-shadow: 0 0 8px rgba(200, 146, 42, 0.5);
    transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Steps ---- */
.match-step {
    opacity: 1;
    transition: opacity 0.25s ease;
}

.match-step.is-leaving {
    opacity: 0;
}

.match-step.is-entering {
    animation: matchFadeIn 0.28s ease forwards;
}

@keyframes matchFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Option Buttons ---- */
.match-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.match-option {
    width: 100%;
    text-align: left;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.1rem 1.4rem;
    cursor: pointer;
    position: relative;
    transition: border-color 0.18s, background 0.18s, transform 0.18s;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.match-option:hover {
    border-color: var(--border-active);
    transform: translateX(3px);
}

.match-option.is-selected {
    border-color: var(--amber-dim);
    background: var(--amber-bg);
}

.match-option.is-selected::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    border-radius: 4px 0 0 4px;
    background: var(--amber);
}

.match-option-label {
    font-family: 'DM Serif Display', serif;
    font-size: 1.1rem;
    color: var(--white);
    display: block;
}

.match-option-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: block;
}

/* ---- Ergebnis-Karten ---- */
.match-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.match-result-card {
    display: block;
    text-decoration: none;
}

.match-result-card:hover {
    text-decoration: none;
}

.match-result-inner {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

/* Thumbnail */
.match-thumb-wrap {
    position: relative;
    flex-shrink: 0;
}

.match-thumb {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
    background: var(--bg-elevated);
}

.match-thumb--empty {
    width: 96px;
    height: 96px;
    background: var(--bg-elevated);
    border-radius: 2px;
}

/* Textbereich */
.match-result-body {
    flex: 1;
    min-width: 0;
}

.match-result-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.match-result-name {
    font-family: 'DM Serif Display', serif;
    font-size: 1.05rem;
    color: var(--white);
    font-weight: 400;
}

.match-badge {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--amber);
    border: 1px solid var(--amber-dim);
    padding: 2px 6px;
    border-radius: 2px;
}

.match-reasoning {
    color: var(--text-soft);
    line-height: 1.55;
}

/* Coins/min Anzeige in Match-Karten */
.match-coins {
    display:      inline-block;
    margin-top:   0.25rem;
    color:        var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* Coins/min Anzeige im Profil (model-sp.php) */
.profile-coins {
    display:    flex;
    flex-wrap:  wrap;
    gap:        0.5rem 1.25rem;
}
.profile-coin-item {
    font-size:  0.82rem;
    color:      var(--text-soft);
}

/* ---- Responsive Matching ---- */
@media (max-width: 480px) {
    .match-thumb,
    .match-thumb--empty {
        width: 72px;
        height: 72px;
    }
}

/* ── Profil-Seite (Sedcard) ──────────────────────────────────────────────── */

/* Hero: Thumbnail + Info nebeneinander */
.profile-hero {
    display:     flex;
    gap:         2rem;
    align-items: flex-start;
    flex-wrap:   wrap;
}

.profile-thumb-wrap {
    position:    relative;
    flex-shrink: 0;
}

.profile-thumb {
    width:         180px;
    height:        180px;
    object-fit:    cover;
    border-radius: 4px;
    display:       block;
}

.profile-thumb--empty {
    width:         180px;
    height:        180px;
    background:    var(--bg-elevated);
    border-radius: 4px;
}

.profile-hero-body {
    flex:      1;
    min-width: 0;
}

/* Provider-Label */
.provider-label {
    font-size:      0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color:          var(--amber);
    display:        block;
}

/* Badges-Zeile */
.profile-badges {
    display:     flex;
    gap:         0.75rem;
    flex-wrap:   wrap;
    align-items: center;
}

/* Meta-Infos (Ort, Sprache, Coins) */
.profile-meta {
    display:   flex;
    gap:       1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color:     var(--text-soft);
}

/* Tags */
.profile-tags {
    display:   flex;
    gap:       0.5rem;
    flex-wrap: wrap;
}

.profile-tag {
    font-size:      0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color:          var(--text-soft);
    background:     var(--bg-elevated);
    border:         1px solid var(--border);
    padding:        3px 10px;
    border-radius:  2px;
}

/* Definition List für Interessen/Charakter */
.profile-dl {
    display:               grid;
    grid-template-columns: max-content 1fr;
    gap:                   0.4rem 1.5rem;
    max-width:             560px;
}

.profile-dl dt {
    color:          var(--text-muted);
    font-size:      0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding-top:    0.15rem;
}

.profile-dl dd {
    color:     var(--text-soft);
    font-size: 0.9rem;
    margin:    0;
}

/* Körpermerkmale */
.profile-body-attrs {
    display:               grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap:                   0.75rem;
    max-width:             560px;
}

.profile-body-attr {
    background:    var(--bg-elevated);
    border:        1px solid var(--border);
    border-radius: 4px;
    padding:       0.6rem 0.8rem;
}

.profile-body-label {
    display:        block;
    font-size:      0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color:          var(--text-muted);
    margin-bottom:  0.15rem;
}

.profile-body-val {
    color:     var(--text-soft);
    font-size: 0.9rem;
}

/* Bildergalerie */
.profile-gallery {
    display:               grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap:                   0.75rem;
}

.profile-gallery-item {
    display:      block;
    aspect-ratio: 3 / 4;
    overflow:     hidden;
    border-radius: 4px;
    border:       1px solid var(--border);
    transition:   opacity 0.2s;
}

.profile-gallery-item:hover {
    opacity: 0.85;
}

/* Bonus-Box auf Profilseite */
.profile-bonus {
    border:        1px solid var(--amber-dim);
    border-radius: 6px;
    padding:       1.75rem 2rem;
    background:    rgba(200, 146, 42, 0.04);
    max-width:     640px;
}

.profile-bonus h3 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    color:       var(--white);
}

.profile-bonus-items {
    display:   flex;
    gap:       2rem;
    flex-wrap: wrap;
}

.profile-bonus-item {
    flex:      1;
    min-width: 200px;
}

/* Bonus-Box CTA: kleiner als Standard-btn, passt auf Mobile */
.profile-bonus .btn {
    font-size:      0.7rem;
    letter-spacing: 0.08em;
    padding:        10px 18px;
}

/* Ähnliche Models */
.profile-related {
    display:               grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap:                   1rem;
}

.profile-related-card {
    padding: 1rem;
}

.profile-related-inner {
    display:     flex;
    gap:         0.75rem;
    align-items: flex-start;
}

.profile-related-thumb {
    width:         72px;
    height:        72px;
    object-fit:    cover;
    border-radius: 3px;
    flex-shrink:   0;
}

.profile-related-thumb--empty {
    width:         72px;
    height:        72px;
    background:    var(--bg-elevated);
    border-radius: 3px;
    flex-shrink:   0;
}

/* ── Responsive Profil ── */
@media (max-width: 560px) {
    .profile-hero {
        flex-direction: column;
    }

    .profile-thumb,
    .profile-thumb--empty {
        width:  120px;
        height: 120px;
    }

    .profile-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Letztes ungerades Bild ausblenden – verhindert einzelne leere Zeile */
    .profile-gallery-item:last-child:nth-child(odd):not(:first-child) {
        display: none;
    }

    .profile-bonus {
        padding: 1.25rem;
    }
}

/* ── Bonus-Code ───────────────────────────────────────────────────────────── */

.bonus-code-wrap {
    display:     flex;
    align-items: center;
    gap:         1rem;
    flex-wrap:   wrap;
}

.bonus-code {
    font-family:      'Courier New', Courier, monospace;
    font-size:        1.15rem;
    font-weight:      700;
    letter-spacing:   0.08em;
    color:            var(--amber);
    background:       rgba(200, 146, 42, 0.10);
    border:           1px solid var(--amber-dim);
    border-radius:    4px;
    padding:          0.4rem 0.9rem;
    user-select:      all;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .container,
    .container-sm,
    .container-flow {
        padding: 0 1rem;
    }

    .header-nav {
        gap: 0.875rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .site-footer .container {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Sehr kleine Screens (≤430px): Nav-Items ohne Letter-Spacing damit alle 4 passen */
@media (max-width: 430px) {
    .header-nav {
        gap: 0.5rem;
    }

    .header-nav a {
        letter-spacing: 0;
        font-size: 0.72rem;
    }
}

/* ── Budget-Finder ────────────────────────────────────────────────────────── */

.budget-filter {
    display:   flex;
    flex-wrap: wrap;
    gap:       0.5rem;
}

.budget-btn {
    display:        flex;
    flex-direction: column;
    align-items:    flex-start;
    gap:            0.1rem;
    padding:        0.55rem 1rem;
    background:     var(--bg-elevated);
    border:         1px solid var(--border);
    border-radius:  6px;
    color:          var(--text-soft);
    font-family:    inherit;
    font-size:      0.85rem;
    cursor:         pointer;
    transition:     border-color 0.15s, color 0.15s;
    line-height:    1.3;
}

.budget-btn:hover {
    border-color: var(--border-active);
    color:        var(--text);
}

.budget-btn.is-active {
    border-color: var(--amber);
    color:        var(--amber);
    background:   rgba(200, 146, 42, 0.08);
}

.budget-btn-coins {
    font-weight: 600;
}

.budget-btn-eur {
    font-size:   0.75rem;
    color:       var(--text-muted);
    font-weight: 400;
}

.budget-btn.is-active .budget-btn-eur {
    color: var(--amber-dim);
}

/* Grid */
.budget-grid {
    display:               grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap:                   1rem;
}

/* Card */
.budget-card {
    display:         block;
    background:      var(--bg-surface);
    border:          1px solid var(--border);
    border-radius:   8px;
    overflow:        hidden;
    text-decoration: none;
    color:           var(--text);
    transition:      border-color 0.15s, transform 0.15s;
}

.budget-card:hover {
    border-color: var(--border-active);
    transform:    translateY(-2px);
}

/* Thumbnail */
.budget-thumb {
    position:            relative;
    width:               100%;
    aspect-ratio:        3 / 4;
    background-color:    var(--bg-elevated);
    background-size:     cover;
    background-position: top center;
}

/* Badges */
.budget-badge {
    position:      absolute;
    font-size:     0.65rem;
    font-weight:   700;
    letter-spacing:0.05em;
    padding:       0.15rem 0.4rem;
    border-radius: 3px;
    line-height:   1.4;
}

.budget-badge--toy {
    top:        0.4rem;
    right:      0.4rem;
    background: rgba(200, 146, 42, 0.85);
    color:      #000;
}

/* Info */
.budget-info {
    padding: 0.65rem 0.75rem 0.75rem;
}

.budget-name {
    font-size:   0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow:    hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.3rem;
}

.budget-price {
    display:     flex;
    align-items: baseline;
    gap:         0.4rem;
    font-size:   0.82rem;
}

.budget-price strong {
    color: var(--text);
}

.budget-eur {
    color:     var(--text-muted);
    font-size: 0.75rem;
}

.budget-voyeur {
    margin-top: 0.25rem;
    font-size:  0.72rem;
    color:      var(--text-soft);
}

.budget-eur-soft {
    color: var(--text-muted);
}

.budget-empty {
    padding: 2rem 0;
}

@media (max-width: 480px) {
    .budget-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .budget-btn {
        padding: 0.45rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* ------------------------------------------------------------
   Coreg-Modal (XloveCam-Registrierung)
   ------------------------------------------------------------ */
.coreg-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.coreg-modal[hidden] { display: none; }

.coreg-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(6px);
}

.coreg-modal__box {
    position: relative;
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem 1.75rem 1.5rem;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
}

.coreg-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.15s;
}
.coreg-modal__close:hover { color: var(--text); }

.coreg-modal__sub {
    color: var(--text-soft);
    font-size: 0.9rem;
    margin: 0.25rem 0 1.25rem;
}

.coreg-modal__alert {
    background: rgba(200, 58, 58, 0.15);
    border: 1px solid #7a1818;
    border-radius: 6px;
    padding: 0.65rem 0.9rem;
    font-size: 0.85rem;
    color: #c83a3a;
    margin-bottom: 1rem;
}

.coreg-modal__form { display: flex; flex-direction: column; gap: 1rem; }

.coreg-field { display: flex; flex-direction: column; gap: 0.3rem; }
.coreg-field label { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.03em; }
.coreg-field input {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.55rem 0.8rem;
    color: var(--text);
    font-size: 0.95rem;
    width: 100%;
    transition: border-color 0.15s;
}
.coreg-field input:focus { outline: none; border-color: var(--border-active); }
.coreg-field__hint { font-size: 0.72rem; color: var(--text-muted); min-height: 1em; }
.coreg-field__hint.ok    { color: #5c9e5c; }
.coreg-field__hint.error { color: #c83a3a; }

.coreg-pw-wrap { display: flex; gap: 0.5rem; align-items: stretch; }
.coreg-pw-wrap input { flex: 1; }
.coreg-pw-gen {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0 0.7rem;
    font-size: 1rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    flex-shrink: 0;
}
.coreg-pw-gen:hover { border-color: var(--border-active); color: var(--text); }

.coreg-modal__legal {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}
.coreg-modal__legal a { color: var(--text-muted); text-decoration: underline; }

.coreg-modal__submit { width: 100%; justify-content: center; }
.coreg-modal__submit:disabled { opacity: 0.6; cursor: not-allowed; }

.coreg-modal__login {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 1rem;
}
.coreg-modal__login a { color: var(--text-soft); }
