/* ==================== VARIABLEN ==================== */
:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --secondary: #6366f1;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #064e3b 0%, #10b981 100%);
    min-height: 100vh;
    color: var(--gray-900);
    line-height: 1.6;
}

/* ==================== LAYOUT ==================== */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 24px;
}

header h1 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
}

header a {
    display: inline-block;
    margin-top: 10px;
}

/* ==================== CARDS ==================== */
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
}

.card h2 {
    color: var(--gray-800);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

/* ==================== FORMULARE ==================== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.checkbox-group {
    display: flex;
    gap: 20px;
    padding: 10px 0;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.checkbox input {
    width: auto;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-large {
    width: 100%;
    padding: 16px;
    font-size: 1.2rem;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.9rem;
}

/* ==================== JAHRE NAVIGATION ==================== */
.jahre-nav {
    text-align: center;
}

.jahre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.vereine-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.jahr-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.jahr-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.jahr-number {
    font-size: 1.8rem;
    font-weight: 700;
}

.jahr-count {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 5px;
}

.verein-btn .jahr-number {
    font-size: 1rem;
    text-align: center;
    line-height: 1.3;
    word-break: break-word;
}

.verein-btn {
    min-width: 180px;
    padding: 16px 12px;
}

/* ==================== GALERIE ==================== */
.galerie-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.galerie-header h2 {
    color: var(--white);
    margin: 0;
}

.count-badge {
    background: var(--white);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
}

.trikot-galerie {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.galerie-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: all 0.3s;
}

.galerie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.galerie-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background: var(--gray-100);
}

.galerie-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    font-size: 4rem;
}

.galerie-info {
    padding: 16px;
}

.galerie-info h3 {
    color: var(--gray-800);
    margin-bottom: 8px;
}

.galerie-info .flock {
    color: var(--gray-600);
    font-size: 1.1rem;
}

.patches {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.patch {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.patch.bundesliga {
    background: #d00027;
    color: white;
}

.patch.cl {
    background: #1a1a5e;
    color: white;
}

/* ==================== ADMIN TRIKOT TABS ==================== */
.trikot-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 10px;
}

.trikot-tab {
    background: var(--gray-100);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray-600);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trikot-tab:hover {
    background: var(--gray-200);
}

.trikot-tab.active {
    background: var(--primary);
    color: white;
}

.tab-count {
    background: rgba(255,255,255,0.3);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.85rem;
}

.trikot-tab.active .tab-count {
    background: rgba(255,255,255,0.3);
}

/* ==================== ADMIN NAVIGATION (Jahr/Verein) ==================== */
.admin-nav-container {
    margin-top: 15px;
}

.admin-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.admin-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.admin-nav-btn:hover {
    background: var(--gray-50);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.admin-nav-btn .nav-titel {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 5px;
}

.admin-nav-btn .nav-count {
    font-size: 0.85rem;
    color: var(--gray-500);
    background: var(--gray-200);
    padding: 3px 10px;
    border-radius: 12px;
}

/* ==================== VEREINE VERWALTUNG ==================== */
.input-with-button {
    display: flex;
    gap: 10px;
}

.input-with-button input {
    flex: 1;
}

.vereine-liste {
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.vereine-liste::-webkit-scrollbar {
    width: 8px;
}

.vereine-liste::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

.vereine-liste::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

.vereine-liste::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

.verein-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: 8px;
    margin-bottom: 8px;
}

.verein-item span {
    font-weight: 500;
}

.verein-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.verein-logo-container {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.verein-logo-mini {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}

.verein-name {
    font-weight: 500;
}

.verein-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.verein-logo-btn {
    cursor: pointer;
    padding: 4px 8px !important;
}

.verein-add-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.verein-add-form input[type="text"] {
    flex: 1;
    min-width: 200px;
}

.verein-logo-upload {
    display: flex;
    align-items: center;
    gap: 6px;
}

.verein-logo-preview {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid var(--gray-200);
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-warning:hover {
    background: #d97706;
}

/* ==================== ADMIN TRIKOT LISTE ==================== */
.trikot-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 4px solid var(--primary);
}

.trikot-item.verkauft {
    border-left-color: var(--gray-400);
    opacity: 0.7;
}

.trikot-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    cursor: pointer;
}

.trikot-thumb.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
    font-size: 2rem;
}

.trikot-info {
    flex: 1;
    min-width: 0;
}

.trikot-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.trikot-header strong {
    font-size: 1.1rem;
}

.trikot-jahr {
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.badge.verkauft {
    background: var(--gray-500);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.trikot-details {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.trikot-patches {
    margin: 8px 0;
}

.trikot-preise {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.trikot-preise .verkauf {
    color: var(--success);
    font-weight: 600;
}

.trikot-notizen {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--gray-500);
    font-style: italic;
}

.trikot-actions {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

/* ==================== STATISTIKEN ==================== */
.stats-card {
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
    color: var(--white);
}

.stats-card h2 {
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.stat-box {
    text-align: center;
    padding: 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}

.stat-box.highlight {
    background: var(--primary);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ==================== JAHRES- UND MONATSSTATISTIKEN ==================== */
.jahres-stat-item {
    background: var(--gray-50);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.jahres-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: var(--gray-100);
    cursor: pointer;
    transition: background 0.2s;
}

.jahres-header:hover {
    background: var(--gray-200);
}

.jahres-titel {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-800);
}

.jahres-zusammenfassung {
    display: flex;
    gap: 10px;
    flex: 1;
    flex-wrap: wrap;
}

.stat-badge {
    background: var(--gray-200);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-badge.umsatz {
    background: var(--primary);
    color: white;
}

.stat-badge.gewinn {
    background: var(--success);
    color: white;
}

.toggle-arrow {
    font-size: 0.9rem;
    color: var(--gray-500);
    transition: transform 0.2s;
}

.monats-details {
    padding: 0 20px 20px;
}

.monats-tabelle {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.monats-tabelle th,
.monats-tabelle td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.monats-tabelle th {
    background: var(--gray-100);
    font-weight: 600;
    color: var(--gray-700);
}

.monats-tabelle tr.leer {
    color: var(--gray-400);
}

.monats-tabelle td.positiv {
    color: var(--success);
    font-weight: 500;
}

.monats-tabelle td.negativ {
    color: var(--danger);
    font-weight: 500;
}

.monats-tabelle tfoot tr.jahres-summe {
    background: var(--primary);
    color: white;
}

.monats-tabelle tfoot tr.jahres-summe td {
    border-bottom: none;
}

.monats-tabelle tfoot td.positiv,
.monats-tabelle tfoot td.negativ {
    color: white;
}

/* ==================== MODALS ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    max-height: 90%;
}

.modal-image {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 8px;
}

.modal-info {
    background: var(--white);
    padding: 20px 30px;
    border-radius: 8px;
    margin-top: 16px;
    text-align: center;
    max-width: 500px;
}

.modal-info h2 {
    margin-bottom: 12px;
    color: var(--gray-800);
}

.modal-info p {
    color: var(--gray-600);
    margin: 8px 0;
}

.modal-flock {
    font-size: 1.3rem !important;
    color: var(--primary) !important;
    font-weight: 600;
}

.modal-patches {
    margin: 12px 0;
}

.modal-notes {
    font-style: italic;
    color: var(--gray-500) !important;
}

.modal-dialog {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-dialog h2 {
    margin-bottom: 20px;
    color: var(--gray-800);
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* ==================== SONSTIGES ==================== */
.empty {
    color: var(--gray-500);
    text-align: center;
    padding: 40px 20px;
}

.empty-card {
    text-align: center;
}

.empty-card a {
    color: var(--primary);
}

.clickable {
    cursor: pointer;
    transition: transform 0.2s;
}

.clickable:hover {
    transform: scale(1.05);
}

.image-preview {
    max-width: 200px;
    max-height: 150px;
    margin-top: 10px;
    border-radius: 8px;
    border: 2px solid var(--gray-200);
}

input[type="file"] {
    padding: 10px;
    border: 2px dashed var(--gray-300);
    border-radius: 8px;
    background: var(--gray-50);
    cursor: pointer;
    width: 100%;
}

input[type="file"]:hover {
    border-color: var(--primary);
    background: var(--gray-100);
}

/* ==================== FOOTER ==================== */
footer {
    text-align: center;
    margin-top: 20px;
}

footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
}

footer a:hover {
    color: var(--white);
}

/* ==================== TAB NAVIGATION ==================== */
.tab-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.tab-btn {
    padding: 14px 28px;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: rgba(255,255,255,0.3);
}

.tab-btn.active {
    background: var(--white);
    color: var(--primary);
}

/* ==================== VERKAUFT GALERIE ==================== */
.verkauft-stats {
    margin-bottom: 10px;
}

.stats-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.stats-row span {
    background: var(--gray-100);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
}

.stats-row .profit {
    background: #dcfce7;
    color: var(--success);
}

.stats-row .loss {
    background: #fee2e2;
    color: var(--danger);
}

.verkauft-card {
    position: relative;
}

.verkauft-card::after {
    content: "VERKAUFT";
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--danger);
    color: white;
    padding: 5px 40px;
    font-size: 0.75rem;
    font-weight: 700;
    transform: rotate(45deg);
}

.jahr-small {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: normal;
}

.verkauf-preise {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.verkauf-preise .kauf {
    color: var(--gray-500);
}

.verkauf-preise .verkauf {
    color: var(--success);
    font-weight: 600;
}

/* ==================== TOGGLE SWITCH ==================== */
.toggle-container {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.toggle-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: relative;
    display: inline-block;
    width: 50px;
    min-width: 50px;
    height: 26px;
    background: var(--gray-300);
    border-radius: 26px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.toggle-container input:checked + .toggle-slider {
    background: var(--primary);
}

.toggle-container input:checked + .toggle-slider::after {
    left: 27px;
}

.toggle-label {
    font-weight: 500;
}

/* ==================== STATUS BOX ==================== */
.status-box {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.95rem;
}

.status-box.status-public {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.status-box.status-protected {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

/* ==================== LOGIN OVERLAY ==================== */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #064e3b 0%, #10b981 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.login-box h2 {
    margin-bottom: 10px;
    color: var(--gray-800);
}

.login-box p {
    color: var(--gray-500);
    margin-bottom: 20px;
}

.login-box input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
    margin-bottom: 15px;
}

.login-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.login-box .error {
    color: var(--danger);
    margin-bottom: 10px;
    display: none;
}

/* ==================== ADMIN TABS ==================== */
.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.1);
    padding: 8px;
    border-radius: var(--radius);
    flex-wrap: wrap;
}

.admin-tab {
    padding: 12px 24px;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.admin-tab:hover {
    background: rgba(255,255,255,0.3);
}

.admin-tab.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow);
}

.admin-tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== MULTI-IMAGE UPLOAD ==================== */
.image-uploads-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.image-upload-box {
    background: var(--gray-50);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 15px;
    text-align: center;
}

.image-upload-box label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 10px;
}

.image-upload-box input[type="file"] {
    border: none;
    padding: 8px;
    font-size: 0.85rem;
}

.image-upload-box .image-preview {
    max-width: 100%;
    max-height: 120px;
    margin-top: 10px;
}

/* Multi-Image Badge */
.trikot-item {
    position: relative;
}

.multi-image-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: var(--primary);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    z-index: 1;
}

/* ==================== GALERIE MODAL ==================== */
.galerie-modal-dialog {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.galerie-modal-content h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--gray-800);
}

.galerie-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.galerie-item {
    text-align: center;
}

.galerie-item img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: var(--radius);
    border: 2px solid var(--gray-200);
    cursor: pointer;
    transition: transform 0.2s;
}

.galerie-item img:hover {
    transform: scale(1.03);
    border-color: var(--primary);
}

.galerie-item span {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
}

.galerie-modal-content .btn {
    display: block;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .image-uploads-grid {
        grid-template-columns: 1fr;
    }
    
    .galerie-images {
        grid-template-columns: 1fr;
    }
}

/* ==================== FRONTEND MULTI-IMAGE ==================== */
.galerie-card {
    position: relative;
}

.multi-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

/* Modal Thumbnails */
.modal-thumbnails {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.thumb-item {
    text-align: center;
    cursor: pointer;
    padding: 5px;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.thumb-item:hover {
    background: var(--gray-100);
}

.thumb-item.active {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.1);
}

.thumb-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.thumb-item span {
    display: block;
    font-size: 0.7rem;
    color: var(--gray-600);
    margin-top: 4px;
}

/* ==================== GEBOTE SYSTEM ==================== */
.gebote-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 10px;
}

.gebote-tab {
    background: var(--gray-100);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray-600);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gebote-tab:hover {
    background: var(--gray-200);
}

.gebote-tab.active {
    background: var(--primary);
    color: white;
}

.gebote-liste {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gebot-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    flex-wrap: wrap;
}

.gebot-trikot {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 250px;
}

.gebot-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.gebot-thumb.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
    font-size: 2rem;
}

.gebot-trikot-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
}

.gebot-trikot-info strong {
    font-size: 1rem;
    color: var(--gray-800);
}

.gebot-trikot-info span {
    color: var(--gray-600);
}

.gebot-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.gebot-preis {
    font-size: 1.1rem;
}

.gebot-preis strong {
    color: var(--primary);
    font-size: 1.3rem;
}

.gebot-person {
    background: white;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.gebot-datum {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.gebot-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    justify-content: center;
}

.gebot-actions .btn-success {
    background: var(--success);
    color: white;
}

.gebot-actions .btn-success:hover {
    background: #059669;
}

.gebot-actions .btn-danger {
    background: var(--danger);
    color: white;
}

.gebot-actions .btn-danger:hover {
    background: #dc2626;
}

.gebot-actions .btn-secondary {
    background: var(--gray-400);
    color: white;
}

.gebot-actions .btn-secondary:hover {
    background: var(--gray-500);
}

/* Wunschpreis */
.wunschpreis {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 8px 0;
}

/* Frontend Gebot Button */
.gebot-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    margin-top: 10px;
    transition: all 0.2s;
}

.gebot-btn:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* Gebot Modal */
.gebot-form-group {
    margin-bottom: 15px;
}

.gebot-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--gray-700);
}

.gebot-form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
}

.gebot-form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .gebot-item {
        flex-direction: column;
    }
    
    .gebot-actions {
        flex-direction: row;
        justify-content: flex-start;
        width: 100%;
    }
}

/* ==================== VERSAND SYSTEM ==================== */
.versand-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.versand-tab {
    background: var(--gray-100);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray-600);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.versand-tab:hover {
    background: var(--gray-200);
}

.versand-tab.active {
    background: var(--primary);
    color: white;
}

.versand-liste {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.versand-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    flex-wrap: wrap;
}

.versand-trikot {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 220px;
}

.versand-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.versand-thumb.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
    font-size: 2rem;
}

.versand-trikot-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
}

.versand-trikot-info strong {
    font-size: 1rem;
    color: var(--gray-800);
}

.versand-trikot-info span {
    color: var(--gray-600);
}

.versand-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.versand-preis {
    font-size: 1.1rem;
}

.versand-preis strong {
    color: var(--primary);
    font-size: 1.3rem;
}

.versand-kaeufer {
    background: white;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.versand-datum {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.versand-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    justify-content: center;
}

.versand-actions .btn-warning {
    background: #f59e0b;
    color: white;
}

.versand-actions .btn-warning:hover {
    background: #d97706;
}

@media (max-width: 768px) {
    .versand-item {
        flex-direction: column;
    }
    
    .versand-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        width: 100%;
    }
}

/* ==================== SUCHFUNKTION ==================== */
.search-container {
    margin-top: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-container input {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    outline: none;
    transition: all 0.2s;
}

.search-container input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* ==================== ZUSTANDSBADGES ==================== */
.zustand-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    z-index: 2;
}

.zustand-neu { background: #22c55e; }
.zustand-neuwertig { background: #10b981; }
.zustand-sehr-gut { background: #3b82f6; }
.zustand-gut { background: #6366f1; }
.zustand-akzeptabel { background: #f59e0b; }
.zustand-maengel { background: #ef4444; }

.galerie-card {
    position: relative;
}

/* ==================== VERSANDKOSTEN ==================== */
.versandkosten {
    color: var(--gray-500);
    font-size: 0.85rem;
}

/* ==================== GROESSE ==================== */
.groesse {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* ==================== KONTAKT/IMPRESSUM ==================== */
.kontakt-card {
    margin-top: 40px;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
}

.kontakt-card h2 {
    color: var(--gray-700);
    margin-bottom: 15px;
}

.kontakt-info {
    line-height: 1.8;
}

.kontakt-info a {
    color: var(--primary);
    text-decoration: none;
}

.kontakt-info a:hover {
    text-decoration: underline;
}

/* ==================== SUCHERGEBNISSE ==================== */
#searchResultsSection {
    margin-top: 20px;
}

@media (max-width: 768px) {
    .search-container {
        margin-top: 15px;
    }
    
    .search-container input {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
}

/* ==================== AKKORDEON ==================== */
.accordion {
    background: white;
    border-radius: var(--radius);
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    background: var(--gray-50);
    border-bottom: 2px solid transparent;
    font-weight: 600;
    font-size: 1rem;
    color: var(--gray-800);
    transition: all 0.2s;
}

.accordion-header:hover {
    background: var(--gray-100);
}

.accordion.active .accordion-header {
    background: var(--primary);
    color: white;
    border-bottom-color: var(--primary-dark);
}

.accordion-icon {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
    background: white;
}

.accordion.active .accordion-content {
    padding: 20px;
}

.accordion-content .form-group:first-child {
    margin-top: 0;
}

.accordion-content .subtitle {
    margin-bottom: 15px;
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* ==================== STATISTIK RESET ==================== */
.card-header-with-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header-with-action h2 {
    margin: 0;
}

.btn-mini {
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 6px;
}

.jahres-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jahres-header .btn-mini {
    margin-left: auto;
    margin-right: 10px;
}

.monats-tabelle th:last-child,
.monats-tabelle td:last-child {
    width: 50px;
    text-align: center;
}

/* ==================== VERSANDKOSTEN ERWEITERT ==================== */
.versand-laender {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.plz-zone-form {
    margin-top: 15px;
}

.plz-zone-form .form-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.plz-zone-form input[type="text"] {
    width: 100px;
}

.plz-zone-form input[type="number"] {
    width: 80px;
}

.plz-zonen-tabelle {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.plz-zone-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--gray-50);
    border-radius: 6px;
}

.text-muted {
    color: var(--gray-400);
    font-style: italic;
}

/* Versand-Auswahl im Frontend */
.versand-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.versand-selector label {
    color: white;
    font-weight: 500;
}

.versand-selector select {
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
}

.versand-selector input[type="text"] {
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    width: 80px;
}

.versand-preis {
    background: white;
    color: #667eea;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
}

/* ==================== VEREIN LOGOS ==================== */
.verein-logo-btn-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 4px;
    border-radius: 3px;
}
