/* ============================================================
   PIT BULL GERMANY ARCHIV — Stylesheet
   Look & Feel: deutsche Streetwear-Seiten, grob 2006
   Tabellenlayout-Optik, Chrome-Bevel-Schriften, schwarz/rot/silber
   ============================================================ */

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background-color: #0b0b0b;
  background: linear-gradient(rgba(11,11,11,0.75), rgba(11,11,11,0.75)),
    url("assets/bg_20130329114932.jpg") center/cover fixed no-repeat;
  color: #d8d8d8;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 12px;
}

a {
  color: #ff2b2b;
  text-decoration: none;
}
a:hover {
  color: #ffcc00;
  text-decoration: underline;
}

/* ---------- Gesamtrahmen: simuliert altes Table-Layout, 780px fix ---------- */
#page {
  width: 780px;
  margin: 0 auto;
  background: #151515;
  border-left: 2px solid #3a3a3a;
  border-right: 2px solid #3a3a3a;
  box-shadow: 0 0 25px rgba(0,0,0,0.8);
}

/* ---------- Kopfbereich / Banner ---------- */
#banner {
  background: linear-gradient(180deg, #1a1a1a 0%, #050505 100%);
  border-bottom: 3px solid #8b0000;
  padding: 0;
  position: relative;
  overflow: hidden;
}
#banner .banner-inner {
  padding: 14px 18px 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#logo-img {
  max-height: 64px;
  max-width: 280px;
  display: block;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.8));
}
#logo-text {
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: #e6e6e6;
  text-shadow:
    0 1px 0 #fff,
    0 2px 0 #ccc,
    0 3px 0 #999,
    0 4px 3px rgba(0,0,0,0.9);
  margin: 0;
  line-height: 1;
}
#logo-text span {
  color: #c40000;
  text-shadow:
    0 1px 0 #ff8080,
    0 2px 0 #a00000,
    0 3px 0 #600000,
    0 4px 3px rgba(0,0,0,0.9);
}
#logo-sub {
  font-size: 10px;
  letter-spacing: 3px;
  color: #999;
  text-transform: uppercase;
  margin-top: 2px;
}
#hitcounter {
  text-align: right;
  font-family: "Courier New", monospace;
  font-size: 10px;
  color: #999;
}
#hitcounter .digits {
  background: #000;
  border: 1px solid #444;
  color: #00ff2f;
  padding: 3px 6px;
  font-weight: bold;
  letter-spacing: 2px;
  display: inline-block;
  margin-top: 3px;
}

/* Marquee-Ticker */
.marquee-bar {
  background: #8b0000;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 0;
  white-space: nowrap;
  overflow: hidden;
  border-top: 1px solid #500000;
  border-bottom: 1px solid #500000;
}
.marquee-bar marquee, .marquee-bar .fallback {
  padding-left: 100%;
}

/* ---------- Navigation ---------- */
#nav {
  background: #1c1c1c;
  border-bottom: 2px solid #333;
  padding: 6px 10px;
  overflow-x: auto;
}
#nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2px;
  flex-wrap: nowrap;
  width: max-content;
}
#nav li {
  flex-shrink: 0;
}
#nav li a {
  display: block;
  padding: 6px 9px;
  background: linear-gradient(180deg, #2b2b2b 0%, #141414 100%);
  border: 1px solid #3d3d3d;
  border-radius: 2px;
  color: #cfcfcf;
  font-weight: bold;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
#nav li a:hover {
  background: linear-gradient(180deg, #8b0000 0%, #4a0000 100%);
  color: #fff;
  text-decoration: none;
  border-color: #c40000;
}
#nav li a.active {
  background: linear-gradient(180deg, #c40000 0%, #6b0000 100%);
  color: #fff;
  border-color: #ff2b2b;
}

/* ---------- Layout: Sidebar + Content ---------- */
#body-table {
  display: flex;
  align-items: flex-start;
}
#sidebar {
  width: 220px;
  flex-shrink: 0;
  padding: 12px;
  background: #101010;
  border-right: 2px solid #2b2b2b;
}
#content {
  flex: 1;
  padding: 16px 18px;
  min-width: 0;
}

.box {
  border: 1px solid #3a3a3a;
  background: #1a1a1a;
  margin-bottom: 14px;
}
.logo-center-box {
  padding: 12px;
}
.logo-center-placeholder {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 18px;
  border: 1px dashed #444;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}
.logo-center-placeholder img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05);
}
.logo-center-text {
  font-size: 13px;
  color: #d8d8d8;
}
.box-title {
  background: linear-gradient(180deg, #3a3a3a 0%, #1c1c1c 100%);
  color: #fff;
  font-weight: bold;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 8px;
  border-bottom: 1px solid #000;
}
.box-body {
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.5;
}
.box-body ul {
  margin: 0;
  padding-left: 16px;
}
.box-body li { margin-bottom: 4px; }

.badge-new {
  background: #ffcc00;
  color: #000;
  font-size: 9px;
  font-weight: bold;
  padding: 1px 4px;
  margin-left: 4px;
  vertical-align: middle;
}

/* Content headings */
h1.page-title {
  font-family: "Arial Black", Arial, sans-serif;
  color: #fff;
  font-size: 22px;
  text-transform: uppercase;
  border-bottom: 2px solid #8b0000;
  padding-bottom: 6px;
  margin: 0 0 12px 0;
  text-shadow: 0 2px 2px rgba(0,0,0,0.8);
}
h2.section-title {
  font-size: 14px;
  color: #ff2b2b;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-left: 4px solid #8b0000;
  padding-left: 8px;
  margin: 18px 0 8px 0;
}

.content-box {
  border: 1px solid #333;
  background: #171717;
  padding: 12px 14px;
  margin-bottom: 14px;
  line-height: 1.6;
  font-size: 12px;
}

/* Under construction banner */
.construction {
  background: repeating-linear-gradient(45deg, #ffcc00, #ffcc00 10px, #111 10px, #111 20px);
  color: #000;
  text-align: center;
  font-weight: bold;
  font-size: 11px;
  padding: 4px 0;
  margin-bottom: 12px;
  border: 2px solid #000;
}
.construction span {
  background: #111;
  color: #ffcc00;
  padding: 1px 8px;
}

/* Gallery grid */
.gallery-grid {
  column-count: 2;
  column-gap: 10px;
}
@media (min-width: 620px) {
  .gallery-grid { column-count: 3; }
}
.gallery-item {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  border: 1px solid #3a3a3a;
  background: #1c1c1c;
  padding: 6px;
  text-align: center;
  cursor: zoom-in;
  margin-bottom: 10px;
}
.gallery-item img {
  width: 100%;
  height: auto;
  border: 1px solid #000;
  display: block;
  margin-bottom: 6px;
  cursor: zoom-in;
}
.gallery-item .cap {
  font-size: 10px;
  color: #aaa;
}
.gallery-item .cap b { color: #ddd; }

/* Lightbox fuer Vollbild-Vorschau */
#lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.92);
  padding: 24px;
  text-align: center;
  cursor: zoom-out;
}
#lightbox.open { display: flex; flex-direction: column; align-items: center; justify-content: center; }
#lightbox img {
  max-width: 92vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  border: 2px solid #8b0000;
  box-shadow: 0 0 30px rgba(0,0,0,0.9);
  cursor: default;
}
#lightbox .lightbox-cap {
  color: #ddd;
  font-size: 12px;
  margin-top: 12px;
}
#lightbox .lightbox-close {
  position: absolute;
  top: 16px;
  right: 24px;
  color: #fff;
  font-size: 26px;
  font-weight: bold;
  background: #8b0000;
  border: 1px solid #ff2b2b;
  width: 34px;
  height: 34px;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
}

/* Downloads table */
table.filelist {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
table.filelist th {
  background: #2b2b2b;
  color: #fff;
  text-align: left;
  padding: 6px 8px;
  border: 1px solid #000;
  text-transform: uppercase;
  font-size: 10px;
}
table.filelist td {
  padding: 6px 8px;
  border: 1px solid #2a2a2a;
  background: #1a1a1a;
}
table.filelist tr:nth-child(even) td {
  background: #1e1e1e;
}
.filetype {
  display: inline-block;
  background: #333;
  color: #ffcc00;
  font-size: 9px;
  font-weight: bold;
  padding: 1px 5px;
  border: 1px solid #555;
  margin-right: 4px;
}

/* Buttons */
.btn {
  display: inline-block;
  background: linear-gradient(180deg, #8b0000 0%, #4a0000 100%);
  color: #fff !important;
  border: 1px solid #ff2b2b;
  padding: 5px 12px;
  font-weight: bold;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn:hover {
  background: linear-gradient(180deg, #c40000 0%, #6b0000 100%);
  text-decoration: none;
}

/* Footer */
#footer {
  background: #0a0a0a;
  border-top: 3px solid #8b0000;
  padding: 12px 18px;
  font-size: 10px;
  color: #777;
  text-align: center;
}
#footer .webring {
  margin-top: 6px;
  color: #555;
}

/* Empty state */
.empty-state {
  border: 1px dashed #444;
  padding: 20px;
  text-align: center;
  color: #888;
  font-size: 11px;
}

/* Medienseite: Musik, Video, Flash */
.media-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.media-item {
  border: 1px solid #3a3a3a;
  background: #1a1a1a;
  padding: 10px 12px;
}
.media-item .media-title {
  color: #ff2b2b;
  font-weight: bold;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.media-item .media-meta {
  color: #888;
  font-size: 10px;
  margin-top: 6px;
}
.media-item audio, .media-item video {
  width: 100%;
  display: block;
  background: #000;
}
.media-item video {
  max-height: 360px;
}
.flash-frame-wrapper {
  border: 2px solid #8b0000;
  background: repeating-linear-gradient(45deg, #1a1a1a 0, #1a1a1a 10px, #111 10px, #111 20px);
  padding: 8px;
}
.flash-badge {
  display: inline-block;
  background: #ffcc00;
  color: #000;
  font-size: 9px;
  font-weight: bold;
  padding: 2px 6px;
  margin-bottom: 6px;
}
.media-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.media-tabs button {
  padding: 7px 14px;
  background: linear-gradient(180deg, #2b2b2b 0%, #141414 100%);
  border: 1px solid #3d3d3d;
  color: #cfcfcf;
  font-weight: bold;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  font-family: inherit;
}
.media-tabs button.active {
  background: linear-gradient(180deg, #c40000 0%, #6b0000 100%);
  color: #fff;
  border-color: #ff2b2b;
}
.media-section { display: none; }
.media-section.active { display: block; }

/* Kategorie-Filter innerhalb eines Medien-Tabs */
.kategorie-filter {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.kategorie-filter button {
  padding: 4px 10px;
  background: #1a1a1a;
  border: 1px solid #3a3a3a;
  color: #aaa;
  font-size: 9px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  font-family: inherit;
}
.kategorie-filter button.active {
  background: #8b0000;
  color: #fff;
  border-color: #ff2b2b;
}

/* Einreichen-Formular */
.submit-form .form-row {
  display: grid;
  gap: 16px;
  margin-bottom: 12px;
}
.submit-form .form-row:not(.full) {
  grid-template-columns: 1fr 1fr;
}
.submit-form label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
  margin-bottom: 4px;
}
.submit-form input[type="text"],
.submit-form select,
.submit-form textarea {
  width: 100%;
  background: #0e0e0e;
  border: 1px solid #3a3a3a;
  color: #d8d8d8;
  padding: 6px 8px;
  font-family: inherit;
  font-size: 12px;
}
.submit-form textarea {
  min-height: 70px;
  resize: vertical;
}
.submit-form button[type="submit"] {
  cursor: pointer;
  border: none;
  font-family: inherit;
}
@media (max-width: 480px) {
  .submit-form .form-row:not(.full) { grid-template-columns: 1fr; }
}

/* Admin: Bilder-Kategorien pflegen */
.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.admin-item {
  border: 1px solid #3a3a3a;
  background: #1a1a1a;
  padding: 6px;
}
.admin-item.geaendert {
  border-color: #2ecc40;
  box-shadow: 0 0 0 1px #2ecc40;
}
.admin-item img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border: 1px solid #000;
  display: block;
  margin-bottom: 6px;
}
.admin-item-titel {
  font-size: 10px;
  color: #ccc;
  margin-bottom: 6px;
  min-height: 24px;
}
.admin-kat-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 6px;
}
.admin-kat-buttons button {
  padding: 3px 7px;
  background: #0e0e0e;
  border: 1px solid #3a3a3a;
  color: #999;
  font-size: 9px;
  cursor: pointer;
  font-family: inherit;
}
.admin-kat-buttons button.active {
  background: #2ecc40;
  color: #000;
  border-color: #2ecc40;
  font-weight: bold;
}
.admin-kat-custom input {
  width: 100%;
  background: #0e0e0e;
  border: 1px solid #3a3a3a;
  color: #d8d8d8;
  padding: 4px 6px;
  font-size: 10px;
  font-family: inherit;
}
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #8b0000; border: 1px solid #000; }