/* Eternity Projekt – Design "ep": gemeinsame Bento-Bausteine für alle Seiten
   (Layout-Seiten und eigenständige Seiten wie Login). Eingebunden über /design-assets/ep/css/bento.css */

@font-face { font-family: 'Montserrat'; src: url('/design-assets/ep/fonts/montserrat.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Nunito';     src: url('/design-assets/ep/fonts/nunito.woff2') format('woff2');     font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Raleway';    src: url('/design-assets/ep/fonts/raleway.woff2') format('woff2');    font-weight: 100 900; font-display: swap; }

:root {
    --bg: #06070a; --surface: #0d1017; --surface-hover: #131824;
    --border: rgba(255, 255, 255, 0.08); --border-glow: rgba(88, 101, 242, 0.4);
    --accent: #5865F2; --accent-glow: rgba(88, 101, 242, 0.25); --accent2: #b17af0;
    --text: #f0f2f8; --muted: #787d9b; --success: #19B94B; --danger: #e5484d;
}

/* ---------- Raster & Kacheln ---------- */
.bento-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.25rem; margin-top: 2rem; margin-bottom: 2rem; }
.bento-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 1.6rem;
    position: relative; overflow: hidden; transition: all .3s cubic-bezier(.2,.8,.2,1); min-width: 0;
}
.bento-card:hover { border-color: var(--border-glow); box-shadow: 0 6px 20px rgba(0,0,0,.6), 0 0 15px var(--accent-glow); transform: translateY(-3px); }
.bento-card.is-static:hover { transform: none; box-shadow: none; border-color: var(--border); }
.bento-card.is-hero { background: linear-gradient(145deg, #0d1017 0%, #121724 100%); padding: 2.2rem; }
.bento-card.is-flush { padding: 0; }
a.bento-card { color: inherit; text-decoration: none; display: block; }

.span-12 { grid-column: span 12; } .span-8 { grid-column: span 8; } .span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; } .span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; } .span-2 { grid-column: span 2; }
@media (max-width: 991px) { .span-8, .span-7, .span-6, .span-5 { grid-column: span 12; } .span-4 { grid-column: span 6; } .span-3 { grid-column: span 6; } .span-2 { grid-column: span 4; } }
@media (max-width: 575px) { .span-4, .span-3, .span-2 { grid-column: span 12; } .bento-card.is-hero { padding: 1.5rem; } }

/* ---------- Typografie ---------- */
.b-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.b-title { font-family: 'Syne', sans-serif; font-weight: 800; letter-spacing: -.03em; font-size: 2rem; line-height: 1.15; margin: 0 0 8px; }
.b-title.is-gradient { background: linear-gradient(135deg, #fff 30%, var(--accent2) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.b-h { font-family: 'Syne', sans-serif; font-weight: 800; letter-spacing: -.02em; font-size: 1.15rem; margin: 0 0 12px; }
.b-sub { color: var(--muted); font-size: .92rem; line-height: 1.6; margin: 0; }
.b-muted { color: var(--muted); }
.b-back { color: var(--muted); font-size: .85rem; text-decoration: none; display: inline-block; margin-bottom: 14px; }
.b-back:hover { color: var(--text); }
.b-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.b-link:hover { color: #6975f7; }
.b-richtext { line-height: 1.75; }
.b-richtext h1, .b-richtext h2, .b-richtext h3 { font-family: 'Syne', sans-serif; margin: 1.4em 0 .5em; }
.b-richtext a { color: var(--accent); }
.b-richtext img { max-width: 100%; height: auto; border-radius: 12px; }
.b-richtext blockquote { border-left: 3px solid var(--accent); margin: 1em 0; padding: .2em 1em; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn-neon, .btn-ghost { padding: 10px 22px; border-radius: 10px; font-weight: 600; font-size: .88rem; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; transition: all .25s cubic-bezier(.2,.8,.2,1); }
.btn-neon { background: var(--accent); color: #fff; border: none; box-shadow: 0 4px 20px var(--accent-glow); }
.btn-neon:hover { background: #6975f7; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(88,101,242,.45); }
.btn-ghost { background: rgba(255,255,255,.03); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); color: #fff; transform: translateY(-2px); }
.btn-neon:disabled, .btn-ghost:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 14px; font-size: .8rem; }

/* ---------- Formulare ---------- */
.b-field { margin-bottom: 16px; text-align: left; }
.b-field label, .b-label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.b-input, .b-field input, .b-field select, .b-field textarea {
    width: 100%; background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 10px; color: var(--text);
    padding: 11px 14px; font-size: .92rem; font-family: inherit; box-sizing: border-box; transition: border-color .2s, box-shadow .2s;
}
.b-input:focus, .b-field input:focus, .b-field select:focus, .b-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.b-field textarea { resize: vertical; }
.b-field input::placeholder, .b-field textarea::placeholder { color: rgba(196,196,196,.45); }
.b-hint { font-size: .75rem; color: var(--muted); margin-top: 6px; }

/* ---------- Hinweise (per JS ein-/ausgeblendet) ---------- */
.b-alert { display: none; border-radius: 10px; padding: 12px 16px; font-size: .88rem; margin-bottom: 16px; text-align: left; }
.b-alert.show { display: block; }
.b-alert.err  { background: rgba(229,72,77,.10);  border: 1px solid rgba(229,72,77,.3);  color: var(--danger); }
.b-alert.ok   { background: rgba(25,185,75,.10);  border: 1px solid rgba(25,185,75,.3);  color: var(--success); }
.b-alert.info { background: rgba(88,101,242,.10); border: 1px solid rgba(88,101,242,.3); color: #8d97f7; }

/* ---------- Pills, Avatare, Listen ---------- */
.b-pill { --c: var(--accent); display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.b-pill.is-plain { color: var(--muted); background: rgba(255,255,255,.05); border-color: var(--border); text-transform: none; letter-spacing: 0; font-size: .75rem; font-weight: 500; }
.b-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--accent)); flex-shrink: 0; }
.b-avatar { --s: 44px; width: var(--s); height: var(--s); border-radius: 50%; object-fit: cover; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: 'Syne', sans-serif; font-weight: 800; font-size: calc(var(--s) * .42); color: #fff; background: hsl(var(--hue, 230), 52%, 42%); }
.b-avatar.is-plain { background: rgba(255,255,255,.07); color: var(--accent); }
.b-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.b-row:last-child { border-bottom: none; }
.b-kv { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.b-kv:last-child { border-bottom: none; }
.b-kv > :first-child { color: var(--muted); font-size: .88rem; }
.b-stat { text-align: center; }
.b-stat .n { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 2rem; color: var(--accent); line-height: 1.1; }
.b-stat .l { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.b-empty { color: var(--muted); text-align: center; padding: 28px 0; }

/* ---------- Tabs (Login: .tab / Profil: .tab-btn) ---------- */
.b-tabs { display: flex; gap: 6px; padding: 5px; background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 14px; overflow-x: auto; }
.b-tabs .tab, .b-tabs .tab-btn { flex: 1; white-space: nowrap; padding: 10px 16px; border: none; border-radius: 10px; background: transparent; color: var(--muted); font-family: 'Syne', sans-serif; font-weight: 700; font-size: .85rem; cursor: pointer; transition: all .2s; }
.b-tabs .tab:hover, .b-tabs .tab-btn:hover { color: var(--text); }
.b-tabs .tab.active, .b-tabs .tab-btn.active { background: var(--accent); color: #fff; box-shadow: 0 4px 16px var(--accent-glow); }
.form-panel { display: none; } .form-panel.active { display: block; }
.tab-panel { display: none; } .tab-panel.active { display: block; }

/* ---------- Chat ---------- */
.b-chat { max-height: 55vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 2px; }
.b-msg { max-width: 78%; padding: 10px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.5; border: 1px solid var(--border); background: rgba(255,255,255,.04); white-space: pre-wrap; word-break: break-word; }
.b-msg.me { align-self: flex-end; background: rgba(88,101,242,.18); border-color: rgba(88,101,242,.35); border-bottom-right-radius: 4px; }
.b-msg.them { align-self: flex-start; border-bottom-left-radius: 4px; }
.b-msg time { display: block; font-size: .7rem; color: var(--muted); margin-top: 4px; }
.b-msg.me time { text-align: right; }

/* ---------- Eigenständige Seiten (Login, Registrierung, OAuth …) ---------- */
body.bento-standalone { margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; position: relative; }
body.bento-standalone::before { content: ''; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse 900px 600px at 55% 30%, var(--accent-glow) 0%, transparent 65%); }
body.bento-standalone * { box-sizing: border-box; }
body.bento-standalone h1, body.bento-standalone h2, body.bento-standalone h3 { font-family: 'Syne', sans-serif; font-weight: 800; letter-spacing: -.03em; }
.b-wrap { width: 100%; position: relative; animation: bFadeUp .45s ease both; }
.b-wrap .bento-grid { margin: 0; }
.b-brand { height: 42px; display: flex; justify-content: center; }
.b-brand svg { height: 100%; width: auto; display: block; filter: drop-shadow(0 0 12px var(--accent-glow)); }
.b-center { text-align: center; }
.b-icon-circle { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 2rem; }
.b-icon-circle.ok  { background: rgba(25,185,75,.12);  border: 2px solid rgba(25,185,75,.3);  color: var(--success); }
.b-icon-circle.err { background: rgba(229,72,77,.10);  border: 2px solid rgba(229,72,77,.3);  color: var(--danger); }
@keyframes bFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
