/* The public pages (start page, Impressum, Datenschutz): leather and gold like the app, without the app's frameworks */
:root {
    --bg: #0e0b09; --panel: #17120f; --panel-2: #1f1813; --line: #2e241c; --ink: #e7dcc5; --muted: #a89a83; --gold: #e3b45a; --gold-2: #cf9a35;
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .85 0 0 0 0 .7 0 0 0 0 .5 .09 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--grain), radial-gradient(ellipse at 50% -10%, #2a1d10 0%, var(--bg) 55%); background-attachment: fixed; color: var(--ink);
    font-family: 'Inter', system-ui, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--gold); }
a:hover { color: #f5d68a; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
.font-cinzel, h1, h2, h3 { font-family: 'Cinzel', serif; letter-spacing: 0.02em; }
.lore { font-family: 'EB Garamond', serif; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px); background: rgba(14, 11, 9, 0.75); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--gold); text-decoration: none; font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.15rem; }
.brand i { font-size: 1.4rem; }
.nav { display: flex; gap: 0.5rem; }

.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.3rem; border-radius: 0.75rem; font-weight: 700; font-size: 0.95rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, background 0.15s; }
.btn-gold { color: #1a1206; background: linear-gradient(180deg, var(--gold), var(--gold-2)); box-shadow: 0 0 22px rgba(207, 154, 53, 0.35); }
.btn-gold:hover { color: #1a1206; transform: translateY(-1px); box-shadow: 0 0 30px rgba(207, 154, 53, 0.55); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { color: var(--ink); border-color: var(--gold-2); }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.85rem; }

/* Start page */
.hero { text-align: center; padding: 5.5rem 0 4rem; }
.hero-crest { font-size: 3.2rem; color: var(--gold); filter: drop-shadow(0 0 18px rgba(227, 180, 90, 0.5)); }
.hero h1 { margin: 1rem 0 0.2rem; font-size: clamp(2.4rem, 7vw, 4.4rem); color: #f7e7c1; text-shadow: 0 0 30px rgba(227, 180, 90, 0.25); }
.hero .tagline { font-family: 'EB Garamond', serif; font-style: italic; font-size: clamp(1.2rem, 3vw, 1.6rem); color: var(--muted); margin: 0; }
.hero .lead { max-width: 42rem; margin: 1.6rem auto 2rem; color: var(--ink); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.section { padding: 3.5rem 0; }
.section-title { text-align: center; font-size: clamp(1.5rem, 4vw, 2.1rem); color: #f5e3b5; margin: 0 0 0.4rem; }
.section-sub { text-align: center; color: var(--muted); margin: 0 auto 2.2rem; max-width: 40rem; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 1rem; }
.feature { padding: 1.3rem 1.3rem 1.2rem; border-radius: 1rem; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); }
.feature i { font-size: 1.35rem; color: var(--gold); width: 2.6rem; height: 2.6rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 0.8rem; background: rgba(227, 180, 90, 0.1); border: 1px solid rgba(227, 180, 90, 0.25); }
.feature h3 { margin: 0.8rem 0 0.3rem; font-size: 1.05rem; color: #f5e3b5; }
.feature p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.section-more { text-align: center; margin: 1.6rem 0 0; }
.section-more a { font-weight: 600; text-decoration: none; }
.section-more a:hover { text-decoration: underline; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; counter-reset: step; }
.step { position: relative; padding: 1.4rem 1.3rem 1.2rem 1.3rem; border-radius: 1rem; border: 1px dashed rgba(227, 180, 90, 0.35); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -0.9rem; left: 1rem; width: 1.8rem; height: 1.8rem; border-radius: 999px; display: flex; align-items: center; justify-content: center;
    font-family: 'Cinzel', serif; font-weight: 700; color: #1a1206; background: var(--gold); }
.step h3 { margin: 0.2rem 0 0.3rem; font-size: 1rem; color: #f5e3b5; }
.step p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.quote { max-width: 44rem; margin: 0 auto; text-align: center; font-family: 'EB Garamond', serif; font-style: italic; font-size: clamp(1.25rem, 3vw, 1.6rem); color: #f5e9d8; }
.quote span { display: block; margin-top: 0.6rem; font-family: 'Cinzel', serif; font-style: normal; font-size: 0.85rem; color: var(--gold); }
.cta { text-align: center; padding: 3rem 1.25rem; border-radius: 1.2rem; border: 1px solid rgba(227, 180, 90, 0.35); background: radial-gradient(ellipse at 50% 0%, rgba(120, 80, 10, 0.3), var(--panel) 70%); }
.cta h2 { margin: 0 0 0.5rem; color: #f7e7c1; }
.cta p { color: var(--muted); margin: 0 0 1.5rem; }

/* Legal pages */
.legal { max-width: 46rem; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); color: #f7e7c1; margin: 0 0 1.5rem; }
.legal h2 { font-size: 1.2rem; color: #f5e3b5; margin: 2.2rem 0 0.6rem; }
.legal h3 { font-size: 1rem; color: #f5e3b5; margin: 1.4rem 0 0.4rem; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 1.2rem; }
.legal .card { padding: 1rem 1.2rem; border-radius: 0.9rem; background: var(--panel); border: 1px solid var(--line); }
.legal .muted { color: var(--muted); font-size: 0.9rem; }
.legal code { font-size: 0.85em; background: var(--panel-2); padding: 0.1rem 0.35rem; border-radius: 0.3rem; }

/* Help wiki (hilfe.html): contents on the left, searchable articles on the right */
.help { padding-top: 2.5rem; padding-bottom: 3rem; }
.help-head { text-align: center; margin-bottom: 2rem; }
.help-head h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); color: #f7e7c1; margin: 0 0 0.3rem; }
.help-head h1 i { color: var(--gold); font-size: 0.8em; }
.help-head .section-sub { margin-bottom: 1.4rem; }
.help-search { position: relative; max-width: 34rem; margin: 0 auto; }
.help-search i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.help-search input { width: 100%; padding: 0.8rem 1rem 0.8rem 2.6rem; border-radius: 0.9rem; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; outline: none; }
.help-search input:focus { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(227, 180, 90, 0.15); }
.help-noresult { color: var(--muted); margin-top: 1rem; }
.help-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2rem; align-items: start; }
.help-toc { position: sticky; top: 5rem; max-height: calc(100vh - 6rem); overflow-y: auto; }
.help-toc details { border: 1px solid var(--line); border-radius: 0.9rem; background: var(--panel); padding: 0.6rem 0.4rem; }
.help-toc summary { cursor: pointer; font-family: 'Cinzel', serif; font-weight: 700; color: var(--gold); padding: 0.2rem 0.7rem 0.4rem; list-style: none; }
.help-toc summary::-webkit-details-marker { display: none; }
.help-toc summary::after { content: '\25BE'; float: right; transition: transform 0.2s; }
.help-toc details:not([open]) summary::after { transform: rotate(-90deg); }
.help-toc a.is-dm::after { content: ''; display: inline-block; width: 0.4rem; height: 0.4rem; margin-left: 0.45rem; border-radius: 999px; background: #f87171; vertical-align: middle; }
.help-toc ol { list-style: none; margin: 0; padding: 0; }
.help-toc li a { display: block; padding: 0.3rem 0.7rem; border-radius: 0.5rem; color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.help-toc li a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.04); }
.help-toc li.is-on a { color: var(--gold); background: rgba(227, 180, 90, 0.08); }
.help-content article { scroll-margin-top: 5rem; padding: 1.5rem 1.6rem 0.8rem; margin-bottom: 1.2rem; border-radius: 1rem; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); }
.help-content h2 { margin: 0 0 0.8rem; font-size: 1.35rem; color: #f5e3b5; display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; }
.help-content h2 > i { color: var(--gold); font-size: 1rem; width: 2.2rem; height: 2.2rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 0.7rem; background: rgba(227, 180, 90, 0.1); border: 1px solid rgba(227, 180, 90, 0.25); }
.help-content h3 { margin: 1.2rem 0 0.4rem; font-size: 1.02rem; color: #f5e3b5; display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.help-content section:first-of-type h3 { margin-top: 0.4rem; }
.help-content p, .help-content li { color: var(--ink); font-size: 0.96rem; }
.help-content ul, .help-content ol { padding-left: 1.3rem; }
.help-content li { margin: 0.25rem 0; }
.help-content li i, .help-content p i { color: var(--gold); }
.help-content code, .help-content kbd { font-size: 0.85em; background: var(--bg); border: 1px solid var(--line); padding: 0.05rem 0.35rem; border-radius: 0.3rem; }
.help-dm { font-family: 'Inter', system-ui, sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #fca5a5; border: 1px solid rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.08); padding: 0.1rem 0.5rem; border-radius: 999px; }
.help-note { padding: 0.7rem 0.9rem; border-radius: 0.7rem; background: rgba(227, 180, 90, 0.07); border: 1px solid rgba(227, 180, 90, 0.2); }
.help-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 0.7rem; margin: 0.8rem 0 0.4rem; }
.help-roles > div { padding: 0.8rem 1rem; border-radius: 0.8rem; border: 1px dashed rgba(227, 180, 90, 0.35); }
.help-roles b { display: block; color: #f5e3b5; margin-bottom: 0.2rem; }
.help-roles b i { color: var(--gold); margin-right: 0.3rem; }
.help-roles span { color: var(--muted); font-size: 0.9rem; }
[hidden] { display: none !important; }
@media (max-width: 900px) {
    .help-layout { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .help-toc { position: static; max-height: none; }
    .help-content article { padding: 1.2rem 1.1rem 0.6rem; }
}

/* Footer */
.footer { border-top: 1px solid var(--line); margin-top: 2rem; padding: 1.6rem 0 2rem; color: var(--muted); font-size: 0.85rem; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 1.5rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--gold); }
.footer .fine { flex-basis: 100%; font-size: 0.78rem; color: #7d705d; }

@media (max-width: 560px) {
    .nav .btn-ghost:not(.nav-keep) { display: none; }
    .hero { padding-top: 3.5rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
