/* ========================================
   WATTLER.DE — Redesign 2025
   Clean, Dark, Premium
   ======================================== */

:root {
  /* Colors */
  --bg-deep: #07080a;
  --bg-base: #0c0d10;
  --bg-elevated: #131518;
  --bg-surface: #1a1c21;
  
  --text-primary: #f4f4f5;
  --text-secondary: rgba(244, 244, 245, 0.7);
  --text-tertiary: rgba(244, 244, 245, 0.5);
  --text-muted: rgba(244, 244, 245, 0.35);
  
  --gold: #c9a227;
  --gold-light: #e2be4a;
  --gold-glow: rgba(201, 162, 39, 0.15);
  --gold-border: rgba(201, 162, 39, 0.25);
  
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  
  /* Spacing */
  --container: min(1200px, 90vw);
  --section-gap: clamp(80px, 12vh, 140px);
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  
  /* Effects */
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 12px;
  --radius-lg: 20px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  overflow-x: hidden;
}

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

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  background: linear-gradient(to bottom, var(--bg-base) 0%, transparent 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: 10px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 16px;
  color: var(--bg-deep);
  letter-spacing: -0.02em;
}

.logo-mark.small {
  width: 32px;
  height: 32px;
  font-size: 13px;
  border-radius: 8px;
}

.logo-text {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--gold-glow);
  border: 1px solid var(--gold-border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gold-light);
  transition: all var(--transition);
}

.nav-cta:hover {
  background: rgba(201, 162, 39, 0.2);
  border-color: rgba(201, 162, 39, 0.4);
}

.nav-cta svg {
  opacity: 0.8;
}

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

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-content {
  width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.gold {
  color: var(--gold);
}

.hero-lead {
  max-width: 580px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Glow Effect */
.hero-glow {
  position: absolute;
  top: 10%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 60%);
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.6;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 100px;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--bg-deep);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 162, 39, 0.3);
}

.btn-primary svg {
  transform: rotate(180deg);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.btn-large {
  padding: 18px 32px;
  font-size: 16px;
}

/* ===== About Section ===== */
.about {
  padding: 80px 0;
  background: var(--bg-base);
}

.about-inner {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
}

.about-label {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--gold);
  line-height: 1.4;
  position: sticky;
  top: 120px;
}

.about-content p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-content .about-highlight {
  color: var(--text-primary);
  font-weight: 500;
}

@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .about-label {
    position: static;
    font-size: 18px;
  }
  
  .about-content p {
    font-size: 16px;
  }
}

/* ===== Approach Section ===== */
.approach {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.approach-inner {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.approach-item {
  text-align: center;
}

.approach-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  background: var(--gold-glow);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  color: var(--gold);
}

.approach-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.approach-item p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-tertiary);
}

@media (max-width: 768px) {
  .approach-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ===== Sections ===== */
.section {
  padding: var(--section-gap) 0;
}

.section-inner {
  width: var(--container);
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 48px;
}

.section-label {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--gold);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.section-alt {
  background: var(--bg-elevated);
}

/* ===== Products ===== */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product {
  padding: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.product:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.product-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.product-status {
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 100px;
}

.product-status.live {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.product-status.beta {
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold);
}

.product-type {
  font-size: 12px;
  color: var(--text-muted);
}

.product-name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.product-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
  transition: gap var(--transition);
}

.product-link:hover {
  gap: 12px;
}

.product-availability {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

@media (max-width: 1024px) {
  .products {
    grid-template-columns: 1fr;
  }
}

/* ===== Services ===== */
.services {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.service:first-child {
  padding-top: 0;
}

.service:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.service-number {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 500;
  color: var(--gold-glow);
  line-height: 1;
}

.service-content h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.service-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 16px;
}

.service-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .service {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .service-number {
    font-size: 32px;
  }
}

/* ===== Contact ===== */
.section-contact {
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-deep) 100%);
  text-align: center;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 500;
  margin: 16px 0 20px;
  letter-spacing: -0.02em;
}

.contact-lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== Footer ===== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
}

.footer-inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-tertiary);
  transition: color var(--transition);
}

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

/* ===== Animations ===== */
@media (prefers-reduced-motion: no-preference) {
  .hero-content > * {
    animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) backwards;
  }
  
  .hero-kicker { animation-delay: 0.1s; }
  .hero-title { animation-delay: 0.2s; }
  .hero-lead { animation-delay: 0.3s; }
  .hero-actions { animation-delay: 0.4s; }
  
  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ===== Hero Background Image ===== */
.hero-bg-image {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  width: 500px;
  height: auto;
  opacity: 0.08;
  pointer-events: none;
  filter: grayscale(100%);
  mask-image: linear-gradient(to left, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, black 60%, transparent 100%);
}

@media (max-width: 1200px) {
  .hero-bg-image {
    width: 400px;
    right: 0;
    opacity: 0.06;
  }
}

@media (max-width: 768px) {
  .hero-bg-image {
    display: none;
  }
}

/* ===== Legal Pages (Impressum, Datenschutz) ===== */
.legal-page {
  min-height: 100vh;
  padding-top: 100px;
}

.legal-content {
  width: var(--container);
  margin: 0 auto;
  padding: 60px 0 80px;
  max-width: 800px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 40px;
  transition: color var(--transition);
}

.legal-back:hover {
  color: var(--gold);
}

.legal-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 500;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}

.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  margin: 48px 0 16px;
  color: var(--text-primary);
}

.legal-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.legal-content ul {
  margin: 16px 0;
  padding-left: 24px;
}

.legal-content li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.legal-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

.legal-meta {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== Improved Responsive ===== */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 140px 0 60px;
  }
  
  .hero-title {
    font-size: clamp(36px, 10vw, 48px);
  }
  
  .hero-lead {
    font-size: 16px;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .section {
    padding: clamp(48px, 10vh, 80px) 0;
  }
  
  .section-header {
    margin-bottom: 32px;
  }
  
  .section-title {
    font-size: clamp(28px, 6vw, 36px);
  }
  
  .product {
    padding: 24px;
  }
  
  .product-name {
    font-size: 20px;
  }
  
  .service-content h3 {
    font-size: 22px;
  }
  
  .contact-title {
    font-size: clamp(28px, 8vw, 40px);
  }
  
  .contact-actions {
    flex-direction: column;
  }
  
  .contact-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .footer-brand {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .nav-cta span {
    display: none;
  }
  
  .nav-cta {
    padding: 10px 12px;
  }
  
  .approach-inner {
    gap: 24px;
  }
  
  .approach-item {
    padding: 0 16px;
  }
}
