:root {
    --bg: #050805;
    --bg-soft: #0b120c;
    --panel: #09110a;
    --ink: #8bff8a;
    --ink-strong: #c4ffc3;
    --muted: #5eb85e;
    --line: #1e3b1f;
    --accent: #5cff61;
    --accent-soft: #2ea136;
    --warning: #ffd95d;
    --shadow: 0 0 24px rgba(92, 255, 97, 0.14);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "IBM Plex Mono", "JetBrains Mono", "Fira Code", monospace;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 8%, rgba(45, 124, 49, 0.25), transparent 32%),
        radial-gradient(circle at 90% 18%, rgba(94, 184, 94, 0.16), transparent 38%),
        linear-gradient(180deg, #040704 0%, #0a120a 100%);
    line-height: 1.55;
    position: relative;
}

input,
textarea,
button,
select {
    font: inherit;
}

p,
li,
h1,
h2,
h3 {
    overflow-wrap: anywhere;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0,
            rgba(0, 0, 0, 0) 2px,
            rgba(0, 0, 0, 0.2) 3px,
            rgba(0, 0, 0, 0.2) 4px);
    opacity: 0.23;
    z-index: 80;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.7);
    z-index: 79;
}

h1,
h2,
h3 {
    line-height: 1.25;
    margin: 0 0 0.7rem;
    color: var(--ink-strong);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

p {
    margin: 0 0 1rem;
}

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

a:hover {
    color: var(--ink-strong);
    text-decoration: underline;
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    background: rgba(7, 13, 8, 0.88);
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 30;
}

/* ── Globale Laufschrift (direkt unter Header) ───────── */

.site-ticker {
    position: sticky;
    top: var(--header-h, 48px);
    z-index: 29;
    overflow: hidden;
    background: rgba(14, 41, 17, 0.95);
    border-bottom: 1px solid #2f7d3b;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.site-ticker-track {
    display: inline-flex;
    white-space: nowrap;
    animation: site-ticker-scroll 28s linear infinite;
}

.site-ticker-track span {
    display: inline-block;
    padding: 0.42rem 0;
    color: #c9ffc7;
    font-size: 0.8rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-weight: 700;
}

@keyframes site-ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.333%);
    }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .site-header {
        background: rgba(7, 13, 8, 0.98);
    }
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 0;
}

.brand {
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--ink-strong);
    position: relative;
}

.brand::after {
    content: "_";
    margin-left: 0.2rem;
    animation: blink 1s steps(1) infinite;
}

.site-nav {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.site-nav a {
    border: 1px solid var(--line);
    background: rgba(13, 24, 14, 0.72);
    padding: 0.35rem 0.55rem;
    border-radius: 0.35rem;
}

.site-nav a:hover,
.site-nav a.active {
    background: #133218;
    border-color: #2a6c33;
    text-decoration: none;
}

.hero {
    padding: 3.7rem 0 2.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.2rem;
    align-items: start;
}

.kicker {
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--warning);
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.lead {
    font-size: 1.04rem;
    color: var(--muted);
    max-width: 72ch;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}

.btn {
    display: inline-block;
    padding: 0.62rem 0.95rem;
    border-radius: 0.35rem;
    border: 1px solid var(--line);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: transform 0.14s ease, box-shadow 0.14s ease;
}

@media (prefers-reduced-motion: reduce) {
    .brand::after {
        animation: none;
    }

    .btn {
        transition: none;
    }

    .learnhilfe-ticker-track {
        animation: none;
    }
}

.btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-primary {
    background: #123417;
    color: var(--accent);
    border-color: #2f7d3b;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: #1b4920;
}

.btn-secondary {
    background: transparent;
    color: var(--ink-strong);
}

.hero-card,
.panel,
.card,
.form-wrap,
.kb-entry,
.legal {
    background: linear-gradient(180deg, rgba(11, 23, 11, 0.95), rgba(8, 16, 9, 0.95));
    border: 1px solid var(--line);
    border-radius: 0.45rem;
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow);
}

.hero-card ul {
    margin: 0.5rem 0 0;
    padding-left: 1.2rem;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding-bottom: 2.7rem;
}

.page-head {
    padding: 2.2rem 0 1.2rem;
}

.page-grid {
    display: grid;
    gap: 1rem;
    padding-bottom: 2rem;
}

.feed-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tag-btn {
    border: 1px solid var(--line);
    background: #0f1c10;
    color: var(--ink);
    border-radius: 0.35rem;
    padding: 0.35rem 0.7rem;
    cursor: pointer;
    font: inherit;
}

.tag-btn.is-active {
    background: #204925;
    border-color: #3c9446;
    color: var(--ink-strong);
}

.meta {
    color: var(--muted);
    font-size: 0.94rem;
}

.form-wrap {
    max-width: 760px;
}

label {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
}

label.meta {
    text-transform: none;
    font-weight: 400;
    font-size: 0.94rem;
    letter-spacing: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    line-height: 1.5;
    margin-bottom: 0.9rem;
}

label.meta input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 0.18rem;
}

input,
textarea {
    width: 100%;
    margin-top: 0.35rem;
    margin-bottom: 0.9rem;
    border: 1px solid #26512c;
    border-radius: 0.3rem;
    padding: 0.7rem;
    font: inherit;
    color: var(--ink-strong);
    background: #0a130b;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #5bdb6a;
    box-shadow: 0 0 0 2px rgba(92, 255, 97, 0.2);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.site-footer {
    border-top: 1px solid var(--line);
    margin-top: 1rem;
    background: rgba(5, 10, 6, 0.92);
}

.footer-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0;
}

.linktree {
    display: grid;
    gap: 0.8rem;
    max-width: 680px;
    padding-bottom: 2.1rem;
}

.link-btn {
    display: block;
    padding: 0.85rem 1rem;
    border: 1px solid #2d6b34;
    background: #102014;
    border-radius: 0.35rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.link-btn:hover {
    background: #17301d;
    text-decoration: none;
}

.content-image {
    width: 100%;
    border: 1px solid #27572d;
    border-radius: 0.35rem;
    margin-bottom: 0.8rem;
    object-fit: cover;
    max-height: 320px;
}

/* ── Admin-Layout (Sidebar + Content) ───────────────────── */

.admin-layout {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 0;
    align-items: start;
    margin-bottom: 2rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    overflow: hidden;
}

.admin-nav {
    background: rgba(7, 14, 8, 0.9);
    border-right: 1px solid var(--line);
    min-height: 540px;
}

.admin-nav__header {
    padding: 1rem 1rem 0.8rem;
    border-bottom: 1px solid var(--line);
}

.admin-nav__label {
    font-size: 0.72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.2rem;
}

.admin-nav__user {
    font-size: 0.84rem;
    color: var(--ink-strong);
    font-weight: 700;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-nav__list {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
}

.admin-nav__group {
    margin: 0.7rem 0 0.3rem;
    padding: 0 1rem;
    font-size: 0.68rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.9;
}

.admin-nav__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.6rem 1rem;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    text-align: left;
    transition: background 0.1s ease, color 0.1s ease;
}

.admin-nav__item:hover {
    background: rgba(92, 255, 97, 0.04);
    color: var(--ink-strong);
}

.admin-nav__item.is-active {
    background: rgba(92, 255, 97, 0.07);
    border-left-color: var(--accent);
    color: var(--ink-strong);
}

.nav-item-label {
    flex: 1;
}

.nav-badge {
    background: #1a3d0f;
    color: #5cff61;
    border: 1px solid #2e6b1a;
    border-radius: 999px;
    padding: 0.05rem 0.42rem;
    font-size: 0.72rem;
    font-weight: 700;
    margin-left: 0.4rem;
    min-width: 1.4em;
    text-align: center;
}

.admin-content {
    padding: 1.4rem 1.6rem;
    background: rgba(9, 17, 10, 0.75);
    min-height: 540px;
}

.admin-section {
    display: none;
}

.admin-section.is-active {
    display: block;
}

.section-head {
    display: flex;
    align-items: baseline;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--line);
}

.section-head h2 {
    margin: 0;
}

.section-head .meta {
    margin: 0;
    flex: 1;
}

/* ── Stat-Cards (Dashboard) ─────────────────────────────── */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.9rem;
    margin-top: 0.4rem;
}

.stat-card {
    background: rgba(12, 24, 13, 0.9);
    border: 1px solid var(--line);
    border-radius: 0.4rem;
    padding: 0.9rem 1rem;
}

.stat-card__value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--ink-strong);
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.stat-card__label {
    font-size: 0.76rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
}

.admin-overview-card {
    background: rgba(12, 24, 13, 0.9);
    border: 1px solid var(--line);
    border-radius: 0.4rem;
    padding: 0.9rem 1rem;
}

.admin-overview-card h3 {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
}

.marketing-links-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.8rem;
}

.marketing-link-card {
    border: 1px solid #27572d;
    border-radius: 0.35rem;
    background: rgba(10, 19, 11, 0.86);
    padding: 0.8rem;
}

.marketing-link-title {
    margin: 0 0 0.35rem;
    font-weight: 700;
    color: var(--ink-strong);
}

.marketing-link-url {
    margin: 0.45rem 0 0.7rem;
    border: 1px solid #24532c;
    border-radius: 0.3rem;
    padding: 0.5rem 0.55rem;
    background: rgba(9, 16, 10, 0.95);
    color: var(--accent);
    font-size: 0.88rem;
    word-break: break-all;
}

.marketing-utm-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}

/* ── CMS Grid & Actions ─────────────────────────────────── */

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-content .form-wrap {
    max-width: none;
}

.admin-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}

.section-actions {
    margin-top: 0.4rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.is-hidden {
    display: none;
}

.consent-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: 980px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(10, 21, 11, 0.98), rgba(6, 14, 7, 0.98));
    border: 1px solid #2f7d3b;
    border-radius: 0.5rem;
    padding: 1rem 1.1rem;
    box-shadow: 0 0 30px rgba(92, 255, 97, 0.2);
    z-index: 140;
}

.consent-banner h2 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.consent-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.8rem;
}

.consent-tag {
    border: 1px solid #2f5e34;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    font-size: 0.78rem;
    color: var(--ink-strong);
    background: rgba(16, 32, 18, 0.9);
}

.consent-tag.is-required {
    border-color: #5fb868;
}

.consent-actions {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.consent-manage-button {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 130;
    border: 1px solid #2f7d3b;
    border-radius: 0.35rem;
    background: #0f2712;
    color: var(--ink-strong);
    font: inherit;
    padding: 0.45rem 0.7rem;
    cursor: pointer;
}

.consent-manage-button:hover {
    background: #15351a;
}

.consent-modal {
    position: fixed;
    inset: 0;
    background: rgba(1, 3, 1, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    z-index: 150;
}

.consent-modal-card {
    width: min(760px, 100%);
    max-height: min(86vh, 760px);
    overflow: auto;
    background: linear-gradient(180deg, rgba(10, 21, 11, 0.98), rgba(6, 14, 7, 0.98));
    border: 1px solid #2f7d3b;
    border-radius: 0.5rem;
    padding: 1rem 1.1rem;
    box-shadow: 0 0 30px rgba(92, 255, 97, 0.2);
}

.consent-option {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    border: 1px solid #24532c;
    border-radius: 0.35rem;
    padding: 0.75rem;
    margin-bottom: 0.6rem;
    background: rgba(10, 19, 11, 0.88);
}

.consent-option span {
    display: block;
}

.consent-option small {
    display: block;
    color: var(--muted);
    margin-top: 0.2rem;
}

.consent-option input[type="checkbox"] {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    accent-color: #5cff61;
}

.consent-option.is-locked {
    border-color: #5fb868;
}

.consent-modal-open {
    overflow: hidden;
}

#section-cms textarea {
    min-height: 200px;
}

#media-output,
#import-json {
    min-height: 130px;
}

#utm-output {
    min-height: 100px;
}

@keyframes blink {

    0%,
    45% {
        opacity: 1;
    }

    46%,
    100% {
        opacity: 0;
    }
}

@media (max-width: 900px) {

    .hero-grid,
    .quick-links,
    .admin-grid,
    .admin-overview-grid,
    .marketing-utm-grid {
        grid-template-columns: 1fr;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-nav {
        border-right: none;
        border-bottom: 1px solid var(--line);
        min-height: auto;
    }

    .admin-nav__list {
        display: flex;
        flex-wrap: nowrap;
        gap: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-nav__item {
        border-left: none;
        border-bottom: 3px solid transparent;
        font-size: 0.78rem;
        padding: 0.5rem 0.7rem;
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .admin-nav__item.is-active {
        border-left-color: transparent;
        border-bottom-color: var(--accent);
    }

    .admin-content {
        padding: 1rem;
    }

    .footer-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .consent-banner {
        left: 0.65rem;
        right: 0.65rem;
        bottom: 0.65rem;
        padding: 0.85rem;
    }

    .consent-actions .btn {
        width: 100%;
        text-align: center;
    }

    .consent-option {
        align-items: flex-start;
    }

    .consent-manage-button {
        right: 0.65rem;
        bottom: 0.65rem;
    }
}

.cookie-bar-lite {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    margin: 0 auto;
    width: min(960px, calc(100vw - 2rem));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    border: 1px solid #2f7d3b;
    border-radius: 0.45rem;
    padding: 0.75rem 0.9rem;
    background: rgba(8, 17, 9, 0.98);
    box-shadow: 0 0 20px rgba(92, 255, 97, 0.16);
    z-index: 110;
}

.cookie-bar-lite__text {
    margin: 0;
    color: var(--ink-strong);
}

.cookie-bar-lite__actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-shrink: 0;
}

.cookie-bar-lite__link,
.cookie-bar-lite__button {
    border: 1px solid #2a6c33;
    border-radius: 0.35rem;
    padding: 0.42rem 0.68rem;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.cookie-bar-lite__link {
    background: transparent;
    color: var(--ink-strong);
}

.cookie-bar-lite__button {
    background: #123417;
    color: var(--accent);
}

.cookie-bar-lite__button:hover,
.cookie-bar-lite__link:hover {
    text-decoration: none;
    background: #1a4720;
}

.auth-corner {
    position: fixed;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 170;
}

.auth-corner-button {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    border: 1px solid #2f7d3b;
    background: #123417;
    color: var(--ink-strong);
    font-weight: 700;
    cursor: pointer;
}

.auth-corner-panel {
    width: min(420px, calc(100vw - 1.5rem));
    margin-top: 0.55rem;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 0.45rem;
    padding: 0.95rem;
    background: linear-gradient(180deg, rgba(10, 20, 10, 0.98), rgba(7, 14, 8, 0.98));
    box-shadow: 0 0 24px rgba(92, 255, 97, 0.18);
}

.auth-corner-panel h2 {
    margin-bottom: 0.35rem;
}

.auth-tabs {
    display: flex;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
}

.auth-form input,
.auth-form textarea,
#auth-user-box input,
#auth-user-box textarea {
    margin-bottom: 0.65rem;
}

.auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.5rem;
}

.auth-license-area {
    margin: 0.75rem 0;
    padding: 0.7rem;
    border: 1px solid #2a5e31;
    border-radius: 0.4rem;
    background: rgba(10, 19, 11, 0.7);
}

.auth-license-area h3 {
    margin: 0 0 0.55rem;
    font-size: 0.86rem;
    color: var(--ink-strong);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.auth-license-count {
    display: inline-block;
    min-width: 1.4rem;
    margin-left: 0.35rem;
    padding: 0.02rem 0.35rem;
    border: 1px solid #3f9f4d;
    border-radius: 999px;
    background: rgba(16, 46, 21, 0.8);
    color: #b8ffb6;
    font-size: 0.74rem;
    font-weight: 700;
    text-align: center;
    vertical-align: text-top;
}

.auth-license-list {
    display: grid;
    gap: 0.45rem;
}

.auth-license-item {
    border: 1px solid #27572d;
    border-radius: 0.35rem;
    padding: 0.45rem 0.55rem;
    background: rgba(9, 18, 10, 0.9);
}

.auth-license-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.22rem;
}

.auth-license-icon {
    min-width: 1.85rem;
    padding: 0.1rem 0.35rem;
    border-radius: 0.3rem;
    border: 1px solid #2f7d3b;
    background: rgba(18, 52, 23, 0.75);
    color: #d2ffd1;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: center;
}

.auth-license-icon--learning {
    border-color: #4dba59;
    background: rgba(22, 70, 30, 0.82);
}

.auth-license-icon--chat {
    border-color: #5f93cf;
    background: rgba(20, 48, 86, 0.75);
}

.auth-license-icon--knowledge {
    border-color: #c6a35b;
    background: rgba(70, 52, 20, 0.75);
}

.auth-license-state {
    margin-left: auto;
    border: 1px solid #3f9f4d;
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #b8ffb6;
    background: rgba(16, 46, 21, 0.8);
}

.auth-license-item .meta {
    margin-bottom: 0;
    font-size: 0.82rem;
}

.auth-license-title {
    margin: 0 0 0.2rem;
    color: var(--ink-strong);
    font-weight: 700;
    font-size: 0.86rem;
}

.btn-subtle {
    border-color: #264f2c;
    background: rgba(10, 18, 11, 0.45);
    color: var(--muted);
}

.btn-subtle:hover {
    background: rgba(20, 39, 22, 0.8);
    color: var(--ink-strong);
}

.locked-card {
    margin-top: 1rem;
    padding: 0.9rem;
    border: 1px dashed #2f7d3b;
    border-radius: 0.4rem;
    background: rgba(10, 20, 11, 0.72);
}

.maintenance-note {
    margin-top: 1rem;
    border: 1px dashed #5fb868;
    background: linear-gradient(180deg, rgba(16, 32, 18, 0.88), rgba(10, 20, 11, 0.88));
}

.maintenance-note h2 {
    margin-bottom: 0.5rem;
}

.maintenance-note .meta {
    margin-bottom: 0;
    color: #a9f7a6;
}

.learnhilfe-highlight {
    margin-top: 1.25rem;
    border: 1px solid #3f9f4d;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 0 28px rgba(92, 255, 97, 0.22);
    background: linear-gradient(160deg, rgba(10, 24, 12, 0.98), rgba(6, 14, 8, 0.98));
}

.learnhilfe-highlight-body {
    padding: 1rem 1.1rem;
}

.learnhilfe-highlight h2 {
    margin-bottom: 0.55rem;
}

.learnhilfe-ticker {
    position: relative;
    overflow: hidden;
    border-top: 1px solid #2f7d3b;
    border-bottom: 1px solid #2f7d3b;
    background: rgba(14, 41, 17, 0.9);
}

.learnhilfe-ticker-bottom {
    border-top: 1px solid #295f31;
    border-bottom: none;
    background: rgba(10, 29, 12, 0.94);
}

.learnhilfe-ticker-track {
    display: inline-flex;
    min-width: 100%;
    gap: 2.2rem;
    white-space: nowrap;
    padding: 0.48rem 0;
    animation: learnhilfe-marquee 20s linear infinite;
}

.learnhilfe-ticker-track span {
    color: #c9ffc7;
    font-size: 0.83rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.learnhilfe-ticker-track-reverse {
    animation-direction: reverse;
    animation-duration: 24s;
}

@keyframes learnhilfe-marquee {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

.chat-wrap {
    max-width: 900px;
    padding-bottom: 2rem;
}

.chat-feed {
    min-height: 280px;
    max-height: 58vh;
    overflow: auto;
    padding: 0.8rem;
    border: 1px solid #27572d;
    border-radius: 0.35rem;
    background: rgba(7, 15, 8, 0.82);
    margin-bottom: 0.8rem;
}

.chat-message {
    border: 1px solid #244f2a;
    border-radius: 0.35rem;
    padding: 0.55rem 0.65rem;
    margin-bottom: 0.55rem;
    background: rgba(14, 28, 15, 0.72);
}

.chat-message.is-own {
    border-color: #3a8f45;
    background: rgba(20, 48, 24, 0.72);
}

.chat-message.is-admin {
    border-color: #2a5ea3;
    background: rgba(17, 33, 58, 0.72);
}

.chat-meta {
    margin: 0 0 0.3rem;
    color: var(--muted);
    font-size: 0.86rem;
}

.chat-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.7rem;
    align-items: start;
}

.admin-chat-toolbar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.7rem;
}

#chat-thread-select {
    min-width: 260px;
    flex: 1 1 280px;
}

.admin-chat-feed {
    max-height: 340px;
    margin-bottom: 0.8rem;
}

.admin-chat-compose {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-top: 0.65rem;
}

.admin-chat-compose #chat-reply {
    min-height: 110px;
    margin-bottom: 0.6rem;
}

.admin-chat-compose #chat-send {
    width: auto;
}

@media (max-width: 700px) {
    .learnhilfe-highlight-body {
        padding: 0.9rem;
    }

    .learnhilfe-ticker-track span {
        font-size: 0.76rem;
        letter-spacing: 0.05em;
    }

    .cookie-bar-lite {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-bar-lite__actions {
        width: 100%;
        justify-content: space-between;
    }

    .auth-corner {
        top: 0.65rem;
        right: 0.65rem;
        bottom: auto;
    }

    .chat-row {
        grid-template-columns: 1fr;
    }

    #chat-thread-select {
        min-width: 0;
        width: 100%;
    }

    .admin-chat-feed {
        max-height: 46vh;
    }

    .admin-chat-compose {
        position: sticky;
        bottom: 0;
        background: rgba(7, 13, 8, 0.96);
        backdrop-filter: blur(2px);
        padding: 0.65rem 0 0.2rem;
        border-top: 1px solid rgba(255, 255, 255, .14);
    }

    .admin-chat-compose #chat-send {
        width: 100%;
    }
}

@media (min-width: 701px) and (max-width: 1100px) {
    .admin-chat-toolbar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.5rem;
        align-items: stretch;
    }

    #chat-thread-select,
    .admin-chat-toolbar .btn {
        width: 100%;
        min-width: 0;
    }

    .admin-chat-feed {
        max-height: 42vh;
    }
}

/* ── Kontaktanfragen (Admin) ─────────────────────────── */

.contacts-feed {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 480px;
    overflow-y: auto;
    margin-bottom: 0.6rem;
}

.contact-entry {
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, .04);
}

.contact-entry.is-handled {
    opacity: .5;
    border-color: rgba(255, 255, 255, .07);
}

.contact-meta {
    font-size: .78rem;
    color: #8a9bb5;
    margin-bottom: .35rem;
}

.contact-msg {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: .9rem;
    margin-bottom: .6rem;
}

.contact-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.admin-toolbar {
    margin-bottom: 0.8rem;
}

/* ── Nutzerverwaltung (Admin) ──────────────────────────── */

.users-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.6rem;
    margin-bottom: 0.9rem;
}

.users-summary-item {
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 6px;
    background: rgba(255, 255, 255, .03);
    padding: 0.45rem 0.55rem;
}

.users-summary-label {
    margin: 0;
    font-size: .72rem;
    color: #8a9bb5;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.users-summary-value {
    margin: 0.2rem 0 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink-strong);
}

.users-feed {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 520px;
    overflow-y: auto;
    margin-bottom: 0.6rem;
}

.user-entry {
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 6px;
    padding: .75rem 1rem;
    background: rgba(255, 255, 255, .04);
}

.user-entry.is-locked {
    border-color: rgba(255, 80, 80, .35);
    background: rgba(255, 40, 40, .04);
}

.user-meta {
    font-size: .88rem;
    margin-bottom: .3rem;
}

.user-badges {
    font-size: .75rem;
    color: #8a9bb5;
    margin-bottom: .55rem;
}

.user-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.user-actions-note {
    flex-basis: 100%;
    margin-top: 0.25rem;
}

.admin-filter-row {
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) auto minmax(180px, 240px);
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 0.9rem;
}

.admin-filter-row input,
.admin-filter-row select {
    margin: 0;
}

.audit-feed {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.audit-entry {
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, .03);
}

.audit-entry .meta {
    margin-bottom: 0.3rem;
}

.audit-entry__action {
    margin: 0;
    font-size: 0.88rem;
}

.user-actions .btn.is-busy {
    opacity: 0.8;
    cursor: wait;
    transform: none;
}

.admin-toast-stack {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 220;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: min(360px, calc(100vw - 1.5rem));
}

.admin-toast {
    border: 1px solid #2f7d3b;
    border-radius: 0.45rem;
    background: rgba(10, 22, 11, 0.97);
    color: var(--ink-strong);
    padding: 0.62rem 0.78rem;
    box-shadow: 0 0 16px rgba(92, 255, 97, 0.16);
    animation: toast-in 0.18s ease-out;
}

.admin-toast.is-success {
    border-color: #2f7d3b;
}

.admin-toast.is-error {
    border-color: #8f5b23;
    color: #ffe6ba;
    background: rgba(28, 19, 10, 0.96);
}

.admin-toast.is-leaving {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 700px) {
    .admin-toolbar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.45rem;
        align-items: stretch;
    }

    .admin-toolbar .btn,
    .admin-toolbar select,
    .admin-toolbar input {
        width: 100%;
    }

    .users-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .user-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .user-actions .btn {
        width: 100%;
    }

    .admin-filter-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
}

@media (min-width: 701px) and (max-width: 1100px) {
    .users-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}