/*
Theme Name: Soffitten Birnen Dark
Theme URI: https://soffitten-birnen.de
Author: Manuel Malsy-Mink
Description: A modern, dark-mode, high-performance WooCommerce theme.
Version: 1.0.0
Text Domain: soffitten-birnen
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
*/

:root {
  --background: #0a0a0a;
  --foreground: #ededed;
  --primary-glow: rgba(255, 215, 0, 0.4);
  --accent: #ffd700;
  --surface: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-name {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.main-nav {
  display: flex;
  gap: 30px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #a0a0a0;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--foreground);
}

/* Footer Styles */
.site-footer {
  margin-top: 100px;
  border-top: 1px solid var(--border);
  padding: 60px 40px 20px;
  background: rgba(0, 0, 0, 0.5);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.footer-brand p {
  color: #a0a0a0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4, .footer-trust h4 {
  margin-bottom: 15px;
  color: var(--foreground);
}

.footer-links a {
  color: #a0a0a0;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-trust p {
  color: #a0a0a0;
  font-size: 0.9rem;
}

.footer-bottom {
  text-align: center;
  color: #555;
  font-size: 0.85rem;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  z-index: -1;
  animation: pulse 4s ease-in-out infinite alternate;
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.05em;
}

.hero p {
  font-size: 1.2rem;
  color: #a0a0a0;
  max-width: 600px;
}

/* Bento Grid System */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.bento-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
}

.bento-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--primary-glow);
  border-color: var(--accent);
}

/* Tiered Pricing Custom UI */
.tier-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}

.tier-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  font-size: 1rem;
  color: #aaa;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  background: rgba(0,0,0,0.2);
}

.tier-row span:last-child {
  text-align: right;
  font-family: monospace;
  font-size: 1.1rem;
}

.tier-row.active {
  background: rgba(255, 215, 0, 0.15);
  color: var(--accent);
  font-weight: bold;
  transform: scale(1.02);
  border-left: 4px solid var(--accent);
}

/* Product Form WooCommerce Overrides */
.woocommerce div.product form.cart {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    margin-top: 20px;
}

.woocommerce div.product p.price, .woocommerce div.product span.price {
    color: var(--accent);
    font-size: 2.5rem;
    font-weight: bold;
}

.woocommerce .quantity .qty {
    width: 80px;
    height: 56px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    text-align: center;
    border-radius: 10px;
    font-size: 1.3rem;
}

.woocommerce button.button.alt {
    background-color: var(--accent);
    color: #000;
    font-weight: bold;
    border-radius: 8px;
    padding: 15px 30px;
    transition: all 0.3s;
}

.woocommerce button.button.alt:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
}


/* Fix large images in product description */
.pdp-description img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Product Slider */
.slider-section {
  padding: 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.slider-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: left;
}
.slider-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.slider-track::-webkit-scrollbar {
  display: none;
}
.slider-item {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.3s ease;
  backdrop-filter: blur(10px);
}
.slider-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}
.slider-item-img {
  width: 100%;
  height: 150px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  text-shadow: 0 0 20px var(--primary-glow);
}
.slider-item h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}
.slider-item p {
  color: #a0a0a0;
  font-size: 0.9rem;
}
