/* =============================================
   CSS Design System - German Hearing Aid Website
   Modern Minimalism Premium (Healthcare-Adapted)
   ============================================= */

/* CSS Custom Properties - Design Tokens */
:root {
  /* Colors - Medical Blue-Teal Theme */
  --color-primary-50: #E6F7F7;
  --color-primary-100: #B3E5E6;
  --color-primary-500: #0891B2;
  --color-primary-600: #0E7490;
  --color-primary-900: #164E63;
  
  /* Neutral Colors */
  --color-neutral-50: #FAFAFA;
  --color-neutral-100: #F5F5F5;
  --color-neutral-200: #E5E5E5;
  --color-neutral-400: #A3A3A3;
  --color-neutral-700: #404040;
  --color-neutral-900: #171717;
  
  /* Semantic Colors */
  --color-success-500: #10B981;
  --color-success-600: #059669;
  --color-warning-500: #F59E0B;
  --color-error-600: #DC2626;
  
  /* Background Layers */
  --bg-page: #FAFAFA;
  --bg-surface: #FFFFFF;
  --bg-elevated: #FFFFFF;
  
  /* Typography */
  --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  
  /* Font Sizes */
  --text-hero-title: clamp(2.5rem, 5vw, 4.5rem);
  --text-h2-title: clamp(2rem, 4vw, 3rem);
  --text-h3-subtitle: clamp(1.5rem, 3vw, 2rem);
  --text-body-large: 1.25rem;
  --text-body: 1.125rem;
  --text-body-small: 1rem;
  --text-caption: 0.875rem;
  
  /* Line Heights */
  --line-height-tight: 1.1;
  --line-height-snug: 1.3;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;
  --line-height-loose: 1.7;
  
  /* Letter Spacing */
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.01em;
  
  /* Spacing System */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  --spacing-4xl: 8rem;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-focus: 0 0 0 3px rgba(8, 145, 178, 0.15);
  --shadow-modal: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
  
  /* Animation */
  --duration-fast: 200ms;
  --duration-normal: 300ms;
  --duration-slow: 400ms;
  --easing-out: cubic-bezier(0, 0, 0.2, 1);
  --easing-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Breakpoints */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  
  /* Container */
  --container-max-width: 1200px;
  --container-padding: 2rem;
}

/* =============================================
   Reset and Base Styles
   ============================================= */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family-primary);
  font-size: var(--text-body);
  line-height: var(--line-height-relaxed);
  color: var(--color-neutral-900);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =============================================
   Typography
   ============================================= */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: var(--line-height-tight);
  color: var(--color-neutral-900);
  margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--text-hero-title); }
h2 { font-size: var(--text-h2-title); }
h3 { font-size: var(--text-h3-subtitle); }

p {
  margin-bottom: var(--spacing-md);
  line-height: var(--line-height-relaxed);
}

a {
  color: var(--color-primary-500);
  text-decoration: none;
  transition: color var(--duration-normal) var(--easing-out);
}

a:hover {
  color: var(--color-primary-600);
}

/* =============================================
   Layout Components
   ============================================= */

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

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-4xl);
}

.section-header h2 {
  margin-bottom: var(--spacing-md);
}

.section-header p {
  font-size: var(--text-body-large);
  color: var(--color-neutral-700);
  max-width: 600px;
  margin: 0 auto;
}

/* =============================================
   Button Components
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  height: 3rem;
  padding: 0 var(--spacing-lg);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-family-primary);
  font-size: var(--text-body-small);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all var(--duration-fast) var(--easing-out);
  text-decoration: none;
  white-space: nowrap;
  min-width: 120px;
}

.btn-large {
  height: 3.5rem;
  padding: 0 var(--spacing-xl);
  font-size: var(--text-body);
}

.btn-primary {
  background-color: var(--color-primary-500);
  color: white;
  box-shadow: var(--shadow-card);
}

.btn-primary:hover {
  background-color: var(--color-primary-600);
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-card-hover);
  color: white;
}

.btn-primary:active {
  transform: translateY(0) scale(1);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-neutral-700);
  border: 2px solid var(--color-neutral-200);
}

.btn-secondary:hover {
  background-color: var(--color-neutral-50);
  border-color: var(--color-neutral-400);
  color: var(--color-neutral-900);
}

.btn-link {
  background-color: transparent;
  color: var(--color-primary-500);
  padding: 0;
  height: auto;
  min-width: auto;
  font-weight: 500;
}

.btn-link:hover {
  color: var(--color-primary-600);
  text-decoration: underline;
}

.btn:focus {
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* =============================================
   Navigation
   ============================================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--color-neutral-200);
  transition: box-shadow var(--duration-normal) var(--easing-out);
  height: 5rem;
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  box-shadow: var(--shadow-card);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
}

.nav-brand h1 {
  font-size: 1.5rem;
  color: var(--color-primary-500);
  margin: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.nav-links a {
  font-weight: 500;
  color: var(--color-neutral-700);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: all var(--duration-normal) var(--easing-out);
}

.nav-links a:hover {
  color: var(--color-primary-500);
  background-color: var(--color-primary-50);
}

/* Mobile Navigation */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  
  .nav-brand h1 {
    font-size: 1.25rem;
  }
}

/* =============================================
   Hero Section
   ============================================= */

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: var(--spacing-4xl) 0;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.8) 0%, rgba(14, 116, 144, 0.9) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  color: white;
  text-align: left;
}

.hero-title {
  color: white;
  margin-bottom: var(--spacing-lg);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: var(--text-body-large);
  line-height: var(--line-height-loose);
  margin-bottom: var(--spacing-xl);
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-weight: 600;
  opacity: 0.95;
}

.hero-feature svg {
  color: var(--color-success-500);
}

/* Mobile Hero */
@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
    text-align: center;
    padding: var(--spacing-3xl) 0;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-features {
    justify-content: center;
  }
}

/* =============================================
   Benefits Section
   ============================================= */

.benefits-section {
  padding: var(--spacing-4xl) 0;
  background-color: var(--bg-surface);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
}

.benefit-card {
  text-align: center;
  padding: var(--spacing-xl);
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all var(--duration-normal) var(--easing-out);
  border: 1px solid var(--color-neutral-200);
}

.benefit-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-card-hover);
}

.benefit-icon {
  color: var(--color-primary-500);
  margin-bottom: var(--spacing-md);
  display: flex;
  justify-content: center;
}

.benefit-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-neutral-900);
}

.benefit-card p {
  color: var(--color-neutral-700);
  line-height: var(--line-height-relaxed);
}

/* =============================================
   Technology Section
   ============================================= */

.technology-section {
  padding: var(--spacing-4xl) 0;
  background-color: var(--color-neutral-50);
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-4xl);
  align-items: center;
  margin-bottom: var(--spacing-4xl);
}

.feature-block:nth-child(even) {
  direction: rtl;
}

.feature-block:nth-child(even) .feature-content {
  direction: ltr;
}

.feature-content h3 {
  color: var(--color-neutral-900);
  margin-bottom: var(--spacing-md);
}

.feature-content p {
  color: var(--color-neutral-700);
  margin-bottom: var(--spacing-lg);
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  color: var(--color-neutral-700);
}

.feature-list li::before {
  content: "✓";
  color: var(--color-success-600);
  font-weight: bold;
  margin-top: 2px;
}

.feature-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* Mobile Technology */
@media (max-width: 768px) {
  .feature-block {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    text-align: center;
  }
  
  .feature-block:nth-child(even) {
    direction: ltr;
  }
}

/* =============================================
   Process Section
   ============================================= */

.process-section {
  padding: var(--spacing-4xl) 0;
  background-color: var(--bg-surface);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-xl);
}

.process-step {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-neutral-200);
  transition: all var(--duration-normal) var(--easing-out);
  position: relative;
}

.process-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.step-number {
  position: absolute;
  top: -20px;
  left: var(--spacing-xl);
  width: 40px;
  height: 40px;
  background-color: var(--color-primary-500);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: var(--shadow-card);
}

.step-content {
  margin-top: var(--spacing-lg);
}

.step-content h3 {
  color: var(--color-neutral-900);
  margin-bottom: var(--spacing-md);
}

.step-content p {
  color: var(--color-neutral-700);
  margin-bottom: var(--spacing-lg);
}

.step-content ul {
  list-style: none;
  padding: 0;
}

.step-content li {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  color: var(--color-neutral-700);
  font-size: var(--text-body-small);
}

.step-content li::before {
  content: "•";
  color: var(--color-primary-500);
  font-weight: bold;
  margin-top: 2px;
}

/* =============================================
   Testimonials Section
   ============================================= */

.testimonials-section {
  padding: var(--spacing-4xl) 0;
  background-color: var(--color-neutral-50);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-3xl);
}

.testimonial-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-neutral-200);
  transition: all var(--duration-normal) var(--easing-out);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.stars {
  margin-bottom: var(--spacing-md);
}

.star {
  color: var(--color-neutral-400);
  font-size: 1.125rem;
  margin-right: 2px;
}

.star.filled {
  color: var(--color-warning-500);
}

.testimonial-content blockquote {
  font-style: italic;
  color: var(--color-neutral-700);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-lg);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.author-avatar {
  width: 48px;
  height: 48px;
  background-color: var(--color-primary-100);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--color-primary-600);
}

.author-info h4 {
  font-size: var(--text-body-small);
  margin-bottom: 2px;
  color: var(--color-neutral-900);
}

.author-info p {
  font-size: var(--text-caption);
  color: var(--color-neutral-400);
  margin: 0;
}

.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
}

.trust-badges img {
  max-height: 60px;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: opacity var(--duration-normal) var(--easing-out);
}

.trust-badges img:hover {
  opacity: 1;
}

/* =============================================
   FAQ Section
   ============================================= */

.faq-section {
  padding: var(--spacing-4xl) 0;
  background-color: var(--bg-surface);
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-neutral-200);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: var(--spacing-lg);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-neutral-900);
  transition: background-color var(--duration-normal) var(--easing-out);
}

.faq-question:hover {
  background-color: var(--color-neutral-50);
}

.faq-icon {
  transition: transform var(--duration-normal) var(--easing-out);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-normal) var(--easing-out), opacity var(--duration-normal) var(--easing-out);
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  opacity: 1;
}

.faq-answer p {
  padding: 0 var(--spacing-lg) var(--spacing-lg);
  color: var(--color-neutral-700);
  line-height: var(--line-height-relaxed);
  margin: 0;
  transform: translateY(-10px);
  transition: transform var(--duration-normal) var(--easing-out);
}

.faq-item.active .faq-answer p {
  transform: translateY(0);
}

/* =============================================
   Contact Section
   ============================================= */

.contact-section {
  padding: var(--spacing-4xl) 0;
  background-color: var(--color-neutral-50);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-4xl);
  align-items: start;
}

.contact-info h2 {
  margin-bottom: var(--spacing-md);
}

.contact-info p {
  color: var(--color-neutral-700);
  margin-bottom: var(--spacing-lg);
  line-height: var(--line-height-relaxed);
}

.contact-benefits {
  margin-bottom: var(--spacing-xl);
}

.benefit {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  color: var(--color-neutral-700);
}

.benefit svg {
  color: var(--color-success-600);
  flex-shrink: 0;
}

.contact-image {
  margin-top: var(--spacing-lg);
}

.contact-image img {
  max-width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* Form Styles */
.contact-form-container {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-neutral-200);
}

.contact-form h3 {
  margin-bottom: var(--spacing-lg);
  text-align: center;
  color: var(--color-neutral-900);
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  display: block;
  font-weight: 500;
  color: var(--color-neutral-700);
  margin-bottom: var(--spacing-xs);
  font-size: var(--text-body-small);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--spacing-md);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  font-family: var(--font-family-primary);
  font-size: var(--text-body);
  background-color: var(--bg-surface);
  transition: border-color var(--duration-fast) var(--easing-out);
  min-height: 3rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary-500);
  box-shadow: var(--shadow-focus);
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--color-error-600);
}

.error-message {
  display: block;
  color: var(--color-error-600);
  font-size: var(--text-caption);
  margin-top: var(--spacing-xs);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  cursor: pointer;
  font-size: var(--text-body-small);
  line-height: var(--line-height-relaxed);
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  min-height: auto;
  margin: 0;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-neutral-200);
  border-radius: var(--radius-sm);
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all var(--duration-fast) var(--easing-out);
}

.checkbox-label input:checked + .checkmark {
  background-color: var(--color-primary-500);
  border-color: var(--color-primary-500);
}

.checkbox-label input:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
}

.form-note {
  font-size: var(--text-caption);
  color: var(--color-neutral-400);
  text-align: center;
  margin-top: var(--spacing-md);
  margin-bottom: 0;
}

/* Mobile Contact */
@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  .contact-form-container {
    padding: var(--spacing-lg);
  }
}

/* =============================================
   Footer
   ============================================= */

.footer {
  background-color: var(--color-neutral-900);
  color: var(--color-neutral-200);
  padding: var(--spacing-4xl) 0 var(--spacing-xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h3,
.footer-section h4 {
  color: white;
  margin-bottom: var(--spacing-md);
}

.footer-section p {
  color: var(--color-neutral-400);
  margin-bottom: var(--spacing-md);
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-section a {
  color: var(--color-neutral-400);
  transition: color var(--duration-normal) var(--easing-out);
}

.footer-section a:hover {
  color: var(--color-primary-100);
}

.footer-contact p {
  margin-bottom: var(--spacing-sm);
  font-size: var(--text-body-small);
}

.footer-contact strong {
  color: white;
}

.footer-bottom {
  border-top: 1px solid var(--color-neutral-700);
  padding-top: var(--spacing-lg);
  text-align: center;
  color: var(--color-neutral-400);
  font-size: var(--text-caption);
}

.footer-bottom p {
  margin-bottom: var(--spacing-sm);
}

/* =============================================
   Cookie Banner
   ============================================= */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--color-neutral-200);
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform var(--duration-slow) var(--easing-out);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--spacing-lg) var(--container-padding);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--spacing-lg);
  align-items: center;
}

.cookie-text h3 {
  color: var(--color-neutral-900);
  margin-bottom: var(--spacing-xs);
  font-size: var(--text-body);
}

.cookie-text p {
  color: var(--color-neutral-700);
  margin: 0;
  font-size: var(--text-body-small);
  line-height: var(--line-height-relaxed);
}

.cookie-actions {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.cookie-actions .btn {
  height: 2.5rem;
  padding: 0 var(--spacing-md);
  font-size: var(--text-body-small);
}

/* Mobile Cookie Banner */
@media (max-width: 768px) {
  .cookie-banner-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    text-align: center;
  }
  
  .cookie-actions {
    justify-content: center;
  }
}

/* =============================================
   Modal System
   ============================================= */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--easing-out);
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.modal-content {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform var(--duration-normal) var(--easing-out);
}

.modal-large {
  max-width: 900px;
}

.modal.show .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--color-neutral-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--color-neutral-900);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-neutral-400);
  cursor: pointer;
  padding: var(--spacing-xs);
  transition: color var(--duration-fast) var(--easing-out);
}

.modal-close:hover {
  color: var(--color-neutral-700);
}

.modal-body {
  padding: var(--spacing-lg);
}

.modal-footer {
  padding: var(--spacing-lg);
  border-top: 1px solid var(--color-neutral-200);
  text-align: right;
}

/* Cookie Settings Modal */
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-lg) 0;
  border-bottom: 1px solid var(--color-neutral-200);
}

.cookie-category:last-child {
  border-bottom: none;
}

.cookie-category h3 {
  margin-bottom: var(--spacing-xs);
  font-size: 1.125rem;
}

.cookie-category p {
  color: var(--color-neutral-700);
  margin: 0;
  font-size: var(--text-body-small);
}

/* Switch Component */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-neutral-200);
  transition: var(--duration-normal) var(--easing-out);
  border-radius: var(--radius-full);
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: var(--duration-normal) var(--easing-out);
  border-radius: var(--radius-full);
}

input:checked + .slider {
  background-color: var(--color-primary-500);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

input:disabled + .slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Legal Content */
.legal-content {
  color: var(--color-neutral-700);
  line-height: var(--line-height-relaxed);
}

.legal-content h3 {
  color: var(--color-neutral-900);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.legal-content h4 {
  color: var(--color-neutral-900);
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.legal-content ul,
.legal-content ol {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-lg);
}

.legal-content li {
  margin-bottom: var(--spacing-sm);
}

.legal-content p {
  margin-bottom: var(--spacing-md);
}

/* =============================================
   Form Validation
   ============================================= */

.form-group input:invalid {
  border-color: var(--color-error-600);
}

.form-group input:valid {
  border-color: var(--color-success-600);
}

.error-message {
  display: none;
  color: var(--color-error-600);
  font-size: var(--text-caption);
  margin-top: var(--spacing-xs);
}

.form-group.has-error .error-message {
  display: block;
}

/* =============================================
   Accessibility
   ============================================= */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus Management */
button:focus,
a:focus,
input:focus,
textarea:focus,
[tabindex]:focus {
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =============================================
   Responsive Utilities
   ============================================= */

/* Hide on mobile */
@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}

/* Hide on desktop */
@media (min-width: 768px) {
  .hide-desktop {
    display: none !important;
  }
}

/* =============================================
   Print Styles
   ============================================= */

@media print {
  .navbar,
  .cookie-banner,
  .modal,
  .btn,
  .hero-actions {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
  }
  
  .hero {
    page-break-after: always;
  }
  
  .section-header,
  h1, h2, h3 {
    page-break-after: avoid;
  }
}
