/* style_v2.css - Test-Stylesheet, nur auf Seiten mit body.v2 aktiv */

body.v2 {
  background: #F4F3F0;
}

body.v2 .width {
  width: 100%;
  max-width: 1100px;
  box-sizing: border-box;
}

body.v2 #header {
  background: transparent;
  height: auto;
  width: 100% !important;
  max-width: none !important;
  padding: 24px 24px 0;
  box-sizing: border-box;
  border-bottom: none !important;
}

body.v2 #header table {
  background: #1E1B4B;
  border-radius: 16px;
  padding: 12px 24px;
  max-width: 1900px;
  width: 100% !important;
  margin: 0 auto;
  box-sizing: border-box;
}

body.v2 #header ul {
  display: flex !important;
  float: none !important;
  margin: 0 !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: 100% !important;
}

body.v2 #header ul li {
  float: none !important;
}

body.v2 #header ul li.v2-welcome-li {
  order: -1 !important;
}

body.v2 #header ul li a {
  border-right: 1px solid rgba(255,255,255,0.15);
}

body.v2 #headerImg {
  height: 200px;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  position: relative;
  overflow: hidden;
}

body.v2 #headerImg a {
  display: block;
  height: 100%;
  text-indent: -9999px;
}

body.v2 #menu ul {
  background: #12102E;
}

body.v2 #menu ul li a {
  border-top: 4px solid #12102E;
  border-bottom: none;
}

body.v2 #menu ul li a:hover,
body.v2 #menu ul li a.here {
  background: #2A2660;
  border-top: 4px solid #BA7517;
}

/* Hero-Karte */
.v2-hero {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #E4E2DC;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: stretch;
}

.v2-hero-image {
  flex: 0 0 320px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #F4F3F0;
  border-radius: 12px;
  padding: 12px 0;
  overflow: hidden;
}

.v2-hero-image img {
  max-width: 100%;
  max-height: 400px;
  display: block;
}

.v2-hero-body {
  flex: 1 1 260px;
  min-width: 220px;
}

.v2-hero-title {
  font: 700 1.5em arial, sans-serif;
  color: #1E1B4B;
  margin: 0 0 4px 0;
  border-bottom: none;
  padding-bottom: 0;
}

.v2-hero-sub {
  color: #6B6960;
  font-size: 1em;
  margin: 0 0 12px 0;
}

.v2-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.v2-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 700;
}

.v2-badge-purple { background: #EEEDFE; color: #26215C; }
.v2-badge-teal   { background: #E1F5EE; color: #04342C; }
.v2-badge-amber  { background: #FAEEDA; color: #412402; }

/* Info-Karte (ersetzt die alte Tabelle) */
.v2-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #E4E2DC;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.v2-card-title {
  font: 700 1.05em arial, sans-serif;
  color: #1E1B4B;
  margin: 0 0 12px 0;
  text-transform: none;
}

.v2-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}

.v2-info-label {
  font-size: 0.8em;
  color: #A6A398;
  margin: 0 0 2px 0;
}

.v2-info-value {
  font-size: 0.95em;
  color: #333;
  margin: 0;
}

/* Buttons */
.v2-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  font: 700 0.9em arial, sans-serif;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.v2-btn-primary {
  background: #1E1B4B;
  color: #fff;
}

.v2-btn-secondary {
  background: transparent;
  color: #1E1B4B;
  border: 1.5px solid #D8D6CE;
}

/* Mobile */
@media (max-width: 640px) {
  body.v2 #header table td:first-child {
    display: none;
  }
  body.v2 #header ul {
    float: none;
    text-align: center;
    margin: 0 !important;
  }
  body.v2 #header ul li a {
    float: none;
    display: inline-block;
    padding: 0.4em 0.6em;
    font-size: 0.9em;
  }
  body.v2 #menu ul li a {
    width: auto;
    float: none;
    display: block;
  }
  .v2-hero {
    flex-direction: column;
  }
  .v2-hero-image {
    flex: none;
    max-width: 100%;
  }
  .v2-info-grid {
    grid-template-columns: 1fr;
  }
  body.v2 .floatLeft.width73,
  body.v2 .floatRight.width25 {
    float: none;
    width: 100% !important;
  }
}

/* Inventar-Karten */
.v2-inven-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #EEECE6;
}

.v2-inven-item:last-child {
  border-bottom: none;
}

.v2-inven-radio {
  margin-top: 4px;
}

.v2-inven-main {
  flex: 1;
}

.v2-inven-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.v2-inven-price {
  font: 700 1.05em arial, sans-serif;
  color: #1E1B4B;
}

.v2-inven-meta {
  font-size: 0.85em;
  color: #8C8A80;
  line-height: 1.5;
}

.v2-status-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 700;
}

.v2-status-sold    { background: #FAEEDA; color: #412402; }
.v2-status-offer   { background: #E1F5EE; color: #04342C; }
.v2-status-none    { background: #F1EFE8; color: #5F5E5A; }

.v2-action-bar {
  display: flex;
  gap: 8px;
  margin: 12px 0;
  flex-wrap: wrap;
}

.v2-count-line {
  font-size: 0.95em;
  color: #6B6960;
  margin-bottom: 10px;
}

/* Wunschliste-Karte */
.v2-wish-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #EEECE6;
}

.v2-wish-item:last-child {
  border-bottom: none;
}

.v2-wish-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 700;
  margin-bottom: 4px;
}

.v2-wish-status-gewuenscht { background: #FBEAF0; color: #4B1528; }
.v2-wish-status-bestellt   { background: #E1F5EE; color: #04342C; }

.v2-wish-meta {
  font-size: 0.85em;
  color: #8C8A80;
}

.v2-wish-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.v2-wish-link {
  font-size: 0.85em;
  color: #1E1B4B;
  font-weight: 700;
}

.v2-wish-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.v2-wish-form-row label {
  font-size: 0.85em;
  color: #6B6960;
  margin-right: 4px;
}

.v2-addon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 4px 0 10px 0;
}

.v2-addon-list label {
  font-size: 0.85em;
  color: #333;
  white-space: nowrap;
}

/* Links-Karte */
.v2-link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.v2-link-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #F4F3F0;
  border-radius: 10px;
  font-size: 0.9em;
}

.v2-link-item a {
  color: #1E1B4B;
  font-weight: 700;
}

.v2-link-icon {
  color: #A6A398;
  font-size: 0.9em;
}

.v2-new-link-form {
  border-top: 1px solid #EEECE6;
  padding-top: 14px;
}

/* Zubehör-Karten */
.v2-addon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.v2-addon-card {
  display: block;
  position: relative;
  border: 1px solid #E4E2DC;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  text-align: left;
}

.v2-addon-card:has(.v2-addon-radio:checked) {
  border-color: #1E1B4B;
  background: #F4F3F0;
}

.v2-addon-radio {
  position: absolute;
  top: 8px;
  left: 8px;
}

/* Generisches Formular-Grid (mehrfach genutzt, z.B. short_picture.php, short_links.php) */
.v2-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.v2-form-grid label {
  display: block;
  font-size: 0.8em;
  color: #A6A398;
  margin-bottom: 3px;
}

.v2-form-grid select,
.v2-form-grid input[type="text"] {
  width: 100%;
  box-sizing: border-box;
}

/* short_navigation.php */

.v2-navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.85em;
  color: #6B6960;
  margin-bottom: 10px;
}

.v2-navbar a {
  color: #1E1B4B;
  font-weight: 700;
}

.v2-navbar select {
  font-size: 0.85em;
  padding: 2px 4px;
}

.v2-navbar .sep {
  color: #C9C7BE;
}

.v2-breadcrumb {
  font-size: 0.85em;
  color: #8C8A80;
  margin-bottom: 16px;
}

.v2-breadcrumb b {
  color: #6B6960;
  font-weight: 700;
}

/* short_comment.php */

.v2-comment-item {
  padding: 12px 0;
  border-bottom: 1px solid #EEECE6;
}

.v2-comment-item:last-child {
  border-bottom: none;
}

.v2-comment-item a {
  color: #1E1B4B;
  font-weight: 700;
}

.v2-comment-meta {
  font-size: 0.85em;
  color: #8C8A80;
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
}

/* Grundstruktur / Ad-Grid */

body.v2 .v2-page-grid {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1fr) 160px;
  grid-template-areas:
    "banner banner banner banner"
    "sky-left col-a col-b sky-right";
  gap: 20px;
  max-width: 1900px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Variante 1: schmale Spalte links, breite Spalte rechts (z.B. index.php mit menuleft) */
body.v2 .v2-page-grid--nav-left {
  grid-template-columns: 160px minmax(180px, 240px) minmax(0, 1fr) 160px;
}
body.v2 .v2-page-grid--nav-left .v2-narrow { grid-area: col-a; min-width: 0; }
body.v2 .v2-page-grid--nav-left .v2-wide   { grid-area: col-b; min-width: 0; }

/* Variante 2: breite Spalte links, schmale Spalte rechts (z.B. item_view.php mit menuright) */
body.v2 .v2-page-grid--nav-right {
  grid-template-columns: 160px minmax(0, 1fr) minmax(180px, 240px) 160px;
}
body.v2 .v2-page-grid--nav-right .v2-wide   { grid-area: col-a; min-width: 0; }
body.v2 .v2-page-grid--nav-right .v2-narrow { grid-area: col-b; min-width: 0; }

body.v2 .v2-banner-slot { grid-area: banner; }
body.v2 .v2-sky-left    { grid-area: sky-left; }
body.v2 .v2-sky-right   { grid-area: sky-right; }

/* Volle Breite für Seiten ohne menuright/menuleft-Sidebar (z.B. item_view_variant.php) */
body.v2 .v2-page-grid .v2-full-col {
  grid-column: 2 / 4;
}

.v2-ad-placeholder {
  background: #F4F3F0;
  border: 1.5px dashed #C9C7BE;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A6A398;
  font-size: 0.8em;
  text-align: center;
  box-sizing: border-box;
}

.v2-ad-banner {
  width: 100%;
  max-width: 728px;
  height: 90px;
  margin: 0 auto 20px;
}

.v2-ad-skyscraper {
  width: 160px;
  height: 600px;
  position: sticky;
  top: 12px;
}

@media (max-width: 1100px) {
  body.v2 .v2-page-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "banner"
      "main"
      "side";
  }
  body.v2 .v2-sky-left,
  body.v2 .v2-sky-right {
    display: none;
  }
}

body.v2 #content,
body.v2 #page,
body.v2 #columns.widthPad {
  width: 100% !important;
  max-width: none !important;
}

/* menuleft.php - Kachel-Menü */
.v2-menu-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.v2-menu-tile {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  background: #F4F3F0;
  color: #1E1B4B;
  font-weight: 700;
  font-size: 0.9em;
}

.v2-menu-tile:hover {
  background: #EEECE6;
}

/* footer.php */
body.v2 #footer {
  float: none;
  height: auto;
  margin-top: 24px;
  padding: 0 24px;
  box-sizing: border-box;
  background: transparent;
}

body.v2 #footer #bg {
  height: auto;
  background: #1E1B4B;
  border-radius: 16px;
  padding: 12px 24px;
  max-width: 1900px;
  margin: 0 auto;
  box-sizing: border-box;
  display: flow-root;
}

body.v2 #footer #bg ul {
  float: none !important;
  margin: 0 !important;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

body.v2 #footer #bg ul li {
  display: inline-block;
  list-style: none;
}

body.v2 #footer #bg ul li a {
  float: none !important;
  color: #fff;
  opacity: 0.85;
  font-size: 0.9em;
  line-height: normal !important;
  border-right: none !important;
  padding: 4px 0;
}

body.v2 #footer #bg ul li a:hover {
  color: #fff;
  opacity: 1;
}

.v2-limited-badge-wrap {
  width: 100%;
  text-align: left !important;
  margin-top: auto;
  padding-top: 10px;
}

/* header.php - Login/Home-Button */
body.v2 #header ul li a.v2-header-login-btn {
  background: #fff !important;
  color: #1E1B4B !important;
  padding: 6px 16px !important;
  margin-right: 10px !important;
  margin-left: 4px !important;
  border-radius: 20px !important;
  border-right: none !important;
  border: none !important;
  font-weight: 700 !important;
  display: inline-block !important;
  line-height: normal !important;
}

body.v2 #header ul li a.v2-header-login-btn:hover {
  background: #E4E2DC !important;
  color: #1E1B4B !important;
}

/* footer.php - Links als Buttons (gleiche Optik wie header.php) */
body.v2 #footer #bg ul li a.v2-footer-btn {
  background: #fff !important;
  color: #1E1B4B !important;
  padding: 6px 16px !important;
  margin-right: 10px !important;
  margin-left: 4px !important;
  border-radius: 20px !important;
  border: none !important;
  border-right: none !important;
  font-weight: 700 !important;
  display: inline-block !important;
  line-height: normal !important;
  opacity: 1 !important;
}

body.v2 #footer #bg ul li a.v2-footer-btn:hover {
  background: #E4E2DC !important;
  color: #1E1B4B !important;
}

/* login.php */
.v2-login-wrap {
  max-width: 420px;
  margin: 40px auto;
}

.v2-login-wrap .v2-card-title {
  text-align: center;
  font-size: 1.3em;
  margin-bottom: 20px;
}

.v2-login-error {
  background: #FBEAF0;
  color: #4B1528;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9em;
  margin-bottom: 16px;
}

.v2-login-field {
  margin-bottom: 14px;
}

.v2-login-field label {
  display: block;
  font-size: 0.8em;
  color: #A6A398;
  margin-bottom: 4px;
}

.v2-login-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #E4E2DC;
}

.v2-login-links {
  text-align: center;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* header.php - Welcome, wie ein Button optisch, aber nicht klickbar */
body.v2 #header ul li span.v2-header-welcome-btn {
  display: inline-block !important;
  background: transparent !important;
  color: #fff !important;
  border: 1.5px solid rgba(255,255,255,0.5) !important;
  padding: 6px 16px !important;
  margin-right: 10px !important;
  margin-left: 4px !important;
  border-radius: 20px !important;
  font-weight: 700 !important;
  line-height: normal !important;
}