/* =========================
   METIN2 STYLE THEME
   ========================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Roboto:wght@400;500;700&display=swap');

:root {
    --bg-dark: #0e0b08;
    --bg-panel: rgba(24, 18, 12, 0.92);
    --bg-panel-2: rgba(38, 28, 18, 0.95);
    --gold: #caa35a;
    --gold-light: #f2d28b;
    --gold-dark: #7f5a24;
    --red-dark: #4e120d;
    --red-mid: #7d1d15;
    --red-light: #b63a27;
    --text-main: #f4e6c3;
    --text-soft: #d7c39a;
    --line: rgba(202, 163, 90, 0.4);
    --shadow: rgba(0, 0, 0, 0.75);
}

/* =========================
   GLOBAL
   ========================= */
html,
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Roboto', sans-serif;
    color: var(--text-main);

    background-image: url("image/wallpaper1.png");
    background-position: center center;
    background-repeat: no-repeat;   /* nicht doppeln */
    background-size: cover;         /* füllt Bildschirm ohne verzerren */
    background-attachment: fixed;  /* bleibt fix beim scrollen */
}

* {
    box-sizing: border-box;
}

label {
    color: #4a3a2a !important;
}


h1, h2, h3, h4, h5,
.ui-datatable .ui-datatable-header,
.ui-paginator,
.footer {
    font-family: 'Cinzel', serif;
    letter-spacing: 0.6px;
}

a {
    color: var(--gold-light);
    text-decoration: none;
}

a:hover {
    color: #fff2c9;
}

/* =========================
   LAYOUT
   ========================= */
.content {
    width: min(1400px, 95%);
    margin: 40px auto;
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(33, 24, 16, 0.9), rgba(15, 10, 7, 0.95));
    border: 2px solid var(--gold-dark);
    border-radius: 14px;
    box-shadow:
        0 0 0 2px rgba(255, 215, 140, 0.08) inset,
        0 0 25px var(--shadow),
        0 0 12px rgba(202, 163, 90, 0.18);
    position: relative;
}

.content::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(242, 210, 139, 0.15);
    border-radius: 10px;
    pointer-events: none;
}

.allverkauf {
    width: 100%;
}

.card {
    background:
        linear-gradient(180deg, rgba(46, 32, 20, 0.98), rgba(22, 14, 8, 0.98));
    border: 1px solid var(--gold-dark);
    border-radius: 12px;
    padding: 18px;
    box-shadow:
        inset 0 0 25px rgba(0, 0, 0, 0.45),
        0 0 20px rgba(0, 0, 0, 0.45);
}

.loginsystem {
    background:
        linear-gradient(180deg,
        rgba(46, 32, 20, 0.75),
        rgba(22, 14, 8, 0.75));
        
    border: 1px solid #6a4b1f;
    border-radius: 12px;
    padding: 18px;

    box-shadow:
        inset 0 0 25px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(0, 0, 0, 0.6);

    backdrop-filter: blur(4px); /* Glas-Effekt */
    
    display: flex;
    justify-content: center;
    align-items: center;
}













/* =========================/* =========================/* =========================


/* ========================= registrieren*/

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 60px;
}

.login-side img {
    width: 350px;
    filter: drop-shadow(0 0 10px black);
}

/* Rechts spiegeln */
.char-right {
    transform: scaleX(-1);
}

/* Login Panel */
.cards {
    background: linear-gradient(180deg,
        rgba(46, 32, 20, 0.75),
        rgba(22, 14, 8, 0.75));

    border: 1px solid #6a4b1f;
    border-radius: 12px;
    padding: 25px;

    box-shadow:
        inset 0 0 25px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(212, 175, 55, 0.25);

    backdrop-filter: blur(3px);
    text-align: center;
}

/* Metin2 Button */
.metin2-button {
    background: linear-gradient(#3a3326, #231f18);
    border: 1px solid #6a4b1f;
    color: #d4af37;
    font-weight: bold;
}

.metin2-button:hover {
    background: linear-gradient(#4a412f, #2b261d);
    color: #fff2b0;
    box-shadow: 0 0 5px #d4af37;
}







/* =========================/* =========================/* =========================*/



img {
    max-width: 100%;
    height: auto;
}


.char-right img {
    width: 450px;
      width: 450px;        /* HIER Größe */
    transform: scaleX(-1);
}













/* =========================
   HEADER / TITLE LOOK
   ========================= */
.ui-datatable .ui-datatable-header {
    background:
        linear-gradient(180deg, #6f261a 0%, #4d170f 50%, #2f0d08 100%);
    color: var(--gold-light);
    border: 1px solid var(--gold-dark);
    border-radius: 10px 10px 0 0;
    padding: 14px 18px;
    font-size: 1.2rem;
    text-transform: uppercase;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.75);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

/* =========================
   PRIMEFACES DATATABLE
   ========================= */
.ui-datatable {
    border: 1px solid var(--gold-dark);
    border-radius: 10px;
    overflow: hidden;
    background: transparent;
}

.ui-datatable table {
    width: 100%;
    border-collapse: collapse;
}

.ui-datatable thead th {
    background:
        linear-gradient(180deg, #3f2a17 0%, #2b1c10 100%);
    color: var(--gold-light);
    border: 1px solid rgba(202, 163, 90, 0.25);
    padding: 12px 10px;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    text-shadow: 0 0 5px rgba(0,0,0,0.7);
}

.ui-datatable tbody tr {
    background: rgba(20, 13, 8, 0.88);
    transition: background 0.2s ease, transform 0.15s ease;
}

.ui-datatable tbody tr:nth-child(even) {
    background: rgba(30, 19, 11, 0.92);
}

.ui-datatable tbody tr:hover {
    background: rgba(72, 42, 18, 0.95);
    box-shadow: inset 0 0 0 1px rgba(242, 210, 139, 0.12);
}

.ui-datatable tbody td {
    padding: 12px 10px;
    border: 1px solid rgba(202, 163, 90, 0.12);
    color: var(--text-main);
    vertical-align: middle;
    font-size: 0.95rem;
}

.ui-datatable .ui-sortable-column-icon,
.ui-datatable .ui-column-customfilter .ui-icon {
    color: var(--gold-light);
}

/* =========================
   FILTER INPUT
   ========================= */
.ui-inputfield,
.ui-inputtext,
input[type="text"] {
    width: 100%;
    background: linear-gradient(180deg, #1e130c 0%, #120b06 100%);
    color: var(--text-main);
    border: 1px solid var(--gold-dark);
    border-radius: 8px;
    padding: 9px 10px;
    outline: none;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.45);
}

.ui-inputfield:focus,
.ui-inputtext:focus,
input[type="text"]:focus {
    border-color: var(--gold-light);
    box-shadow:
        0 0 0 2px rgba(202, 163, 90, 0.15),
        inset 0 0 8px rgba(0,0,0,0.45);
}

/* =========================
   BUTTONS
   ========================= */
.ui-button,
button,
input[type="button"],
input[type="submit"],
input[type="Abschicken"] {
    background:
        linear-gradient(180deg, #8c2c1d 0%, #641910 50%, #3a0d08 100%) !important;
    border: 1px solid var(--gold-dark) !important;
    color: var(--gold-light) !important;
    border-radius: 8px !important;
    padding: 10px 18px !important;
    font-family: 'Cinzel', serif !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 4px 10px rgba(0,0,0,0.35);
    transition: all 0.2s ease;
}

.ui-button:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="Abschicken"]:hover {
    background:
        linear-gradient(180deg, #ad3824 0%, #7c2115 50%, #4e120d 100%) !important;
    color: #fff3ce !important;
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.12),
        0 0 12px rgba(202, 163, 90, 0.22),
        0 4px 12px rgba(0,0,0,0.4);
}

.ui-button:active,
button:active {
    transform: translateY(0);
}

.ui-button .ui-button-icon-left {
    color: var(--gold-light) !important;
}

/* =========================
   PAGINATOR
   ========================= */
.ui-paginator {
    background:
        linear-gradient(180deg, rgba(43, 28, 16, 0.96), rgba(24, 15, 9, 0.98));
    border-top: 1px solid rgba(202, 163, 90, 0.2);
    color: var(--text-soft);
    padding: 10px;
}

.ui-paginator .ui-paginator-pages .ui-paginator-page,
.ui-paginator .ui-paginator-first,
.ui-paginator .ui-paginator-prev,
.ui-paginator .ui-paginator-next,
.ui-paginator .ui-paginator-last {
    background: linear-gradient(180deg, #352214 0%, #1d120b 100%);
    border: 1px solid rgba(202, 163, 90, 0.35);
    color: var(--gold-light);
    border-radius: 6px;
    margin: 0 2px;
    min-width: 34px;
    height: 34px;
    line-height: 32px;
    transition: all 0.2s ease;
}

.ui-paginator .ui-paginator-pages .ui-paginator-page:hover,
.ui-paginator .ui-paginator-first:hover,
.ui-paginator .ui-paginator-prev:hover,
.ui-paginator .ui-paginator-next:hover,
.ui-paginator .ui-paginator-last:hover {
    background: linear-gradient(180deg, #5a3018 0%, #2e180c 100%);
    color: #fff0c0;
    box-shadow: 0 0 10px rgba(202, 163, 90, 0.15);
}

.ui-paginator .ui-paginator-pages .ui-state-active {
    background: linear-gradient(180deg, #9b3a20 0%, #6b1d12 100%) !important;
    color: #fff5d4 !important;
    border-color: var(--gold-light) !important;
}

/* =========================
   DROPDOWN / ROWS PER PAGE
   ========================= */
.ui-selectonemenu {
    background: linear-gradient(180deg, #20140c 0%, #130b06 100%);
    border: 1px solid var(--gold-dark);
    border-radius: 8px;
    color: var(--text-main);
}

.ui-selectonemenu-label {
    color: var(--text-main) !important;
}

.ui-selectonemenu-trigger {
    background: transparent;
    border-left: 1px solid rgba(202, 163, 90, 0.2);
}

/* =========================
   ITEM IMAGES / SOCKETS
   ========================= */
.ui-datatable img,
img {
    max-width: 48px;
    height: auto;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.8));
}

.ui-datatable tbody td:nth-child(2) img {
    max-width: 56px;
}

.ui-datatable tbody td:nth-child(4) img {
    max-width: 34px;
    margin: 2px 0;
}

/* =========================
   BONUS TEXT
   ========================= */
.ui-datatable tbody td:nth-child(3) {
    line-height: 1.55;
    color: #e8d8b4;
    font-size: 0.92rem;
}

/* =========================
   FOOTER
   ========================= */
.footer {
    width: 100%;
    margin-top: 30px;
    padding: 18px 12px;
    text-align: center;
    color: var(--gold-light);
    background:
        linear-gradient(180deg, rgba(41, 24, 14, 0.96), rgba(18, 10, 6, 0.98));
    border-top: 2px solid var(--gold-dark);
    box-shadow: 0 -4px 15px rgba(0,0,0,0.35);
    text-shadow: 0 0 8px rgba(0,0,0,0.8);
    letter-spacing: 1px;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1024px) {
    .content {
        width: 98%;
        padding: 14px;
    }

    .card {
        padding: 12px;
    }

    .ui-datatable thead th,
    .ui-datatable tbody td {
        padding: 8px 6px;
        font-size: 0.85rem;
    }

    .ui-button,
    button,
    input[type="button"],
    input[type="submit"] {
        padding: 8px 12px !important;
        font-size: 0.82rem !important;
    }
}

@media (max-width: 768px) {
    .content {
        margin: 20px auto;
    }

    .ui-datatable {
        overflow-x: auto;
    }

    .ui-datatable table {
        min-width: 900px;
    }
}


/* =========================
   ANPASSUNGEN NACH SCREENSHOT
   ========================= */

/* 1) Suchleiste hell / ohne dunklen Balken */
.ui-column-filter,
.ui-inputfield,
.ui-inputtext,
input[type="text"] {
    background: #f3f0ed !important;
    color: #3f3428 !important;
    border: 1px solid rgba(127, 90, 36, 0.45) !important;
    box-shadow: none !important;
}

.ui-inputfield:focus,
.ui-inputtext:focus,
input[type="text"]:focus {
    background: #faf7f2 !important;
    color: #2d241b !important;
    border: 1px solid #caa35a !important;
    box-shadow: 0 0 0 2px rgba(202, 163, 90, 0.12) !important;
    outline: none !important;
}

/* Falls PrimeFaces dem Filterfeld extra Container gibt */
.ui-datatable .ui-filter-column .ui-inputfield,
.ui-datatable .ui-filter-column .ui-inputtext {
    background: #f3f0ed !important;
    color: #3f3428 !important;
    border-radius: 8px !important;
}

/* 2) User Statistics gleiche Schrift wie Marktplatz */
.user-statistics,
.user-statistics *,
.statistic,
.statistic *,
.stats-box,
.stats-box *,
.stats-panel,
.stats-panel * {
    font-family: 'Cinzel', serif !important;
    color: #3e5572 !important;
    letter-spacing: 0.4px;
}

/* Optional: schönerer Titelbereich für Statistik */
.user-statistics .title,
.statistic .title,
.stats-box .title,
.stats-panel .title,
.user-statistics h1,
.user-statistics h2,
.user-statistics h3,
.statistic h1,
.statistic h2,
.statistic h3,
.stats-box h1,
.stats-box h2,
.stats-box h3,
.stats-panel h1,
.stats-panel h2,
.stats-panel h3 {
    font-family: 'Cinzel', serif !important;
    font-weight: 600;
}

/* Falls deine Statistik aus einem PrimeFaces Panel besteht */
.ui-panel,
.ui-panel .ui-panel-titlebar,
.ui-panel .ui-panel-content {
    font-family: 'Cinzel', serif !important;
}

/* 3) Keine wechselnden Item-Farben mehr */
.ui-datatable tbody tr,
.ui-datatable tbody tr:nth-child(even),
.ui-datatable tbody tr:nth-child(odd) {
    background: #f3f0ed !important;
}

.ui-datatable tbody tr:hover {
    background: #eee7dd !important;
}

/* Tabelleninhalt einheitlicher */
.ui-datatable tbody td {
    color: #4a3a2a !important;
    border-color: rgba(127, 90, 36, 0.15) !important;
}

/* Leere Tabelle Text besser lesbar */
.ui-datatable-empty-message td,
.ui-datatable .ui-datatable-empty-message td {
    color: #c9ae7a !important;
    background: #f3f0ed !important;
}