@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-latin-700-normal.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --rf-font-root: 15px;
    --rf-font-xs: .733rem;
    --rf-font-sm: .933rem;
    --rf-font-base: 1rem;
    --rf-font-title: 1.067rem;
    --rf-font-icon-lg: 1.55rem;
    --brand: #0f6e3d;
    --brand-focus: rgba(15, 110, 61, 0.14);
    --rf-black: #111111;
    --rf-blue: #0057B8;
    --rf-red: #D71920;
    --rf-green: #006633;
    --rf-green-dark: #006B2E;
    --rf-green-mid: #168246;
    --rf-green-light: #00A651;
    --rf-muted: #667085;
    --rapidfans-page-bg: #f5f6f8;
}

html,
body {
    margin: 0;
    overflow-x: hidden;
    padding: 0;
}

html {
    font-size: var(--rf-font-root);
}

body {
    background: var(--rapidfans-page-bg);
    font-family: "Inter", "Roboto", Arial, sans-serif;
    font-size: var(--rf-font-base);
}

body > main.container {
    background: #fbfcfc;
    border: 1px solid #d7dde2;
    border-radius: 0 0 4px 4px;
    border-top: 0;
}

.text-bg-success {
    background-color: var(--brand) !important;
}

.card {
    border: 1px solid #ecedef;
    border-radius: 4px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 4px 12px rgba(15, 23, 42, 0.04);
}

.card.border-0 {
    border: 0 !important;
}

.card-header {
    align-items: center;
    background: var(--brand);
    border-bottom: 0;
    color: #fff;
    display: flex;
    font-size: var(--rf-font-title);
    font-style: italic;
    font-weight: 700;
    justify-content: space-between;
    padding: .75rem 1rem;
}

.card-header-link {
    color: rgba(255, 255, 255, .75);
    font-size: .85rem;
    font-style: normal;
    line-height: 1;
    text-decoration: none;
}

.tooltip .tooltip-inner {
    background-color: var(--brand);
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--brand);
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: var(--brand);
}

.tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: var(--brand);
}

.tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: var(--brand);
}

.card-header-link:hover {
    color: #fff;
}

.card-header .text-muted {
    color: rgba(255, 255, 255, .72) !important;
}

.card-header .btn-link {
    color: #fff;
    font-size: var(--rf-font-title);
    padding: .75rem 1rem;
    text-decoration: none;
}

.card-header .btn-link:hover,
.card-header .btn-link:focus {
    color: #fff;
}

.card-header .btn-link i {
    font-size: var(--rf-font-xs);
    transition: transform .15s ease;
}

.card-header .btn-link[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.card-header.bg-light {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #f0f1f3;
    color: var(--rf-black) !important;
    padding: 0;
}

.card-header.bg-light .btn-link {
    color: var(--rf-black);
    padding: .75rem 1rem;
    width: 100%;
}

.card-header.bg-light .btn-link:hover,
.card-header.bg-light .btn-link:focus {
    color: var(--rf-black);
}

.card .card-body {
    padding: 1.4rem;
}

.card h1,
.card h2 {
    color: var(--rf-green);
}

.card h2,
.card .h5 {
    font-size: var(--rf-font-title);
    font-weight: 700;
}

.card label,
.card .form-label {
    color: var(--rf-muted);
    display: block;
    font-size: var(--rf-font-sm);
    font-weight: 500;
    margin-bottom: .5rem;
}

.card dt {
    color: var(--rf-muted);
    font-size: var(--rf-font-sm);
    font-weight: 500;
}

.card dd {
    font-weight: 400;
}

.card .table {
    --bs-table-bg: transparent;
    --bs-table-border-color: #eef0f2;
    font-size: var(--rf-font-sm);
}

.card .table .col-rank {
    width: 12%;
}

.card .table .col-team {
    width: 38%;
}

.card .table .col-played {
    width: 8%;
}

.card .table .col-win,
.card .table .col-draw,
.card .table .col-lose {
    width: 7%;
}

.card .table .col-goals {
    width: 14%;
}

.card .table .col-points {
    width: 13%;
}

.card .table th {
    color: var(--rf-muted);
    font-weight: 500;
}

.card .table tbody tr:last-child td,
.card .table tbody tr:last-child th {
    border-bottom: 0;
}

.card .table th,
.card .table td {
    padding: .45rem 0;
}

.card .table img {
    object-fit: contain;
}

.card .table .team-name-short {
    display: none;
}

body > main.container > .row > aside:last-child .card .table thead,
body > main.container > .row > aside:last-child .card .table .table-stat-extra {
    display: none;
}

body > main.container > .row > aside:last-child .card .table .team-name-full {
    display: none;
}

body > main.container > .row > aside:last-child .card .table .team-name-short {
    display: inline;
}

body > main.container > .row > aside:last-child .card .table .col-team {
    width: 46%;
}

body > main.container > .row > aside:last-child .card .table .col-played {
    width: 9%;
}

body > main.container > .row > aside:last-child .card .table .col-goals {
    width: 20%;
}

.card .match-row {
    border-bottom: 1px solid #ecedef;
    margin-bottom: .6rem;
    padding-bottom: .6rem;
}

.card .match-row:last-child,
.card .match-row.match-row-end {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.card .match-row img {
    object-fit: contain;
}

.card .match-team-rapid {
    color: var(--brand);
    font-weight: 700;
}

#termine-list {
    min-height: 13.5rem;
}

.form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}

.form-check-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-focus);
}

.form-control {
    background: #fbfcfd;
    border-color: #dde3ea;
    border-radius: 4px;
    min-height: 42px;
    padding: .5rem .8rem;
    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

.form-select {
    background-color: #fbfcfd;
    border-color: #dde3ea;
    border-radius: 4px;
    min-height: 42px;
    padding: .5rem 2rem .5rem .8rem;
}

.form-control::placeholder {
    color: #98a2b3;
}

.form-control:hover {
    border-color: #d4d7dd;
}

.form-control:focus,
.form-select:focus {
    background: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-focus);
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
    border-color: var(--rf-red);
    box-shadow: none;
}

.form-control.is-invalid:focus,
.was-validated .form-control:invalid:focus {
    border-color: var(--rf-red);
    box-shadow: 0 0 0 3px rgba(215, 25, 32, .12);
}

.form-text {
    color: #98a2b3;
    font-size: var(--rf-font-sm);
}

.invalid-feedback {
    color: var(--rf-red);
    font-size: var(--rf-font-sm);
    font-weight: 500;
}

@media (min-width: 768px) {
    .card .card-body {
        padding: 1.4rem;
    }
}

.forum-box-item {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.list-group-item {
    border-color: #d5d9dd;
    padding: .45rem 1rem;
}

.list-group-item-action:hover,
.list-group-item-action:focus {
    background-color: #f7faf8;
    color: var(--brand);
}

.list-group-item.active,
.list-group-item[aria-current="page"] {
    background-color: #e8f5e9;
    border-color: #d5d9dd;
    color: var(--brand);
    font-weight: 700;
}

.forum-thread-icon {
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    flex-shrink: 0;
    position: relative;
    width: 1.1rem;
}

.forum-thread-icon--unread {
    color: var(--rf-green);
}

.forum-thread-icon--new {
    color: #b0b8c4;
}

.forum-thread-icon--read {
    visibility: hidden;
}

.forum-thread-icon-posted {
    font-size: .65rem;
    position: absolute;
    bottom: -3px;
    right: -6px;
}

.placeholder-row {
    align-items: center;
    border-bottom: 1px solid #ecedef;
    display: grid;
    gap: .5rem;
    grid-template-columns: 1fr 1.2fr .25fr 1.2fr;
    padding: .45rem 0;
}

.placeholder-row:first-child {
    padding-top: 0;
}

.placeholder-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.placeholder-row .placeholder {
    background-color: #e7e2d8;
    opacity: .45;
}

.placeholder-row .rounded-circle {
    height: 1.35rem;
    width: 1.35rem;
}

.breadcrumb {
    font-size: var(--rf-font-sm);
}

.breadcrumb a {
    color: #5c6670;
    text-decoration: none;
}

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

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

a:hover {
    color: var(--rf-green-dark);
}

.link-primary {
    color: var(--brand) !important;
    text-decoration-color: rgba(15, 110, 61, .35);
}

.link-primary:hover {
    color: var(--rf-green-dark) !important;
    text-decoration-color: var(--rf-green-dark);
}

.link-muted {
    color: var(--rf-muted);
    text-decoration: none;
}

.link-muted:hover {
    color: var(--brand);
    text-decoration: none;
}

.user-modal-text {
    white-space: pre-line;
}

#userModal .modal-content {
    border: 1px solid rgba(15, 110, 61, .45);
    border-radius: 4px;
    overflow: hidden;
}

#userModal .modal-body {
    min-height: 40vh;
    padding: 0;
}

.user-modal-header {
    align-items: center;
}

.user-modal-header .modal-title {
    font-size: inherit;
    font-weight: inherit;
}

.user-modal-loading {
    align-items: center;
    color: #667085;
    display: flex;
    justify-content: center;
    min-height: 300px;
    position: relative;
}

.user-modal-loading-close {
    position: absolute;
    right: .75rem;
    top: .75rem;
}

.user-modal-avatar {
    align-items: center;
    background: var(--brand);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.45rem;
    font-weight: 700;
    height: 70px;
    justify-content: center;
    position: relative;
    width: 70px;
}

.user-modal-presence {
    background: #cfd6df;
    border: 4px solid #fff;
    border-radius: 999px;
    bottom: 5px;
    height: 20px;
    position: absolute;
    right: 2px;
    width: 20px;
}

.user-modal-presence.is-online {
    background: var(--rf-green-light);
}

.user-modal-name {
    align-items: center;
    color: var(--rf-black);
    display: flex;
    font-size: 1.35rem;
    font-weight: 700;
    gap: .45rem;
    line-height: 1.15;
}

.user-restriction-dot {
    border-radius: 999px;
    display: inline-block;
    flex-shrink: 0;
    height: 12px;
    width: 12px;
}

.user-modal-meta {
    color: #667085;
    font-size: .95rem;
    margin-top: .25rem;
}

.user-modal-grid {
    border-top: 1px solid #ecedef;
    display: grid;
    gap: 1.05rem 2rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 1.05rem 0;
}

.user-modal-label {
    color: #667085;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    margin-bottom: .35rem;
    text-transform: uppercase;
}

.user-modal-value,
.user-modal-text {
    color: #111827;
    font-size: 1.05rem;
}

.user-modal-section {
    border-top: 1px solid #ecedef;
    padding: 1.05rem 0;
}


.user-modal-actions {
    background: #f8f9fa;
    border-top: 1px solid #ecedef;
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    justify-content: flex-end;
    padding: 1rem 1.45rem 1.1rem;
}

@media (max-width: 575.98px) {
    .user-modal-grid {
        grid-template-columns: 1fr;
    }

    .card .table .table-stat-extra {
        display: none;
    }
}

.tipp5-history-round {
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    overflow: hidden;
    margin-bottom: .5rem;
}

.tipp5-history-round:last-child {
    margin-bottom: 0;
}

.tipp5-history-round-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .35rem .6rem;
    background: var(--rf-green);
    color: #fff;
    font-weight: 600;
    font-size: var(--rf-font-xs);
}

.tipp5-history-table {
    width: 100%;
    font-size: var(--rf-font-xs);
    border-collapse: collapse;
}

.tipp5-history-table td {
    padding: .25rem .6rem;
    vertical-align: middle;
    border-top: 1px solid var(--rf-border);
}

.tipp5-history-table tr:first-child td {
    border-top: none;
}

.tipp5-history-table td:first-child {
    width: 100%;
    color: var(--rf-text);
}

.tipp5-history-table td.tipp5-history-result {
    color: #667085;
    white-space: nowrap;
    font-weight: 600;
}

.tipp5-correct {
    color: var(--rf-green);
    font-weight: 700;
    white-space: nowrap;
}

.tipp5-wrong {
    color: var(--rf-red);
    font-weight: 700;
    white-space: nowrap;
}

.tipp5-no-tip {
    color: #98a2b3;
    white-space: nowrap;
}

.tipp5-table th:not(:first-child),
.tipp5-table td:not(:first-child) {
    padding-left: .5rem;
    width: 4rem;
}

.tipp5-pct {
    font-size: var(--rf-font-xs);
    margin-top: .2rem;
}

@media (max-width: 575.98px) {
    .tipp5-submit-wrap {
        display: flex;
        justify-content: center;
        width: 100%;
    }
}

.alert {
    display: grid;
    gap: .85rem;
    grid-template-columns: auto 1fr;
    padding: 1rem 1.15rem;
}

.alert-heading {
    font-size: var(--rf-font-base);
    font-weight: 700;
    margin-bottom: .15rem;
}

.alert-success {
    background: #f3faf6;
    border-color: rgba(15, 110, 61, .25);
}

.alert-danger {
    background: #fff5f5;
    border-color: rgba(215, 25, 32, .28);
}

.alert-info {
    background: #f3f8ff;
    border-color: rgba(0, 87, 184, .22);
}

.alert-success .alert-heading,
.alert-success > i {
    color: var(--rf-green);
}

.alert-danger .alert-heading,
.alert-danger > i {
    color: var(--rf-red);
}

.alert-info .alert-heading,
.alert-info > i {
    color: var(--rf-blue);
}

.alert > i {
    font-size: var(--rf-font-icon-lg);
    line-height: 1.1;
    margin-top: .1rem;
}

.alert > div > div + div {
    white-space: pre-line;
}

.progress .progress-bar {
    width: 0;
}

.btn .spinner-border-sm {
    border-width: .12em;
    height: .85rem;
    opacity: .75;
    width: .85rem;
}

.navbar {
    background: var(--brand);
    border-bottom: 4px solid var(--rf-green-dark);
    margin: 0;
    padding: 0;
}

.navbar.bg-brand {
    background-color: var(--brand);
}

.navbar > .container {
    padding: .75rem 12px;
}

.navbar .navbar-brand {
    color: #fff;
    font-weight: 500;
}

.navbar .nav-link {
    align-items: center;
    border-radius: 4px;
    color: rgba(255, 255, 255, .85);
    display: inline-flex;
    font-weight: 500;
    gap: 7px;
    margin: 6px 2px;
    padding: 8px 14px;
    transition: color .12s ease, background-color .12s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .navbar-brand:hover {
    color: #fff;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    background-color: rgba(255, 255, 255, .08);
}

.navbar .nav-link.active,
.navbar .nav-link[aria-current="page"] {
    background-color: rgba(255, 255, 255, .16);
    color: #fff;
    font-weight: 600;
}

.navbar .nav-link svg,
.navbar .nav-link i,
.navbar .nav-link i.bi {
    font-size: var(--rf-font-title);
    opacity: .95;
}

.navbar-brand img {
    height: 44px;
    width: 44px;
}

.navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, .55);
}

.navbar .navbar-toggler-icon {
    filter: invert(1);
}

.dropdown-menu {
    border: 1px solid #ecedef;
    border-radius: 5px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 12px 32px rgba(15, 23, 42, 0.10);
    margin-top: 8px;
    min-width: 220px;
    padding: 6px;
}

.dropdown-item {
    align-items: center;
    border-radius: 4px;
    color: #1f2937;
    display: flex;
    font-size: var(--rf-font-sm);
    font-weight: 500;
    gap: 10px;
    padding: 9px 10px;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #f4f5f7;
    color: #1f2937;
}

.dropdown-item:active,
.dropdown-item.active {
    background-color: #ecedef;
    color: #1f2937;
}

.dropdown-item svg,
.dropdown-item i,
.dropdown-item i.bi {
    color: #6b7280;
    flex-shrink: 0;
}

.dropdown-item.text-danger,
.dropdown-item.text-danger i,
.dropdown-item.text-danger i.bi {
    color: var(--rf-red);
}

.dropdown-divider {
    border-top-color: #f0f1f3;
    margin: 4px 2px;
}

.dropdown-header {
    color: #6b7280;
    font-size: var(--rf-font-xs);
    font-weight: 600;
    letter-spacing: .06em;
    padding: 8px 10px 4px;
    text-transform: uppercase;
}

.pagination {
    flex-wrap: wrap;
    gap: .25rem;
}

.page-link {
    border-color: #dde3ea;
    border-radius: 4px;
    color: var(--brand);
    font-size: var(--rf-font-sm);
    min-width: 2.2rem;
    text-align: center;
}

.pagination-mobile {
    width: 100%;
    align-items: stretch;
}

.pagination-mobile .page-item {
    display: flex;
    align-items: stretch;
    flex: 1;
}

.pagination-mobile .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    width: 100%;
}

select.page-link {
    appearance: auto;
    cursor: pointer;
    min-width: unset;
    width: 100%;
    padding-top: 0;
    padding-bottom: 0;
}

.page-link:hover,
.page-link:focus {
    background-color: #f7faf8;
    border-color: #cfd6df;
    color: var(--brand);
    box-shadow: none;
}

.page-item.active .page-link {
    background-color: var(--brand);
    border-color: var(--brand);
}

.page-item.disabled .page-link {
    background-color: transparent;
    border-color: transparent;
    color: var(--rf-muted);
}

.site-header {
    background: var(--brand);
    color: #fff;
}

.site-header .container {
    padding-top: .6rem;
    padding-bottom: .6rem;
}

.site-header-logo-link {
    flex-shrink: 0;
    line-height: 0;
}

.site-header-logo {
    height: 40px;
    object-fit: contain;
    width: 40px;
}

@media (max-width: 991.98px) {
    .site-header .container {
        padding-top: .4rem;
        padding-bottom: .4rem;
    }

    .site-header-subtitle {
        display: none;
    }

    body > main.container {
        padding-top: .75rem;
    }
}

.offcanvas-nav-scroll {
    background: var(--rapidfans-page-bg);
    flex: 1;
    overflow-y: auto;
    padding-top: .5rem;
}

.offcanvas-nav-group-header {
    align-items: center;
    color: var(--rf-muted);
    display: flex;
    font-size: .65rem;
    font-style: normal;
    font-weight: 600;
    gap: .5rem;
    letter-spacing: .08em;
    padding: .9rem 1rem .3rem;
    text-transform: uppercase;
}

.offcanvas-nav-group-header::after {
    background: #dee2e6;
    content: '';
    flex: 1;
    height: 1px;
}

.offcanvas-nav-item {
    align-items: center;
    color: var(--rf-black);
    display: flex;
    justify-content: space-between;
    padding: .55rem 1rem;
    text-decoration: none;
    transition: background .1s;
}

.offcanvas-nav-item:hover {
    background: #f5f5f5;
    color: var(--brand);
}

.offcanvas-nav-item.active {
    background: #e8f5e9;
    color: var(--brand);
    font-weight: 600;
}

.forum-new-star {
    color: var(--brand);
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1;
}

.offcanvas-user-footer {
    align-items: center;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: .75rem;
    padding: .75rem 1rem;
}

.offcanvas-user-avatar {
    align-items: center;
    background: var(--brand);
    border-radius: 50%;
    color: #fff;
    display: flex;
    flex-shrink: 0;
    font-size: .78rem;
    font-weight: 700;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.offcanvas-user-info {
    flex: 1;
    min-width: 0;
}

.offcanvas-user-name {
    font-size: var(--rf-font-sm);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.offcanvas-user-role {
    color: var(--rf-muted);
    font-size: var(--rf-font-xs);
}

.offcanvas-logout-link {
    color: var(--rf-muted);
    font-size: 1.1rem;
    padding: .25rem;
    text-decoration: none;
}

.offcanvas-logout-link:hover {
    color: var(--rf-black);
}

#forumNavOffcanvas {
    --bs-offcanvas-border-width: 0;
    box-shadow: -6px 0 24px rgba(0, 0, 0, .22);
    top: 0 !important;
    margin-top: 0 !important;
}

@media (max-width: 991.98px) {
    #forumNavOffcanvas {
        --bs-offcanvas-width: 100%;
    }
}

.offcanvas-header {
    background: var(--brand);
    color: #fff;
    font-size: var(--rf-font-title);
    font-style: italic;
    font-weight: 700;
}

.offcanvas-header .btn-close {
    filter: invert(1);
}

.forum-nav-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    min-height: 0;
    padding: .25rem .5rem;
}

.forum-nav-toggle:hover,
.forum-nav-toggle:focus {
    color: rgba(255, 255, 255, .75);
}

.btn {
    align-items: center;
    border-radius: 4px;
    display: inline-flex;
    font-weight: 700;
    gap: 6px;
    justify-content: center;
    min-height: 36px;
    padding: .45rem 1rem;
    transition: background-color .15s ease, border-color .15s ease, filter .15s ease, transform .1s ease;
}

.btn:active {
    transform: scale(.97);
}

.btn-sm {
    border-radius: 4px;
    font-size: var(--rf-font-sm);
    font-weight: 400;
    min-height: 28px;
    padding: .18rem .5rem;
}

.btn:focus-visible {
    box-shadow: 0 0 0 3px var(--brand-focus);
}

.btn-primary,
.btn-success {
    --bs-btn-bg: #c0c0c0;
    --bs-btn-border-color: #b0b0b0;
    --bs-btn-color: #111;
    --bs-btn-hover-bg: #adadad;
    --bs-btn-hover-border-color: #a0a0a0;
    --bs-btn-hover-color: #111;
    --bs-btn-active-bg: #9e9e9e;
    --bs-btn-active-border-color: #929292;
    --bs-btn-active-color: #111;
    --bs-btn-disabled-bg: #c0c0c0;
    --bs-btn-disabled-border-color: #b0b0b0;
    --bs-btn-disabled-color: #666;
}

.btn-danger {
    --bs-btn-bg: var(--rf-red);
    --bs-btn-border-color: var(--rf-red);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: #B9151B;
    --bs-btn-hover-border-color: #B9151B;
    --bs-btn-hover-color: #fff;
}

.btn-secondary,
.btn-outline-secondary,
.btn-light {
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #dde3ea;
    --bs-btn-color: var(--rf-black);
    --bs-btn-hover-bg: #f8fafc;
    --bs-btn-hover-border-color: #cfd6df;
    --bs-btn-hover-color: var(--rf-black);
    --bs-btn-active-bg: #f1f5f9;
    --bs-btn-active-border-color: #cfd6df;
    --bs-btn-active-color: var(--rf-black);
}

.btn-outline-primary,
.btn-outline-success {
    --bs-btn-color: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand);
    --bs-btn-hover-border-color: var(--brand);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--brand);
    --bs-btn-active-border-color: var(--brand);
}

.btn-outline-danger {
    --bs-btn-color: var(--rf-red);
    --bs-btn-border-color: var(--rf-red);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--rf-red);
    --bs-btn-hover-border-color: var(--rf-red);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--rf-red);
    --bs-btn-active-border-color: var(--rf-red);
}

.btn-link {
    --bs-btn-color: var(--brand);
    --bs-btn-hover-color: var(--rf-green-dark);
    font-weight: 400;
    min-height: auto;
}

.btn-icon {
    height: 36px;
    min-height: 0;
    padding: 0;
    width: 36px;
}

.btn-icon.btn-sm {
    height: 28px;
    width: 28px;
}

.posting-body {
    line-height: 1.65;
    overflow-wrap: break-word;
    padding-bottom: .5rem;
    word-break: break-word;
}

.posting-signature-hr {
    border-color: #ccc;
    margin: .65rem 0 .4rem;
    opacity: 1;
}

.posting-signature {
    color: var(--brand);
    font-size: var(--rf-font-xs);
    overflow-wrap: break-word;
    word-break: break-word;
}

.thread-filter-select {
    width: auto;
}

.thread-filter-input {
    flex: 1 1 180px;
}

.posting-meta-row {
    font-size: var(--rf-font-sm);
}

.posting-meta-sep {
    color: var(--rf-muted);
    opacity: .4;
    user-select: none;
}

.posting-meta-text {
    color: var(--rf-muted);
    font-size: var(--rf-font-xs);
}

.posting-username {
    color: var(--brand);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.posting-username:hover {
    color: var(--rf-green-dark);
}

.posting-count {
    color: var(--brand);
    font-size: var(--rf-font-xs);
}

.user-deleted-mark {
    color: #000;
    font-size: var(--rf-font-xs);
}

.dropdown-toggle-no-caret::after {
    display: none;
}

.posting-btn {
    --bs-btn-bg: transparent;
    --bs-btn-border-color: #555;
    --bs-btn-color: #555;
    --bs-btn-hover-color: #222;
    --bs-btn-hover-border-color: #222;
    font-weight: 400;
}

@media (min-width: 768px) {
    .posting-count,
    .posting-meta-text {
        font-size: var(--rf-font-sm);
    }
}

@media (max-width: 767.98px) {
    .posting-btn {
        font-size: 1rem;
        min-height: 36px;
        padding: .4rem .7rem;
    }
}

.forum-quote {
    background: #f4f4f4;
    border-left: 3px solid var(--brand);
    border-radius: 3px;
    margin: .5rem 0;
    padding: .5rem .75rem;
}

.forum-quote .forum-quote {
    background: #eeeeee;
}

.forum-quote .forum-quote .forum-quote {
    background: #e8e8e8;
}

.forum-quote cite {
    color: var(--rf-muted);
    display: block;
    font-size: var(--rf-font-sm);
    font-style: normal;
    font-weight: 600;
    margin-bottom: .25rem;
}

.forum-edit-note {
    color: var(--rf-muted);
    font-size: var(--rf-font-xs);
}

.posting-edited {
    color: var(--rf-muted);
    font-size: var(--rf-font-xs);
    margin-top: .5rem;
}

.forum-img-wrap {
    max-width: 100%;
    overflow: hidden;
    margin: .5rem 0;
    text-align: center;
}

.forum-img-link {
    display: inline-block;
}

.forum-img {
    border-radius: 3px;
    display: block;
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    margin: 0 auto;
    cursor: zoom-in;
}

.card-header-posting {
    background: transparent;
    border-bottom: 0;
    color: var(--bs-body-color);
    display: block;
    font-size: var(--rf-font-sm);
    font-style: normal;
    font-weight: 400;
    padding: 1.4rem 1.4rem 0;
}

.card-body.posting-body {
    padding-top: .55rem;
}

.posting-own {
    --bs-card-bg: #f3fbf6;
}

.posting-own .card-header-posting {
    background: transparent;
}

.thread-toolbar-card,
.reply-card {
    --bs-card-bg: #E3F1E8;
}

.table-split-row > td,
.table-split-row > th {
    border-bottom: 2px solid #9aa0a6;
}

.admin-only-mark {
    color: var(--rf-muted);
    font-size: .6em;
    margin-left: .3rem;
    vertical-align: super;
}

@media (min-width: 768px) {
    .user-modal-admin-btn {
        min-width: 9rem;
    }
}

.forum-thread-jump {
    position: relative;
    z-index: 2;
    color: var(--brand);
    text-decoration: none;
}

.forum-thread-jump:hover {
    color: var(--rf-green-dark);
}

.tip5-blink {
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    margin-left: .4rem;
    vertical-align: -0.2em;
    transform-origin: center;
    animation: tip5-wiggle 2s ease-in-out infinite;
}

@keyframes tip5-wiggle {
    0%, 60%, 100% {
        transform: rotate(0deg);
    }
    68% {
        transform: rotate(-16deg);
    }
    76% {
        transform: rotate(12deg);
    }
    84% {
        transform: rotate(-8deg);
    }
    92% {
        transform: rotate(4deg);
    }
}

.card-body.thread-toolbar-body {
    padding: .75rem 1.4rem;
}

.thread-header-channel-link {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
}

.thread-header-sep {
    margin: 0 .25rem;
    opacity: .5;
}

.thread-header-count {
    color: rgba(255, 255, 255, .75);
    font-size: var(--rf-font-sm);
    font-style: normal;
    font-weight: 400;
}

.forum-overview-item {
    padding-top: .6rem;
    padding-bottom: .6rem;
    position: relative;
}

.forum-overview-item .js-user-modal {
    position: relative;
    z-index: 2;
}

.forum-overview-title-row {
    margin-top: 7px;
}

.forum-overview-item .forum-overview-meta .fw-semibold {
    font-weight: 400 !important;
}

@media (max-width: 767.98px) {
    .forum-overview-item .forum-overview-meta .user-restriction-dot {
        height: 8px;
        width: 8px;
    }

    .forum-overview-stats {
        font-size: .8rem;
    }
}

.forum-overview-meta {
    font-size: var(--rf-font-sm);
    color: #8a9bb0;
}

.forum-overview-stats {
    font-size: var(--rf-font-sm);
    color: #8a9bb0;
    white-space: nowrap;
}

.forum-overview-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
}

.forum-overview-title:hover {
    color: var(--brand);
}


.forum-sticky-icon {
    color: var(--brand);
    font-size: .85rem;
    margin-right: .3rem;
}

.forum-closed-icon {
    color: #dc3545;
    font-size: .85rem;
    margin-right: .3rem;
}

/* =========================================================
   User Modal: Tab-Leiste
   ========================================================= */

.user-modal-tabbar {
    align-items: center;
    border-bottom: 1px solid #ecedef;
    display: flex;
    padding: 0 .75rem 0 .25rem;
}

.user-modal-nav {
    border: 0;
    flex: 1;
    flex-wrap: nowrap;
    gap: 0;
}

.user-modal-nav .nav-link {
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: var(--rf-muted);
    font-size: var(--rf-font-sm);
    font-weight: 600;
    padding: .85rem .75rem;
    white-space: nowrap;
}

.user-modal-nav .nav-link.active {
    background: transparent;
    border-bottom-color: var(--brand);
    color: var(--brand);
}

.user-modal-nav .nav-link:not(.active):hover {
    background: transparent;
    border-bottom-color: transparent;
    color: var(--brand);
}


/* Padding innerhalb der Tab-Panes */
.user-modal-body {
    padding: 1.25rem 1.45rem;
}

/* =========================================================
   User Modal: Tipp5-Tab
   ========================================================= */

.tipp5-table { border-color: #e5e7eb; }
.tipp5-table td { border-color: #e5e7eb; vertical-align: middle; }
.tipp5-table td:nth-child(2),
.tipp5-table td:nth-child(3) { width: 80px; }
.tipp5-table td:nth-child(4) { width: 44px; }


.user-modal-tipp5-stats {
    border-bottom: 1px solid #ecedef;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 1rem;
    text-align: center;
}

.user-modal-tipp5-stat-value {
    color: var(--brand);
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1;
}

.user-modal-tipp5-stat-label {
    color: var(--rf-muted);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .05em;
    margin-top: .35rem;
    text-transform: uppercase;
}

.user-modal-tipp5-empty {
    color: var(--rf-muted);
    font-size: var(--rf-font-sm);
    padding: 2rem 1.25rem;
    text-align: center;
}

/* =========================================================
   User Modal: Tickets / Inbox
   ========================================================= */

.user-modal-inbox-header {
    align-items: center;
    border-bottom: 1px solid #ecedef;
    display: flex;
    gap: .65rem;
    padding: .85rem 1.25rem;
}

.user-modal-inbox-title {
    flex: 1;
    font-weight: 700;
}

.user-modal-inbox-list {
    max-height: 300px;
    overflow-y: auto;
}

.user-modal-inbox-item {
    align-items: center;
    border-bottom: 1px solid #f0f1f3;
    display: flex;
    gap: .75rem;
    padding: .7rem 1.25rem;
}

.user-modal-inbox-item:last-child {
    border-bottom: 0;
}

.user-modal-inbox-avatar {
    align-items: center;
    background: var(--rf-muted);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 36px;
    font-size: .85rem;
    font-weight: 700;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.user-modal-inbox-item.is-unread .user-modal-inbox-avatar {
    background: var(--brand);
}

.user-modal-inbox-content {
    flex: 1;
    min-width: 0;
}

.user-modal-inbox-sender {
    font-size: var(--rf-font-sm);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-modal-inbox-subject {
    font-size: var(--rf-font-sm);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-modal-inbox-item.is-unread .user-modal-inbox-subject {
    font-weight: 700;
}

.user-modal-inbox-preview {
    color: var(--rf-muted);
    font-size: var(--rf-font-xs);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-modal-inbox-meta {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: .25rem;
}

.user-modal-unread-dot {
    background: var(--brand);
    border-radius: 999px;
    height: 8px;
    width: 8px;
}

.user-modal-inbox-date {
    color: var(--rf-muted);
    font-size: var(--rf-font-xs);
    white-space: nowrap;
}

.user-modal-inbox-empty {
    color: var(--rf-muted);
    font-size: var(--rf-font-sm);
    padding: 2rem 1.25rem;
    text-align: center;
}

@media (max-width: 575.98px) {
    .user-modal-tipp5-stat-value {
        font-size: 1.6rem;
    }
}

/* =========================================================
   Ticket-Seite: Nachrichtenliste
   ========================================================= */

.ticket-item {
    align-items: flex-start;
    border-bottom: 1px solid #f0f1f3;
    cursor: pointer;
    display: flex;
    gap: .85rem;
    padding: .85rem 1.4rem;
    position: relative;
    transition: background .1s;
}

.ticket-item:last-child {
    border-bottom: 0;
}

.ticket-item:hover {
    background: #f8faf9;
}

.ticket-item--unread {
    background: #f5faf7;
}

.ticket-item--unread:hover {
    background: #eef7f2;
}

.ticket-item-avatar {
    align-items: center;
    background: var(--rf-muted);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 38px;
    font-size: .9rem;
    font-weight: 700;
    height: 38px;
    justify-content: center;
    margin-top: .1rem;
    width: 38px;
}

.ticket-item--unread .ticket-item-avatar {
    background: var(--brand);
}

.ticket-item-content {
    flex: 1;
    min-width: 0;
}

.ticket-item-header {
    align-items: baseline;
    display: flex;
    gap: .5rem;
    justify-content: space-between;
    margin-bottom: .15rem;
}

.ticket-item-sender {
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-item-sender a {
    color: inherit;
    text-decoration: none;
}

.ticket-item-sender a:hover {
    color: var(--brand);
}

.ticket-item-date {
    color: var(--rf-muted);
    flex-shrink: 0;
    font-size: var(--rf-font-xs);
    white-space: nowrap;
}

.ticket-item-subject {
    font-size: var(--rf-font-sm);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-item--unread .ticket-item-subject {
    font-weight: 700;
}

.ticket-item-preview {
    color: var(--rf-muted);
    font-size: var(--rf-font-xs);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-item-body {
    color: #374151;
    font-size: var(--rf-font-sm);
    line-height: 1.65;
    margin-top: .5rem;
    white-space: pre-line;
    word-break: break-word;
}

.ticket-unread-dot {
    background: var(--brand);
    border-radius: 999px;
    flex-shrink: 0;
    height: 9px;
    margin-top: .55rem;
    width: 9px;
}

.ticket-empty {
    align-items: center;
    color: var(--rf-muted);
    display: flex;
    flex-direction: column;
    font-size: var(--rf-font-sm);
    gap: .65rem;
    padding: 3rem 1.4rem;
    text-align: center;
}

.ticket-empty i {
    font-size: 2rem;
    opacity: .4;
}

.ticket-compose-actions {
    display: flex;
    gap: .5rem;
    justify-content: flex-end;
    margin-top: .25rem;
}

.ticket-footer-actions {
    display: flex;
    justify-content: flex-end;
}


.ticket-page-tabs {
    display: flex;
    gap: .25rem;
}

.ticket-page-tab {
    align-items: center;
    border-radius: .26rem;
    color: var(--rf-muted);
    display: inline-flex;
    font-size: var(--rf-font-sm);
    font-weight: 500;
    gap: .4rem;
    padding: .25rem .7rem;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.ticket-page-tab:hover {
    background: #f3f4f6;
    color: var(--rf-black);
}

.ticket-page-tab.active {
    background: var(--brand);
    color: #fff;
}

.ticket-item-actions {
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: .5rem;
    justify-content: flex-end;
    margin-top: .75rem;
    padding-top: .75rem;
}

.news-vote-track {
    display: flex;
    height: 8px;
    border-radius: 3px;
    overflow: hidden;
    background: var(--rf-surface-2);
}
.news-vote-half {
    flex: 1;
    position: relative;
    overflow: hidden;
}
.news-vote-half-neg {
    background: rgba(220, 53, 69, .12);
    transform: scaleX(-1);
    border-radius: 3px 0 0 3px;
}
.news-vote-half-pos {
    background: rgba(25, 135, 84, .12);
    border-radius: 0 3px 3px 0;
}
.news-vote-fill {
    height: 100%;
    transition: width .3s ease;
}
.news-vote-fill-neg { background: var(--rf-red); }
.news-vote-fill-pos { background: #198754; }

.news-source-avatar {
    align-items: center;
    background: var(--brand);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex-shrink: 0;
    font-size: .65rem;
    font-weight: 700;
    height: 18px;
    justify-content: center;
    width: 18px;
}

.ticket-nav-badge {
    align-items: center;
    background: var(--brand);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: .7rem;
    font-weight: 700;
    height: 18px;
    justify-content: center;
    min-width: 18px;
    padding: 0 4px;
}

.recipient-field {
    position: relative;
}

.recipient-dropdown {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: .26rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    left: 0;
    list-style: none;
    margin: 2px 0 0;
    max-height: 220px;
    overflow-y: auto;
    padding: .25rem 0;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 200;
}

.recipient-dropdown-item {
    color: var(--rf-black);
    cursor: pointer;
    font-size: var(--rf-font-sm);
    padding: .4rem .75rem;
}

.recipient-dropdown-item:hover,
.recipient-dropdown-item.is-focused {
    background: #f3f4f6;
    color: var(--brand);
}

/* Images */
.image-drop-zone {
    border: 2px dashed #d7dde2;
    border-radius: 4px;
    padding: 2.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    user-select: none;
}

.image-drop-zone:hover,
.image-drop-zone.drag-over {
    border-color: var(--brand);
    background: var(--brand-focus);
}

.image-drop-icon {
    color: var(--brand);
}

.image-storage-bar {
    height: 6px;
    border-radius: 2px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.image-grid-item {
    border: 1px solid #ecedef;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.image-grid-link {
    display: block;
    overflow: hidden;
}

.image-grid-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    transition: transform 0.2s;
}

.image-grid-link:hover .image-grid-thumb {
    transform: scale(1.04);
}

.image-grid-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    padding: 0.45rem 0.5rem;
    border-top: 1px solid #ecedef;
    margin-top: auto;
}

.image-grid-meta {
    font-size: var(--rf-font-xs);
    color: var(--rf-muted);
    white-space: nowrap;
}

.image-grid-actions {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

.image-grid-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid #d7dde2;
    border-radius: 3px;
    background: none;
    color: var(--rf-muted);
    cursor: pointer;
    font-size: .8rem;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.image-grid-btn:hover {
    background: #f3f4f6;
    color: var(--rf-black);
    border-color: #b8bfc7;
}

.image-grid-btn.is-copied {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.image-grid-btn-delete:hover {
    background: #fff0f0;
    color: var(--rf-red);
    border-color: var(--rf-red);
}

/* Home Slider */
.home-slider {
    border-radius: 4px;
    overflow: hidden;
}

.home-slider .carousel-inner {
    aspect-ratio: 16 / 9;
}

.home-slider .carousel-item {
    height: 100%;
}

.home-slider .carousel-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-slider .home-slider-fallback img {
    object-fit: contain;
    background: #f8f9fa;
    padding: 2rem;
}

/* =========================================================
   Posting Likes
   ========================================================= */

.posting-like-count {
    color: var(--brand);
    font-weight: 700;
    font-size: .75rem;
    line-height: 1;
    white-space: nowrap;
}

.posting-like-count.posting-like-zero {
    color: var(--rf-muted);
    font-weight: 400;
}

.posting-like-count--t1 { font-size: .8rem; }
.posting-like-count--t2 { font-size: .95rem; }
.posting-like-count--t3 { font-size: 1.1rem; }
.posting-like-count--t4 { font-size: 1.25rem; }

.back-to-top {
    align-items: center;
    background: var(--brand);
    border: none;
    border-radius: 50%;
    bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
    color: #fff;
    display: flex;
    font-size: 1.1rem;
    height: 48px;
    justify-content: center;
    position: fixed;
    right: 1.25rem;
    width: 48px;
    z-index: 1030;
}

.back-to-top:hover,
.back-to-top:active,
.back-to-top:focus,
.back-to-top:visited {
    color: #fff;
}

.back-to-top:hover {
    filter: brightness(.92);
}
