/* Brennquartett Custom Styles */
/* Überschreibt Tachyons/Ananke Defaults */

:root {
  --bq-blue: #1e88e5;
  --bq-blue-dark: #1565c0;
  --bq-blue-light: #64b5f6;
  --bq-cyan: #00bcd4;
  --bq-white: #ffffff;
  --bq-gray-light: #f8fafc;
  --bq-text: #1a202c;
}

/* ===== Global ===== */
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bq-white) !important;
}

/* ===== Header/Hero mit Bubbles ===== */
header.cover {
  position: relative;
  background-size: cover;
  background-position: center 70%;
}

/* Subtle overlay for text readability */
header.cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.25) 100%);
  z-index: 1;
}

header.cover > * {
  position: relative;
  z-index: 3;
}

/* ===== Navigation ===== */
.nav-logo {
  height: 72px;
  width: auto;
}

@media (max-width: 480px) {
  .nav-logo {
    display: none;
  }
}

nav.pv3 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Hero header vertical padding */
header .tc-l.pv6 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

nav a {
  color: var(--bq-white) !important;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

nav a:hover {
  opacity: 0.8;
}

/* Site title */
.f1, .f2 {
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ===== Content Area ===== */
article.mid-gray,
.mid-gray {
  color: var(--bq-text) !important;
}

.dark-gray {
  color: #2d3748 !important;
}

/* ===== Footer ===== */
footer.bg-gray,
.bg-gray {
  background: linear-gradient(135deg, var(--bq-blue) 0%, var(--bq-blue-dark) 100%) !important;
  color: var(--bq-white);
}

footer a {
  color: var(--bq-white) !important;
  opacity: 0.9;
}

footer a:hover {
  opacity: 1;
}

/* ===== Typography ===== */
h1, h2, h3 {
  color: var(--bq-blue-dark) !important;
  font-weight: 700;
}

/* Header titles - white for dark hero */
header h1,
header h2,
header .f1,
header .f2,
header .f-subheadline {
  color: var(--bq-white) !important;
  font-weight: 600;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

header .fw1 {
  font-weight: 300 !important;
  color: var(--bq-white) !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

blockquote {
  border-left: 4px solid var(--bq-blue) !important;
  background: var(--bq-gray-light);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--bq-blue-dark);
}

/* ===== Links ===== */
article a,
.nested-links a {
  color: var(--bq-blue) !important;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

article a:hover,
.nested-links a:hover {
  border-bottom-color: var(--bq-blue);
}

/* ===== Buttons & Tags ===== */
.ba.b--moon-gray,
a.ba {
  background: var(--bq-blue) !important;
  color: var(--bq-white) !important;
  border-color: var(--bq-blue) !important;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.ba.b--moon-gray:hover,
a.ba:hover {
  background: var(--bq-blue-dark) !important;
  border-color: var(--bq-blue-dark) !important;
  transform: translateY(-1px);
}

/* ===== Form Inputs ===== */
input.bg-light-gray,
textarea.bg-light-gray,
.bg-light-gray {
  background: var(--bq-gray-light) !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 8px !important;
  transition: border-color 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: var(--bq-blue) !important;
  outline: none;
}

label.mid-gray {
  color: var(--bq-text) !important;
}

/* Submit Button */
input[type="submit"],
button[type="submit"] {
  background: linear-gradient(135deg, var(--bq-blue) 0%, var(--bq-blue-dark) 100%) !important;
  color: var(--bq-white) !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0.75rem 2rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(30, 136, 229, 0.4);
}

/* ===== Product Grid ===== */
.highlights-extra {
  display: contents;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  padding: 2.5rem 0;
  margin: 0 auto;
  max-width: 900px;
}

/* ===== Product Cards ===== */
.product-card {
  background: var(--bq-white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(30, 136, 229, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none !important;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(30, 136, 229, 0.2);
}

.product-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center 80%;
  background: linear-gradient(135deg, var(--bq-blue-light) 0%, var(--bq-cyan) 100%);
}

.product-card-image.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.product-card-content {
  padding: 1.5rem;
}

.product-card h3 {
  margin: 0 0 0.5rem 0 !important;
  font-size: 1.4rem;
  color: var(--bq-text) !important;
}

.product-card .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bq-blue);
}

.product-card .volume {
  color: #666;
  font-size: 0.9rem;
  font-weight: 400;
}

.product-card p {
  margin: 0.75rem 0 0 0;
  color: #555;
  line-height: 1.5;
}

/* ===== Badges ===== */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.badge.bestseller {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: white;
}

.badge.premium {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  color: white;
}

.badge:not(.bestseller):not(.premium) {
  background: linear-gradient(135deg, var(--bq-blue-light), var(--bq-cyan));
  color: white;
}

/* ===== Section Headers ===== */
.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--bq-blue), var(--bq-cyan));
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

/* ===== Product Detail Image ===== */
.product-detail-image {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  object-position: center 80%;
  border-radius: 12px;
  margin-bottom: 2rem;
}

/* ===== Product Detail Pages ===== */
.product-detail h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.product-detail .price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--bq-blue);
}

/* Minimal header on product detail pages and simple pages */
header.bg-dark-blue,
.bg-dark-blue {
  background: linear-gradient(135deg, var(--bq-blue) 0%, var(--bq-blue-dark) 100%) !important;
}

header.bg-dark-blue nav a,
.bg-dark-blue nav a {
  color: var(--bq-white) !important;
}

/* Ensure nav on hero pages also uses gradient when scrolled */
header.cover .bg-black-60 {
  background: linear-gradient(180deg, rgba(21, 101, 192, 0.4) 0%, rgba(21, 101, 192, 0.65) 100%) !important;
}

/* ===== Bubble Background Effect (Footer) ===== */
.bubble-bg {
  position: relative;
  overflow: hidden;
}

.bubble-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255,255,255,0.12) 0%, transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(255,255,255,0.08) 0%, transparent 20%),
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 22%),
    radial-gradient(circle at 70% 70%, rgba(255,255,255,0.06) 0%, transparent 18%),
    radial-gradient(circle at 40% 40%, rgba(255,255,255,0.08) 0%, transparent 30%);
  pointer-events: none;
  z-index: 0;
}

.bubble-bg > * {
  position: relative;
  z-index: 1;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .highlights-extra {
    display: none;
  }
  
  .product-detail h1 {
    font-size: 2rem;
  }
}

/* ===== Tables ===== */
article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

article table th,
article table td {
  padding: 0.65rem 1rem;
  border: 1px solid #e2e8f0;
  text-align: left;
}

article table th {
  background: var(--bq-gray-light);
  color: var(--bq-blue-dark);
  font-weight: 600;
}

article table tr:nth-child(even) td {
  background: var(--bq-gray-light);
}

/* ===== Horizontal Rule ===== */
hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--bq-blue-light), transparent);
  margin: 2rem 0;
}

/* ===== List Styling ===== */
article ul {
  list-style: none;
  padding-left: 0;
}

article ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

article ul li::before {
  content: '•';
  color: var(--bq-blue);
  font-weight: bold;
  position: absolute;
  left: 0;
}
