/* =========================
   Body & Reset
========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    color: #333;
    min-height: 100vh;
    line-height: 1.5;
}

/* =========================
   Links
========================= */
a {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.set-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-left: 5px;
}

/* =========================
   Header
========================= */
header {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    background: linear-gradient(90deg,#6a11cb,#00c853);
    color: #fff;
    padding: 20px;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 3000;
    
}

header h1 {
    margin: 0;
    font-size: 2em;
    flex: 1 1 100%;
    text-align: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.header-right a {
    color: #fff;
    font-weight: bold;
}

.burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    cursor: pointer;
    margin-left: 15px;
}

.burger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

.burger-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 20px;
    background: #333;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    flex-direction: column;
    min-width: 150px;
    z-index: 2000;
}

.burger-menu a {
    padding: 10px 15px;
    color: #fff;
    display: block;
    font-size: 0.95rem;
}

.burger-menu a:hover {
    background: #00c853;
}

.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.burger-menu.active { display: flex; }

/* =========================
   Main
========================= */
main {
    margin: 40px auto 100px auto;
    padding: 0 20px;
}

/* =========================
   Top Section (Card + Form)
========================= */
.top-section {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* Kartendetails */
.card-details {
    flex: 1.3;
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.card-details img {
    height: auto;
    max-width: 200px;
    flex-shrink: 0;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s;
    object-fit: contain;
}

.card-details img:hover { transform: scale(1.05); }

.card-info { flex: 1; }
.card-info h2 { margin-bottom: 12px; color: #6a11cb; font-size: 1.8rem; }
.card-info p { margin-bottom: 8px; font-size: 0.95rem; }

/* Formular rechts */
.listing-form {
    flex: 1;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.listing-form h2 { margin-top: 0; margin-bottom: 15px; }
.listing-form label {
    display: block;
    font-weight: bold;
    margin-top: 15px;
}
.listing-form input, .listing-form select, .listing-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
}
.listing-form textarea { resize: vertical; min-height: 80px; }
.listing-form button {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background-color: #3c7be6;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
}
.listing-form button:hover { background-color: #2a62c9; }
.message { color: green; font-weight: bold; margin-bottom: 10px; }
.hidden { display: none; }

/* =========================
   Listings Table
========================= */
.table-wrapper {
    margin-top: 2rem;
    overflow-x:auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}
th, td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 0.95rem;
}
th { background: #6a11cb; color: #fff; }
tbody tr:hover { background: #f0f8ff; }
.card-thumb { width: 60px; height: auto; border-radius: 6px; }

/* =========================
   Modal Image
========================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.modal-close:hover { color: #00c853; }

/* =========================
   Footer
========================= */
footer {
    background: #222;
    color: #ccc;
    text-align: center;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
    z-index: 999;
}
footer a { color: #00c853; text-decoration: none; font-weight: bold; }
footer a:hover { text-decoration: underline; }

/* =========================
   Pokemon TCG Page Images
========================= */
.card-img {
    max-width: 120px; /* kleiner in Übersicht */
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}
.card-img:hover { transform: scale(1.05); }

/* =========================
   Pagination
========================= */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    background-color: #6a11cb !important; /* Lila Hintergrund erzwingen */
    color: #ffffff !important; /* Weiße Schrift erzwingen */
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.2s, transform 0.2s;
}

.pagination a:hover {
    background-color: #4b0fa1 !important; /* Dunkleres Lila beim Hover */
    transform: scale(1.1);
}

.pagination a.active {
    background-color: #00c853 !important; /* Aktiver Link grün */
    color: #ffffff !important; /* Weiße Schrift */
}
/* =========================
   Responsive
========================= */
@media (max-width: 900px) {
    .top-section { flex-direction: column; }
    .card-details { flex-direction: column; align-items: center; padding: 20px; }
    .listing-form { width: 100%; }

    header {
        justify-content: center;
    }
    .header-right {
        position: static;
        transform: none;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
        gap: 10px;
    }
 
}


