/* hidden darf nicht durch .button o. ä. überschrieben werden */
[hidden] {
    display: none !important;
}

@font-face {
    font-family: "IBM Plex Sans";
    src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Sans";
    src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Sans";
    src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Mono";
    src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

:root {
    --color-bg: #0b0e13;
    --color-surface: #13181f;
    --color-surface-2: #1a2029;
    --color-surface-3: #222a35;
    --color-text: #e2e8f0;
    --color-text-strong: #f8fafc;
    --color-muted: #94a3b8;
    --color-muted-2: #64748b;
    --color-border: #1e293b;
    --color-border-2: #334155;
    --color-accent: #34d399;
    --color-accent-2: #10b981;
    --color-accent-soft: rgba(52, 211, 153, 0.08);
    --color-accent-glow: rgba(52, 211, 153, 0.15);
    --color-code-bg: #0d1117;
    --color-code-border: #1e293b;
    --color-danger: #f87171;
    --color-warning: #fbbf24;
    --color-info: #60a5fa;

    --radius: 0;
    --max-width: 1280px;
    --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(52, 211, 153, 0.1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    /* Scrollbar-Platz immer reservieren -> kein Layout-Sprung beim Öffnen des Dialogs */
    scrollbar-gutter: stable;
    overflow-y: scroll;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover,
a:focus-visible {
    color: var(--color-accent-2);
    text-decoration: underline;
}

h1, h2, h3, h4 {
    line-height: 1.3;
    letter-spacing: -0.015em;
    font-weight: 600;
    color: var(--color-text-strong);
}

h1 { font-size: 1.75rem; margin: 0 0 0.5rem; font-weight: 700; }
h2 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }
h4 { font-size: 0.95rem; margin: 1.25rem 0 0.4rem; }
.status-title { font-size: 1.75rem; margin: 0 0 0.5rem; font-weight: 700; }

p { margin: 0 0 1rem; }

ul, ol { padding-left: 1.5rem; margin: 0 0 1rem; }
li { margin-bottom: 0; }
.article__body li { margin-bottom: 0.35rem; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

code {
    font-family: var(--font-mono);
    font-size: 0.875em;
}



/* Scrollbar-Styling (Webkit + Firefox) */

* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-border-2) var(--color-bg);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border-2);
    border: 2px solid var(--color-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-muted-2);
}

::-webkit-scrollbar-corner {
    background: var(--color-bg);
}

/* Modal: kein Scrollbar sichtbar */

.checkout-modal__content {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.checkout-modal__content::-webkit-scrollbar {
    display: none;
}

/* Kopfzeile */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 14, 19, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-header .brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--color-text-strong);
}

.site-header .brand:hover {
    text-decoration: none;
    color: var(--color-text-strong);
}

.brand__logo {
    display: block;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.brand__name {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.brand__tag {
    color: var(--color-muted);
    font-size: 0.9rem;
    font-weight: 400;
}

/* Layout */

.layout {
    flex: 1;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.75rem 1.5rem;
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) 240px;
    gap: 1.75rem;
    align-items: start;
}

.content {
    min-width: 0;
}

.sidebar {
    position: sticky;
    top: 5rem;
}

/* Karten */

.box {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    margin-bottom: 1rem;
    transition: border-color 0.2s ease;
}

.box:hover {
    border-color: var(--color-border-2);
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.box__title {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-muted-2);
    margin: 0;
    padding: 0.85rem 1rem 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.box__content {
    padding: 0.6rem 1rem 0.85rem;
}

/* Summary (nur auf mobil sichtbar) */
.box > summary {
    display: none;
    cursor: pointer;
    padding: 0.7rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.9rem;
    list-style: none;
    user-select: none;
    margin-bottom: 0;
}

.box > summary::-webkit-details-marker {
    display: none;
}

.box > summary::before {
    content: "▸ ";
    color: var(--color-accent);
}

.box[open] > summary::before {
    content: "▾ ";
}

/* Menüs */

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.15rem 0;
    border-bottom: 1px solid transparent;
    transition: padding-left 0.15s ease;
}

.menu li:hover {
    padding-left: 0.15rem;
}

.menu a {
    color: var(--color-text);
    font-size: 0.9rem;
    transition: color 0.15s ease;
}

.menu a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.count {
    font-size: 0.7rem;
    color: var(--color-muted);
    background: var(--color-surface-2);
    padding: 0.1rem 0.5rem;
    font-family: var(--font-mono);
    min-width: 1.5rem;
    text-align: center;
}

/* Archiv aufklappbar */

.archive {
    margin-bottom: 0.15rem;
}

.archive summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.35rem 0;
    list-style: none;
    color: var(--color-text);
    font-size: 0.9rem;
    transition: color 0.15s ease;
}

.archive summary:hover {
    color: var(--color-accent);
}

.archive summary::-webkit-details-marker {
    display: none;
}

.archive summary::before {
    content: "▸";
    display: inline-block;
    width: 0.9rem;
    color: var(--color-accent);
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.archive[open] summary::before {
    content: "▾";
}

.archive summary > span:first-child {
    flex: 1;
}

.archive summary a {
    color: var(--color-text);
    flex: 1;
}

.archive summary a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.archive__months {
    margin: 0.15rem 0 0.5rem 1rem;
    padding: 0;
    border-left: 1px solid var(--color-border);
    padding-left: 0.75rem;
}

.archive__months li {
    padding: 0.2rem 0;
}

/* Seitenkopf */

.page-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
    margin-bottom: 0.35rem;
}

.page-header p {
    color: var(--color-muted);
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb {
    font-size: 0.8rem;
    color: var(--color-muted-2);
    margin: 1em 0 0.5rem;
    font-family: var(--font-mono);
}

.page-header .breadcrumb {
    color: var(--color-muted);
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--color-muted);
}

.breadcrumb a:hover {
    color: var(--color-accent);
}

/* Beitragskarten */

.post-card {
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    transition: all 0.2s ease;
    position: relative;
}

.post-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: transparent;
    transition: background 0.2s ease;
}

.post-card:hover {
    border-color: var(--color-border-2);
    background: var(--color-surface-2);
    transform: translateX(2px);
}

.post-card:hover::before {
    background: var(--color-accent);
}

.post-card__meta {
    font-size: 0.8rem;
    color: var(--color-muted-2);
    margin-bottom: 0.35rem;
    font-family: var(--font-mono);
}

.post-card__meta a {
    color: var(--color-muted);
}

.post-card__meta a:hover {
    color: var(--color-accent);
}

.post-card__title {
    font-size: 1.1rem;
    margin: 0 0 0.35rem;
    font-weight: 600;
}

.post-card__title a {
    color: var(--color-text-strong);
}

.post-card__title a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.post-card__description {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Beitrag */

.article {
    padding: 1.75rem 2rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.article__header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.article__header .post-card__meta {
    margin: 0.4rem 0 0;
}

.article__lead {
    color: var(--color-muted);
    margin: 0.6rem 0 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

.article__body > :first-child {
    margin-top: 0;
}

.article__body h2[id] {
    scroll-margin-top: 5rem;
}

/* Rechtliche Seiten: Inhaltsverzeichnis und Hinweise */

.legal-toc {
    margin: 1.5rem 0 2rem;
    padding: 1rem 1.25rem;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: 6px;
}

.legal-toc__title {
    margin: 0 0 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-muted);
}

.legal-toc ol {
    margin: 0;
    padding-left: 1.2rem;
    columns: 2;
    column-gap: 2rem;
}

.legal-toc li {
    margin: 0 0 0.35rem;
    break-inside: avoid;
    font-size: 0.9rem;
}

.legal-note {
    padding: 0.8rem 1rem;
    background: var(--color-surface-2);
    border-left: 3px solid var(--color-accent);
    border-radius: 0 4px 4px 0;
    color: var(--color-muted);
}

@media (max-width: 640px) {
    .legal-toc ol {
        columns: 1;
    }
}

.article__body figure {
    margin: 1.5rem 0;
}

.article__body figure img {
    border: 1px solid var(--color-border);
}

.article__body code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: var(--color-code-bg);
    padding: 0.15em 0.4em;
    border: 1px solid var(--color-code-border);
    color: var(--color-accent);
}

.article__body pre {
    position: relative;
    margin: 1.25rem 0;
    border: 1px solid var(--color-code-border);
    background: var(--color-code-bg);
    overflow-x: auto;
}

.article__body pre code {
    display: block;
    background: none;
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
    line-height: 1.65;
    border: none;
    color: var(--color-text);
}

.article__body pre .copy-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font: inherit;
    font-size: 0.75rem;
    color: var(--color-text);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border-2);
    padding: 0.25rem 0.65rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, color 0.15s ease, border-color 0.15s ease;
    font-weight: 500;
}

.article__body pre:hover .copy-button {
    opacity: 1;
}

.article__body pre .copy-button:hover {
    color: var(--color-bg);
    background: var(--color-accent);
    border-color: var(--color-accent);
}

/* Pager */

.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 1.5rem 0 0;
    font-size: 0.85rem;
}

.pager a,
.pager__current {
    padding: 0.3rem 0.65rem;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    transition: all 0.15s ease;
}

.pager a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    text-decoration: none;
    background: var(--color-accent-soft);
}

.pager__current {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg);
    font-weight: 600;
}

.pager__gap {
    color: var(--color-muted-2);
    padding: 0 0.25rem;
    font-family: var(--font-mono);
}

/* Fußzeile */

.site-footer {
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-muted);
    font-size: 0.85rem;
    margin-top: auto;
}

.site-footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.site-footer nav {
    display: flex;
    gap: 1.25rem;
}

.site-footer a {
    color: var(--color-muted);
    transition: color 0.15s ease;
}

.site-footer a:hover {
    color: var(--color-accent);
}

/* Produktkarte */

.product-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    padding: 1.75rem;
    transition: border-color 0.2s ease;
}

.product-card:hover {
    border-color: var(--color-accent);
}

.product-card__image img {
    width: 100%;
    height: auto;
    border: 1px solid var(--color-border);
}

.product-card__price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    margin: 0.5rem 0;
    letter-spacing: -0.02em;
}

.product-card__note {
    font-size: 0.8rem;
    color: var(--color-muted-2);
    font-family: var(--font-mono);
}

.product-card__button {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: var(--color-accent);
    color: var(--color-bg);
    border: 0;
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

.product-card__button:hover {
    background: var(--color-accent-2);
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

/* Checkout-Modal */

.checkout-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-modal[hidden] {
    display: none;
}

.checkout-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.checkout-modal__content {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border: 1px solid var(--color-border-2);
    padding: 0;
    max-width: 800px;
    width: 92%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    min-height: 480px;
}

.checkout-modal__header {
    position: relative;
    flex-shrink: 0;
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface-2);
}

.checkout-modal .checkout-modal__header .checkout-modal__close {
    position: absolute;
    top: 0.5rem;
    right: 1.1rem;
    background: none;
    border: 0;
    color: var(--color-muted);
    font-size: 2.5rem;
    font-weight: 400;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s ease;
    padding: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-modal .checkout-modal__header .checkout-modal__close:hover {
    color: var(--color-accent);
}

.checkout-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 1.5rem 2rem;
}

.checkout-modal__price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin: 0.25rem 0 1.25rem;
}

.checkout-modal__price small {
    font-size: 0.8rem;
    color: var(--color-muted);
    font-weight: 400;
}

/* Checkout-Tabs */

.checkout-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.25rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 0.25rem;
}

.checkout-tab {
    flex: 1;
    padding: 0.6rem 1rem;
    background: transparent;
    border: 1px solid transparent;
    color: var(--color-muted);
    font: inherit;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.checkout-tab.active {
    background: var(--color-surface-2);
    border-color: var(--color-accent);
    color: var(--color-accent);
    font-weight: 600;
}

.checkout-tab:hover:not(.active) {
    color: var(--color-text);
    background: var(--color-surface);
}

.checkout-panel[hidden] {
    display: none;
}

.checkout-panel {
    min-height: 180px;
}

/* Checkout-Form (im Modal) */

.checkout-modal .checkout-form {
    display: grid;
    gap: 0.9rem;
}

.checkout-modal .checkout-form label {
    display: block;
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.checkout-modal .checkout-form input[type="email"],
.checkout-modal .checkout-form input[type="text"],
.checkout-modal .checkout-form input[type="number"],
.checkout-modal .checkout-form textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    font: inherit;
    font-size: 0.9rem;
    transition: border-color 0.15s ease;
    margin-bottom: 0.6rem;
}

.checkout-modal .checkout-form textarea {
    min-height: 60px;
    resize: vertical;
}

.checkout-modal .checkout-form input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px var(--color-accent-soft);
}

.checkout-modal .consent {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.8rem;
    color: var(--color-muted);
    line-height: 1.5;
}

.checkout-modal .consent input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.checkout-modal .consent a {
    color: var(--color-accent);
}

.checkout-modal .button {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-accent);
    color: var(--color-bg);
    border: 0;
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.25rem;
}

.checkout-modal .button:hover {
    background: var(--color-accent-2);
    transform: translateY(-1px);
}

.paypal-button {
    background: #0070ba !important;
    color: #fff !important;
}

.paypal-button:hover {
    background: #005ea6 !important;
}

.form-status {
    font-size: 0.8rem;
    min-height: 1.2rem;
    padding: 0.25rem 0;
}

.form-status.error {
    color: var(--color-danger);
}

.form-status.success {
    color: var(--color-accent);
}

.small-note {
    font-size: 0.75rem;
    color: var(--color-muted-2);
    margin-top: 0.75rem;
    line-height: 1.5;
}

/* Shop-Formulare */

.shop-main {
    max-width: 720px;
    margin: 2rem auto;
    padding: 0 1.5rem 3rem;
}

.shop-main .card {
    padding: 1.5rem 1.75rem;
}

.shop-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.shop-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.shop-form label {
    display: block;
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-bottom: 0.35rem;
    font-weight: 500;
}

.shop-form input,
.shop-form textarea,
.shop-form select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    font: inherit;
    font-size: 0.9rem;
    transition: border-color 0.15s ease;
}

.shop-form input:focus,
.shop-form textarea:focus,
.shop-form select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px var(--color-accent-soft);
}

.shop-form textarea {
    min-height: 90px;
    resize: vertical;
}

.shop-form .shop-form__submit {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-accent);
    color: var(--color-bg);
    border: 0;
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shop-form .shop-form__submit:hover {
    background: var(--color-accent-2);
}

/* Zahlungsart-Auswahl auf den Shop-Seiten */

.shop-payment,
.shop-payment-options {
    margin: 0 0 1rem;
}

.shop-payment {
    border: 0;
    padding: 0;
}

.shop-payment legend {
    font-size: 0.8rem;
    color: var(--color-muted);
    font-weight: 500;
    margin-bottom: 0.4rem;
    padding: 0;
}

.shop-form .shop-payment__option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    margin-bottom: 0.5rem;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.shop-form .shop-payment__option:hover {
    border-color: var(--color-accent);
}

.shop-form .shop-payment__option:has(input:checked) {
    border-color: var(--color-accent);
    background: var(--color-surface-2);
}

.shop-payment__option input[type="radio"] {
    width: 1rem;
    height: 1rem;
    padding: 0;
    accent-color: var(--color-accent);
    margin: 0;
    flex-shrink: 0;
}

.shop-payment__name {
    font-size: 0.9rem;
    color: var(--color-text);
    font-weight: 500;
}

.shop-payment__desc {
    font-size: 0.75rem;
    color: var(--color-muted-2);
}

.shop-payment-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.shop-payment-option {
    border: 1px solid var(--color-border);
    padding: 1rem;
    background: var(--color-bg);
}

.shop-payment-option.is-selected {
    border-color: var(--color-accent);
    background: var(--color-surface-2);
}

.shop-payment-option .shop-product__meta {
    margin-bottom: 0;
}

.shop-errors {
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.3);
    padding: 0.85rem 1.1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.shop-errors ul {
    margin: 0;
    padding-left: 1.25rem;
}

.shop-success {
    background: var(--color-accent-soft);
    border: 1px solid var(--color-accent);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.shop-success h2 {
    margin: 0 0 0.5rem;
    color: var(--color-accent);
}

.shop-success__nr {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-accent);
}

.shop-success__details {
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.shop-success__details dt {
    color: var(--color-muted);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.shop-success__details dt:first-child {
    margin-top: 0;
}

.shop-success__details dd {
    margin: 0 0 0.5rem;
}

.shop-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* Admin */

.admin-main {
    max-width: 1100px;
    margin: 1.5rem auto;
    padding: 0 1rem 3rem;
}

.admin-bar {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-bar__user {
    color: var(--color-muted);
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

.admin-toolbar {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.admin-toolbar form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex: 1;
}

.admin-toolbar input,
.admin-toolbar select {
    padding: 0.5rem 0.7rem;
    background: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    font: inherit;
    font-size: 0.85rem;
    transition: border-color 0.15s ease;
}

.admin-toolbar input:focus,
.admin-toolbar select:focus {
    outline: none;
    border-color: var(--color-accent);
}

.admin-toolbar button {
    padding: 0.5rem 1rem;
    background: var(--color-accent);
    color: var(--color-bg);
    border: 0;
    font: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.admin-toolbar button:hover {
    background: var(--color-accent-2);
}

.admin-toolbar a.button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    background: var(--color-surface);
    font-size: 0.85rem;
    transition: all 0.15s ease;
}

.admin-toolbar a.button:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    text-decoration: none;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.admin-table th,
.admin-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-muted-2);
    font-weight: 600;
    background: var(--color-surface);
    position: sticky;
    top: 0;
}

.admin-table th a {
    color: var(--color-muted);
}

.admin-table th a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.admin-table tr:hover {
    background: var(--color-surface-2);
}

.admin-table a {
    color: var(--color-text);
}

.admin-table a:hover {
    color: var(--color-accent);
}

.admin-table .nr {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-accent);
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    border: 1px solid var(--color-border);
}

.badge--neu { border-color: var(--color-info); color: var(--color-info); }
.badge--bezahlt { border-color: var(--color-accent); color: var(--color-accent); }
.badge--erledigt { border-color: #4ade80; color: #4ade80; }
.badge--storniert { border-color: var(--color-danger); color: var(--color-danger); }

.order-detail {
    display: grid;
    gap: 1.5rem;
}

.order-detail__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.order-detail__box {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 1.25rem 1.5rem;
    transition: border-color 0.2s ease;
}

.order-detail__box:hover {
    border-color: var(--color-border-2);
}

.order-detail__box h2 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-muted-2);
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
}

.order-detail__box dl {
    margin: 0;
}

.order-detail__box dt {
    font-size: 0.75rem;
    color: var(--color-muted-2);
    margin-top: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.order-detail__box dt:first-child {
    margin-top: 0;
}

.order-detail__box dd {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text);
}

.order-detail__log {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.order-detail__log li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.order-detail__log li:last-child {
    border-bottom: none;
}

.order-detail__log .at {
    color: var(--color-muted-2);
    font-size: 0.75rem;
    font-family: var(--font-mono);
}

.order-detail__actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.order-detail__actions button {
    padding: 0.55rem 1.1rem;
    background: var(--color-accent);
    color: var(--color-bg);
    border: 0;
    font: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.order-detail__actions button:hover {
    background: var(--color-accent-2);
}

.order-detail__actions select,
.order-detail__actions textarea {
    padding: 0.5rem 0.65rem;
    background: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    font: inherit;
    font-size: 0.85rem;
    transition: border-color 0.15s ease;
}

.order-detail__actions select:focus,
.order-detail__actions textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.order-detail__actions textarea {
    width: 100%;
    min-height: 70px;
    resize: vertical;
}

/* Status-Seite */

.status-page {
    max-width: 600px;
    margin: 3rem auto;
    text-align: center;
}

.button, button[type="submit"], button[type="button"] {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background: var(--color-accent);
    color: var(--color-bg);
    border: 0;
    font: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.4;
}

.button:hover, button[type="submit"]:hover, button[type="button"]:hover {
    background: var(--color-accent-2);
    text-decoration: none;
    color: var(--color-bg);
}

.button.secondary {
    background: var(--color-surface-2);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.button.secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.eyebrow {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.lead {
    color: var(--color-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Responsive */

@media (max-width: 1080px) {
    .layout {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    .sidebar--right {
        grid-column: 1 / -1;
        position: static;
        order: 3;
    }
}

@media (max-width: 1200px) {
    .layout {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 1rem;
    }

    .sidebar--left {
        position: static;
    }

    .sidebar--right {
        grid-column: 1 / -1;
        position: static;
        order: 2;
        width: 100%;
    }

    .sidebar--right .box > summary {
        display: block;
    }

    .sidebar--right .box__title {
        display: none;
    }

    .sidebar--right .box {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .sidebar--left {
        position: static;
        grid-column: 1 / -1;
        order: -1;
        width: 100%;
    }

    .layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .sidebar--left .box > summary {
        display: block;
    }

    .sidebar--left .box__title {
        display: none;
    }

    .sidebar--left .box {
        width: 100%;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 760px) {
    .layout {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .sidebar {
        position: static;
    }

    .sidebar--left {
        order: 0;
        width: 100%;
    }

    .content {
        order: 1;
    }

    .sidebar--right {
        order: 2;
        width: 100%;
    }

    .article {
        padding: 1.25rem;
    }

    .product-card {
        grid-template-columns: 1fr;
    }

    .shop-form__row {
        grid-template-columns: 1fr;
    }

    .order-detail__grid {
        grid-template-columns: 1fr;
    }

    /* Sidebar-Boxen als aufklappbare Vollbreite-Boxen */
    .box > summary {
        display: block;
    }

    .box__title {
        display: none;
    }

    .box__content {
        padding: 0.6rem 1rem 0.85rem;
    }

    .box {
        width: 100%;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 520px) {
    .site-header .brand {
        padding: 0.7rem 1rem;
    }

    .brand__tag {
        display: none;
    }

    .layout {
        padding: 1rem;
    }
}
/* Checkout-Zusammenfassung */

.checkout-summary {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
}

.checkout-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    font-size: 0.85rem;
}

.checkout-summary__row--muted {
    color: var(--color-muted-2);
    font-size: 0.8rem;
}

.checkout-summary__row--total {
    border-top: 1px solid var(--color-border);
    margin-top: 0.35rem;
    padding-top: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-accent);
}

.checkout-modal__note {
    font-size: 0.75rem;
    color: var(--color-muted-2);
    margin: 0 0 1rem;
}

/* Zahlungsart-Auswahl im Dialog */

.checkout-payment {
    border: 0;
    padding: 0;
    margin: 0 0 0.9rem;
}

.checkout-payment legend {
    font-size: 0.8rem;
    color: var(--color-muted);
    font-weight: 500;
    margin-bottom: 0;
    padding: 0;
}

.checkout-payment__hint {
    font-size: 0.72rem;
    color: var(--color-muted-2);
    margin: 0.1rem 0 0.6rem;
    line-height: 1.4;
}

.checkout-modal .checkout-form .checkout-payment__option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    margin-bottom: 0.5rem;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.checkout-modal .checkout-form .checkout-payment__option:hover {
    border-color: var(--color-accent);
}

.checkout-modal .checkout-form .checkout-payment__option:has(input:checked) {
    border-color: var(--color-accent);
    background: var(--color-surface-2);
}

.checkout-payment__option input[type="radio"] {
    accent-color: var(--color-accent);
    margin: 0.1rem 0 0;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
}

.checkout-payment__text {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.checkout-payment__name {
    font-size: 0.9rem;
    color: var(--color-text);
    font-weight: 500;
}

.checkout-payment__desc {
    font-size: 0.75rem;
    color: var(--color-muted-2);
}

.checkout-customer h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-muted-2);
    margin: 0 0 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--color-border);
}

.checkout-customer label {
    display: block;
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.checkout-customer input[type="email"],
.checkout-customer input[type="text"] {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    font: inherit;
    font-size: 0.9rem;
    transition: border-color 0.15s ease;
    margin-bottom: 0.6rem;
}

.checkout-customer input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px var(--color-accent-soft);
}

.checkout-consents {
    margin-bottom: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.checkout-consents .consent {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.8rem;
    color: var(--color-muted);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.checkout-consents .consent:last-child {
    margin-bottom: 0;
}

.checkout-consents .consent input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.checkout-consents .consent a {
    color: var(--color-accent);
}

/* Checkout-Layout: 2 Spalten auf Desktop */

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.checkout-layout__left {
    min-width: 0;
}

.checkout-layout__right {
    min-width: 0;
}

@media (max-width: 640px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

/* Sidebar als aufklappbar auf mobil */

.sidebar-details {
    margin-bottom: 1rem;
}

.sidebar-details__summary {
    display: none;
    cursor: pointer;
    padding: 0.6rem 0.85rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.85rem;
    list-style: none;
    user-select: none;
}

.sidebar-details__summary::-webkit-details-marker {
    display: none;
}

.sidebar-details__summary::before {
    content: "▸ ";
    color: var(--color-accent);
}

.sidebar-details[open] > .sidebar-details__summary::before {
    content: "▾ ";
}

@media (max-width: 760px) {
    .sidebar-details__summary {
        display: block;
    }

    .sidebar {
        position: static;
    }

    .sidebar-details {
        width: 100%;
    }

    .sidebar-details .sidebar {
        margin-top: 0.5rem;
    }
}

/* DS History Web Component - Dark Theme Overrides */

ds-history {
    --background-color: transparent;
    --line-color: var(--color-accent);
    --circle-color: var(--color-accent);
    --text-color: var(--color-text);
    --arrow-color: var(--color-accent);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.ds_history .element > * {
    color: var(--color-text);
}

.ds_history h3, .ds_history h4, .ds_history h5 {
    color: var(--color-text-strong);
}

.ds_history p {
    color: var(--color-muted);
}

.ds_history hr {
    border-color: var(--color-border);
}

.ds_history pre {
    background: var(--color-code-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

/* Marketing Banner */

.banner-slot {
    margin: 1.5rem 0;
    text-align: center;
}

.banner-slot img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--color-border);
}

/* Suche im Header */

.site-header__inner {
    flex-wrap: wrap;
}

.site-search {
    position: relative;
    flex: 1;
    max-width: 360px;
    min-width: 180px;
}

.site-search input[type="search"] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    font: inherit;
    font-size: 0.85rem;
    transition: border-color 0.15s ease;
}

.site-search input[type="search"]:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px var(--color-accent-soft);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border-2);
    border-top: none;
    max-height: 400px;
    overflow-y: auto;
    z-index: 60;
    box-shadow: var(--shadow-lg);
}

.search-results__item {
    display: block;
    padding: 0.6rem 0.85rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    transition: background 0.15s ease;
}

.search-results__item:hover {
    background: var(--color-surface-2);
    text-decoration: none;
    color: var(--color-text-strong);
}

.search-results__title {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-strong);
}

.search-results__meta {
    display: block;
    font-size: 0.75rem;
    color: var(--color-muted-2);
    font-family: var(--font-mono);
    margin-top: 0.15rem;
}

.search-results__empty {
    padding: 0.75rem 0.85rem;
    color: var(--color-muted);
    font-size: 0.85rem;
}

@media (max-width: 640px) {
    .site-header__inner {
        flex-direction: column;
        align-items: stretch;
    }
    .site-search {
        max-width: none;
    }
}

.search-results__item.active {
    background: var(--color-accent-soft);
    border-left: 2px solid var(--color-accent);
}

.search-results__item.active .search-results__title {
    color: var(--color-accent);
}
