/* ============================================================
   Rising Online
   Ornamentales Seidenstrassen-Design
   Lackrot · Jade · Indigo · Sandstein · Gold
   ============================================================ */

/* ------------------------------------------------------------
   1. Farb- und Typotoken
   ------------------------------------------------------------ */
:root {
    /* Nacht & Holz */
    --night:      #100a12;
    --night-2:    #170f1a;
    --wood:       #241708;
    --wood-2:     #33200d;
    --wood-3:     #452c12;

    /* Pergament */
    --sand:       #ecdfc0;
    --sand-2:     #cdbc95;
    --sand-dim:   #9c8b68;

    /* Akzente */
    --gold:       #d4a53a;
    --gold-lt:    #f5dc96;
    --gold-dk:    #8a6b1c;
    --lacquer:    #8e1f16;
    --lacquer-lt: #c23a26;
    --jade:       #3f8b6a;
    --jade-lt:    #74c39c;
    --indigo:     #37477a;
    --indigo-lt:  #7d90c8;

    --line:       rgba(212, 165, 58, .22);
    --line-2:     rgba(212, 165, 58, .48);

    --f-display:  'Cormorant Garamond', 'Noto Serif', Georgia, serif;
    --f-head:     'Marcellus', 'Cormorant Garamond', Georgia, serif;
    --f-body:     'Noto Serif', Georgia, 'Times New Roman', serif;

    --shadow-lg:  0 26px 60px rgba(0, 0, 0, .6);
    --shadow-sm:  0 8px 22px rgba(0, 0, 0, .45);
}

/* Arabisch bekommt eine eigene Schrift */
html[dir="rtl"] {
    --f-display: 'Cairo', 'Noto Serif', sans-serif;
    --f-head:    'Cairo', 'Noto Serif', sans-serif;
    --f-body:    'Cairo', 'Noto Serif', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--f-body);
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--sand);
    background: var(--night);
    overflow-x: hidden;
}

/* Grundtextur: Seidenköper + weiches Licht von oben */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(900px 500px at 50% -5%,  rgba(212, 165, 58, .11), transparent 65%),
        radial-gradient(700px 420px at 12% 22%,  rgba(142, 31, 22, .13),  transparent 60%),
        radial-gradient(760px 460px at 88% 62%,  rgba(55, 71, 122, .14),  transparent 62%);
}
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .035;
    background-image:
        repeating-linear-gradient( 30deg, #fff 0 1px, transparent 1px 6px),
        repeating-linear-gradient(-30deg, #fff 0 1px, transparent 1px 6px);
}

a { color: var(--gold-lt); text-decoration: none; transition: color .18s ease; }
a:hover { color: #fff3d6; }

h1, h2, h3, h4 {
    font-family: var(--f-head);
    font-weight: 400;
    letter-spacing: .03em;
    color: var(--gold-lt);
    margin: 0 0 .55em;
    line-height: 1.25;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
h3 { font-size: 1.12rem; }

p { margin: 0 0 1em; }
img { max-width: 100%; }
code { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .88em; color: var(--gold-lt); }

.container {
    width: min(1200px, calc(100% - 44px));
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

/* ------------------------------------------------------------
   2. Ornament-Bausteine
   ------------------------------------------------------------ */

.orn-clouds { display: block; width: 100%; height: 24px; color: var(--gold); opacity: .5; }
.orn-diamond { vertical-align: -1px; }

.orn-corner { position: absolute; color: var(--gold); opacity: .55; pointer-events: none; }
.orn-corner-tl { inset-block-start: 6px; inset-inline-start: 6px; }
.orn-corner-tr { inset-block-start: 6px; inset-inline-end: 6px; }
.orn-corner-bl { inset-block-end: 6px; inset-inline-start: 6px; }
.orn-corner-br { inset-block-end: 6px; inset-inline-end: 6px; }

.orn-seal { filter: drop-shadow(0 3px 10px rgba(142, 31, 22, .6)); }

/* Zierlinie mit Raute in der Mitte */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--gold);
    margin: 46px 0 38px;
}
.divider::before, .divider::after {
    content: '';
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, var(--gold-dk) 30%, var(--gold-dk) 70%, transparent);
    opacity: .8;
}

/* Wolkenband als Abschluss von Flächen */
.cloudline { line-height: 0; color: var(--gold); }
.cloudline.flip { transform: scaleY(-1); }

/* ------------------------------------------------------------
   3. Kopfleiste
   ------------------------------------------------------------ */

.topbar {
    background: #0b0709;
    border-bottom: 1px solid rgba(212, 165, 58, .14);
    font-size: .8rem;
    color: var(--sand-dim);
    position: relative;
    z-index: 60;
}
.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 40px;
    flex-wrap: wrap;
}
.topbar .status { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar .status b { color: var(--sand-2); font-weight: 400; }

.dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    display: inline-block;
    margin-inline-end: 8px;
    background: var(--jade-lt);
    box-shadow: 0 0 9px var(--jade-lt);
    animation: breathe 2.6s ease-in-out infinite;
}
.dot.off { background: var(--lacquer-lt); box-shadow: 0 0 9px var(--lacquer-lt); }
@keyframes breathe { 0%, 100% { opacity: 1 } 50% { opacity: .4 } }

/* Sprachumschalter */
.langs { display: flex; align-items: center; gap: 2px; }
.langs a {
    padding: 3px 8px;
    font-size: .72rem;
    letter-spacing: .1em;
    color: var(--sand-dim);
    border: 1px solid transparent;
    border-radius: 2px;
}
.langs a:hover { color: var(--gold-lt); border-color: var(--line); }
.langs a.active { color: var(--gold-lt); border-color: var(--line-2); background: rgba(212, 165, 58, .1); }

/* Holzbalken mit Laternen */
.site-header {
    position: sticky;
    top: 0;
    z-index: 55;
    background:
        linear-gradient(180deg, var(--wood-2) 0%, var(--wood) 62%, #170e06 100%);
    border-bottom: 1px solid var(--gold-dk);
    box-shadow: 0 10px 34px rgba(0, 0, 0, .6);
}
/* Holzmaserung */
.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .3;
    background: repeating-linear-gradient(90deg,
        rgba(0,0,0,.22) 0 2px, transparent 2px 7px,
        rgba(255,255,255,.03) 7px 8px, transparent 8px 17px);
}
/* Goldene Zierkante unten */
.site-header::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold) 18%, var(--gold-lt) 50%, var(--gold) 82%, transparent);
    opacity: .75;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 86px;
}

.orn-lantern {
    position: absolute;
    top: 0;
    opacity: .9;
    pointer-events: none;
    filter: drop-shadow(0 0 16px rgba(245, 220, 150, .3));
    animation: sway 6s ease-in-out infinite;
}
.orn-lantern.left  { inset-inline-start: 18px; }
.orn-lantern.right { inset-inline-end: 18px; animation-delay: -3s; }
@keyframes sway {
    0%, 100% { transform: rotate(-2.5deg); }
    50%      { transform: rotate(2.5deg); }
}

.brand { display: flex; align-items: center; gap: 15px; }
.brand-text b {
    display: block;
    font-family: var(--f-head);
    font-size: 1.5rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-lt);
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .7);
}
.brand-text small {
    display: block;
    font-size: .67rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--sand-dim);
}

/* ------------------------------------------------------------
   4. Navigation
   ------------------------------------------------------------ */

.nav ul {
    display: flex;
    list-style: none;
    margin: 0; padding: 0;
    gap: 2px;
    flex-wrap: wrap;
}
.nav a {
    position: relative;
    display: block;
    padding: 11px 16px;
    font-family: var(--f-head);
    font-size: .84rem;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--sand-2);
}
.nav a::after {
    content: '';
    position: absolute;
    left: 50%; right: 50%;
    bottom: 4px;
    height: 1px;
    background: var(--gold);
    transition: left .22s ease, right .22s ease;
}
.nav a:hover { color: var(--gold-lt); }
.nav a:hover::after, .nav a.active::after { left: 14px; right: 14px; }
.nav a.active { color: var(--gold-lt); }

.nav-toggle {
    display: none;
    background: rgba(0, 0, 0, .3);
    border: 1px solid var(--line-2);
    color: var(--gold-lt);
    font-size: 1.25rem;
    line-height: 1;
    padding: 8px 13px;
    border-radius: 2px;
    cursor: pointer;
}

/* ------------------------------------------------------------
   5. Schaltflächen
   ------------------------------------------------------------ */

.btn {
    --btn-bg1: #3a2410;
    --btn-bg2: #24160a;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 30px;
    font-family: var(--f-head);
    font-size: .83rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--gold-lt);
    background: linear-gradient(180deg, var(--btn-bg1), var(--btn-bg2));
    border: 1px solid var(--gold-dk);
    cursor: pointer;
    transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease;
    clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px),
                       calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px);
}
.btn:hover {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px rgba(212, 165, 58, .25), 0 12px 26px rgba(0, 0, 0, .45);
    transform: translateY(-2px);
    color: #fff5da;
}
.btn:active { transform: translateY(0); }

.btn-primary {
    --btn-bg1: #e0b448;
    --btn-bg2: #a97f1c;
    color: #2a1a04;
    border-color: var(--gold-lt);
    font-weight: 600;
}
.btn-primary:hover { --btn-bg1: #f5dc96; --btn-bg2: #c1932a; color: #241503; }

.btn-red {
    --btn-bg1: #b5301f;
    --btn-bg2: #7a1a12;
    color: #ffeade;
    border-color: #d1533b;
}

.btn-sm    { padding: 8px 16px; font-size: .72rem; clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px); }
.btn-block { width: 100%; }
.btn:disabled, .btn.disabled { opacity: .4; pointer-events: none; }

/* ------------------------------------------------------------
   6. Hero
   ------------------------------------------------------------ */

.hero {
    position: relative;
    padding: 96px 0 130px;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(760px 380px at 50% 8%, rgba(142, 31, 22, .34), transparent 68%),
        linear-gradient(180deg, #1b1220 0%, #150e18 55%, #100a12 100%);
}

.orn-skyline {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    width: 100%;
    height: 260px;
    pointer-events: none;
}

/* Bogenfenster hinter dem Hero-Inhalt */
.hero-arch {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 30px;
    width: min(760px, 88vw);
    height: 470px;
    color: var(--gold);
    opacity: .3;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
}
.orn-arch { width: 100%; height: 100%; }

.hero-inner { position: relative; z-index: 2; }

.hero .eyebrow {
    font-family: var(--f-head);
    letter-spacing: .48em;
    text-transform: uppercase;
    font-size: .7rem;
    color: var(--gold);
    margin-bottom: 22px;
}

.hero h1 {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: clamp(2.8rem, 8vw, 5.4rem);
    letter-spacing: .02em;
    margin-bottom: .18em;
    color: #f7e7bf;
    text-shadow: 0 6px 30px rgba(0, 0, 0, .85), 0 0 60px rgba(212, 165, 58, .22);
}

.hero .lead {
    max-width: 610px;
    margin: 0 auto 34px;
    color: var(--sand-2);
    font-size: 1.04rem;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Countdown als Reihe kleiner Tafeln */
.countdown {
    display: inline-flex;
    gap: 0;
    margin-top: 42px;
    background: rgba(10, 6, 12, .58);
    border: 1px solid var(--line);
    backdrop-filter: blur(2px);
}
.countdown .cd-label {
    font-family: var(--f-head);
    font-size: .66rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--gold);
    padding: 0 20px;
    display: grid;
    place-items: center;
    border-inline-end: 1px solid var(--line);
}
.countdown div.cd-unit {
    min-width: 82px;
    padding: 13px 10px;
    border-inline-end: 1px solid var(--line);
}
.countdown div.cd-unit:last-child { border-inline-end: none; }
.countdown b {
    display: block;
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 1.95rem;
    color: var(--gold-lt);
    line-height: 1;
}
.countdown small {
    font-size: .62rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--sand-dim);
}

/* ------------------------------------------------------------
   7. Abschnitte & Seitenköpfe
   ------------------------------------------------------------ */

main { flex: 1 0 auto; padding-bottom: 80px; position: relative; z-index: 1; }

.section { padding: 62px 0 0; }

.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { margin-bottom: .3em; }
.section-head h2::after {
    content: '';
    display: block;
    width: 66px; height: 1px;
    margin: 16px auto 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section-head p { color: var(--sand-dim); max-width: 600px; margin: 0 auto; }

.page-head {
    position: relative;
    padding: 54px 0 44px;
    margin-bottom: 42px;
    text-align: center;
    background:
        radial-gradient(600px 260px at 50% 0%, rgba(142, 31, 22, .26), transparent 70%),
        linear-gradient(180deg, #1a1120, transparent);
    border-bottom: 1px solid var(--line);
}
.page-head h1 { margin-bottom: .2em; }
.page-head p { color: var(--sand-dim); margin: 0 auto; max-width: 620px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); }

/* ------------------------------------------------------------
   8. Tafeln (Panels)
   ------------------------------------------------------------ */

.panel {
    position: relative;
    background:
        linear-gradient(180deg, rgba(40, 26, 14, .92), rgba(22, 14, 10, .95));
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
/* dünne Innenlinie */
.panel > .panel-inner-line {
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(212, 165, 58, .12);
    pointer-events: none;
}

.panel-head {
    position: relative;
    padding: 15px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: linear-gradient(180deg, rgba(142, 31, 22, .32), rgba(142, 31, 22, .08));
    border-bottom: 1px solid var(--line-2);
}
.panel-head h3 {
    margin: 0;
    font-size: 1.02rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--gold-lt);
}
.panel-body { padding: 24px; }

/* Schriftrolle: dunkle Rollen oben und unten */
.scroll {
    position: relative;
    background:
        linear-gradient(180deg, rgba(48, 33, 18, .95), rgba(26, 17, 10, .96));
    border-inline: 1px solid var(--line);
    padding: 0;
    box-shadow: var(--shadow-sm);
}
.scroll::before, .scroll::after {
    content: '';
    display: block;
    height: 22px;
    margin-inline: -10px;
    border: 1px solid var(--gold-dk);
    border-radius: 11px;
    background:
        linear-gradient(180deg, #58381a 0%, var(--wood-3) 38%, var(--wood) 72%, #140b05 100%),
        radial-gradient(circle at 14px 50%, rgba(245,220,150,.25), transparent 60%);
    box-shadow: inset 0 1px 0 rgba(245, 220, 150, .28), 0 4px 14px rgba(0,0,0,.5);
}
.scroll::after {
    background:
        linear-gradient(0deg, #58381a 0%, var(--wood-3) 38%, var(--wood) 72%, #140b05 100%),
        radial-gradient(circle at 14px 50%, rgba(245,220,150,.25), transparent 60%);
}
.scroll .scroll-body { padding: 26px 28px; }

/* Holztafel */
.board {
    position: relative;
    background:
        linear-gradient(180deg, rgba(52, 34, 17, .95), rgba(30, 19, 10, .96));
    border: 1px solid var(--gold-dk);
    box-shadow: var(--shadow-sm), inset 0 0 40px rgba(0, 0, 0, .5);
}
.board::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .22;
    background: repeating-linear-gradient(90deg,
        rgba(0,0,0,.25) 0 2px, transparent 2px 9px,
        rgba(255,255,255,.03) 9px 10px, transparent 10px 21px);
}
.board > * { position: relative; }

/* ------------------------------------------------------------
   9. Raten-Banner (statt gleichförmiger Kacheln)
   ------------------------------------------------------------ */

.rates {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    padding: 8px 0;
}
.rate {
    position: relative;
    flex: 1 1 138px;
    text-align: center;
    padding: 22px 14px;
}
.rate + .rate::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 22%;
    height: 56%;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--gold-dk), transparent);
    opacity: .8;
}
.rate b {
    display: block;
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 2.15rem;
    color: var(--gold-lt);
    line-height: 1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}
.rate span {
    display: block;
    margin-top: 7px;
    font-size: .68rem;
    letter-spacing: .21em;
    text-transform: uppercase;
    color: var(--sand-dim);
}

/* Beschriftungsliste (Serverinfo) */
.dl { display: grid; grid-template-columns: 1fr auto; gap: 0; margin: 0; }
.dl dt, .dl dd {
    padding: 11px 2px;
    border-bottom: 1px dotted rgba(212, 165, 58, .18);
}
.dl dt { color: var(--sand-dim); }
.dl dd { margin: 0; color: var(--gold-lt); font-family: var(--f-head); text-align: end; }
.dl dt:last-of-type, .dl dd:last-of-type { border-bottom: none; }

/* ------------------------------------------------------------
   10. Anschlagbrett (News)
   ------------------------------------------------------------ */

.notices { display: grid; gap: 18px; }

.notice {
    position: relative;
    display: flex;
    gap: 20px;
    padding: 20px 24px 20px 22px;
    background: linear-gradient(160deg, rgba(236, 223, 192, .06), rgba(236, 223, 192, .02));
    border: 1px solid var(--line);
    border-inline-start: 3px solid var(--lacquer-lt);
    transition: transform .2s ease, border-color .2s ease;
}
.notice:hover { transform: translateY(-2px); border-color: var(--line-2); }

/* Reißzwecke */
.notice::before {
    content: '';
    position: absolute;
    top: -6px;
    inset-inline-start: 26px;
    width: 11px; height: 11px;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 32%, #e6604a, var(--lacquer));
    box-shadow: 0 2px 5px rgba(0, 0, 0, .6);
}

.notice-date {
    flex: 0 0 56px;
    text-align: center;
    align-self: flex-start;
    padding: 7px 0;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, .3);
}
.notice-date b {
    display: block;
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--gold-lt);
    line-height: 1;
}
.notice-date small {
    font-size: .6rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--sand-dim);
}

.notice-body h4 {
    margin: 3px 0 5px;
    font-family: var(--f-head);
    font-size: 1.06rem;
    color: var(--sand);
}
.notice-body p { margin: 0; color: var(--sand-dim); font-size: .93rem; }

.tag {
    display: inline-block;
    font-size: .62rem;
    letter-spacing: .17em;
    text-transform: uppercase;
    padding: 3px 10px;
    border: 1px solid var(--line);
    color: var(--gold);
    background: rgba(0, 0, 0, .3);
}
.tag.event   { color: #e8bf62; border-color: rgba(232, 191, 98, .45); }
.tag.update  { color: var(--jade-lt); border-color: rgba(116, 195, 156, .45); }
.tag.wartung,
.tag.maintenance { color: #dd8a70; border-color: rgba(221, 138, 112, .45); }

/* ------------------------------------------------------------
   11. Tabellen
   ------------------------------------------------------------ */

.table-wrap { overflow-x: auto; }

table.data { width: 100%; border-collapse: collapse; font-size: .93rem; }

table.data th {
    font-family: var(--f-head);
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-lt);
    text-align: start;
    padding: 13px 18px;
    white-space: nowrap;
    background: linear-gradient(180deg, rgba(142, 31, 22, .5), rgba(142, 31, 22, .22));
    border-bottom: 1px solid var(--line-2);
}
table.data td {
    padding: 12px 18px;
    border-bottom: 1px solid rgba(212, 165, 58, .1);
    color: var(--sand);
}
table.data tbody tr:nth-child(even) { background: rgba(236, 223, 192, .022); }
table.data tbody tr:hover { background: rgba(212, 165, 58, .07); }
table.data tbody tr:last-child td { border-bottom: none; }

.rank {
    width: 58px;
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 1.08rem;
    color: var(--sand-dim);
}
.rank.r1 { color: var(--gold-lt); text-shadow: 0 0 14px rgba(245, 220, 150, .5); }
.rank.r2 { color: #dcdcdc; }
.rank.r3 { color: #cf8d52; }

.badge {
    display: inline-block;
    font-size: .66rem;
    letter-spacing: .11em;
    padding: 2px 9px;
    border: 1px solid var(--line);
    color: var(--sand-dim);
    background: rgba(0, 0, 0, .25);
}
.badge.ch   { color: #dfa869; border-color: rgba(223, 168, 105, .42); }
.badge.eu   { color: var(--indigo-lt); border-color: rgba(125, 144, 200, .42); }
.badge.ok   { color: var(--jade-lt); border-color: rgba(116, 195, 156, .42); }
.badge.warn { color: #e6bd66; border-color: rgba(230, 189, 102, .42); }
.badge.bad  { color: #de7f68; border-color: rgba(222, 127, 104, .42); }

/* Reiter */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 24px; }
.tabs a {
    padding: 10px 22px;
    font-family: var(--f-head);
    font-size: .79rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sand-dim);
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, .28);
    transition: all .18s ease;
}
.tabs a:hover { color: var(--gold-lt); border-color: var(--line-2); }
.tabs a.active {
    color: #2a1a04;
    background: linear-gradient(180deg, var(--gold), #a97f1c);
    border-color: var(--gold-lt);
}

/* ------------------------------------------------------------
   12. Formulare
   ------------------------------------------------------------ */

.form-row { margin-bottom: 20px; }

label {
    display: block;
    font-family: var(--f-head);
    font-size: .74rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

input[type=text], input[type=password], input[type=email],
input[type=number], select, textarea {
    width: 100%;
    padding: 13px 15px;
    background: rgba(0, 0, 0, .42);
    border: 1px solid var(--line);
    color: var(--sand);
    font-family: var(--f-body);
    font-size: .97rem;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(0, 0, 0, .55);
    box-shadow: 0 0 0 3px rgba(212, 165, 58, .13);
}
input::placeholder { color: #6d5f45; }
select { appearance: none; padding-inline-end: 34px;
    background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
                      linear-gradient(135deg, var(--gold) 50%, transparent 50%);
    background-position: right 16px center, right 11px center;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}
html[dir="rtl"] select {
    background-position: left 11px center, left 16px center;
    background-image: linear-gradient(135deg, transparent 50%, var(--gold) 50%),
                      linear-gradient(45deg, var(--gold) 50%, transparent 50%);
}

.hint { font-size: .8rem; color: var(--sand-dim); margin-top: 7px; }

.check { display: flex; gap: 11px; align-items: flex-start; }
.check input { width: auto; margin-top: 5px; accent-color: var(--gold); }
.check label {
    text-transform: none; letter-spacing: 0;
    font-family: var(--f-body); font-size: .89rem;
    color: var(--sand-dim); margin: 0;
}

.form-narrow { max-width: 470px; margin-inline: auto; }

/* ------------------------------------------------------------
   13. Meldungen
   ------------------------------------------------------------ */

.alert {
    position: relative;
    padding: 14px 20px;
    margin-bottom: 18px;
    font-size: .93rem;
    border: 1px solid;
    border-inline-start-width: 3px;
    background: rgba(0, 0, 0, .3);
}
.alert.success { border-color: rgba(116, 195, 156, .5); color: #bfe2cd; background: rgba(63, 139, 106, .13); }
.alert.error   { border-color: rgba(194, 58, 38, .55);  color: #f2c1b5; background: rgba(142, 31, 22, .17); }
.alert.info    { border-color: rgba(125, 144, 200, .5); color: #c3d0ee; background: rgba(55, 71, 122, .16); }
.alert.warn    { border-color: rgba(212, 165, 58, .5);  color: #eeda9f; background: rgba(212, 165, 58, .11); }

/* ------------------------------------------------------------
   14. Item Mall
   ------------------------------------------------------------ */

.mall-layout { display: grid; grid-template-columns: 244px 1fr; gap: 28px; align-items: start; }

.mall-cats ul { list-style: none; margin: 0; padding: 0; }
.mall-cats a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(212, 165, 58, .1);
    font-family: var(--f-head);
    font-size: .85rem;
    letter-spacing: .05em;
    color: var(--sand-2);
    transition: all .16s ease;
}
.mall-cats a::before {
    content: '';
    width: 6px; height: 6px;
    transform: rotate(45deg);
    border: 1px solid var(--gold-dk);
    flex: 0 0 6px;
    transition: all .16s ease;
}
.mall-cats a:hover, .mall-cats a.active {
    color: var(--gold-lt);
    background: linear-gradient(90deg, rgba(212, 165, 58, .12), transparent);
    padding-inline-start: 24px;
}
.mall-cats a.active::before { background: var(--gold); border-color: var(--gold-lt); }

/* Item als Schrein mit Bogenabschluss */
.item {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 26px 18px 20px;
    background: linear-gradient(180deg, rgba(44, 28, 15, .9), rgba(20, 13, 9, .95));
    border: 1px solid var(--line);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.item:hover {
    transform: translateY(-4px);
    border-color: var(--line-2);
    box-shadow: 0 24px 44px rgba(0, 0, 0, .6);
}
.item .orn-arch {
    position: absolute;
    top: 8px; inset-inline: 12px;
    height: 78px;
    width: auto;
    color: var(--gold);
    opacity: .28;
    pointer-events: none;
}

.item-icon {
    position: relative;
    width: 74px; height: 74px;
    margin: 6px auto 16px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 34% 28%, #4a3113, #14100a 78%);
    border: 1px solid var(--gold-dk);
    box-shadow: inset 0 0 18px rgba(0, 0, 0, .8);
}
/* Ziernieten in den Ecken */
.item-icon::before, .item-icon::after {
    content: '';
    position: absolute;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--jade);
    box-shadow: 0 0 4px rgba(0, 0, 0, .8);
}
.item-icon::before { top: 4px; inset-inline-start: 4px; }
.item-icon::after  { bottom: 4px; inset-inline-end: 4px; }
.item-icon img { width: 48px; height: 48px; object-fit: contain; }

.item h4 {
    margin: 0 0 6px;
    font-family: var(--f-head);
    font-size: .99rem;
    color: var(--sand);
}
.item .desc { font-size: .82rem; color: var(--sand-dim); flex: 1 0 auto; margin-bottom: 15px; }

.price {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 1.32rem;
    color: var(--gold-lt);
    margin-bottom: 13px;
}
.price small { font-size: .62rem; letter-spacing: .2em; color: var(--sand-dim); }

/* Guthabenleiste */
.silk-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 26px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.silk-label {
    font-size: .7rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--sand-dim);
}
.silk-num {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 1.75rem;
    color: var(--gold-lt);
}

/* ------------------------------------------------------------
   15. Vote
   ------------------------------------------------------------ */

.vote-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 19px 26px;
    border-bottom: 1px solid rgba(212, 165, 58, .11);
    flex-wrap: wrap;
    transition: background .18s ease;
}
.vote-row:hover { background: rgba(212, 165, 58, .05); }
.vote-row:last-child { border-bottom: none; }
.vote-row .vname { flex: 1 1 210px; }
.vote-row .vname b { font-family: var(--f-head); color: var(--sand); display: block; font-weight: 400; }
.vote-row .vname small { color: var(--sand-dim); }
.vote-reward {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 1.16rem;
    color: var(--jade-lt);
    min-width: 112px;
}

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li {
    counter-increment: step;
    position: relative;
    padding-inline-start: 46px;
    padding-block: 9px;
    color: var(--sand-2);
}
.steps li::before {
    content: counter(step);
    position: absolute;
    inset-inline-start: 0;
    top: 8px;
    width: 28px; height: 28px;
    display: grid; place-items: center;
    font-family: var(--f-display);
    font-weight: 600;
    color: var(--gold-lt);
    border: 1px solid var(--gold-dk);
    transform: rotate(45deg);
}
.steps li::after {
    content: '';
    position: absolute;
    inset-inline-start: 14px;
    top: 8px;
    width: 28px; height: 28px;
}
.steps li > span { display: block; }

/* ------------------------------------------------------------
   16. Konto-Panel
   ------------------------------------------------------------ */

.panel-layout { display: grid; grid-template-columns: 258px 1fr; gap: 28px; align-items: start; }

.panel-nav ul { list-style: none; margin: 0; padding: 0; }
.panel-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    border-bottom: 1px solid rgba(212, 165, 58, .1);
    font-family: var(--f-head);
    font-size: .85rem;
    color: var(--sand-2);
    transition: all .16s ease;
}
.panel-nav a::before {
    content: '';
    width: 6px; height: 6px;
    transform: rotate(45deg);
    border: 1px solid var(--gold-dk);
    flex: 0 0 6px;
}
.panel-nav a:hover, .panel-nav a.active {
    color: var(--gold-lt);
    background: linear-gradient(90deg, rgba(212, 165, 58, .12), transparent);
}
.panel-nav a.active::before { background: var(--gold); }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 18px; margin-bottom: 28px; }
.stat { padding: 20px; text-align: center; }
.stat b {
    display: block;
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 1.75rem;
    color: var(--gold-lt);
    line-height: 1.1;
}
.stat span {
    font-size: .67rem;
    letter-spacing: .19em;
    text-transform: uppercase;
    color: var(--sand-dim);
}

/* ------------------------------------------------------------
   17. Fußzeile
   ------------------------------------------------------------ */

.site-footer {
    margin-top: auto;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, #0d0810, #070409);
    border-top: 1px solid var(--line);
    padding: 50px 0 28px;
    color: var(--sand-dim);
    font-size: .88rem;
}
.site-footer h4 {
    font-family: var(--f-head);
    font-size: .78rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--sand-2); }
.site-footer a:hover { color: var(--gold-lt); }

.footer-bottom {
    margin-top: 38px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 165, 58, .12);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: .79rem;
}
.disclaimer { color: #5f5340; max-width: 660px; }

/* ------------------------------------------------------------
   18. Hilfsklassen
   ------------------------------------------------------------ */

.text-center { text-align: center; }
.text-muted  { color: var(--sand-dim); }
.text-gold   { color: var(--gold-lt); }
.text-jade   { color: var(--jade-lt); }
.text-red    { color: #de7f68; }
.nowrap      { white-space: nowrap; }
.mt-1 { margin-top: 12px } .mt-2 { margin-top: 26px } .mt-3 { margin-top: 40px }
.mb-0 { margin-bottom: 0 } .mb-1 { margin-bottom: 12px } .mb-2 { margin-bottom: 26px }
.flex { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }

/* ------------------------------------------------------------
   19. Responsive
   ------------------------------------------------------------ */

@media (max-width: 980px) {
    .mall-layout, .panel-layout { grid-template-columns: 1fr; }
    .orn-lantern { display: none; }
}

@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        inset-inline: 0;
        background: linear-gradient(180deg, var(--wood-2), #170e06);
        border-bottom: 2px solid var(--gold-dk);
        padding: 8px 22px 18px;
        box-shadow: var(--shadow-lg);
    }
    .nav.open { display: block; }
    .nav ul { flex-direction: column; gap: 0; }
    .nav a { padding: 14px 4px; border-bottom: 1px solid rgba(212, 165, 58, .1); }
    .nav a::after { display: none; }
    .site-header .container { position: relative; min-height: 72px; }
    .hero { padding: 62px 0 100px; }
    .hero-arch { display: none; }
    .countdown { flex-wrap: wrap; }
    .countdown .cd-label { display: none; }
    .rate { flex-basis: 50%; }
    .rate + .rate::before { display: none; }
    .topbar .status { gap: 14px; font-size: .74rem; }
}

@media (max-width: 520px) {
    .container { width: calc(100% - 28px); }
    .panel-body, .scroll .scroll-body { padding: 18px; }
    .notice { flex-direction: column; gap: 12px; }
}

/* Bewegung reduzieren, wenn das System es verlangt */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------
   20. Release-Hinweis (wenn noch kein Datum feststeht)
   ------------------------------------------------------------ */

.release-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 42px;
    padding: 20px 40px;
    max-width: 620px;
    background: rgba(10, 6, 12, .55);
    border: 1px solid var(--line);
    position: relative;
}
.release-badge::before, .release-badge::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 44px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}
.release-badge::before { inset-inline-start: -48px; }
.release-badge::after  { inset-inline-end: -48px; transform: scaleX(-1); }

.rb-year {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.9rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold-lt);
    line-height: 1;
}
.rb-note { font-size: .85rem; color: var(--sand-dim); text-align: center; }

/* ------------------------------------------------------------
   21. Feature-Tafeln
   ------------------------------------------------------------ */

.feature {
    position: relative;
    padding: 28px 26px 24px;
    background: linear-gradient(160deg, rgba(48, 31, 16, .88), rgba(20, 13, 9, .94));
    border: 1px solid var(--line);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.feature:hover {
    transform: translateY(-3px);
    border-color: var(--line-2);
    box-shadow: 0 22px 40px rgba(0, 0, 0, .55);
}
.feature-mark {
    display: inline-grid;
    place-items: center;
    width: 34px; height: 34px;
    margin-bottom: 14px;
    color: var(--gold);
    border: 1px solid var(--gold-dk);
    background: rgba(142, 31, 22, .3);
}
.feature h4 {
    margin: 0 0 6px;
    font-family: var(--f-head);
    font-size: 1.05rem;
    color: var(--gold-lt);
    letter-spacing: .04em;
}
.feature p { margin: 0; color: var(--sand-dim); font-size: .9rem; }

@media (max-width: 820px) {
    .release-badge { padding: 16px 22px; }
    .release-badge::before, .release-badge::after { display: none; }
}

/* ------------------------------------------------------------
   22. Hero-Hintergrundbild (optional, HERO_BG in config.php)
   ------------------------------------------------------------ */

.hero.has-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center 28%;
    filter: saturate(.85);
    z-index: 0;
}
.hero.has-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(180deg,
            rgba(16, 10, 18, calc(var(--hero-dim, .62) * .75)) 0%,
            rgba(16, 10, 18, calc(var(--hero-dim, .62) * .55)) 42%,
            rgba(16, 10, 18, .96) 100%),
        radial-gradient(700px 340px at 50% 30%, rgba(142, 31, 22, .3), transparent 70%);
}
.hero.has-bg .orn-skyline { opacity: .35; }

/* ------------------------------------------------------------
   23. Charakter-Silhouetten im Hero
   ------------------------------------------------------------ */

.hero-chars {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-char-slot {
    position: absolute;
    bottom: -14px;
    height: 82%;
    max-height: 620px;
    min-height: 340px;
    transition: transform .5s cubic-bezier(.22, .8, .3, 1);
    will-change: transform;
}
.hero-char-slot.left  { left: max(2vw, calc(50% - 640px)); }
.hero-char-slot.right { right: max(2vw, calc(50% - 640px)); }

.hero-char,
.hero-char-img {
    height: 100%;
    width: auto;
    display: block;
    filter: drop-shadow(0 22px 40px rgba(0, 0, 0, .75));
}

/* Silhouette: dunkler Körper mit warmer Lichtkante */
.hero-char .rim  { fill: var(--gold); opacity: .42; }
.hero-char .body { fill: #0c0812; }

.hero-char .blade-shine { fill: var(--gold-lt); opacity: .5; }
.hero-char .stud  { fill: var(--lacquer); stroke: var(--gold-lt); stroke-width: 2; stroke-opacity: .6; }
.hero-char .wrap  { fill: none; stroke: #43290f; stroke-width: 13; stroke-linecap: round; }
.hero-char .glow  { fill: var(--jade-lt); opacity: .55; }

/* Europäisch: kühlere Lichtkante */
.hero-char.eu .rim { fill: #8fa4d8; opacity: .34; }
.hero-char.eu .blade-shine { fill: #dbe7ff; opacity: .45; }

/* Die Figuren stehen im Nebel der Düne */
.hero-chars::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 190px;
    background: linear-gradient(180deg, transparent, rgba(16, 10, 18, .72) 55%, #100a12 100%);
}

/* Auf schmalen Bildschirmen stören sie den Text - dann weg */
@media (max-width: 1240px) {
    .hero-char-slot { opacity: .38; }
}
@media (max-width: 980px) {
    .hero-chars { display: none; }
}

/* Eingesetzte Bildfiguren weicher in die Szene einbetten */
.hero-char-slot:has(.hero-char-img)::before {
    content: '';
    position: absolute;
    left: 50%; bottom: 6%;
    width: 78%; height: 62%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(212, 165, 58, .16), transparent 72%);
    filter: blur(26px);
    z-index: -1;
}
.hero-char-slot.right:has(.hero-char-img)::before {
    background: radial-gradient(closest-side, rgba(96, 132, 210, .18), transparent 72%);
}
.hero-char-img { filter: drop-shadow(0 26px 46px rgba(0, 0, 0, .8)); }

@media (max-width: 1240px) {
    .hero-char-slot { opacity: .55; }
}
