/* Import Local Fonts */
@import url('fonts.css');

/* CSS Custom Properties from design-tokens.json */
:root {
  /* Typography Families */
  --font-display: 'Sora', 'Segoe UI', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Typography Scale */
  --fs-h1: 3rem;
  --lh-h1: 1.1;
  --fw-h1: 700;

  --fs-h2: 2.25rem;
  --lh-h2: 1.2;
  --fw-h2: 700;

  --fs-h3: 1.5rem;
  --lh-h3: 1.3;
  --fw-h3: 600;

  --fs-h4: 1.25rem;
  --lh-h4: 1.4;
  --fw-h4: 600;

  --fs-body: 1.0625rem;
  --lh-body: 1.6;
  --fw-body: 400;

  --fs-label: 0.9375rem;
  --lh-label: 1.4;
  --fw-label: 500;

  --fs-caption: 0.8125rem;
  --lh-caption: 1.4;
  --fw-caption: 400;

  /* Spacings */
  --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;

  /* Colors */
  --color-primary: #1c1917;
  --color-primary-on: #ffffff;
  --color-secondary: #44403c;
  --color-accent: #c2410c;
  --color-accent-on: #ffffff;

  --color-neutral-50: #fafaf9;
  --color-neutral-100: #f5f5f4;
  --color-neutral-200: #e7e5e4;
  --color-neutral-300: #d6d3d1;
  --color-neutral-400: #a8a29e;
  --color-neutral-500: #78716c;
  --color-neutral-600: #57534e;
  --color-neutral-700: #44403c;
  --color-neutral-800: #292524;
  --color-neutral-900: #1c1917;

  --color-bg: #fafaf9;
  --color-surface: #ffffff;
  --color-text: #1c1917;
  --color-text-muted: #57534e;
  --color-success: #16a34a;
  --color-warn: #ca8a04;
  --color-error: #dc2626;

  /* Radius */
  --radius-none: 0px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-none: none;
  --shadow-sm: 0 1px 2px rgba(28, 25, 22, 0.05);
  --shadow-md: 0 4px 12px rgba(28, 25, 22, 0.08);
  --shadow-lg: 0 12px 32px rgba(28, 25, 22, 0.12);

  /* Borders */
  --border-hairline: 1px;
  --border-regular: 2px;
  --border-thick: 4px;
  --border-color-default: #e7e5e4;
  --border-color-strong: #1c1917;

  /* Durations & Easings */
  --motion-fast: 120ms;
  --motion-base: 240ms;
  --motion-slow: 500ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 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: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
}

h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
}

h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  margin-bottom: var(--space-4);
}

h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  margin-bottom: var(--space-2);
}

p {
  margin-bottom: var(--space-4);
}

p.lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--motion-fast) var(--ease-out);
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

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

.section-alt {
  background-color: var(--color-neutral-100);
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: var(--border-hairline) solid var(--border-color-default);
  z-index: 100;
  transition: padding var(--motion-fast) var(--ease-out);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  fill: var(--color-accent);
}

.nav-links {
  display: flex;
  gap: var(--space-5);
  list-style: none;
}

.nav-links a {
  font-size: var(--fs-label);
  font-weight: var(--fw-label);
  color: var(--color-text-muted);
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-size: var(--fs-label);
  font-weight: var(--fw-label);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--motion-fast) var(--ease-out);
}

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

.btn-primary:hover {
  background-color: #a8360a;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background-color: var(--color-neutral-800);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border: var(--border-regular) solid var(--border-color-strong);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-primary-on);
}

.btn-whatsapp {
  background-color: #25D366;
  color: white;
}

.btn-whatsapp:hover {
  background-color: #128C7E;
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  position: relative;
  background-color: var(--color-primary);
  color: white;
  padding: var(--space-9) 0 var(--space-8);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-7);
  align-items: center;
}

.hero-content h1 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: var(--space-4);
}

.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background-color: rgba(255, 255, 255, 0.1);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  font-size: var(--fs-label);
  border: var(--border-hairline) solid rgba(255, 255, 255, 0.15);
}

.hero-trust-badge svg {
  width: 18px;
  height: 18px;
  fill: #f59e0b; /* Amber star */
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.hero-image-wrapper {
  position: relative;
  height: 450px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: var(--border-regular) solid rgba(255, 255, 255, 0.1);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Feature/Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.service-card {
  background-color: var(--color-surface);
  border: var(--border-hairline) solid var(--border-color-default);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  transition: all var(--motion-base) var(--ease-out);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.service-icon-box {
  width: 48px;
  height: 48px;
  background-color: var(--color-neutral-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--color-accent);
}

.service-icon-box svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Process Section */
.process-timeline {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-5);
}

.process-step {
  position: relative;
  background-color: var(--color-surface);
  border: var(--border-hairline) solid var(--border-color-default);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
}

.process-number {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  color: var(--color-neutral-300);
  font-weight: 800;
  margin-bottom: var(--space-2);
}

/* Reviews / Slider Section */
.reviews-section {
  overflow: hidden;
}

.reviews-track-container {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: var(--space-4) 0;
}

.reviews-track {
  display: flex;
  gap: var(--space-5);
  width: max-content;
  padding: 0 var(--space-5);
}

.review-card {
  width: 380px;
  flex-shrink: 0;
  background-color: var(--color-surface);
  border: var(--border-hairline) solid var(--border-color-default);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.review-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 1px solid var(--border-color-default);
}

.reviewer-name {
  font-size: 1rem;
  font-weight: 700;
}

.review-date {
  font-size: var(--fs-caption);
  color: var(--color-text-muted);
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-3);
}

.star-icon {
  width: 16px;
  height: 16px;
  fill: #f59e0b; /* Amber */
}

.review-text {
  font-size: var(--fs-label);
  color: var(--color-text);
  line-height: 1.5;
  font-style: italic;
}

/* Signature Calculator Section */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-6);
  align-items: center;
  background-color: var(--color-surface);
  border: var(--border-regular) solid var(--border-color-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.calc-group label {
  font-size: var(--fs-label);
  font-weight: var(--fw-label);
  color: var(--color-primary);
}

.calc-slider-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

input[type="range"] {
  flex: 1;
  accent-color: var(--color-accent);
  height: 6px;
  background-color: var(--color-neutral-200);
  border-radius: var(--radius-full);
}

select {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: var(--border-regular) solid var(--border-color-default);
  background-color: white;
  font-family: var(--font-body);
  font-size: 1rem;
}

select:focus {
  border-color: var(--color-accent);
  outline: none;
}

.calc-area-display {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--color-accent);
  min-width: 80px;
  text-align: right;
}

.calc-outputs {
  background-color: var(--color-neutral-900);
  color: white;
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

.calc-outputs h3 {
  color: white;
  margin-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: var(--space-2);
}

.calc-results-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.calc-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-result-label {
  font-size: var(--fs-label);
  color: var(--color-neutral-300);
}

.calc-result-val {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: white;
}

.calc-result-val-accent {
  color: var(--color-accent);
}

/* FAQ Section */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.faq-item {
  background-color: var(--color-surface);
  border: var(--border-hairline) solid var(--border-color-default);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
}

.faq-item summary {
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.faq-item p {
  margin-top: var(--space-3);
  margin-bottom: 0;
  color: var(--color-text-muted);
}

/* Footer & Legal */
footer {
  background-color: var(--color-primary);
  color: var(--color-neutral-400);
  padding: var(--space-7) 0;
  border-top: var(--border-regular) solid var(--color-accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.footer-col h4 {
  color: white;
  margin-bottom: var(--space-4);
}

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

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--fs-caption);
}

/* Floating Demo Badge (Pflicht!) */
.demo-badge {
  position: fixed;
  bottom: var(--space-4);
  right: var(--space-4);
  background-color: var(--color-primary);
  color: white;
  border: var(--border-hairline) solid var(--color-accent);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-caption);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.demo-badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-success);
  border-radius: var(--radius-full);
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* Modals for Impressum & Datenschutz (No-Cookie compliant) */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(28, 25, 22, 0.6);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal:target {
  display: flex;
}

.modal-content {
  background-color: var(--color-surface);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  max-width: 680px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  border: var(--border-regular) solid var(--border-color-strong);
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-size: 1.5rem;
  font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 768px) {
  :root {
    --fs-h1: 2.25rem;
    --fs-h2: 1.75rem;
  }

  .nav-links {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .hero-image-wrapper {
    height: 300px;
  }

  .calc-grid {
    grid-template-columns: 1fr;
  }
}
