/* ============================================
   STEREO-ANKAUF DESIGN SYSTEM
   Premium Dark Editorial · Brass Accent
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --background: #0F0E0C;
  --surface: #14130F;
  --surface-2: #1B1914;
  --surface-3: #232017;
  --border: #2A2620;
  --border-strong: #3A3530;
  --brass: #B08D57;
  --brass-light: #C9A876;
  --brass-dim: #8B6E42;
  --text: #F5F1EA;
  --text-muted: #A89F92;
  --text-dim: #6B6358;
  --success: #7FA66B;
  --warning: #C9A876;
  --error: #B85540;

  /* Typography */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, system-ui, sans-serif;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Layout */
  --container: 1280px;
  --container-narrow: 880px;
  --container-wide: 1440px;
  --header-height: 80px;

  /* Transitions */
  --t-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern', 'liga', 'ss01';
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg, video {
  max-width: 100%;
  display: block;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--brass);
}

.eyebrow.no-line::before {
  display: none;
}

.h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.3;
}

.italic-accent {
  font-style: italic;
  font-weight: 400;
  color: var(--brass-light);
}

.lead {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 60ch;
}

.body-large {
  font-size: 1.125rem;
  line-height: 1.6;
}

.caption {
  font-size: 0.875rem;
  color: var(--text-dim);
}

.label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.section {
  padding: var(--space-9) 0;
}

.section-tight {
  padding: var(--space-7) 0;
}

.section-loose {
  padding: var(--space-10) 0;
}

@media (max-width: 768px) {
  .section { padding: var(--space-7) 0; }
  .section-loose { padding: var(--space-8) 0; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: 16px 28px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 2px;
  transition: all var(--t-base);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brass);
  color: var(--background);
}

.btn-primary:hover {
  background: var(--brass-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(176, 141, 87, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--brass);
  color: var(--brass-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  padding: 12px 0;
}

.btn-ghost:hover {
  color: var(--brass);
}

.btn-arrow::after {
  content: '→';
  transition: transform var(--t-base);
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

.btn-large {
  padding: 20px 36px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 14, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--space-6);
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-logo .dot {
  color: var(--brass);
  font-style: normal;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-7);
}

.site-nav a {
  font-size: 15px;
  color: var(--text-muted);
  transition: color var(--t-base);
  position: relative;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

.site-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--brass);
}

.site-actions {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-shrink: 0;
}

.site-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 15px;
  color: var(--text-muted);
  white-space: nowrap;
}

.site-phone:hover {
  color: var(--text);
}

.site-phone svg {
  width: 16px;
  height: 16px;
  color: var(--brass);
  flex-shrink: 0;
}

/* Hamburger-Toggle — nur auf Mobile sichtbar */
.site-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  margin-left: auto;
  position: relative;
  z-index: 101;
}
.site-nav-toggle:hover { border-color: var(--brass); }
.site-nav-toggle .hamburger-line {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 240ms cubic-bezier(0.23, 1, 0.32, 1), opacity 180ms ease;
  transform-origin: center;
}
.site-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.site-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.site-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile-Drawer */
.site-nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: rgba(15, 14, 12, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 220ms ease, transform 220ms ease;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.site-nav-mobile.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.site-nav-mobile-inner {
  display: flex;
  flex-direction: column;
  padding: var(--space-5) var(--space-5) calc(var(--space-7) + env(safe-area-inset-bottom));
  gap: 2px;
}
.site-nav-mobile-inner a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-2);
  font-size: 1.125rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.site-nav-mobile-inner a.active { color: var(--brass); }
.site-nav-mobile-inner .site-nav-mobile-phone svg {
  width: 18px;
  height: 18px;
  color: var(--brass);
}
.site-nav-mobile-inner .btn {
  margin-top: var(--space-5);
  border-bottom: none;
  justify-content: center;
  font-size: 1rem;
  padding: var(--space-4) var(--space-5);
}

body.nav-open { overflow: hidden; }

@media (max-width: 1024px) {
  .site-nav { display: none; }
  .site-actions { display: none; }
  .site-nav-toggle { display: flex; }
  .site-nav-mobile { display: block; }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--space-9) 0 var(--space-6);
  margin-top: var(--space-9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-8);
}

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

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

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: var(--space-4);
}

.footer-brand .dot {
  color: var(--brass);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: var(--space-5);
}

.footer-contact {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

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

.footer-badges {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
  flex-wrap: wrap;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 12px;
  border: 1px solid var(--border);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--space-5);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--t-base);
}

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

.footer-meta {
  border-top: 1px solid var(--border);
  padding-top: var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer-meta-parent {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.footer-meta-parent .italic {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--space-6);
  transition: all var(--t-base);
}

.card:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.card-link {
  display: block;
  cursor: pointer;
}

.card-link:hover {
  border-color: var(--brass-dim);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--space-3);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text);
  border-radius: 2px;
  transition: border-color var(--t-base);
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--brass);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.form-help {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: var(--space-2);
}

.form-radio-group {
  display: grid;
  gap: var(--space-3);
}

.form-radio {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--t-base);
}

.form-radio:hover {
  border-color: var(--border-strong);
}

.form-radio input[type="radio"],
.form-radio input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
  cursor: pointer;
  position: relative;
}

.form-radio input[type="checkbox"] {
  border-radius: 2px;
}

.form-radio input:checked {
  border-color: var(--brass);
}

.form-radio input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--brass);
  border-radius: 50%;
}

.form-radio input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: -2px;
  left: 1px;
  font-size: 14px;
  color: var(--brass);
  font-weight: 600;
}

.form-radio:has(input:checked) {
  border-color: var(--brass);
  background: var(--surface-2);
}

.form-radio-content { flex: 1; }
.form-radio-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}
.form-radio-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============================================
   WHATSAPP FLOAT BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px 14px 18px;
  background: var(--surface);
  border: 1px solid var(--brass-dim);
  border-radius: 100px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transition: all var(--t-base);
}

.whatsapp-float:hover {
  border-color: var(--brass);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.whatsapp-float-icon {
  width: 28px;
  height: 28px;
  background: #25D366;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.whatsapp-float-icon svg {
  width: 18px;
  height: 18px;
  color: white;
}

@media (max-width: 568px) {
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    padding: 14px;
  }
  .whatsapp-float-text { display: none; }
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: var(--space-7);
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--t-base);
}

.breadcrumb a:hover { color: var(--text); }

.breadcrumb-sep {
  color: var(--text-dim);
}

.breadcrumb .current {
  color: var(--text);
}

/* ============================================
   UTILITIES
   ============================================ */
.text-brass { color: var(--brass); }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.brass-line {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--brass);
  margin: var(--space-4) 0;
}

.divider {
  height: 1px;
  background: var(--border);
  border: none;
  margin: var(--space-7) 0;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }

@media (max-width: 968px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 568px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.stat-item .stat-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-item .stat-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

@media (max-width: 568px) {
  .stats-row { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
  .stat-item .stat-value { font-size: 1.75rem; }
}

/* Animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.fade-in-1 { animation-delay: 0.1s; }
.fade-in-2 { animation-delay: 0.2s; }
.fade-in-3 { animation-delay: 0.3s; }
.fade-in-4 { animation-delay: 0.4s; }

/* Selection */
::selection {
  background: var(--brass);
  color: var(--background);
}

/* ============================================
   MOBILE POLISH — Touch-Targets, iOS-Zoom, Hyphenation
   Wirksam ≤768/568 / iPhone 14 (390px)
   ============================================ */

/* Tap-Highlight: zarter Brass-Schimmer statt iOS-Standardblau */
html { -webkit-tap-highlight-color: rgba(176, 141, 87, 0.18); }

/* iOS auto-zoom verhindern: Inputs unter 16px lösen Zoom aus */
.form-input,
.form-textarea,
.form-select {
  font-size: 16px;
}

/* Touch-Targets ≥ 44px für Form-Checkboxen + Geräte-Entfernen-Button */
.form-checkbox {
  min-height: 44px;
  padding: var(--space-2) 0;
  align-items: center;
}
.geraet-remove {
  padding: 8px 12px;
  margin: -8px -12px;
  border-radius: 4px;
}
.geraet-remove:hover { background: rgba(184, 85, 64, 0.08); }

/* Sticky-Sidebar deaktiviert sich, sobald sie unter das Formular klappt */
@media (max-width: 968px) {
  .sidebar { position: static; }
}

/* Hyphenation für lange deutsche Komposita auf schmalen Viewports */
@media (max-width: 568px) {
  .h1, .h2, .h3, h1, h2, h3 {
    hyphens: auto;
    overflow-wrap: break-word;
  }

  /* Form-Sections schlanker auf Mobile */
  .form-section { padding: var(--space-5) var(--space-4); }
  .form-section-head {
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
  }
  .form-section-num { font-size: 1.5rem; }
  .form-section-title { font-size: 1.2rem; }

  /* Geräte-Block Padding reduzieren */
  .geraet-block { padding: var(--space-4); }

  /* Form-Radio Label schmaler */
  .form-radio { padding: var(--space-3) var(--space-3); gap: var(--space-3); }
  .form-radio-label { font-size: 14px; }
  .form-radio-desc { font-size: 13px; }

  /* CTA-Banner Padding deutlich reduziert */
  .cta-banner { padding: var(--space-6) var(--space-4); }
  .cta-banner-buttons { gap: var(--space-3); flex-direction: column; align-items: stretch; }
  .cta-banner-buttons .btn { width: 100%; }
  .cta-or { text-align: center; }

  /* Hero-CTA stack */
  .hero-cta { flex-direction: column; align-items: stretch; gap: var(--space-3); }
  .hero-cta .btn { width: 100%; }

  /* btn-large auf Mobile etwas kompakter */
  .btn-large { padding: 16px 22px; font-size: 15px; }

  /* Form-Submit-Area Padding */
  .form-submit-area { padding: var(--space-5) var(--space-4); }

  /* Sidebar-Card Padding reduziert */
  .sidebar-card { padding: var(--space-5); }

  /* Container-Padding etwas straffer */
  .container, .container-narrow, .container-wide { padding: 0 var(--space-4); }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-strong);
}
