/* sg_life.css - Leben für die Startseite: Willkommens-Band, Spiele-Kacheln, Zahlen, Gründe, Bewegung */
@keyframes sgFadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes sgFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes sgShine { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes sgPulse { 0% { box-shadow: 0 0 0 0 rgba(88,101,242,.55); } 70% { box-shadow: 0 0 0 16px rgba(88,101,242,0); } 100% { box-shadow: 0 0 0 0 rgba(88,101,242,0); } }
/* Hero-Text beim Wechsel einblenden */
.hero-slide.active .hero-text { animation: sgFadeUp .9s ease both; }
.hero-text h1 { background: linear-gradient(100deg,#ffd700 20%,#fff6c2 45%,#ffd700 70%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: sgShine 7s linear infinite; filter: drop-shadow(2px 3px 6px rgba(0,0,0,.85)); }
/* Scroll-Einblenden */
.sg-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.sg-reveal.in { opacity: 1; transform: none; }
.sg-reveal[data-d="1"] { transition-delay: .12s; } .sg-reveal[data-d="2"] { transition-delay: .24s; } .sg-reveal[data-d="3"] { transition-delay: .36s; }
/* Willkommens-Band */
.life-welcome { margin-top: 40px; text-align: center; padding: 38px 28px; border: 4px solid var(--epica-blue); border-radius: 20px; box-shadow: 12px 15px 25px rgba(0,0,0,.22);
  background: radial-gradient(circle at 15% 20%, rgba(26,117,255,.14), transparent 45%), radial-gradient(circle at 85% 80%, rgba(184,134,11,.18), transparent 45%), rgba(253,246,231,.95); }
.life-welcome h2 { font-family: 'Cinzel', serif; font-size: 2rem; margin: 0 0 10px; color: var(--epica-dark-blue); border: 0; }
.life-welcome p { max-width: 720px; margin: 0 auto 22px; font-size: 1.08rem; line-height: 1.6; }
.life-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.life-btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 26px; border-radius: 30px; font-family: 'Cinzel', serif; font-weight: bold; font-size: 1rem; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .2s, box-shadow .2s, background .2s; }
.life-btn.primary { background: linear-gradient(135deg,var(--epica-blue),var(--epica-dark-blue)); color: #fff; box-shadow: 0 6px 16px rgba(26,117,255,.4); }
.life-btn.primary:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 10px 22px rgba(26,117,255,.5); }
.life-btn.ghost { background: transparent; color: var(--epica-dark-blue); border-color: var(--gold); }
.life-btn.ghost:hover { background: var(--gold); color: #fff; transform: translateY(-3px); }
/* Zahlen */
.life-stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 16px; margin-top: 30px; }
.life-stat { text-align: center; padding: 20px 10px; background: rgba(255,255,255,.7); border: 2px solid rgba(26,117,255,.35); border-radius: 16px; }
.life-stat b { display: block; font-family: 'Cinzel', serif; font-size: 2.3rem; color: var(--gold); line-height: 1.1; }
.life-stat span { font-size: .85rem; color: #555; letter-spacing: .5px; }
/* Spiele-Kacheln */
.life-title { font-family: 'Almendra', serif; color: var(--gold); font-size: 1.7rem; margin: 45px 0 16px; padding-bottom: 8px; border-bottom: 3px solid var(--gold); }
.life-games { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 22px; }
.life-game { position: relative; display: flex; flex-direction: column; padding: 26px 22px 22px; background: var(--panel); border: 3px solid var(--c, var(--epica-blue)); border-radius: 18px; text-decoration: none; color: var(--text);
  box-shadow: 8px 10px 20px rgba(0,0,0,.2); transition: transform .25s, box-shadow .25s; overflow: hidden; }
.life-game::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--c, var(--epica-blue)); }
.life-game:hover { transform: translateY(-8px) rotate(-.4deg); box-shadow: 12px 22px 32px rgba(0,0,0,.28); }
.life-game .gi { font-size: 2.8rem; color: var(--c, var(--epica-blue)); margin-bottom: 10px; animation: sgFloat 4s ease-in-out infinite; }
.life-game:nth-child(2) .gi { animation-delay: .6s; } .life-game:nth-child(3) .gi { animation-delay: 1.2s; }
.life-game h3 { font-family: 'Cinzel', serif; margin: 0 0 6px; font-size: 1.35rem; }
.life-game p { margin: 0 0 16px; line-height: 1.5; flex: 1; font-size: .95rem; }
.life-game .more { font-weight: bold; color: var(--c, var(--epica-blue)); }
.life-game .more i { transition: transform .2s; margin-left: 4px; } .life-game:hover .more i { transform: translateX(6px); }
.life-pill { position: absolute; top: 16px; right: 14px; font-size: .7rem; font-weight: bold; padding: 3px 10px; border-radius: 12px; background: var(--c, var(--epica-blue)); color: #fff; }
/* Gründe */
.life-why { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 20px; }
.life-why div { padding: 22px; background: rgba(255,255,255,.65); border-left: 5px solid var(--gold); border-radius: 12px; transition: transform .25s; }
.life-why div:hover { transform: translateX(6px); }
.life-why i { font-size: 1.8rem; color: var(--epica-blue); margin-bottom: 8px; display: block; }
.life-why strong { font-family: 'Cinzel', serif; display: block; margin-bottom: 5px; }
/* Discord-Karte (ersetzt das Widget) */
.discord-card { text-align: center; padding: 26px 18px; border-radius: 14px; background: linear-gradient(160deg,#5865F2,#3b44b0); color: #fff; }
.discord-card i.big { font-size: 3.4rem; margin-bottom: 8px; display: block; animation: sgFloat 3.5s ease-in-out infinite; }
.discord-card h3 { font-family: 'Cinzel', serif; margin: 0 0 8px; }
.discord-card p { margin: 0 0 18px; line-height: 1.5; opacity: .95; }
.discord-card a.dbtn { display: inline-flex; gap: 8px; align-items: center; background: #fff; color: #3b44b0; font-weight: bold; padding: 12px 26px; border-radius: 30px; text-decoration: none; animation: sgPulse 2.2s infinite; transition: transform .2s; }
.discord-card a.dbtn:hover { transform: scale(1.06); }
.discord-card a.dbtn.off { opacity: .6; pointer-events: none; animation: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .sg-reveal { opacity: 1; transform: none; } .hero-text h1 { -webkit-text-fill-color: #ffd700; color: #ffd700; } }
@media (max-width: 700px) { .life-welcome h2 { font-size: 1.5rem; } .life-welcome { padding: 26px 16px; } .life-stat b { font-size: 1.8rem; } }
/* ===== Handy-Optik (Touch + schmale Bildschirme) ===== */
.lang-dropdown.open .lang-content { display: block; }
@media (max-width: 700px) {
    /* Kopfleiste scrollt mit, statt mehr als ein Viertel des Bildschirms zu belegen */
    .navbar { position: relative; }
    .nav-right a, .lang-btn { padding-top: 8px; padding-bottom: 8px; }
    .nav-right { gap: 8px 18px; }
    .lang-content { right: auto; left: 50%; transform: translateX(-50%); max-height: 55vh; width: min(260px, 86vw); }
    /* Menüs unter dem Slider: Aufklappfelder über die ganze Breite statt aus dem Bild zu laufen */
    .hero-menu { position: relative; row-gap: 4px; }
    .hero-dropdown { position: static; }
    .hero-dropdown-content { left: 8px; right: 8px; transform: none; min-width: 0 !important; width: auto; top: 100%; }
    .hero-dropdown:hover .hero-dropdown-content, .hero-dropdown:focus-within .hero-dropdown-content { top: 100%; }
    .hero-dropdown-content::before, .hero-dropdown-content::after { display: none; }
    .hero-menu a, .dropdown-toggle { padding: 8px 6px; font-size: 1rem; }
    .split-arrow { padding: 10px 12px; cursor: pointer; }
    .hero-dropdown-content a { padding: 14px 16px; }
    /* Fenster (Login, Infos) passen auf den Bildschirm und scrollen */
    #authModal .modal-content { max-height: 92vh; overflow-y: auto; }
    .profile-modal { padding: 10px !important; }
    #pageModal > div { height: 90vh !important; border-width: 3px !important; border-radius: 14px !important; }
    /* Eingabefelder mindestens 16px, sonst zoomt das iPhone beim Antippen */
    input, select, textarea { font-size: 16px; }
    .site-wrapper { padding: 0 10px; margin: 16px auto; }
    .hero-frame { margin: 12px 0; }
    .panel, .content-panel { padding: 18px 14px; margin-top: 24px; }
    .life-title { font-size: 1.4rem; margin-top: 32px; }
    .life-btn { padding: 13px 20px; width: 100%; justify-content: center; box-sizing: border-box; }
    .life-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .life-game:hover { transform: none; }
    .site-footer .footer-links { flex-wrap: wrap; gap: 8px 18px; justify-content: center; }
}
/* ===== Mehr Leben (Hotfix 13) ===== */
#sg-sparks { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.site-wrapper, .site-footer { position: relative; z-index: 1; }
/* Hero: langsamer Kamerafahrt-Zoom */
@keyframes sgKen { from { transform: scale(1) translate(0,0); } to { transform: scale(1.14) translate(-2%, -1.5%); } }
.hero-slide::before { content: ""; position: absolute; inset: 0; background: inherit; background-size: cover; background-position: center; }
.hero-slide.active::before { animation: sgKen 16s ease-in-out infinite alternate; }
/* Lauftext */
.life-ticker { display: flex; align-items: center; margin-top: 22px; background: var(--epica-dark-blue); border-radius: 40px; border: 2px solid var(--gold); overflow: hidden; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.life-ticker .tk-label { flex: none; background: var(--gold); color: #fff; font-family: 'Cinzel', serif; font-weight: bold; font-size: .8rem; letter-spacing: 1px; padding: 10px 16px; }
.life-ticker .tk-wrap { overflow: hidden; flex: 1; white-space: nowrap; }
.life-ticker .tk-track { display: inline-block; padding-left: 100%; animation: sgTicker 38s linear infinite; color: #fff; }
.life-ticker:hover .tk-track { animation-play-state: paused; }
.life-ticker .tk-track span { margin-right: 60px; } .life-ticker .tk-track span::before { content: "\2726"; color: #ffd700; margin-right: 12px; }
@keyframes sgTicker { to { transform: translateX(-100%); } }
/* Schreibmaschine */
.life-type { font-family: 'Cinzel', serif; font-size: 1.25rem; color: var(--gold); min-height: 1.8em; margin: 0 0 18px; }
.life-type #sg-type::after { content: "|"; margin-left: 2px; animation: sgBlink 1s steps(1) infinite; }
@keyframes sgBlink { 50% { opacity: 0; } }
/* Spiele-Kacheln mit Bild */
.life-game { padding: 0; transform-style: preserve-3d; will-change: transform; }
.life-game::before { display: none; }
.life-game .gart { height: 150px; position: relative; overflow: hidden; border-bottom: 4px solid var(--c, var(--epica-blue)); }
.life-game .gart svg { width: 100%; height: 100%; display: block; transition: transform .6s ease; }
.life-game:hover .gart svg { transform: scale(1.08); }
.life-game .gbody { padding: 16px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.life-game .gbody h3 { display: flex; align-items: center; gap: 10px; }
.life-game .gi { font-size: 1.4rem; margin: 0; animation: sgFloat 4s ease-in-out infinite; }
.life-pill { z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.tw { animation: sgTw 2.4s ease-in-out infinite; } .tw:nth-child(2n) { animation-delay: .8s; } .tw:nth-child(3n) { animation-delay: 1.5s; }
@keyframes sgTw { 0%,100% { opacity: .25; } 50% { opacity: 1; } }
.drift { animation: sgDrift 18s linear infinite; } @keyframes sgDrift { from { transform: translateX(-60px); } to { transform: translateX(460px); } }
.flap { transform-box: fill-box; transform-origin: 50% 100%; animation: sgFlap .9s ease-in-out infinite alternate; } @keyframes sgFlap { to { transform: scaleY(.55); } }
.flame { transform-box: fill-box; transform-origin: 50% 100%; animation: sgFlame .35s ease-in-out infinite alternate; } @keyframes sgFlame { to { transform: scale(.85,1.12) rotate(3deg); } }
.spin { transform-box: fill-box; transform-origin: 50% 50%; animation: spinR 20s linear infinite; } @keyframes spinR { to { transform: rotate(360deg); } }
.bob { animation: sgFloat 3.2s ease-in-out infinite; }
/* Knöpfe glänzen */
.life-btn.primary { position: relative; overflow: hidden; }
.life-btn.primary::after { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: sgBtnShine 3.5s ease-in-out infinite; }
@keyframes sgBtnShine { 0%,60% { left: -80%; } 100% { left: 140%; } }
/* Titel mit wandernder Linie */
.life-title { border-bottom: 0; position: relative; }
.life-title::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--epica-blue), var(--gold)); background-size: 200% 100%; animation: sgShine 6s linear infinite; }
@media (max-width: 700px) { .life-game .gart { height: 120px; } .life-ticker .tk-label { padding: 10px 11px; } }
/* ===== Startseite neu geordnet: Updates oben, wackelnde Banner, Epica-Bilder (v3) ===== */
/* Banner links/rechts hängen leicht im Wind (rechts etwas langsamer und versetzt, damit es nicht gleichförmig wirkt) */
@keyframes sgSway { 0% { transform: rotate(-1.1deg) translateX(-2px); } 50% { transform: rotate(1deg) translateX(3px); } 100% { transform: rotate(-1.1deg) translateX(-2px); } }
.promo-box { transform-origin: 50% 0; animation: sgSway 6.5s ease-in-out infinite; will-change: transform; }
.promo-right .promo-box { animation-duration: 7.7s; animation-delay: -2.4s; }
.promo-box:hover { animation-play-state: paused; }
/* Updates + Seitenleiste */
.hp-top { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 26px; align-items: start; margin-top: 4px; }
.hp-top .panel { margin: 0; }
.hp-side { display: flex; flex-direction: column; gap: 26px; }
.hp-uphead { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; border-bottom: 3px solid var(--gold); margin-bottom: 14px; }
.hp-uphead h2 { border: 0; margin: 0; padding: 0 0 8px; font-size: 1.6rem; }
.hp-filter { display: flex; gap: 6px; padding-bottom: 8px; flex-wrap: wrap; }
.hp-filter button { font: bold .8rem 'Cinzel', serif; padding: 6px 12px; border-radius: 18px; border: 2px solid var(--epica-blue); background: transparent; color: var(--epica-dark-blue); cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.hp-filter button i { font-style: normal; opacity: .7; margin-left: 3px; }
.hp-filter button:hover { transform: translateY(-2px); }
.hp-filter button.on { background: var(--epica-blue); color: #fff; }
.hp-feed { display: flex; flex-direction: column; }
.hp-up { display: flex; gap: 14px; align-items: flex-start; padding: 13px 8px; border-bottom: 1px solid rgba(0,0,0,.09); border-radius: 10px; transition: background .2s, transform .2s; }
.hp-up:last-child { border-bottom: 0; }
.hp-up:hover { background: rgba(26,117,255,.07); transform: translateX(4px); }
.hp-up.is-hidden { display: none; }
.hp-date { flex: none; width: 54px; text-align: center; padding: 6px 0; border-radius: 10px; background: var(--epica-dark-blue); color: #fff; font-family: 'Cinzel', serif; line-height: 1.1; box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.hp-date b { display: block; font-size: 1.45rem; color: #ffd700; }
.hp-date span { font-size: .7rem; letter-spacing: .5px; }
.hp-upbody { flex: 1; min-width: 0; }
.hp-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 4px; }
.hp-tag { font: bold .68rem 'Cinzel', serif; padding: 2px 9px; border-radius: 10px; color: #fff; letter-spacing: .5px; }
.hp-tag.ep { background: var(--epica-blue); } .hp-tag.sgt { background: var(--gold); }
.hp-cat { font-size: .75rem; color: #666; font-weight: bold; }
.hp-new { font: bold .68rem 'Cinzel', serif; padding: 2px 8px; border-radius: 10px; background: #d93025; color: #fff; animation: sgPulseNew 1.8s ease-in-out infinite; }
@keyframes sgPulseNew { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.hp-upbody h3 { margin: 0 0 4px; font-size: 1.12rem; line-height: 1.3; }
.hp-upbody h3 a { color: var(--text); text-decoration: none; transition: color .2s; }
.hp-upbody h3 a:hover { color: var(--epica-blue); }
.hp-upbody p { margin: 0; color: #444; font-size: .92rem; line-height: 1.5; }
.hp-up.first { background: linear-gradient(120deg, rgba(26,117,255,.10), rgba(184,134,11,.12)); border: 2px solid rgba(26,117,255,.35); padding: 16px 14px; margin-bottom: 6px; }
.hp-up.first h3 { font-size: 1.4rem; font-family: 'Almendra', serif; }
.hp-upimg { flex: none; width: 92px; height: 92px; object-fit: cover; border-radius: 10px; border: 2px solid var(--epica-blue); }
.hp-up.first .hp-upimg { width: 130px; height: 100px; }
.hp-more { display: block; margin: 12px auto 0; font: bold .9rem 'Cinzel', serif; padding: 10px 24px; border-radius: 24px; border: 2px solid var(--gold); background: transparent; color: var(--epica-dark-blue); cursor: pointer; transition: background .2s, color .2s; }
.hp-more:hover { background: var(--gold); color: #fff; }
.hp-more[hidden] { display: none; }
/* Willkommen als kompakte Karte */
.hp-welcome { text-align: center; background: radial-gradient(circle at 15% 15%, rgba(26,117,255,.14), transparent 50%), radial-gradient(circle at 85% 85%, rgba(184,134,11,.18), transparent 50%), rgba(253,246,231,.95) !important; }
.hp-welcome h2 { font-family: 'Cinzel', serif; font-size: 1.35rem; border: 0; color: var(--epica-dark-blue); margin: 0 0 6px; padding: 0; }
.hp-welcome .life-type { margin: 0 0 8px; font-size: 1.1rem; }
.hp-welcome p { margin: 0 0 16px; line-height: 1.55; font-size: .95rem; }
.hp-welcome .life-cta { flex-direction: column; }
.hp-welcome .life-btn { justify-content: center; padding: 11px 18px; font-size: .95rem; }
/* Hinweis auf den Spiele-Hub (rechts neben den Updates) */
.hp-hub { position: relative; overflow: hidden; text-align: center; background: radial-gradient(circle at 15% 10%, rgba(26,117,255,.16), transparent 50%), radial-gradient(circle at 85% 90%, rgba(47,158,98,.18), transparent 50%), rgba(253,246,231,.97) !important; }
.hp-hub-new { position: absolute; z-index: 3; top: 16px; right: -36px; transform: rotate(35deg); width: 130px; padding: 4px 0; background: #d93025; color: #fff; font: bold .75rem 'Cinzel', serif; letter-spacing: 1px; box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.hp-hub-art { position: relative; height: 140px; margin: -6px -6px 12px; padding-top: 12px; border-radius: 14px; overflow: hidden; display: flex; align-items: flex-start; justify-content: center;
  background: radial-gradient(circle at 50% 120%, #ffcf5a, transparent 60%), linear-gradient(135deg, #ff8a2e, #d6336c 55%, #5b2bb5); }
.hp-hub-art::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.08) 0 16px, transparent 16px 40px); }
.hp-hub-art img { position: relative; width: 68%; max-width: 240px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.45)); animation: sgFloat 4s ease-in-out infinite; }
.hp-hub-ic { position: absolute; bottom: 10px; left: calc(50% - 82px + var(--i) * 42px); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 1.1rem; background: var(--c); border: 2px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.3); animation: sgFloat 3s ease-in-out infinite; animation-delay: calc(var(--i) * .4s); }
.hp-hub h2 { font-family: 'Cinzel', serif; font-size: 1.35rem; border: 0; color: var(--epica-dark-blue); margin: 0 0 6px; padding: 0; }
.hp-hub p { margin: 0 0 12px; line-height: 1.5; font-size: .95rem; }
.hp-hub-list { list-style: none; margin: 0 0 16px; padding: 0; text-align: left; display: grid; gap: 7px; }
.hp-hub-list li { padding: 8px 12px; background: rgba(255,255,255,.7); border-left: 4px solid var(--gold); border-radius: 8px; font-size: .92rem; }
.hp-hub-list i { width: 22px; color: var(--epica-blue); }
.hp-hub .life-cta { flex-direction: column; }
.hp-hub .life-btn { justify-content: center; padding: 12px 18px; font-size: .98rem; }
.hp-hub-dl { animation: sgPulse 2.2s infinite; }
.hp-hub-more { display: inline-block; margin-top: 12px; font-size: .85rem; font-weight: bold; color: var(--epica-dark-blue); text-decoration: none; }
.hp-hub-more:hover { color: var(--epica-blue); } .hp-hub-more i { transition: transform .2s; } .hp-hub-more:hover i { transform: translateX(4px); }
.hp-discord { padding: 14px !important; }
.hp-discord .discord-card { padding: 20px 14px; }
.hp-discord .discord-card i.big { font-size: 2.6rem; }
/* Epica-Kachel: echte Screenshots aus dem Spiel überblenden die Grafik */
.life-game .gart .gshots { position: absolute; inset: 0; z-index: 1; }
.gshots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.3s ease; }
.gshots img.on { opacity: 1; }
/* Epica-Seite: Einblicke + Das kommt noch (Inhalte aus der Epica-Datenbank) */
.epx-list { display: flex; flex-direction: column; gap: 22px; margin-top: 16px; }
.epx { display: flex; gap: 22px; align-items: center; background: #fff; border: 2px solid rgba(26,117,255,.35); border-radius: 16px; padding: 14px; box-shadow: 4px 6px 14px rgba(0,0,0,.1); }
.epx:nth-child(even) { flex-direction: row-reverse; }
.epx-fig { flex: 0 0 46%; display: block; border-radius: 12px; overflow: hidden; border: 3px solid var(--gold); line-height: 0; }
.epx-fig img { width: 100%; height: auto; display: block; transition: transform .5s ease; }
.epx-fig:hover img { transform: scale(1.05); }
.epx-txt { flex: 1; min-width: 0; }
.epx-txt h3 { font-family: 'Cinzel', serif; color: var(--epica-dark-blue); margin: 0 0 8px; font-size: 1.3rem; }
.epx-txt p { margin: 0; line-height: 1.65; }
.epx.noimg { flex-direction: column; align-items: stretch; }
.epsoon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.epsoon { background: #fff; border: 2px dashed var(--gold); border-radius: 14px; overflow: hidden; }
.epsoon img { width: 100%; height: 150px; object-fit: cover; display: block; }
.epsoon div { padding: 12px 16px 16px; }
.epsoon strong { font-family: 'Cinzel', serif; color: var(--epica-dark-blue); display: block; margin-bottom: 4px; }
.epsoon p { margin: 0; font-size: .92rem; line-height: 1.55; }
@media (max-width: 900px) { .hp-top { grid-template-columns: 1fr; } .epx, .epx:nth-child(even) { flex-direction: column; align-items: stretch; } .epx-fig { flex-basis: auto; } }
@media (max-width: 700px) { .hp-upimg, .hp-up.first .hp-upimg { display: none; } .hp-up.first h3 { font-size: 1.2rem; } .hp-date { width: 46px; } }

/* ===== Lorekeeper: Epica-Archiv ===== */
@keyframes lkFloat { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }
.lk-float { animation: lkFloat 3.6s ease-in-out infinite; }
.cat-card:nth-child(2n) .lk-float { animation-delay: -1.2s; } .cat-card:nth-child(3n) .lk-float { animation-delay: -2.4s; }
.lk-count { display: block; font-size: 1.15rem; color: var(--gold, #ffd700); margin-top: 2px; }
.lk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lk-chips a { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); color: inherit; text-decoration: none; font-size: .9rem; transition: transform .2s, background .2s; }
.lk-chips a:hover { transform: translateY(-2px); background: rgba(255,215,0,.15); }
/* Laufband "Neu im Archiv" */
.lk-mq { overflow: hidden; border-radius: 14px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.lk-mq-track { display: flex; gap: 14px; width: max-content; animation: lkMq 28s linear infinite; }
.lk-mq:hover .lk-mq-track { animation-play-state: paused; }
@keyframes lkMq { to { transform: translateX(calc(-50% - 7px)); } }
.lk-mq-card { display: flex; align-items: center; gap: 12px; min-width: 260px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: inherit; text-decoration: none; }
.lk-mq-card .lk-img { width: 52px; height: 52px; flex: none; }
.lk-mq-card strong { display: block; } .lk-mq-card small { opacity: .75; }
/* Liste */
.lk-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.lk-tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid #d0c8b0; text-decoration: none; color: inherit; background: rgba(255,255,255,.55); }
.lk-tabs a.on, .lk-tabs a:hover { background: #3b2a14; color: #ffd700; border-color: #3b2a14; }
.lk-tabs em { font-style: normal; opacity: .7; font-size: .85em; margin-left: 4px; }
.lk-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.lk-bar input[type=search], .lk-bar select { padding: 8px 10px; border-radius: 8px; border: 1px solid #c9bfa3; max-width: 100%; }
.lk-bar input[type=search] { flex: 1 1 180px; }
.lk-theme { margin-left: auto; display: inline-flex; border: 1px solid #c9bfa3; border-radius: 999px; overflow: hidden; }
.lk-theme a { padding: 7px 12px; text-decoration: none; color: inherit; } .lk-theme a.on { background: #3b2a14; color: #ffd700; }
.lk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.lk-card { --rc: #b8a47a; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.7); border: 2px solid var(--rc); color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.lk-card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.lk-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 10px; background: rgba(0,0,0,.08); overflow: hidden; font-size: 2rem; opacity: .95; }
.lk-img img { width: 100%; height: 100%; object-fit: contain; }
.lk-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.lk-tags b { font-weight: 600; font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.12); }
.lk-pages { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 22px 0; }
.lk-pages a, .lk-pages span { padding: 6px 12px; border-radius: 8px; border: 1px solid #c9bfa3; text-decoration: none; color: inherit; }
.lk-pages a.on { background: #3b2a14; color: #ffd700; }
.lk-empty { padding: 30px; text-align: center; opacity: .8; }
/* Detail */
.lk-detail { --rc: #b8a47a; display: grid; grid-template-columns: minmax(180px, 320px) 1fr; gap: 24px; padding: 20px; border-radius: 16px; background: rgba(255,255,255,.75); border: 2px solid var(--rc); }
.lk-dimg { display: flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(0,0,0,.08); min-height: 200px; font-size: 4rem; }
.lk-dimg img { max-width: 100%; max-height: 360px; object-fit: contain; animation: lkFloat 4s ease-in-out infinite; }
.lk-lore { line-height: 1.6; font-style: italic; margin: 12px 0; }
.lk-stats { width: 100%; border-collapse: collapse; margin-top: 8px; }
.lk-stats th, .lk-stats td { text-align: left; padding: 6px 8px; border-bottom: 1px solid rgba(0,0,0,.12); }
.lk-stats th { width: 42%; font-weight: 600; opacity: .8; }
.lk-theme-hint { margin-top: 14px; }
@media (max-width: 700px) { .lk-detail { grid-template-columns: 1fr; } .lk-theme { margin-left: 0; } .lk-mq-card { min-width: 220px; } }
@media (prefers-reduced-motion: reduce) { .lk-mq-track, .lk-float, .lk-dimg img { animation: none !important; } .lk-mq { overflow-x: auto; } }
