/* Bestell-Bar Hilfe-Wiki — eigenständiges Stylesheet, keine externen Abhängigkeiten.
   Helles Theme ist Standard; das dunkle wird über html[data-theme="dark"] aktiviert
   (Umschalter in der Kopfzeile, Wahl im localStorage — siehe theme.js/nav.js). */
:root {
    --brand: #E31221;
    --brand-deep: #B30E1A;
    --brand-tint: #FBE7E9;
    --bg: #EEEEEE;
    --bg-soft: #F7F5F2;
    --text: #1C1B1A;
    --text-muted: #6B6763;
    --rule: #E4E0DB;
    --card: #EEEEEE;
    --code-bg: #F2EFEB;
    --warn-bg: #FFF6E5;
    --warn-border: #E8B84B;
    --tip-bg: #EAF6EE;
    --tip-border: #52A96B;
    --layout-bg: #FFFFFF;
}
:root[data-theme="dark"] {
    --brand-tint: #3A1417;
    --bg: #161514;
    --bg-soft: #1F1D1C;
    --text: #ECEAE7;
    --text-muted: #A5A09B;
    --rule: #35322F;
    --card: #201E1D;
    --code-bg: #2A2725;
    --warn-bg: #332A14;
    --warn-border: #A8842E;
    --tip-bg: #16291C;
    --tip-border: #3E7A50;
    --layout-bg: #222222;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

/* ── Kopfzeile ─────────────────────────────────────────────── */
header.site {
    background: var(--brand);
    color: #fff;
    padding: .7rem 1.2rem;
    display: flex;
    align-items: center;
    gap: .8rem;
    position: sticky;
    top: 0;
    z-index: 20;
}
header.site .logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: .3px;
    color: #fff;
    text-decoration: none;
}
header.site .sub { 
	opacity: .85; 
	font-size: .9rem; 
	margin-top: 5px;
	margin-left: 70px;
}
header.site .theme-toggle,
header.site .menu-toggle {
    background: transparent;
    border: 1px solid rgba(255,255,255,.6);
    color: #fff;
    border-radius: .4rem;
    padding: .3rem .7rem;
    font-size: .95rem;
    cursor: pointer;
}
header.site .theme-toggle { margin-left: auto; }
header.site .menu-toggle { display: none; }

/* ── Layout ────────────────────────────────────────────────── */
.layout {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
    background: var(--layout-bg);
}
nav.sidebar {
    flex: 0 0 260px;
    padding: 1.2rem .8rem 2rem 1.2rem;
    position: sticky;
    top: 3.2rem;
    max-height: calc(100vh - 3.2rem);
    overflow-y: auto;
}
nav.sidebar h2 {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--text-muted);
    margin: 1.2rem 0 .3rem .5rem;
}
nav.sidebar h2:first-child { margin-top: 0; }
nav.sidebar a {
    display: block;
    padding: .32rem .6rem;
    border-radius: .4rem;
    color: var(--text);
    text-decoration: none;
    font-size: .95rem;
}
nav.sidebar a:hover { background: var(--bg-soft); }
nav.sidebar a.active {
    background: var(--brand-tint);
    color: var(--brand);
    font-weight: 600;
}
main {
    flex: 1 1 auto;
    min-width: 0;
    padding: 1.6rem 1.4rem 4rem;
    border-left: 1px solid var(--rule);
}

/* ── Typografie ────────────────────────────────────────────── */
h1 { font-size: 1.7rem; margin: 0 0 .3rem; line-height: 1.25; }
p.lead { color: var(--text-muted); font-size: 1.05rem; margin-top: 0; }
h2 { font-size: 1.25rem; margin: 2rem 0 .6rem; padding-bottom: .25rem; border-bottom: 1px solid var(--rule); }
h3 { font-size: 1.05rem; margin: 1.4rem 0 .4rem; }
a { color: var(--brand); }
main img { max-width: 100%; }
code, kbd {
    background: var(--code-bg);
    border-radius: .3rem;
    padding: .1rem .35rem;
    font-size: .88em;
    font-family: Consolas, "Cascadia Mono", monospace;
}

pre {
    background: var(--code-bg);
    border-radius: .4rem;
    padding: .6rem .8rem;
    overflow-x: auto;
    font-size: .85rem;
    font-family: Consolas, "Cascadia Mono", monospace;
    line-height: 1.45;
}

    pre code { background: none; padding: 0; font-size: inherit; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }

/* UI-Begriffe: so darstellen, wie sie in der App als Button/Menü erscheinen */
.ui {
    display: inline-block;
    border: 1px solid var(--rule);
    background: var(--bg-soft);
    border-radius: .35rem;
    padding: 0 .4rem;
    font-size: .9em;
    white-space: nowrap;
}

/* ── Boxen ─────────────────────────────────────────────────── */
.box { border-radius: .5rem; padding: .8rem 1rem; margin: 1rem 0; }
.box strong:first-child { display: block; margin-bottom: .2rem; }
.box.tip { background: var(--tip-bg); border-left: 4px solid var(--tip-border); }
.box.warn { background: var(--warn-bg); border-left: 4px solid var(--warn-border); }

/* ── Schritt-Listen ────────────────────────────────────────── */
ol.steps { counter-reset: step; list-style: none; padding-left: 0; }
ol.steps > li {
    counter-increment: step;
    position: relative;
    padding: 0 0 .9rem 2.6rem;
}
ol.steps > li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: .1rem;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Tabellen ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .95rem; }
th, td { border: 1px solid var(--rule); padding: .45rem .7rem; text-align: left; vertical-align: top; }
th { background: var(--bg-soft); }

/* ── Karten (Startseite) ───────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .9rem; margin: 1.2rem 0; }
.cards a.card {
    display: block;
    border: 1px solid var(--rule);
    border-radius: .55rem;
    background: var(--card);
    padding: .9rem 1rem;
    text-decoration: none;
    color: var(--text);
}
.cards a.card:hover { border-color: var(--brand); }
.cards a.card strong { color: var(--brand); display: block; margin-bottom: .25rem; }
.cards a.card span { font-size: .9rem; color: var(--text-muted); }

/* ── Seitenfuss / Blättern ─────────────────────────────────── */
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; font-size: .95rem; }
footer.site {
    border-top: 1px solid var(--rule);
    color: var(--text-muted);
    font-size: .85rem;
    text-align: center;
    padding: 1rem;
}

/* ── Mobil ─────────────────────────────────────────────────── */
@media (max-width: 820px) {
	header.site .sub { display: none; }
    header.site .menu-toggle { display: inline-block; }
    .layout { display: block; }
    nav.sidebar {
        display: none;
        position: static;
        max-height: none;
        padding: .8rem 1.2rem;
        border-bottom: 1px solid var(--rule);
    }
    nav.sidebar.open { display: block; }
    main { border-left: 0; padding: 1.2rem 1rem 3rem; }
}
