﻿/* === 1. VARIABLES & BASE === */
:root {
    --bg-color: #3e4b5b;
    --beige-panel: #dcd0c0;
    --accent-orange: #e67e22;
    --sidebar-bg: #2c3e50;
    --panel-dark: #2c3e50;
    --sidebar-search-bg: #1a252f;
    --sidebar-search-border: #34495e;
    --border-thick: 2px solid #000;
    --btn-gray: #bdc3c7;
}

html { scrollbar-gutter: stable; }

body {
    background-color: var(--bg-color);
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    color: #333;
}

/* === 2. LAYOUT & CONTAINERS === */
.container {
    display: grid;
    grid-template-columns: 300px 1fr;
    grid-template-rows: auto 1fr auto;
    max-width: 1440px;
    margin: 20px auto;
    background: var(--beige-panel);
    box-shadow: 10px 10px 0 rgba(0,0,0,0.2);
    border-radius: 12px;
    overflow: hidden;
}

.container.admin-container {
    display: block;
    grid-template-columns: 300px 1fr;
    grid-template-rows: auto 1fr auto;
    max-width: 1200px;
    margin: 20px auto;
    background: var(--beige-panel);
    box-shadow: 10px 10px 0 rgba(0,0,0,0.2);
    border-radius: 12px;
    overflow: hidden;
}

main {
    grid-column: 2;
    grid-row: 2;
    padding: 40px;
}

aside {
    grid-column: 1;
    grid-row: 2;
    background: var(--sidebar-bg);
    color: #fff;
    padding: 20px;
    border-right: 1px solid rgba(0,0,0,0.2);
	box-shadow: 0 0 8px rgba(230, 126, 34, 0.6);
    box-sizing: border-box;
}

aside h3 {
    font-size: 1.1rem;
    border-bottom: 2px solid var(--accent-orange);
    padding-bottom: 10px;
    margin-top: 0;
}

.main-header {
	background-color: #222;
    background-image: linear-gradient(rgba(34, 34, 34, 0.4), rgba(34, 34, 34, 0.4)), url('images/pet.avif');
    background-size: auto 100%;
    background-position: right 0 center;
    background-repeat: no-repeat;
    padding: 1.0rem 3%;
    border-bottom: 3px solid var(--accent-orange);
    grid-column: 1 / span 2;
    grid-row: 1;
    border-radius: 12px 12px 0 0;
}

.logo {
	font-family: 'Silkscreen', 'Segoe UI', Arial, sans-serif;
	font-display: swap;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-orange);
    letter-spacing: 2px;
    margin-bottom: 5px;
	margin-left: -3px;
    text-transform: uppercase;
}

.logo a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.1s ease-in-out, text-shadow 0.3s ease-in-out;
}

.logo a:hover,
.logo a:focus { 
	text-shadow: 
        0 0 1px var(--accent-orange), 
        0 0 4px var(--accent-orange); 
    outline: none;
}

.logo a:active {
	text-shadow: 
        0 0 2px var(--accent-orange), 
        0 0 6px var(--accent-orange);
}

.sub-logo {
    margin: 0;
    font-size: 0.85rem;
    font-style: italic;
    color: #bdc3c7;
	letter-spacing: 0.5px;
}

.footer-retro-graphic {
    grid-column: 1 / span 2;
    grid-row: 3;
    height: 40px;
    background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.1) 3px, rgba(0,0,0,0.1) 6px), #dcd0c0;
    border-top: 3px solid #2c3e50;
}

.copyright {
    text-align: center;
    padding: 10px;
    font-size: 0.8rem;
    color: #bbb;
}

/* === 3. NAVIGATION === */
.nav-wrapper {
    max-width: 1200px;
    margin: 30px auto 0 auto;
    padding: 0 40px;
    box-sizing: content-box;
}

.inner-nav {
    display: flex;
	align-items: center;
    gap: 30px;
    padding: 10px 0 18px 0;
    margin-bottom: 30px;
    border-bottom: 3px solid #2c3e50;
}

.inner-nav .nav-link {
    display: inline-flex;
    align-items: center;
    color: #555;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 2px;
    transition: color 0.15s ease-in-out;
    position: relative;
}

.inner-nav .nav-link:hover,
.inner-nav .nav-link.active {
    color: var(--accent-orange);
}

.inner-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -21px;
    left: 0;
    width: 110%;
    height: 3px;
    background: var(--accent-orange);
	box-shadow: 0 0 8px rgba(230, 126, 34, 0.6);
}

.inner-nav .nav-link::before {
    margin-right: 8px;
    font-size: 1.05rem;
    line-height: 1;
    display: inline-block;
}

.inner-nav .nav-link[data-url*="index.php"]::before, .inner-nav .nav-link[data-url=""]:before, .inner-nav .nav-link[data-url="/"]::before { content: "🏠"; }
.inner-nav .nav-link[data-url*="neuheiten"]::before { content: "✨"; }
.inner-nav .nav-link[data-url*="modding"]::before { content: "🛠️"; }
.inner-nav .nav-link[data-url*="wikipedia"]::before { content: "📖"; }
.inner-nav .nav-link[data-url*="links"]::before { content: "🌐"; }

.category-nav {
    display: flex;
    margin-bottom: -2px;
    position: relative;
    z-index: 2;
}

.nav-wrapper .category-nav {
    margin-left: -42px;
    z-index: 10;
    width: calc(100% + 40px);
}

.category-nav + .item-list {
    border-top-left-radius: 0;
}

/* === 4. BUTTONS & CURSORS === */
button,
.btn-retro,
.sub-accordion-header,
.card-header,
.sub-item-row,
.td-delete-btn,
.btn-action-delete,
.file-input-label,
.status-badge-btn,
.retro-checkbox,
.product-card.collapsible,
.brand-list-preview,
.product-image img,
.zub-bild-container img,
.file-list-preview {
    cursor: pointer;
}

.container.admin-container .product-card.collapsible,
.container.admin-container .card-header,
.container.admin-container .product-card.open .card-header,
.container.admin-container .product-card.open .card-body,
.dark-title-bar,
.neuheiten-header,
.compare-img-container img {
    cursor: default;
}

.btn-retro {
    background: #f8f9fa;
    border: 1px solid #c0c0c0;
    border-radius: 6px;
    padding: 8px 18px;
    text-decoration: none;
    color: #333;
    font: 500 0.9rem 'Segoe UI', Arial, sans-serif;
    text-transform: uppercase;
    transition: background 0.2s ease, border-color 0.2s ease;
    display: inline-block;
}

.btn-retro:hover {
    background: #e9ecef;
}

.btn-retro.active {
    background: var(--accent-orange);
    border-color: #d35400;
    color: #fff;
}

.btn-retro.active:hover {
    background: #d35400;
}

.category-nav .btn-retro {
    background: #c8bca9;
    border: var(--border-thick);
    border-bottom: none;
    border-radius: 0;
    padding: 12px 25px;
    color: #555;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.15s ease-in-out;
    margin-right: -2px;
}

.category-nav .btn-retro:first-child {
    border-top-left-radius: 12px;
}

.category-nav .btn-retro:last-child {
    border-top-right-radius: 12px;
}

.category-nav .btn-retro:hover {
    border-color: #000;
    color: #000;
}

.category-nav .btn-retro.active {
    background: #e6dcce;
    color: var(--accent-orange);
    position: relative;
    z-index: 3;
}

.admin-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-btn:active {
    transform: translateY(1px);
}

.admin-btn:focus-visible {
    outline: 2px solid #333;
    outline-offset: 2px;
}

.admin-btn-secondary {
    background: #f1f3f5;
    border: 1px solid #ced4da;
    color: #333;
}

.admin-btn-secondary:hover {
    background: #e2e6ea;
    border-color: #adb5bd;
    color: #212529;
}

.admin-btn-secondary.active {
    background: #ced4da;
    border-color: #adb5bd;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-btn-primary {
    background: var(--accent-orange);
    border: 1px solid #d35400;
    color: #fff;
}

.admin-btn-primary:hover {
    background: #d35400;
    border-color: #ba4a00;
}

.admin-btn-danger {
    background: #d63031;
    border: 1px solid #b32424;
    color: #fff;
}

.admin-btn-danger:hover {
    background: #b32424;
    border-color: #901d1d;
}

.admin-btn-icon {
    background: transparent;
    border: none;
    display: inline-flex;
    align-items: center;
	justify-content: center;
    transform-origin: center center;
    color: #555;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    transition: color 0.15s ease-in-out;
    position: relative;
	transition: color 0.15s ease-in-out, transform 0.4s ease;
	transform: scale(1.4);
}

.admin-btn-icon:hover {
	color: var(--accent-orange);
    transform: scale(1.4) rotate(45deg);
}

.td-delete-btn,
.btn-action-delete {
    background: transparent;
    border: none;
    color: #ff4d4d;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
    padding: 0;
    display: inline-block;
    vertical-align: middle;
    transition: color 0.1s;
}

.btn-action-delete {
    margin: 0;
    color: #e74c3c;
}

.td-delete-btn:hover,
.btn-action-delete:hover {
    color: #f00;
}

.btn-action-edit {
    text-decoration: none;
    color: #333;
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1;
}

.disabled-btn {
    opacity: 0.2;
    cursor: not-allowed;
}

/* === 5. COMPONENTS (CARDS, LISTS, BADGES) === */
.item-list {
    display: flex;
    flex-direction: column;
    background: #e6dcce;
    border: var(--border-thick);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.container.admin-container .item-list {
    background: #fff;
    padding: 18px 25px;
    margin-bottom: 25px;
}

.brand-list,
.sub-item-list,
.links-category-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.brand-list {
    margin-bottom: 30px;
}

.brand-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    color: inherit;
    transition: padding-left 0.2s ease, background-color 0.2s ease;
}

.brand-list li a:hover,
.brand-list li a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    padding-left: 20px;
}

.brand-list li a.active {
    font-weight: bold;
    border-left: 4px solid var(--accent-orange);
    border-radius: 0 6px 6px 0;
}

.brand-count {
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
}

.brand-list li a.active .brand-count {
    background: var(--accent-orange);
}

.product-card.collapsible {
    display: flex;
    flex-direction: column;
    background: #f1e8dc;
    border-bottom: 1px solid #d4c5b3;
}

.product-card.collapsible:last-child {
    border-bottom: none;
}

.container.admin-container .product-card.collapsible {
    padding: 0;
    margin-bottom: 0;
    background: #fff;
    border-bottom: none;
}

.card-header {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #e6dcce;
    border-bottom: 1px solid #d4c5b3;
    user-select: none;
    transition: background-color 0.15s ease;
}

.container.admin-container .card-header {
    background: #fff;
    cursor: pointer;
}

.card-header:hover {
    background: #fdfbf7;
}

.container.admin-container .card-header:hover {
    background: #f8f9fa;
}

.card-header > div:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.card-header h2 {
    margin: 0;
    font-size: 1.15rem;
    color: #2c3e50;
    font-weight: 600;
}

.toggle-icon,
.sub-toggle-icon {
    color: #95a5a6;
    transition: transform 0.2s ease, color 0.15s ease;
}

.toggle-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-left: 15px;
    display: block;
}

.container.admin-container .toggle-icon {
    font-size: 0.85rem;
}

.sub-toggle-icon {
    font-size: 0.75rem;
}

.product-card.open .toggle-icon,
.sub-accordion-item.open .sub-toggle-icon {
    transform: rotate(90deg);
    color: var(--accent-orange);
}

.card-body {
    display: none;
    align-items: stretch;
}

.product-card.open .card-body {
    display: flex;
    border-top: 1px solid #eee;
    padding: 10px 0 20px 0;
}

.container.admin-container .product-card.open .card-body {
    flex-direction: column;
    padding: 0 20px 20px 20px;
    border-top: none;
}

.product-image,
.brand-preview-box,
.neuheit-foto-box,
.compare-img-container,
.wiki-brand-card a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 260px;
	padding: 100px 20px 20px 20px;
    border-right: 1px solid #eee;
    flex-shrink: 0;
	align-items: flex-start;
}

.product-image img,
.preview-image-container img,
.zub-bild-container img,
.brand-list-preview {
    mix-blend-mode: multiply;
}

.product-image img {
    max-width: 100%;
    max-height: 250px;
    height: auto;
    filter: contrast(110%) drop-shadow(2px 3px 4px rgba(0, 0, 0, 0.4));
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.product-image img:hover,
.link-banner-img:hover,
.modding-thumb:hover,
.neuheit-foto-box img:hover {
    transform: scale(1.06);
}

.product-details {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hardware-badge {
    display: inline-block;
    align-self: flex-start;
    color: #2c3e50;
    padding: 4px 0;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.spec-grid {
    display: flex;
    flex-direction: column;
    padding: 5px 0 10px 0;
    margin: 5px 0 20px 0;
    font: 0.9rem 'Consolas', 'Courier New', monospace;
    max-width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.spec-grid div {
    display: grid;
    grid-template-columns: 180px auto;
    align-items: center;
    padding: 8px 12px;
    color: #333;
    white-space: normal;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.spec-grid div:last-child {
    border-bottom: none;
}

.spec-grid div:nth-child(even) {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
}

.spec-grid div strong {
    color: #555;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.spec-grid div span {
    text-align: left;
    color: #000;
    font-weight: bold;
}

.spec-grid .status-indicator-col {
    justify-self: start;
}

.description {
    line-height: 1.6;
    font-size: 0.95rem;
    margin-top: 0;
    color: #444;
	text-align: justify;
    hyphens: auto;
}

.description ul {
    list-style-type: disc;
    padding-left: 50px;
    margin: 10px 0 25px 0;
}

.description ul ul {
    list-style-type: circle;
    padding-left: 20px;
    margin: 0;
}

.hardware-relations-accordion {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #d4c5b3;
}

.hardware-relations-accordion h4 {
    margin: 0 0 15px 0;
    font-size: 1.0rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sub-accordion-item {
    border-bottom: 0px solid rgba(0, 0, 0, 0.05);
}

.sub-accordion-header {
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sidebar-bg);
    user-select: none;
    transition: color 0.15s ease;
}

.sub-accordion-header:hover,
.sub-item-row:hover,
#scroll-to-top:hover {
    color: var(--accent-orange);
}

.sub-accordion-body {
    display: none;
    padding: 5px 0 10px 0;
}

.sub-accordion-item.open .sub-accordion-body {
    display: block;
}

.sub-item-row {
    padding: 5px 0 6px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #555;
}

.sub-item-title {
    font-weight: 500;
}

.sub-item-row .status {
    margin-left: 10px;
	margin-right: 10px;
}

.sub-count {
    font-weight: normal; 
    color: #7f8c8d; 
    font-size: 0.8rem; 
}

.list-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.list-item-row:last-child {
    border-bottom: none;
}

.status {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    vertical-align: middle;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.status-1,
.status-badge-btn.green {
    background-color: #2ecc71;
}

.status-2,
.status-badge-btn.yellow {
    background-color: #f1c40f;
}

.status-3,
.status-badge-btn.red {
    background-color: #e74c3c;
}

.no-data { text-align: center; padding: 50px; color: #7f8c8d; font-style: italic; }

.dark-title-bar,
.neuheiten-header {
    background: #222;
    padding: 12px 20px;
}

.dark-title-bar h2,
.neuheiten-header h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === 6. ADMIN & FORMS === */
.form-grid {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    gap: 6px 12px;
    align-items: center;
}

.form-grid h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: var(--border-thick);
}

.form-section-divider {
    grid-column: span 3;
    margin-top: 15px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #d4c5b3;
    color: var(--panel-dark);
    font-weight: bold;
    font-size: 1.17em;
    text-transform: uppercase;
}

.form-grid input[type="text"],
.form-grid input[type="number"],
.form-grid select,
.form-grid textarea,
.admin-zub-table input[type="text"],
.admin-zub-table select {
    width: 100%;
    box-sizing: border-box;
    padding: 2px 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    color: #333;
}

.form-grid input[type="text"],
.form-grid input[type="number"],
.form-grid select,
.admin-zub-table input[type="text"],
.admin-zub-table select {
    height: 28px;
}

.form-grid select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 5px center;
}

.form-grid textarea {
    height: 208px;
    resize: none;
}

.upload-zone {
    grid-column: span 2;
    border: 1px dashed #ccc;
    border-radius: 6px;
    padding: 10px;
    background: #f7f7f7;
    display: flex;
    gap: 15px;
    align-items: center;
    box-sizing: border-box;
}

.upload-inputs {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upload-path-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-path-row label {
    font-size: 0.8rem;
    color: #555;
    white-space: nowrap;
}

.file-input-label {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0f0;
    border: 1px solid #767676;
    border-radius: 3px;
    font-size: 0.8rem;
    font-family: sans-serif;
    white-space: nowrap;
    user-select: none;
    align-self: flex-end;
}

.preview-image-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-image-container img {
    max-width: 100px;
    max-height: 100px;
    border: none;
    background: transparent;
}

.admin-zub-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin-top: 15px;
}

.admin-zub-table th {
    text-align: left;
    color: #555;
    font: bold 0.9rem 'Segoe UI', Arial, sans-serif;
    padding: 0 0 8px 0;
}

.admin-zub-table td {
    vertical-align: middle;
    padding: 2px 6px 6px 0;
}

.admin-zub-table td:last-child {
    padding-right: 0;
    text-align: right;
}

.status-badge-picker {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.status-badge-btn {
    width: 22px;
    height: 22px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    transition: 0.1s;
    padding: 0;
}

.status-badge-btn:not(.active) {
    opacity: 0.4;
    transform: scale(0.85);
}

.status-badge-btn.active {
    opacity: 1;
    transform: scale(1.1);
}

.zub-bild-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.zub-bild-container img {
    height: 24px;
    width: auto;
    max-width: 50px;
    object-fit: contain;
    display: block;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

#category-search,
#admin-search {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

#category-search {
    background: var(--sidebar-search-bg);
    border: 1px solid var(--sidebar-search-border);
    color: #fff;
    font-size: 0.9rem;
}

#category-search:focus,
#admin-search:focus {
    outline: none;
    border-color: var(--accent-orange);
}

.category-search-box {
    margin-top: 20px;
}

.admin-search-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

#admin-search {
    padding: 6px 12px;
    border: 1px solid #000;
    font-family: inherit;
    font-size: 0.85rem;
    max-width: 250px;
    background-color: #fff;
    color: #333;
}

.switch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #fdfaf6;
    border: 1px solid #d4c5b3;
    border-radius: 6px;
    margin-bottom: 15px;
}

.switch-label {
    font-weight: bold;
    color: var(--panel-dark, #2c3e50);
}

.switch-description {
    font-size: 0.85rem;
    color: #666;
    font-weight: normal;
    margin-top: 4px;
}

.retro-checkbox {
    width: 20px;
    height: 20px;
}

/* === 7. MODALS, OVERLAYS & UTILITIES === */
.image-modal {
    border: none;
    outline: none;
    padding: 0;
    margin: auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 0 0 2px #000, 15px 15px 0 rgba(0, 0, 0, 0.28);
}

.image-modal::backdrop {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(3px);
}

.modal-title {
    background: var(--sidebar-bg);
    color: #fff;
    padding: 12px 20px;
    font: bold 1.1rem 'Segoe UI', Arial, sans-serif;
    border-bottom: 2px solid #000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.image-modal img,
.image-modal #lightbox-img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 70vh;
    display: block;
}

.image-modal img {
    object-fit: contain;
    width: 100%;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px 20px 25px 20px;
    box-sizing: border-box;
    cursor: zoom-out;
}

.admin-modal {
    min-width: 320px;
    background: #e6dcce;
}

#scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: var(--beige-panel);
    border: 1px solid #c0c0c0;
    border-radius: 8px;
    color: #333;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.2);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background-color 0.2s;
    will-change: opacity, visibility;
}

#scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.error-banner,
.success-banner {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
}

.error-banner {
    background: #fdf2f2;
    border: 2px solid #ec5b5b;
    color: #b82323;
    font-family: sans-serif;
}

.success-banner {
    background: #e8f8f0;
    border: 2px solid #2ecc71;
    color: #27ae60;
}

.admin-text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #2c3e50;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 5px 0;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s, padding-left 0.2s;
}

.admin-text-link:hover {
    background-color: rgba(0, 0, 0, 0.04);
    color: var(--accent-orange);
    padding-left: 5px;
}

.admin-text-link.status-red {
    color: #e74c3c;
}

.admin-text-link.status-green {
    color: #2ecc71;
}

.admin-text-link.status-red:hover,
.admin-text-link.status-green:hover {
    color: var(--accent-orange);
}

.admin-menu-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
    padding: 0 10px;
}

.section-title-underlined {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: var(--border-thick);
}

.section-title-flat {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #d4c5b3;
    color: var(--panel-dark);
}

.config-actions-divider {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #d4c5b3;
}

.pad-filter-box {
    padding: 15px 20px;
    margin-bottom: 20px;
}

.layout-filter-grid {
    grid-template-columns: auto 1fr;
    gap: 15px;
    align-items: center;
}

.filter-actions-group {
    display: flex;
	align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.filter-actions-group .filter-right-buttons {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

.filter-search-input {
    flex: 1;
    max-width: 300px;
    height: 32px;
}

.w-thirtyfive { width: 35%; }
.w-fortyfive { width: 45%; }
.w-fifteen { width: 15%; }
.w-five { width: 5%; }
.w-55 { width: 55px; }
.w-220 { width: 220px; }
.w-80 { width: 80px; }
.w-70 { width: 70px; }
.w-30 { width: 30px; }

.text-right { text-align: right; }
.text-uppercase { text-transform: uppercase; }

.monospace-path {
    font-family: monospace;
    font-size: 0.85rem;
    color: #666;
}

.brand-list-preview {
    max-height: 28px;
    max-width: 70px;
    object-fit: contain;
    display: block;
}

.color-placeholder { color: #ccc; }
.color-success { color: #2ecc71; }
.color-success-bold { color: #2ecc71; font-weight: bold; font-size: 0.85rem; }
.color-warning { color: var(--accent-orange); }
.color-warning-bold { color: var(--accent-orange); font-weight: bold; font-size: 0.85rem; }

.layout-fixed {
    table-layout: fixed;
    width: 100%;
}

.pad-zero,
.img-delete-override,
.wiki-portrait {
    padding: 0;
}

.img-delete-override {
    background: transparent;
    border: none;
    margin: 0;
}

.pad-twenty { padding: 20px; }
.pad-vertical-fifteen { padding: 15px 0; }
.size-auto-override { width: auto; height: auto; }
.file-list-preview { max-height: 30px; max-width: 50px; object-fit: contain; }

.file-path-cell {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: monospace;
    font-size: 0.85rem;
    padding-right: 15px;
}

.file-size-cell {
    white-space: nowrap;
    font-size: 0.85rem;
    color: #666;
}

.no-wrap-elements { white-space: nowrap; }
.no-decoration { text-decoration: none; }

.dynamic-zub-preview {
    max-height: 26px;
    max-width: 50px;
    object-fit: contain;
    vertical-align: middle;
}

.spacer-top { margin-top: 10px; }
.hide-element { display: none; }

.nested-row-styles {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: none;
}

.flex-gap-fourteen {
    display: flex;
    gap: 14px;
    align-items: center;
}

.upload-info-text {
    font-size: 0.8rem;
    color: #666;
    margin-top: 8px;
    line-height: 1.2;
}

.grid-span-2 { grid-column: span 2; }

.brand-preview-box {
    grid-row: span 2;
    width: 140px;
    height: 100%;
    background: transparent;
    overflow: hidden;
}

.brand-preview-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: none;
    border-radius: 4px;
}

.th-bezeichnung { width: 56%; }
.th-gewicht { width: 8%; }
.th-typ { width: 14%; }
.th-status { width: 5%; }
.th-bild { width: 13%; }
.th-delete { width: 4%; text-align: right; }

.neuheiten-content {
    padding: 20px;
}

.neuheiten-brand-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: bold;
    color: #b85a00;
    text-transform: uppercase;
    font-size: 1.15rem;
    border-bottom: 2px solid #bdae99;
    padding-bottom: 4px;
}

.neuheiten-card {
    background: #e6dcce;
    border: 2px solid #bdae99;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
}

.neuheiten-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 15px;
}

.neuheiten-flex h4 {
    color: #111;
    font-weight: bold;
    margin: 0;
    font-size: 1.1rem;
    flex: 1;
}

.neuheiten-flex h4 a {
    transition: color 0.15s ease-in-out;
}

.neuheiten-flex h4 a:hover {
    color: var(--accent-orange);
}

.btn-retro.neuheiten-btn {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    padding: 6px 0;
    background: transparent;
    border: none;
    color: var(--accent-orange);
    transition: color 0.15s ease-in-out;
}

.btn-retro.neuheiten-btn:hover {
    background: transparent;
    border-color: transparent;
    color: #2c3e50;
    text-decoration: underline;
}

.btn-retro.neuheiten-btn:active {
    transform: none;
}

a.links {
    text-decoration: none;
    color: #245e83;
}

a.links:hover {
    text-decoration: none;
    color: #eee;
}

.neuheiten-desc-block {
    color: #2b2b2b;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #bdae99;
    line-height: 1.5;
}

.neuheiten-desc-block strong {
    color: #555;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.wiki-title {
    color: var(--sidebar-bg);
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--accent-orange);
    padding-bottom: 8px;
}

.wiki-sub-title {
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 700;
}

.wiki-list-title {
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 700;
}

.wiki-list-title span {
    text-decoration: underline;
    text-underline-offset: 6px;
    font-style: italic;
}

.wiki-portrait {
    float: right;
    margin: 5px 0 20px 25px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.wiki-brand-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 65px;
    text-align: center;
    background: rgba(0, 0, 0, 0.03);
    padding: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    transition: transform 0.15s ease-in-out, background 0.15s ease-in-out;
    box-sizing: border-box;
}

.wiki-brand-card a {
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.wiki-brand-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0px 2px 3px rgba(0, 0, 0, 0.25)) drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.15));
}

.flagge {
    display: inline-block;
    width: 20px;
    height: 14px;
    vertical-align: middle;
    margin-right: 10px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

.flagge.de {
    background-image: url('./images/de.svg');
}

.flagge.gb {
    background-image: url('./images/gb.svg');
}

.links-grid-container {
    column-count: 2;
    column-gap: 40px;
    column-width: 280px;
}

.links-category-block {
    display: inline-block;
    width: 100%;
    break-inside: avoid;
    margin-top: 0;
    margin-bottom: 20px;
}

.links-category-block ul {
    line-height: 1.6;
}

.links-separator {
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: 20px 0 15px 0;
}

.link-banner-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px 20px;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    margin-top: 25px;
}

.link-banner-img,
.modding-thumb {
    transition: transform 0.15s ease-in-out;
    filter: drop-shadow(2px 3px 2px rgba(0, 0, 0, 0.6));
}

.link-banner-img {
    max-height: 45px;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

.modding-grid-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 25px 18px;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
}

.modding-project-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: 116px;
    text-align: center;
}

.modding-project-card span {
    margin-top: 8px;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.2;
    color: #2c3e50;
    word-wrap: break-word;
    display: block;
}

.modding-thumb {
    width: 110px;
    height: auto;
    display: block;
    border: none;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.gallery-trigger {
    display: block;
    background: transparent;
    text-decoration: none;
    border: none;
    mix-blend-mode: multiply;
    cursor: pointer;
    transition: transform 0.15s ease-in-out;
}

.gallery-trigger:hover {
    transform: scale(1.06);
}

.video-trigger {
    display: block;
    background: transparent;
    text-decoration: none;
    border: none;
    mix-blend-mode: multiply;
    cursor: pointer;
    transition: transform 0.15s ease-in-out;
}

.video-trigger:hover {
    transform: scale(1.06);
}

.retro-gallery-img {
    width: 110px;
    height: 76px;
    object-fit: contain;
    display: block;
    border: none;
    background: transparent;
    padding: 0;
    mix-blend-mode: normal;
}

.sidebar-box {
    margin-bottom: 20px;
}

.neuheiten-bilder-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.neuheit-foto-box {
    width: 140px;
    height: 100px;
    background-color: #2c3e50;
	margin: 20px auto 10px auto;
    border-radius: 4px;
}

.neuheit-foto-box a {
    display: contents;
}

.neuheit-foto-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.15s ease-in-out;
    filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.5));
}

#compare-modal.image-modal {
    width: 90%;
    max-width: 1300px;
    padding: 0;
    overflow-x: auto;
    max-height: 85vh;
    background: #fdfbf7;
}

#compare-modal .modal-title {
    padding: 12px 20px;
}

#compare-modal {
    position: relative;
    padding-top: 40px;
}

.compare-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font: bold 28px sans-serif;
    color: #7f8c8d;
}

.compare-close-btn:hover {
    color: #c0392b;
    transform: scale(1.1);
}

#compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    color: #333;
    font-size: 0.95rem;
    text-align: left;
    min-width: 700px;
}

#compare-table-header {
    background: #f4f1ea;
}

.compare-corner-cell {
    padding: 16px;
    border-bottom: 2px solid #e2dbcd;
    border-right: 2px solid #e2dbcd;
    width: 110px;
    background: #ebdcb9;
}

.compare-art-head {
    padding: 20px 16px;
    border-bottom: 2px solid #e2dbcd;
    text-align: center;
    vertical-align: top;
    background: #fcfbfa;
}

.compare-img-container {
    height: 150px;
    margin-bottom: 12px;
    background: transparent;
}

.compare-img-container img {
    max-height: 150px;
    max-width: 100%;
    object-fit: contain;
    background: transparent;
    border: none;
    box-shadow: none;
}

.compare-art-name {
    font-weight: bold;
    font-size: 1.05rem;
    color: #2c3e50;
    line-height: 1.3;
}

.compare-label {
    padding: 14px 12px;
    border-bottom: 1px solid #eee;
    border-right: 2px solid #e2dbcd;
    font-weight: bold;
    background: #f7f4ed;
    color: #4a5568;
    font-size: 0.85rem;
    text-align: right;
    word-break: break-word;
    max-width: 110px;
}

.compare-value {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    color: #2d3748;
}

#compare-table tbody tr:nth-child(even) .compare-value {
    background: #fff;
}

#compare-table tbody tr:nth-child(odd) .compare-value {
    background: #fcfbfa;
}

@media (max-width: 1024px) {
    .category-nav .btn-retro {
        font-size: 0.75rem;
        padding: 8px 4px;
    }
}