/* Grundlayout */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0b0f16;
    color: #f4f4f4;
    line-height: 1.5;
}

/* Header */
.site-header {
    border-bottom: 1px solid #222;
    background: #101622;
    padding: 0.75rem 1.5rem 0.5rem;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.logo-text span {
    color: #f5c400; /* Gold */
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-user {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, transform 0.08s ease;
}

.btn-primary {
    background: #e53935;
    color: #fff;
}

.btn-primary:hover {
    background: #ff5252;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #253042;
    color: #f3f3f3;
}

.btn-secondary:hover {
    background: #344258;
    transform: translateY(-1px);
}

.btn-admin {
    background: #1976d2;
    color: #fff;
}

.btn-admin:hover {
    background: #2196f3;
}

/* Grüner Button – z.B. "Angebot annehmen" */
.btn-success {
    background: #38a169;
    color: #ffffff;
    border: 1px solid #2f855a;
}

.btn-success:hover {
    background: #48bb78;
    border-color: #38a169;
    transform: translateY(-1px);
}

/* Kleine Button-Variante global */
.btn-sm {
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
}

/* Burger-Menü */
.burger-btn {
    width: 36px;
    height: 28px;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px 0;
    cursor: pointer;
}

.burger-btn span {
    display: block;
    height: 3px;
    background: #f4f4f4;
    border-radius: 2px;
}

/* Filterleiste */
.filter-bar {
    padding: 0.75rem 1.5rem 0.9rem;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    background: #121a28;
    display: flex;
    justify-content: center;
}

/* Wrapper für zentrierte Max-Breite */
.filter-bar-inner {
    width: 100%;
    max-width: 1200px;
}

/* Formular in der Filterleiste */
.filter-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-select,
.filter-search {
    background: #161f30;
    border: 1px solid #2a3650;
    color: #f4f4f4;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    font-size: 0.9rem;
    width: 100%;
    max-width: 750px;
}


.filter-search {
    width: 500px;
    max-width: 750px;
}

/* Angebote / Gesuche Toggle */
.filter-toggle {
    display: inline-flex;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #2a3650;
}

.toggle-btn {
    padding: 0.35rem 0.9rem;
    border: none;
    background: #161f30;
    color: #ccc;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.toggle-btn.active {
    background: #e53935;
    color: #fff;
}

.toggle-btn:not(.active):hover {
    background: #1f2940;
}

/* Main */
.site-main {
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 0 1rem 2rem;
}

/* Footer */
.site-footer {
    border-top: 1px solid #222;
    padding: 1rem 1.5rem;
    background: #101622;
    font-size: 0.85rem;
    color: #aaa;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-note {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.3rem;
}

/* Auth / Login / Register */
.auth-section {
    max-width: 480px;
    margin: 2rem auto;
    background: #151d2b;
    border-radius: 6px;
    border: 1px solid #232d40;
    padding: 1.5rem 1.75rem;
}

.auth-section h1 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: #9aa3b8;
    margin-bottom: 1.2rem;
}

.auth-form .form-row {
    margin-bottom: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.auth-form label {
    font-size: 0.9rem;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    background: #161f30;
    border: 1px solid #2a3650;
    color: #f4f4f4;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.auth-form input:focus {
    outline: none;
    border-color: #e53935;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.auth-link {
    font-size: 0.85rem;
    color: #9aa3ff;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 0.6rem 0.8rem;
    border-radius: 4px;
    margin-bottom: 0.9rem;
    font-size: 0.85rem;
}

.alert-error {
    background: #3b1b20;
    border: 1px solid #e57373;
    color: #ffb3b3;
}

.alert-success {
    background: #1c3b24;
    border: 1px solid #66bb6a;
    color: #c8e6c9;
}

/* Ember Info */
.ember-row .info-icon {
    display: inline-block;
    margin-left: 0.25rem;
    font-size: 0.8rem;
    cursor: help;
    color: #f5c400;
}

.ember-row .info-text {
    font-size: 0.8rem;
    color: #a7b3c9;
}

/* ============================= */
/* Listings & Startseite         */
/* ============================= */

.home-intro h1 {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.home-subtitle {
    font-size: 0.95rem;
    color: #c0c6d4;
    margin-bottom: 1.5rem;
}

.listing-section h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.listing-hint {
    font-size: 0.9rem;
    color: #9aa3b8;
    margin-bottom: 1rem;
}

/* Responsives Grid für die Startseite */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1200px) {
    .listing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .listing-grid {
        grid-template-columns: 1fr;
    }
}

.listing-card {
    background: #151d2b;
    border-radius: 6px;
    padding: 0.75rem 0.9rem;
    border: 1px solid #232d40;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 140px;
    overflow: hidden;
}

/* Typ oben drüber, fett und farbig */
.listing-type-label {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.listing-type-offer {
    color: #4caf50;
}

.listing-type-request {
    color: #ff7043;
}

/* Header-Bereich mit Icon + Text nebeneinander */
.listing-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/* Flex-Container für Icon + Text */
.item-main {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

/* Icon links */
.item-icon {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: #20293a;
    flex-shrink: 0;
    overflow: hidden;
}

/* Text rechts daneben */
.item-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Fetter Itemname, direkt neben dem Icon */
.item-name {
    font-size: 0.95rem;
    font-weight: 700;
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Meta-Angaben unter dem Namen */
.item-meta {
    font-size: 0.8rem;
    color: #9aa3b8;
}

/* Spalten in der Trade-Row */
.trade-column {
    min-width: 0;
}

.listing-body {
    font-size: 0.88rem;
    color: #c0c6d4;
    flex: 1;
}

/* Beschreibung im Card-Body begrenzen */
.listing-body p {
    margin-top: 0.25rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Fallback-Text, wenn kein Gegen-Item angegeben ist */
.listing-no-item {
    font-size: 0.85rem;
    color: #9aa3b8;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    overflow-wrap: anywhere;
}

/* Sicherheit: Text in Listing-Karten nie überlaufen lassen */
.listing-card p {
    overflow-wrap: anywhere;
}

.listing-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

/* Pagination mit Pfeilen */
.pagination {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.pagination .page {
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    border: 1px solid #28344a;
    min-width: 26px;
    text-align: center;
    text-decoration: none;
    color: #f4f4f4;
}

.pagination .current {
    background: #e53935;
    border-color: #e53935;
    color: #fff;
}

.pagination .disabled {
    opacity: 0.4;
    cursor: default;
}

.pagination .arrow {
    font-weight: 700;
}

.btn-refresh {
    background: #1e2a3c;
    color: #f4f4f4;
    padding: 0.35rem 0.55rem;
    border-radius: 4px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid #2e3a50;
    transition: background 0.15s ease, transform 0.1s ease;
}

.btn-refresh:hover {
    background: #2c3a52;
    transform: translateY(-1px);
}

.btn-refresh:active {
    transform: scale(0.95);
}

.import-log {
    background: #060911;
    border: 1px solid #232d40;
    border-radius: 4px;
    padding: 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.85rem;
    max-height: 400px;
    overflow: auto;
    color: #d0d7e2;
    white-space: pre-wrap;
}

/* ============================= */
/* Admin-Bereich: User-Verwaltung */
/* ============================= */

.admin-section {
    max-width: 1200px;
    margin: 2rem auto;
    background: #151d2b;
    border-radius: 6px;
    border: 1px solid #232d40;
    padding: 1.5rem 1.75rem;
}

.admin-section h1 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.admin-subtitle {
    font-size: 0.9rem;
    color: #9aa3b8;
    margin-bottom: 1.2rem;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.admin-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: #c0c6d4;
}

.admin-stats span strong {
    color: #f5c400;
}

.admin-search-form {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.admin-search-input {
    background: #161f30;
    border: 1px solid #2a3650;
    color: #f4f4f4;
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
    font-size: 0.9rem;
    min-width: 260px;
}

.admin-search-input:focus {
    outline: none;
    border-color: #e53935;
}

.admin-clear-link {
    font-size: 0.85rem;
    color: #9aa3ff;
    text-decoration: none;
}

.admin-clear-link:hover {
    text-decoration: underline;
}

.admin-table-wrapper {
    margin-top: 1rem;
    max-height: 600px;
    overflow-y: auto;
    overflow-x: auto;
}

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

.admin-table thead tr {
    background: #161f30;
}

.admin-table th,
.admin-table td {
    padding: 0.5rem 0.4rem;
    border-bottom: 1px solid #232d40;
    vertical-align: top;
}

.admin-table th {
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: #c0c6d4;
}

.status-badge {
    display: inline-block;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-active {
    background: #1c3b24;
    color: #c8e6c9;
}

.status-banned {
    background: #3b1b20;
    color: #ffb3b3;
}

.status-reason {
    font-size: 0.8rem;
    color: #ffb3b3;
    margin-top: 0.25rem;
}

.admin-trades-cell {
    font-size: 0.85rem;
}

.admin-trades-links {
    margin-top: 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.admin-link {
    font-size: 0.8rem;
    color: #9aa3ff;
    text-decoration: none;
}

.admin-link:hover {
    text-decoration: underline;
}

.admin-actions-cell {
    min-width: 260px;
}

.admin-inline-form {
    margin-bottom: 0.4rem;
}

.admin-reason-input {
    width: 100%;
    min-height: 46px;
    background: #161f30;
    border: 1px solid #2a3650;
    color: #f4f4f4;
    padding: 0.3rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
    resize: vertical;
    margin-bottom: 0.25rem;
}

/* ============================= */
/* Admin-Dashboard (index.php)   */
/* ============================= */

.admin-layout {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-top: 1.25rem;
    flex-wrap: nowrap;
}

.admin-sidebar {
    width: 280px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-sidebar-card {
    background: #111827;
    border: 1px solid #232d40;
    border-radius: 6px;
    padding: 0.8rem 0.9rem;
    font-size: 0.9rem;
}

.admin-sidebar-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.admin-sidebar-list {
    list-style: none;
    margin: 0;
    margin-top: 0.35rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: #c0c6d4;
}

.admin-sidebar-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.admin-stat-value {
    font-weight: 600;
    color: #f5c400;
}

/* Rechte Seite: modulare Cards */
.admin-main {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.admin-card {
    background: #151d2b;
    border-radius: 6px;
    border: 1px solid #232d40;
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 140px;
}

.admin-card-title {
    font-size: 1rem;
    font-weight: 600;
}

.admin-card-text {
    font-size: 0.88rem;
    color: #c0c6d4;
}

.admin-card-actions {
    margin-top: 0.4rem;
}

.admin-card-note {
    font-size: 0.8rem;
    color: #9aa3b8;
}

/* Responsive: wenn zu schmal, untereinander */
@media (max-width: 900px) {
    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
    }
}

/* ============================= */
/* Nachrichten / Messages        */
/* ============================= */

.messages-section {
    max-width: 960px;
    margin: 2rem auto;
    background: #151d2b;
    border-radius: 6px;
    border: 1px solid #232d40;
    padding: 1.5rem 1.75rem;
}

.messages-section h1 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.messages-subtitle {
    font-size: 0.9rem;
    color: #9aa3b8;
    margin-bottom: 0.4rem;
}

.messages-retention {
    font-size: 0.8rem;
    color: #7f8aa5;
    margin-bottom: 1rem;
}

.messages-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.messages-tab {
    padding: 0.35rem 0.8rem;
    font-size: 0.9rem;
    border-radius: 4px;
    border: 1px solid #2a3650;
    text-decoration: none;
    color: #c0c6d4;
    background: #161f30;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.messages-tab:hover {
    background: #1f2940;
}

.messages-tab.active {
    background: #e53935;
    border-color: #e53935;
    color: #fff;
}

.messages-content {
    margin-top: 0.5rem;
}

.messages-empty {
    font-size: 0.9rem;
    color: #9aa3b8;
}

/* Nachrichten-Tabelle */
.messages-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.messages-table thead tr {
    background: #161f30;
}

.messages-table th,
.messages-table td {
    padding: 0.45rem 0.5rem;
    border-bottom: 1px solid #232d40;
    vertical-align: middle;
}

.messages-table tr.unread {
    background: #151f33;
}

.messages-table tr.unread:hover {
    background: #1b2740;
}

.messages-table tr:hover {
    background: #182235;
}

/* Linkfarbe für Nachrichten-Links */
a.messages-link,
a.messages-link:visited {
    color: #9aa3ff;
    text-decoration: none;
}

a.messages-link:hover {
    color: #c3d1ff;
    text-decoration: underline;
}

/* User-Name + Ember-ID */
.messages-user {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.messages-user-name {
    font-size: 0.9rem;
}

.messages-user-ember,
.messages-ember-inline {
    font-size: 0.8rem;
    color: #9aa3b8;
}

.messages-ember {
    font-size: 0.8rem;
    color: #9aa3b8;
}

/* zentrierte Spalten */
.messages-col-center {
    text-align: center;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.75rem;
    line-height: 1.2;
}

.badge-unread {
    background: #e53935;
    color: #fff;
    margin-left: 0.3rem;
    min-width: 18px;
    text-align: center;
}

.badge-unread-small {
    background: #e53935;
    color: #fff;
}

.badge-read {
    background: #263549;
    color: #c0c6d4;
}

/* Header Messages Button */
.btn-messages {
    position: relative;
}

/* Detailansicht */
.message-detail {
    margin-top: 0.5rem;
    padding: 0.8rem 0.6rem;
    border-radius: 4px;
    background: #101827;
    border: 1px solid #232d40;
}

.message-detail h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.message-meta {
    font-size: 0.85rem;
    color: #9aa3b8;
    margin-bottom: 0.7rem;
}

.message-meta > div {
    margin-bottom: 0.2rem;
}

.message-body {
    font-size: 0.9rem;
    color: #cfd5e4;
    padding: 0.6rem 0.5rem;
    border-radius: 4px;
    background: #151d2b;
    border: 1px solid #232d40;
    margin-bottom: 0.8rem;
}

.message-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.inline-form {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Meldung: Kommentar-Feld + Button */
.inline-form-report {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem;
}

.message-report-input {
    background: #161f30;
    border: 1px solid #2a3650;
    color: #f4f4f4;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    min-width: 260px;
}

.message-report-input:focus {
    outline: none;
    border-color: #e53935;
}

/* Formular im Compose-Tab */
.messages-form .form-row {
    margin-bottom: 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.messages-form label {
    font-size: 0.9rem;
}

.messages-form input[type="text"],
.messages-form input[type="number"],
.messages-form textarea {
    background: #161f30;
    border: 1px solid #2a3650;
    color: #f4f4f4;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.messages-form textarea {
    resize: vertical;
}

.messages-form input:focus,
.messages-form textarea:focus {
    outline: none;
    border-color: #e53935;
}

.messages-hint {
    font-size: 0.85rem;
    color: #9aa3b8;
    margin-bottom: 0.8rem;
}

/* ============================= */
/* Listing-Titel Link            */
/* ============================= */

a.listing-title-link,
a.listing-title-link:visited {
    color: #f5c400;
    text-decoration: none;
}

a.listing-title-link:hover {
    color: #ffe27a;
    text-decoration: underline;
}

a.listing-title-link:active {
    color: #ffb74d;
}

/* Suchfeld in der linken Sidebar auf Formularbreite begrenzen */
.admin-sidebar .filter-search {
    width: 100%;
    max-width: 100%;
}

/* Item-Auswahl in der Sidebar etwas kompakter darstellen */
.admin-sidebar #item_id {
    font-size: 0.85rem;
    max-width: 100%;
}

/* ============================= */
/* Item Rarity Colors            */
/* ============================= */

.rarity-common {
    color: #9e9e9e;
}

.rarity-uncommon {
    color: #4caf50;
}

.rarity-rare {
    color: #2196f3;
}

.rarity-epic {
    color: #9c27b0;
}

.rarity-legendary {
    color: #f5c400;
}

/* Border fürs Icon */
.icon-border-common {
    border: 2px solid #9e9e9e;
}

.icon-border-uncommon {
    border: 2px solid #4caf50;
}

.icon-border-rare {
    border: 2px solid #2196f3;
}

.icon-border-epic {
    border: 2px solid #9c27b0;
}

.icon-border-legendary {
    border: 2px solid #f5c400;
}

/* ================================= */
/* RARITY-FARBEN FÜR ITEMS           */
/* ================================= */

/* Item-Namen */
.item-name--common {
    color: #9e9e9e;
}

.item-name--uncommon {
    color: #4caf50;
}

.item-name--rare {
    color: #2196f3;
}

.item-name--epic {
    color: #9c27b0;
}

.item-name--legendary {
    color: #ffc107;
}

/* Item-Icons: farbige Umrandung + Hover-Glow */
.item-icon--common {
    border: 1px solid #9e9e9e;
    box-shadow: 0 0 0 0 rgba(158, 158, 158, 0);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.item-icon--common:hover {
    box-shadow: 0 0 8px rgba(158, 158, 158, 0.8);
}

.item-icon--uncommon {
    border: 1px solid #4caf50;
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.item-icon--uncommon:hover {
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.8);
}

.item-icon--rare {
    border: 1px solid #2196f3;
    box-shadow: 0 0 0 0 rgba(33, 150, 243, 0);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.item-icon--rare:hover {
    box-shadow: 0 0 8px rgba(33, 150, 243, 0.8);
}

.item-icon--epic {
    border: 1px solid #9c27b0;
    box-shadow: 0 0 0 0 rgba(156, 39, 176, 0);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.item-icon--epic:hover {
    box-shadow: 0 0 8px rgba(156, 39, 176, 0.8);
}

.item-icon--legendary {
    border: 1px solid #ffc107;
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.item-icon--legendary:hover {
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.9);
}

.item-name a,
.item-name a:visited {
    color: inherit;
    text-decoration: none;
}

.item-name a:hover {
    text-decoration: underline;
}

.header-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    position: relative;
    top: -1px;
}

/* Status-Badges für Reports */
.badge-status-open {
    background-color: #b91c1c;
    border: 1px solid #f87171;
    color: #fff;
}

.badge-status-closed {
    background-color: #065f46;
    border: 1px solid #34d399;
    color: #ecfdf5;
}

/* NEU: In Prüfung */
.badge-status-review {
    background-color: #1d4ed8;
    border: 1px solid #60a5fa;
    color: #e5f0ff;
}

/* Globale Link-Styles – ohne Unterstreichung */
a,
a:link,
a:visited {
    color: #9aa3ff;
    text-decoration: none;
}

a:hover {
    color: #c3d1ff;
    text-decoration: none;
}

a:active {
    color: #9aa3ff;
    text-decoration: none;
}

/* ============================= */
/* Cookie-Banner                 */
/* ============================= */

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 15, 22, 0.96);
    border-top: 1px solid #232d40;
    padding: 0.75rem 1.5rem;
    z-index: 10000;
    display: none;
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
}

.cookie-banner-text {
    font-size: 0.85rem;
    color: #c0c6d4;
    max-width: 780px;
}

.cookie-banner-text a {
    color: #9aa3ff;
    text-decoration: none;
}

.cookie-banner-text a:hover {
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* ============================= */
/* Buttons als Links: Linkfarbe fixen */
/* ============================= */

a.btn,
a.btn:link,
a.btn:visited {
    color: inherit;
}

/* ============================= */
/* Reputation Badges             */
/* ============================= */

.rep-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    background: #111827;
    border: 1px solid transparent;
    margin-left: 0.25rem;
}

/* Keine Bewertungen / neutral */
.rep-badge--none {
    color: #9ca3af;
    border-color: #374151;
    background: #111827;
}

/* >= 90% positiv – grün */
.rep-badge--good {
    color: #bbf7d0;
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
}

/* 60–89% positiv – orange */
.rep-badge--medium {
    color: #facc15;
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
}

/* < 60% positiv – rot */
.rep-badge--bad {
    color: #fecaca;
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

/* ============================= */
/* Reputation Badges & Summary   */
/* ============================= */

/* Basis für alle Badges */
.rep-badge {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    font-size: 0.75rem;
    line-height: 1.1;
    margin-left: 0.25rem;
    border: 1px solid transparent;
}

/* Keine Bewertungen */
.rep-badge--none {
    background: #111827;
    color: #9ca3af;
    border-color: #1f2937;
}

/* 0–40 % positiv -> rot / schlecht */
.rep-badge--bad {
    background: #7f1d1d;
    color: #fecaca;
    border-color: #ef4444;
}

/* 41–70 % positiv -> orange / gemischt */
.rep-badge--mixed {
    background: #4a250f;
    color: #ffedd5;
    border-color: #fb923c;
}

/* 71–94 % positiv -> grün */
.rep-badge--good {
    background: #064e3b;
    color: #a7f3d0;
    border-color: #22c55e;
}

/* ≥95 % positiv (& genug Bewertungen) -> dunkelgrün / Top */
.rep-badge--excellent {
    background: #14532d;
    color: #bbf7d0;
    border-color: #22c55e;
}

/* Summary-Text neben/unter dem Badge */
.rep-summary {
    display: inline-block;
    font-size: 0.85rem;
    margin-left: 0.3rem;
}

/* Farben für den Summary-Text (optional, mehr Kontrast) */
.rep-summary--none {
    color: #9ca3af;
}

.rep-summary--bad {
    color: #f97373;
}

.rep-summary--mixed {
    color: #fed7aa;
}

.rep-summary--good {
    color: #4ade80;
}

.rep-summary--excellent {
    color: #22c55e;
}

/* ============================= */
/* Responsive Header & Filter    */
/* ============================= */
@media (max-width: 768px) {
    .site-header {
        padding: 0.5rem 0.75rem 0.4rem;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .header-right {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0.4rem;
    }

    /* Filterleiste kompakter und untereinander */
    .filter-bar {
        padding: 0.5rem 0.75rem 0.7rem;
    }

    .filter-form {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .filter-select,
    .filter-search {
        width: 100%;
        max-width: 100%;
    }

    .filter-toggle {
        width: 100%;
    }

    .filter-toggle .toggle-btn {
        flex: 1 1 50%;
        text-align: center;
    }
}

/* ============================= */
/* Responsive Trade-Layout       */
/* ============================= */
@media (max-width: 768px) {
    .listing-card {
        padding: 0.7rem 0.75rem;
    }

    /* Spalten untereinander statt nebeneinander */
    .trade-row {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .trade-column-left,
    .trade-column-right {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .trade-middle {
        margin: 0.6rem 0;
        text-align: center;
    }

    .item-main {
        align-items: flex-start;
    }
}



