/* ==============================================================================
   supaKlima - Authentisches Web 1.0 Design System (Retro 1998 / 2000 Edition)
   Stand: 2026 | supaklima.de
   Optimiert für Netscape Navigator 4.0 & Internet Explorer 5.0 (800x600 / 1024x768)
   ============================================================================== */

:root {
  --win-gray: #c0c0c0;
  --win-light: #ffffff;
  --win-dark: #808080;
  --win-black: #000000;
  --win-blue: #000080;
  --win-blue-light: #1084d0;
  --link-blue: #0000ee;
  --link-visited: #551a8b;
  --link-active: #ff0000;
}

/* Reset & Basis-Typografie */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--win-gray);
  color: var(--win-black);
  font-family: "MS Sans Serif", Arial, Tahoma, Verdana, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  padding: 8px;
}

/* Hyperlinks nach Web 1.0 Standard */
a {
  color: var(--link-blue);
  text-decoration: underline;
}

a:visited {
  color: var(--link-visited);
}

a:active {
  color: var(--link-active);
}

a:hover {
  color: #ff0000;
}

/* Windows 95/98 Haupt-Rahmen (Window Window) */
.win-window {
  background: var(--win-gray);
  border-top: 2px solid var(--win-light);
  border-left: 2px solid var(--win-light);
  border-bottom: 2px solid var(--win-black);
  border-right: 2px solid var(--win-black);
  box-shadow: 1px 1px 0px var(--win-dark);
  margin: 0 auto 12px auto;
  max-width: 1200px;
}

/* Klassische blaue Windows Titelleiste */
.win-titlebar {
  background: linear-gradient(90deg, var(--win-blue) 0%, var(--win-blue-light) 100%);
  color: #ffffff;
  padding: 3px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: bold;
  font-size: 12px;
  letter-spacing: 0.5px;
  user-select: none;
}

.win-titlebar-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

.win-titlebar-controls {
  display: flex;
  gap: 2px;
}

.win-btn-control {
  background: var(--win-gray);
  border-top: 1px solid var(--win-light);
  border-left: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-black);
  border-right: 1px solid var(--win-black);
  width: 16px;
  height: 14px;
  font-size: 10px;
  line-height: 12px;
  text-align: center;
  color: #000000;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
}

.win-btn-control:active {
  border-top: 1px solid var(--win-black);
  border-left: 1px solid var(--win-black);
  border-bottom: 1px solid var(--win-light);
  border-right: 1px solid var(--win-light);
}

/* Menüleiste */
.win-menubar {
  background: var(--win-gray);
  border-bottom: 1px solid var(--win-dark);
  padding: 2px 6px;
  display: flex;
  gap: 12px;
  font-size: 11px;
}

.win-menu-item {
  cursor: pointer;
  padding: 1px 5px;
}

.win-menu-item:hover {
  background: var(--win-blue);
  color: #ffffff;
}

/* Laufschrift (Marquee Ticker) */
.marquee-ticker {
  background: #ffffcc;
  border: 1px inset var(--win-dark);
  color: #800000;
  padding: 3px 8px;
  margin: 6px;
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: bold;
}

/* Innenbereich / Content Panel */
.win-content {
  padding: 8px;
}

/* 2-Spalten Web 1.0 Portal-Layout */
.portal-layout {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 860px) {
  .portal-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 10px;
  }
}

/* Fieldset & Legend (Klassische HTML-Gruppierungsrahmen) */
fieldset {
  border-top: 2px solid var(--win-dark);
  border-left: 2px solid var(--win-dark);
  border-bottom: 2px solid var(--win-light);
  border-right: 2px solid var(--win-light);
  padding: 8px 10px 10px 10px;
  margin-bottom: 10px;
  background: var(--win-gray);
}

legend {
  font-weight: bold;
  padding: 0 4px;
  color: var(--win-black);
  font-size: 11px;
}

/* Beveled Buttons (Windows 95 Style) */
.win-button, .btn-detail, .btn-compare, .btn-affiliate-deal, .type-pill-btn, .btn-header-calc, .btn-launch-compare {
  background: var(--win-gray);
  border-top: 2px solid var(--win-light);
  border-left: 2px solid var(--win-light);
  border-bottom: 2px solid var(--win-black);
  border-right: 2px solid var(--win-black);
  box-shadow: 1px 1px 0px var(--win-dark);
  color: var(--win-black);
  font-family: inherit;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  user-select: none;
}

.win-button:active, .btn-detail:active, .btn-compare:active, .btn-affiliate-deal:active, .btn-launch-compare:active {
  border-top: 2px solid var(--win-black);
  border-left: 2px solid var(--win-black);
  border-bottom: 2px solid var(--win-light);
  border-right: 2px solid var(--win-light);
  padding: 5px 9px 3px 11px;
}

.type-pill-btn.active, .btn-compare.active, .catalog-btn.active {
  background: #000080;
  color: #ffffff;
  border-top: 2px solid var(--win-black);
  border-left: 2px solid var(--win-black);
  border-bottom: 2px solid var(--win-light);
  border-right: 2px solid var(--win-light);
}

.catalog-btn.active[data-source="obi"] {
  background: #b34700;
  color: #ffffff;
}

.catalog-btn.active[data-source="mediamarkt"] {
  background: #df0000;
  color: #ffffff;
}

.catalog-btn.active[data-source="amazon"] {
  background: #131921;
  color: #ff9900;
}

/* Eingabefelder (Sunken / Inset) */
input[type="text"], input[type="number"], select {
  background: #ffffff;
  color: #000000;
  border-top: 2px solid var(--win-dark);
  border-left: 2px solid var(--win-dark);
  border-bottom: 2px solid var(--win-light);
  border-right: 2px solid var(--win-light);
  padding: 3px 5px;
  font-family: "MS Sans Serif", Arial, sans-serif;
  font-size: 11px;
  width: 100%;
  margin-bottom: 6px;
  outline: none;
}

input:focus, select:focus {
  background-color: #fffffa;
}

/* Label */
.filter-label {
  display: block;
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 2px;
  color: var(--win-black);
}

/* Retro Info Boxen */
.retro-infobox {
  background: #ffffff;
  border: 2px inset var(--win-dark);
  padding: 8px;
  margin-bottom: 8px;
  font-size: 11px;
}

/* Tabellen-Layout (Geizhals / Heise 1999 Style) */
.win-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 2px inset var(--win-dark);
  font-size: 11px;
  margin-bottom: 10px;
}

.win-table th {
  background: var(--win-gray);
  border-top: 1px solid var(--win-light);
  border-left: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-dark);
  border-right: 1px solid var(--win-dark);
  padding: 5px 6px;
  text-align: left;
  font-weight: bold;
  font-size: 11px;
  white-space: nowrap;
}

.win-table td {
  padding: 5px 6px;
  border-bottom: 1px solid #d4d0c8;
  border-right: 1px solid #f0f0f0;
  vertical-align: middle;
}

.win-table tr:nth-child(even) td {
  background-color: #f7f7f7;
}

.win-table tr:hover td {
  background-color: #ffffdd;
}

/* Badges (Web 1.0 Retro Chunks) */
.retro-badge-test {
  display: inline-block;
  background: #ffff00;
  color: #cc0000;
  border: 1px solid #cc0000;
  padding: 1px 4px;
  font-weight: bold;
  font-size: 10px;
}

.retro-badge-type {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #0284c7;
  padding: 1px 4px;
  font-size: 10px;
  font-weight: bold;
}

.energy-badge {
  display: inline-block;
  padding: 1px 5px;
  font-weight: bold;
  font-size: 10px;
  color: #ffffff;
}
.energy-badge.a-plus-plus-plus { background: #008000; }
.energy-badge.a-plus-plus { background: #228b22; }
.energy-badge.a-plus { background: #32cd32; color: #000; }
.energy-badge.a { background: #ffaa00; color: #000; }
.energy-badge.n-a { background: #808080; }

/* Kachelansicht (Retro Product Cards) */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 600px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 950px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  background: #ffffff;
  border-top: 2px solid var(--win-light);
  border-left: 2px solid var(--win-light);
  border-bottom: 2px solid var(--win-dark);
  border-right: 2px solid var(--win-dark);
  box-shadow: 1px 1px 0px var(--win-black);
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card:hover {
  background-color: #fffff8;
}

.card-top-badges {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.product-thumb-container {
  text-align: center;
  background: #f0f0f0;
  border: 1px inset var(--win-dark);
  padding: 6px;
  margin-bottom: 6px;
  height: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumb-img {
  max-height: 80px;
  width: auto;
}

.product-brand {
  font-size: 10px;
  color: #808080;
  font-weight: bold;
  text-transform: uppercase;
}

.product-title {
  font-size: 13px;
  font-weight: bold;
  color: var(--win-blue);
  margin-bottom: 4px;
  line-height: 1.2;
}

.decibel-meter {
  background: #e0e0e0;
  border: 1px inset var(--win-dark);
  padding: 3px 6px;
  margin-bottom: 6px;
  font-size: 10px;
}

.decibel-meter-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
}

.decibel-meter-bar {
  height: 8px;
  background: #ffffff;
  border: 1px inset var(--win-dark);
}

.decibel-meter-fill {
  height: 100%;
}
.decibel-fill-green { background: #00aa00; }
.decibel-fill-teal { background: #008080; }
.decibel-fill-yellow { background: #ffaa00; }
.decibel-fill-red { background: #cc0000; }

.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  border: 1px inset var(--win-dark);
  background: #f7f7f7;
  padding: 4px;
  margin-bottom: 6px;
  text-align: center;
  font-size: 10px;
}

.metric-label {
  display: block;
  color: #666;
}

.metric-val {
  font-weight: bold;
  color: #000;
}

.features-tags {
  margin-bottom: 6px;
  font-size: 10px;
  color: #444;
  min-height: 20px;
}

.feature-tag {
  display: inline-block;
  background: #e8e8e8;
  border: 1px solid #ccc;
  padding: 1px 3px;
  margin: 1px;
}

.card-footer {
  border-top: 1px solid #ccc;
  padding-top: 6px;
  margin-top: auto;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.price-subtext {
  font-size: 10px;
  color: #666;
}

.price-value {
  font-size: 16px;
  font-weight: bold;
  color: #cc0000;
  font-family: Arial, sans-serif;
}

.card-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

/* Modals (Klassische Windows 95 Dialogboxen) */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.modal-overlay.active {
  display: flex;
}

.modal-window {
  background: var(--win-gray);
  border-top: 2px solid var(--win-light);
  border-left: 2px solid var(--win-light);
  border-bottom: 2px solid var(--win-black);
  border-right: 2px solid var(--win-black);
  box-shadow: 2px 2px 0px var(--win-dark);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 3px;
}

.modal-header-retro {
  background: linear-gradient(90deg, var(--win-blue) 0%, var(--win-blue-light) 100%);
  color: #ffffff;
  padding: 3px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: bold;
  font-size: 12px;
  margin-bottom: 6px;
}

.modal-body-retro {
  background: #ffffff;
  border: 2px inset var(--win-dark);
  padding: 12px;
  margin: 4px;
}

.specs-table, .compare-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.specs-table th, .specs-table td, .compare-matrix-table th, .compare-matrix-table td {
  border: 1px solid #ccc;
  padding: 4px 6px;
}

.specs-table th, .compare-matrix-table th {
  background: var(--win-gray);
  text-align: left;
}

.compare-matrix-table .highlight-best {
  background: #e6ffe6;
  font-weight: bold;
  color: #008000;
}

/* Sticky Bottom Compare Bar */
.compare-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--win-gray);
  border-top: 2px solid var(--win-light);
  border-bottom: 2px solid var(--win-black);
  box-shadow: 0 -2px 6px rgba(0,0,0,0.2);
  padding: 6px 12px;
  z-index: 400;
  display: none;
}

.compare-sticky-bar.visible {
  display: block;
}

.compare-bar-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.compare-chip {
  background: #ffffff;
  border: 1px inset var(--win-dark);
  padding: 2px 6px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.compare-chip button {
  background: none;
  border: none;
  color: #cc0000;
  font-weight: bold;
  cursor: pointer;
}

/* Retro Besucherzähler */
.retro-counter-box {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #000000;
  padding: 2px 4px;
  border: 2px inset var(--win-dark);
  font-family: "Courier New", monospace;
  font-size: 14px;
  color: #00ff00;
  letter-spacing: 2px;
  font-weight: bold;
}

/* Footer */
.site-footer {
  background: var(--win-gray);
  border-top: 2px solid var(--win-light);
  padding: 10px;
  text-align: center;
  font-size: 11px;
  color: #333;
  margin-top: 15px;
}

.footer-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.retro-web-badge {
  background: #e0e0e0;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-bottom: 1px solid #000;
  border-right: 1px solid #000;
  padding: 2px 6px;
  font-size: 10px;
  font-family: monospace;
  font-weight: bold;
}
