/* =================================================================
   CRYPTIC CREST - PLAYFUL DYNAMIC DESIGN SYSTEM
   CSS Reset, Variables, Base Styles, and Component Styles
   ================================================================= */

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

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

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #1A2332;
  background: #F1FAEE;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* =================================================================
   PLAYFUL DYNAMIC COLOR SYSTEM
   ================================================================= */
:root {
  --primary: #FF6B35;
  --primary-dark: #E85D2F;
  --secondary: #FFD23F;
  --accent: #06FFA5;
  --dark: #1A2332;
  --light: #F1FAEE;
  --purple: #9D4EDD;
  --pink: #FF006E;
  --cyan: #00D9FF;
  --orange: #FF9F1C;
  
  --text-dark: #1A2332;
  --text-light: #F1FAEE;
  --text-gray: #5A6C7D;
  
  --shadow-sm: 0 2px 8px rgba(255, 107, 53, 0.15);
  --shadow-md: 0 4px 16px rgba(255, 107, 53, 0.2);
  --shadow-lg: 0 8px 32px rgba(255, 107, 53, 0.25);
  
  --border-radius: 16px;
  --border-radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =================================================================
   TYPOGRAPHY - PLAYFUL FONTS
   ================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800;900&family=Open+Sans:wght@400;600;700&family=Fredoka:wght@500;600;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fredoka', 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--dark);
}

h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
  animation: bounceIn 0.8s ease;
}

h2 {
  font-size: 36px;
  font-weight: 700;
}

h3 {
  font-size: 24px;
  font-weight: 600;
}

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

strong {
  font-weight: 700;
  color: var(--primary);
}

/* =================================================================
   CONTAINER & LAYOUT - FLEXBOX ONLY
   ================================================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* =================================================================
   HEADER & NAVIGATION
   ================================================================= */
header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.logo {
  height: 50px;
  width: auto;
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.1) rotate(5deg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.main-nav a {
  font-weight: 600;
  color: var(--text-light);
  padding: 8px 16px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.main-nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s ease;
  z-index: -1;
}

.main-nav a:hover::before {
  left: 0;
}

.main-nav a:hover {
  transform: translateY(-2px);
  color: var(--text-light);
}

.cta-button {
  background: var(--accent);
  color: var(--dark);
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 3px solid transparent;
}

.cta-button:hover {
  background: var(--text-light);
  transform: scale(1.05) rotate(-2deg);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

/* =================================================================
   MOBILE MENU - HAMBURGER NAVIGATION
   ================================================================= */
.mobile-menu-toggle {
  display: none;
  font-size: 32px;
  background: var(--accent);
  color: var(--dark);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  border: 3px solid var(--primary);
}

.mobile-menu-toggle:hover {
  transform: scale(1.1) rotate(90deg);
  background: var(--secondary);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  z-index: 1999;
  padding: 80px 30px 30px;
  transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: -8px 0 32px rgba(0,0,0,0.3);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 32px;
  color: var(--text-light);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: var(--transition);
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav a {
  color: var(--text-light);
  padding: 16px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  border-left: 4px solid transparent;
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(8px);
  border-left-color: var(--accent);
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .main-nav {
    display: none;
  }
  
  .cta-button {
    display: none;
  }
}

/* =================================================================
   BUTTONS - PLAYFUL STYLE
   ================================================================= */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 3px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--pink) 100%);
  color: var(--text-light);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: var(--shadow-lg);
  animation: wiggle 0.5s ease;
}

@keyframes wiggle {
  0%, 100% { transform: scale(1.05) translateY(-3px) rotate(0deg); }
  25% { transform: scale(1.05) translateY(-3px) rotate(-3deg); }
  75% { transform: scale(1.05) translateY(-3px) rotate(3deg); }
}

.btn-secondary {
  background: var(--text-light);
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--secondary);
  color: var(--dark);
  border-color: var(--secondary);
  transform: scale(1.05) translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* =================================================================
   HERO SECTION - ANIMATED & ENERGETIC
   ================================================================= */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--purple);
  border-radius: 50%;
  top: -100px;
  left: -100px;
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: var(--cyan);
  border-radius: 50%;
  bottom: -50px;
  right: -50px;
  opacity: 0.3;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(30px, 30px) rotate(180deg); }
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.hero h1 {
  color: var(--text-light);
  font-size: 56px;
  margin-bottom: 24px;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 32px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.hero p {
  color: var(--text-light);
  position: relative;
  z-index: 1;
}

.cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
  position: relative;
  z-index: 1;
}

/* Hero variants */
.hero-404 {
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
}

.hero.legal {
  padding: 60px 20px;
  min-height: 300px;
}

.hero.thank-you {
  background: linear-gradient(135deg, var(--accent) 0%, var(--cyan) 100%);
}

.error-content h1 {
  font-size: 120px;
  color: var(--text-light);
  text-shadow: 4px 4px 8px rgba(0,0,0,0.4);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.success-icon {
  width: 100px;
  height: 100px;
  background: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: var(--accent);
  margin: 0 auto 24px;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* =================================================================
   SECTIONS - CONSISTENT SPACING
   ================================================================= */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

section h2 {
  text-align: center;
  margin-bottom: 48px;
  color: var(--dark);
  position: relative;
  display: inline-block;
  width: 100%;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 2px;
}

/* =================================================================
   CARD GRIDS - FLEXBOX LAYOUTS
   ================================================================= */
.benefit-grid,
.service-grid,
.category-grid,
.features-grid,
.strategy-grid,
.recovery-grid,
.values-grid,
.stats-grid,
.contact-grid,
.link-grid,
.location-grid,
.process-steps,
.blog-grid,
.suggestions-grid,
.testimonial-grid,
.mental-techniques {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 32px;
}

/* Card Base Styles */
.benefit-card,
.service-card,
.category-card,
.feature-card,
.strategy-card,
.recovery-card,
.value-card,
.stat-card,
.contact-card,
.link-card,
.location-info,
.step,
.blog-card,
.suggestion-card,
.testimonial-card,
.technique-card,
.service-card-detailed {
  background: var(--text-light);
  padding: 32px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  flex: 1 1 280px;
  max-width: 350px;
  position: relative;
  border: 3px solid transparent;
  margin-bottom: 20px;
}

.benefit-card:hover,
.service-card:hover,
.category-card:hover,
.feature-card:hover,
.strategy-card:hover,
.recovery-card:hover,
.value-card:hover,
.contact-card:hover,
.link-card:hover,
.blog-card:hover,
.suggestion-card:hover,
.technique-card:hover,
.service-card-detailed:hover {
  transform: translateY(-8px) rotate(2deg);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

/* Service Cards with Pricing */
.service-card,
.service-card-detailed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-card h3,
.service-card-detailed h3 {
  color: var(--primary);
  font-size: 24px;
  margin-bottom: 12px;
}

.price {
  font-size: 24px;
  font-weight: 700;
  color: var(--secondary);
  margin-top: auto;
  padding-top: 16px;
  border-top: 2px solid var(--accent);
}

.service-card-detailed.featured {
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  color: var(--text-light);
  border-color: var(--secondary);
  flex: 1 1 100%;
  max-width: 100%;
}

.service-card-detailed.featured h3,
.service-card-detailed.featured p {
  color: var(--text-light);
}

.service-card-detailed.featured .price {
  color: var(--accent);
  border-top-color: var(--accent);
}

.savings-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--dark);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  margin-top: 8px;
}

/* Testimonial Cards */
.testimonial-card {
  background: var(--text-light);
  padding: 32px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border-left: 6px solid var(--accent);
  font-style: italic;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-card p {
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.testimonial-card strong {
  color: var(--primary);
  font-style: normal;
  font-weight: 700;
  display: block;
  margin-top: auto;
}

/* Stats Cards */
.stat-card {
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--text-light);
  padding: 40px 32px;
}

.stat-number {
  display: block;
  font-size: 48px;
  font-weight: 800;
  font-family: 'Fredoka', sans-serif;
  margin-bottom: 8px;
  animation: countUp 1s ease;
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.stat-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

/* Process Steps */
.step {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  font-family: 'Fredoka', sans-serif;
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
}

/* Blog Cards */
.blog-card {
  cursor: pointer;
}

.blog-card.featured {
  flex: 1 1 100%;
  max-width: 100%;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  color: var(--text-light);
}

.blog-card.featured h2 {
  color: var(--text-light);
}

.blog-card.featured p {
  color: var(--text-light);
}

.category {
  display: inline-block;
  background: var(--accent);
  color: var(--dark);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.post-meta {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: var(--text-gray);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid var(--accent);
}

.blog-card.featured .post-meta {
  color: var(--text-light);
  border-top-color: rgba(255,255,255,0.3);
}

/* =================================================================
   LISTS - PLAYFUL STYLE
   ================================================================= */
.principles-list,
.nutrition-list,
.next-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 32px auto;
}

.principles-list li,
.nutrition-list li,
.next-steps li {
  background: var(--text-light);
  padding: 20px 24px;
  border-radius: var(--border-radius);
  border-left: 6px solid var(--primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 16px;
}

.principles-list li::before,
.nutrition-list li::before,
.next-steps li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  background: var(--accent);
  color: var(--dark);
  border-radius: 50%;
  font-weight: 700;
  font-size: 18px;
}

.principles-list li:hover,
.nutrition-list li:hover,
.next-steps li:hover {
  transform: translateX(8px);
  border-left-color: var(--secondary);
  box-shadow: var(--shadow-md);
}

/* =================================================================
   SPECIAL SECTIONS
   ================================================================= */
.cta-section,
.cta-final {
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  padding: 80px 20px;
  text-align: center;
  border-radius: var(--border-radius-lg);
  margin: 60px 20px;
  box-shadow: var(--shadow-lg);
}

.cta-section h2,
.cta-final h2 {
  color: var(--text-light);
  margin-bottom: 16px;
}

.cta-section p,
.cta-final p {
  color: var(--text-light);
  font-size: 18px;
  margin-bottom: 32px;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 0;
}

.milestone {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--text-light);
  padding: 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border-left: 6px solid var(--primary);
  transition: var(--transition);
}

.milestone:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.year {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Fredoka', sans-serif;
  min-width: 80px;
}

/* Mission/Vision */
.mission-vision {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 48px;
}

.mission,
.vision {
  flex: 1 1 300px;
  background: var(--text-light);
  padding: 32px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border-top: 6px solid var(--primary);
}

.vision {
  border-top-color: var(--secondary);
}

/* Cookie Categories */
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 32px 0;
}

.cookie-category {
  background: var(--text-light);
  padding: 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border-left: 6px solid var(--accent);
}

/* DSGVO Rights Grid */
.rights-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 32px 0;
}

.right-card {
  flex: 1 1 300px;
  background: var(--text-light);
  padding: 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--primary);
}

/* FAQ Section */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 32px auto;
}

.faq-item {
  background: var(--text-light);
  padding: 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.faq-item h3 {
  color: var(--primary);
  margin-bottom: 12px;
}

/* =================================================================
   CONTACT FORM
   ================================================================= */
.form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: var(--text-light);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-info label {
  font-weight: 600;
  color: var(--dark);
  font-size: 16px;
  display: block;
  padding: 12px 0;
  border-bottom: 2px solid var(--accent);
}

.consent-text {
  font-size: 14px;
  color: var(--text-gray);
  padding: 16px;
  background: rgba(255, 107, 53, 0.1);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary);
}

.consent-text a {
  color: var(--primary);
  text-decoration: underline;
}

/* =================================================================
   FOOTER
   ================================================================= */
footer {
  background: var(--dark);
  color: var(--text-light);
  padding: 60px 20px 20px;
  margin-top: 80px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-column {
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-column h3 {
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 16px;
}

.footer-column a {
  color: var(--text-light);
  padding: 8px 0;
  transition: var(--transition);
  display: block;
}

.footer-column a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-column p {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 14px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding: 20px 0;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.footer-legal a {
  color: var(--text-light);
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
}

.footer-legal a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
}

.copyright {
  text-align: center;
  color: var(--text-gray);
  font-size: 14px;
  margin-top: 20px;
}

/* =================================================================
   COOKIE CONSENT BANNER
   ================================================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--dark) 0%, var(--purple) 100%);
  color: var(--text-light);
  padding: 24px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  z-index: 1998;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

.cookie-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner p {
  flex: 1 1 300px;
  margin: 0;
  color: var(--text-light);
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-buttons button {
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 700;
  transition: var(--transition);
  font-size: 14px;
  border: 2px solid transparent;
}

.cookie-accept-all {
  background: var(--accent);
  color: var(--dark);
}

.cookie-accept-all:hover {
  background: var(--secondary);
  transform: scale(1.05);
}

.cookie-reject-all {
  background: transparent;
  color: var(--text-light);
  border-color: var(--text-light);
}

.cookie-reject-all:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cookie-settings {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.cookie-settings:hover {
  background: var(--accent);
  color: var(--dark);
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal.active {
  display: flex;
}

.cookie-modal-content {
  background: var(--text-light);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-modal h2 {
  color: var(--primary);
  margin-bottom: 24px;
}

.cookie-preference {
  padding: 20px;
  background: rgba(255, 107, 53, 0.05);
  border-radius: var(--border-radius);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-preference h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.cookie-preference p {
  font-size: 14px;
  color: var(--text-gray);
  margin: 0;
}

.toggle-switch {
  width: 60px;
  height: 30px;
  background: #ccc;
  border-radius: 15px;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-switch.active {
  background: var(--accent);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: var(--transition);
}

.toggle-switch.active::after {
  left: 33px;
}

.toggle-switch.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-modal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* =================================================================
   LEGAL CONTENT PAGES
   ================================================================= */
.legal-content {
  padding: 40px 20px;
}

.legal-content .container {
  max-width: 900px;
}

.legal-content h2 {
  color: var(--primary);
  text-align: left;
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-content h2::after {
  display: none;
}

.legal-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
}

.acceptance-notice {
  background: rgba(255, 107, 53, 0.1);
  padding: 20px;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary);
  margin-top: 32px;
  font-weight: 600;
}

/* =================================================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ================================================================= */
@media (max-width: 768px) {
  h1 {
    font-size: 36px;
  }
  
  h2 {
    font-size: 28px;
  }
  
  h3 {
    font-size: 20px;
  }
  
  .hero {
    padding: 60px 20px;
    min-height: 400px;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .error-content h1 {
    font-size: 80px;
  }
  
  section {
    padding: 32px 20px;
    margin-bottom: 40px;
  }
  
  .benefit-grid,
  .service-grid,
  .category-grid,
  .features-grid,
  .strategy-grid,
  .recovery-grid,
  .values-grid,
  .stats-grid,
  .contact-grid,
  .link-grid,
  .location-grid,
  .process-steps,
  .blog-grid,
  .suggestions-grid,
  .testimonial-grid,
  .mental-techniques {
    gap: 16px;
  }
  
  .benefit-card,
  .service-card,
  .category-card,
  .feature-card,
  .strategy-card,
  .recovery-card,
  .value-card,
  .stat-card,
  .contact-card,
  .link-card,
  .location-info,
  .step,
  .blog-card,
  .suggestion-card,
  .testimonial-card,
  .technique-card,
  .service-card-detailed {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 24px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 32px;
  }
  
  .footer-column {
    flex: 1 1 100%;
  }
  
  .cta-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
  
  .cookie-banner .container {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-buttons {
    width: 100%;
    flex-direction: column;
  }
  
  .cookie-buttons button {
    width: 100%;
  }
  
  .form-wrapper {
    padding: 24px;
  }
  
  .timeline {
    padding: 16px 0;
  }
  
  .milestone {
    flex-direction: column;
    text-align: center;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .benefit-card,
  .service-card,
  .category-card,
  .feature-card,
  .strategy-card,
  .recovery-card,
  .value-card,
  .contact-card,
  .link-card,
  .suggestion-card,
  .testimonial-card,
  .technique-card {
    flex: 1 1 calc(50% - 24px);
    max-width: calc(50% - 24px);
  }
}

/* =================================================================
   ANIMATIONS & UTILITIES
   ================================================================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  header,
  footer,
  .mobile-menu-toggle,
  .mobile-menu,
  .cookie-banner,
  .cta-button {
    display: none;
  }
}

/* =================================================================
   END OF PLAYFUL DYNAMIC CSS
   ================================================================= */