/*
  Sandrine Schnick – Ökologische Baubegleitung & Baumkontrollen
  Professionelles, modernes Design für maximale Glaubwürdigkeit
*/

/* Professional Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* Design System */
:root {
  --container: 1280px;
  --content-width: 65ch;

  /* Color System - Professional Nature Theme */
  --bg-primary: #fafcfa;
  --bg-secondary: #f4f7f4;
  --bg-accent: #ffffff;
  
  --text-primary: #1a261d;
  --text-secondary: #4a5d4f;
  --text-muted: #6b7c70;
  --text-light: #8a9b8f;
  
  --brand-primary: #2d5a3d;    /* Deep Forest Green */
  --brand-secondary: #4a7c59;  /* Medium Green */
  --brand-accent: #7ba05b;     /* Fresh Green */
  --brand-light: #e8f2ea;     /* Light Green Tint */
  
  --warning: #d97706;
  --success: #059669;
  --error: #dc2626;
  
  /* Border & Shadows */
  --border-subtle: #e1e8e3;
  --border-default: #d1ddd4;
  --border-strong: #a8b8ad;
  
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Spacing & Layout */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --header-height: 70px;
  --section-padding: clamp(4rem, 8vw, 8rem);
  --content-gap: clamp(1.5rem, 3vw, 2.5rem);
  
  /* Typography Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  
  /* Animation */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Website always in Day Mode - Dark Mode removed */

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

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  color-scheme: light only;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: light only;
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 0.5em;
}

h1 {
  font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl));
  font-weight: 700;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 600;
}

h3 {
  font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
  font-weight: 600;
}

h4 {
  font-size: var(--text-xl);
  font-weight: 500;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: var(--content-width);
}

.lead {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 400;
}

/* Professional Links */
a {
  color: var(--brand-primary);
  text-decoration: none;
  position: relative;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-secondary);
}

a:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Layout Utilities */
.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
  padding-inline: 1rem;
}

.section {
  padding-block: var(--section-padding);
}

.grid {
  display: grid;
  gap: var(--content-gap);
}

.flex {
  display: flex;
  gap: var(--content-gap);
}

.stack > * + * {
  margin-top: var(--content-gap);
}

/* Accessibility */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 6px;
  background: var(--brand-primary);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  z-index: 1000;
  transition: top var(--transition-fast);
  opacity: 0;
  pointer-events: none;
}

.skip-link:focus {
  top: 6px;
  opacity: 1;
  pointer-events: auto;
}

/* Professional Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 252, 250, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(250, 252, 250, 0.95);
  box-shadow: var(--shadow-sm);
}

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

/* Sophisticated Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--text-primary);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.logo:hover {
  opacity: 0.8;
}

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

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-sub {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-muted);
  display: block;
}

/* Mobile Header Adjustments */
@media (max-width: 767px) {
  .header-inner {
    align-items: center;
    min-height: var(--header-height);
    padding: 0.5rem 0;
  }
  
  .logo {
    flex: 1;
    align-items: center;
    gap: 0.75rem;
  }
  
  .logo-text {
    line-height: 1.3;
  }
  
  .logo-text span:first-child {
    font-size: 1.1rem;
  }
  
  /* Mobile: Nur "Ökologische Baubegleitung" anzeigen */
  .logo-sub {
    font-size: 0;
    margin-top: 1px;
  }
  
  .logo-sub::before {
    content: "Ökologische Baubegleitung";
    font-size: 0.8rem;
    color: var(--text-muted);
  }
}

@media (min-width: 768px) {
  .logo-sub {
    display: block;
  }
}

/* Professional Navigation */
.site-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  position: relative;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.site-nav a:hover {
  color: var(--brand-primary);
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-primary);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  color: white !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-lg);
  font-weight: 500;
  font-size: var(--text-sm);
  white-space: nowrap;
  transition: all var(--transition-fast);
  text-decoration: none !important;
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(45, 90, 61, 0.2);
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-primary) 100%);
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45, 90, 61, 0.3);
}

.nav-cta:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

/* Desktop Navigation */

/* Desktop Navigation - Keep as is */

@media (min-width: 768px) {
  .site-nav {
    display: flex !important;
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    flex-direction: row !important;
    align-items: center;
    gap: 2rem;
    max-height: none !important;
    overflow: visible !important;
  }
  
  .site-nav ul {
    display: flex !important;
    flex-direction: row !important;
    gap: 2rem !important;
    margin: 0 !important;
    border: none !important;
  }

  .site-nav li {
    border: none !important;
  }

  .site-nav a {
    padding: 0.5rem 0 !important;
    border: none !important;
    background: none !important;
    font-size: var(--text-base) !important;
    min-height: auto !important;
    border-radius: 0 !important;
    transform: none !important;
  }

  .site-nav .nav-cta {
    display: inline-flex !important;
    width: auto !important;
    text-align: left !important;
    padding: 0.675rem 1.5rem !important;
    margin-left: 1rem;
    border-radius: var(--radius-lg) !important;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%) !important;
    color: white !important;
    border: 2px solid transparent !important;
    box-shadow: 0 2px 8px rgba(45, 90, 61, 0.2) !important;
  }

  .site-nav .nav-cta:hover {
    background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-primary) 100%) !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(45, 90, 61, 0.3) !important;
  }
}
  
  .site-nav.mobile ul {
    flex-direction: row;
    margin-bottom: 0;
}

/* Professional Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-weight: 600;
  font-size: var(--text-base);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

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

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn--secondary {
  background: var(--bg-accent);
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
}

.btn--secondary:hover {
  background: var(--brand-primary);
  color: white;
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-default);
}

.btn--outline:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--brand-light);
}

.btn--large {
  padding: 1.125rem 2.5rem;
  font-size: var(--text-lg);
}

.btn--small {
  padding: 0.625rem 1.25rem;
  font-size: var(--text-sm);
}

/* Fullscreen Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(45, 90, 61, 0.8) 0%,
    rgba(45, 90, 61, 0.6) 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: 2rem;
}

.hero-content {
  color: white;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  color: white;
  background: none;
  -webkit-text-fill-color: white;
}

.hero-lead {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.hero .btn {
  min-width: 200px;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  flex: 0 0 auto;
}

.hero .btn--primary {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  border: 2px solid transparent;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero .btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.hero .btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.hero .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* Professional About Section */
.about {
  background: var(--bg-accent);
}

/* Eyecatcher text styling */
.about-eyecatcher {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  position: relative;
}

.about-eyecatcher::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 3rem;
  height: 2px;
  background: var(--brand-secondary);
  border-radius: 1px;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.about-content .lead {
  margin-bottom: 2rem;
}

.credentials {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.credential-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--brand-primary);
}

.credential-icon {
  width: 24px;
  height: 24px;
  color: var(--brand-primary);
  flex-shrink: 0;
}

.credential-text {
  font-weight: 500;
  color: var(--text-primary);
}

.about-image {
  position: relative;
  width: fit-content;
  max-width: 423px;
  margin: -1rem auto 0 auto;
}

.about-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  /* Asymmetric border */
  border: 8px solid var(--bg-primary);
  border-top: 12px solid var(--brand-primary);
  border-right: 4px solid var(--brand-light);
  border-bottom: 6px solid var(--brand-secondary);
  border-left: 10px solid var(--bg-primary);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(45, 90, 61, 0.15);
  transition: 
    transform 0.4s cubic-bezier(0.2, 0, 0.38, 0.9),
    box-shadow 0.4s cubic-bezier(0.2, 0, 0.38, 0.9),
    border-color 0.4s cubic-bezier(0.2, 0, 0.38, 0.9);
}

.about-image:hover img {
  transform: translateY(-8px) rotate(1deg);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 8px 20px rgba(45, 90, 61, 0.25);
  border-top-color: var(--brand-secondary);
  border-bottom-color: var(--brand-primary);
}

@media (min-width: 768px) {
  .about-inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* Detailed Services Section with Montserrat */
.detailed-services-section {
  background: var(--bg-secondary);
  padding: 6rem 0;
}

/* === CLEAN SERVICE DETAIL CARDS === */
.detailed-services {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.service-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  
  /* Color variables for scroll effect */
  --card-accent: 45, 90, 61;
  --card-intensity: 0;
  
  /* Simple, consistent transition */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  
  /* Base state */
  transform: translateY(0);
  opacity: 1;
}

/* Color accent overlay that responds to scroll */
.service-detail::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(45, 90, 61, 0.05);
  border: 1px solid rgba(45, 90, 61, 0.15);
  border-radius: inherit;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 0;
  opacity: 0;
}

/* Classes that JavaScript will add/remove */
.service-detail.intensity-low::before {
  opacity: 0.3;
  background: rgba(45, 90, 61, 0.08);
  border: 1px solid rgba(45, 90, 61, 0.2);
}

.service-detail.intensity-medium::before {
  opacity: 0.6;
  background: rgba(45, 90, 61, 0.12);
  border: 1px solid rgba(45, 90, 61, 0.3);
}

.service-detail.intensity-high::before {
  opacity: 1;
  background: rgba(45, 90, 61, 0.18);
  border: 1px solid rgba(45, 90, 61, 0.4);
}

/* Remove test CSS */

/* Ensure content stays above overlay */
.service-detail > * {
  position: relative;
  z-index: 1;
}

/* Simple, consistent hover for ALL cards - only ONE effect */
.service-detail:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(45, 90, 61, 0.15);
}

.service-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.service-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.service-detail:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.service-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.75rem;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.service-content p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

.service-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-content li {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.5;
}

.service-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 1.1rem;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(45, 90, 61, 0.3);
  align-self: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.service-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 90, 61, 0.4);
  background: linear-gradient(135deg, #3a6b4f, var(--brand-primary));
  color: white !important;
}

/* Desktop Layout */
@media (min-width: 768px) {
  .service-detail {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem;
  }
  
  .service-detail[data-layout="right"] {
    direction: rtl;
  }
  
  .service-detail[data-layout="right"] .service-content {
    direction: ltr;
  }
  
  .service-image img {
    height: 350px;
  }
  
  .service-content h3 {
    font-size: 2rem;
  }
  
  .service-content p {
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .detailed-services {
    gap: 5rem;
  }
  
  .service-detail {
    padding: 4rem;
    gap: 4rem;
  }
  
  .service-image img {
    height: 400px;
  }
  
  .service-content h3 {
    font-size: 2.25rem;
  }
}

/* Professional Services Grid */
.services-section {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.service-card {
  background: var(--bg-accent);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

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

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.service-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.service-link {
  color: var(--brand-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.service-link:hover {
  color: var(--brand-secondary);
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Responsive Contact Section - Mobile First Design */
.contact-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.contact-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.contact-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.contact-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(45, 90, 61, 0.8) 0%,
    rgba(45, 90, 61, 0.6) 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 2;
}

.contact-inner {
  position: relative;
  z-index: 3;
  width: 100%;
}

.contact-section .section-header {
  text-align: center;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  padding: 0;
}

.contact-section .section-header h2 {
  color: white;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-section .section-header .lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Komplett neues unabhängiges Kontaktformular Design */
.contact-form {
  /* Mobile: Ausreichend Rand links/rechts */
  width: calc(100% - 3rem);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(45, 90, 61, 0.12);
  transition: all var(--transition-normal);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.form-field label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: var(--text-sm);
}

.form-field input,
.form-field textarea {
  background: var(--bg-secondary);
  border: 2px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: var(--text-base);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  width: 100%;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: var(--bg-accent);
  box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.08);
  transform: translateY(-1px);
}

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

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.form-consent input[type="checkbox"] {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.form-consent label {
  font-weight: 400;
  line-height: 1.4;
  font-size: 0.9rem;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 1rem;
}

.form-status {
  font-weight: 500;
  text-align: center;
}

.field-error {
  color: var(--error);
  font-size: var(--text-sm);
  min-height: 1rem;
}

/* Honeypot field */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Responsive Design für Kontaktformular */
@media (min-width: 480px) {
  .contact-form {
    width: calc(100% - 4rem);
    padding: 2rem;
  }
}

@media (min-width: 640px) {
  .contact-form {
    width: calc(100% - 6rem);
    max-width: 600px;
    padding: 2.5rem;
    border-radius: 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
  
  .form-grid {
    gap: 0;
  }
  
  .form-row {
    gap: 1rem;
  }
  
  .form-actions {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .contact-form {
    max-width: 650px;
    padding: 3rem;
  }
  
  .form-grid {
    gap: 0;
  }
  
  .form-row {
    gap: 1.2rem;
  }
}

@media (min-width: 1024px) {
  .contact-form {
    max-width: 700px;
    padding: 3.5rem;
  }
}

/* Professional Footer */
.site-footer {
  background: var(--brand-primary);
  color: var(--bg-primary);
  padding: 4rem 0 2rem;
  margin-top: 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: var(--text-lg);
  text-decoration: none;
  margin-bottom: 1rem;
  pointer-events: none;
}

.footer-logo .logo-icon {
  width: 28px;
  height: 28px;
  color: var(--brand-light);
  flex-shrink: 0;
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.footer-logo-text span:first-child {
  color: white;
}

.footer-logo-sub {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-sm);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0 0 1rem 0;
  font-size: 0.95rem;
}

.footer-contact {
  margin: 0;
}

.footer-contact a {
  color: var(--brand-light);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-section {
  /* Footer section styling */
  margin-bottom: 1rem;
}

.footer-title {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--brand-light);
}

.to-top {
  background: var(--brand-primary);
  color: white !important;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.to-top:hover {
  background: var(--brand-secondary);
  transform: translateY(-2px);
  color: white !important;
}

.footer-bottom {
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .footer-bottom {
    padding: 2rem 1rem;
  }
  
  .footer-bottom p {
    font-size: 0.85rem;
    line-height: 1.3;
  }
  
  /* Mobile Footer: Logo unter Rechtliches */
  .footer-content {
    display: flex;
    flex-direction: column;
  }
  
  .footer-brand {
    order: 3; /* Nach Rechtliches (order: 2) */
    max-width: none;
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .footer-section:nth-child(2) {
    order: 1; /* Leistungen zuerst */
  }
  
  .footer-section:nth-child(3) {
    order: 2; /* Rechtliches als zweites */
  }
  
  /* Mobile Footer: Nur "Ökologische Baubegleitung" anzeigen */
  .footer-logo-sub {
    font-size: 0;
  }
  
  .footer-logo-sub::before {
    content: "Ökologische Baubegleitung";
    font-size: var(--text-sm);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
  }
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
  }
  
  .footer-brand {
    max-width: none;
  }
}

/* Animation System - TEMPORARILY DISABLED FOR DEBUGGING */
.reveal {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: all var(--transition-slow);
}

/* Override for enhanced animation when JS is available - DISABLED */
.js-enabled .reveal {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Service Page Enhancements - Using existing design patterns */

/* Breadcrumb Navigation */
.breadcrumb {
  margin-bottom: 2rem;
}

.breadcrumb ol {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
  align-items: center;
}

.breadcrumb li {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.breadcrumb li:not(:last-child)::after {
  content: '›';
  margin-left: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: white;
}

/* Enhanced Leistung Cards with Icons */
.leistung-details {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
}

.leistung-details li {
  color: var(--text-secondary);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
}

.leistung-details li::before {
  content: '✓';
  color: var(--brand-primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.leistung-details li:last-child {
  border-bottom: none;
}

/* Timeline Component */
.timeline {
  max-width: 800px;
  margin: 3rem auto 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 25px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-light);
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-marker {
  width: 50px;
  height: 50px;
  background: var(--brand-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px white, 0 0 0 6px var(--brand-primary);
}

.timeline-content {
  flex: 1;
  background: white;
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-top: 0.5rem;
}

.timeline-content h3 {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

.timeline-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Contact Features for Service Page */
.contact-features {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-feature {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Mobile Responsive for Service Page */
@media (max-width: 768px) {
  .timeline::before {
    display: none;
  }
  
  .timeline-item {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .timeline-marker {
    align-self: flex-start;
    box-shadow: 0 0 0 4px white;
  }
  
  .timeline-content {
    margin-top: 0;
  }
  
  .contact-features {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .leistung-details {
    margin-top: 1rem;
  }
  
  .breadcrumb ol {
    flex-wrap: wrap;
  }
}

/* Service Page Styles */
.service-hero {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  color: white;
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.service-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.service-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.breadcrumb {
  margin-bottom: 2rem;
}

.breadcrumb ol {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
  align-items: center;
}

.breadcrumb li {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.breadcrumb li:not(:last-child)::after {
  content: '›';
  margin-left: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: white;
}

.service-hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  line-height: 1.1;
}

.service-hero-description {
  font-size: 1.3rem;
  line-height: 1.6;
  margin: 0 0 3rem 0;
  color: rgba(255, 255, 255, 0.9);
}

.service-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.service-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.service-feature {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast);
}

.service-feature:hover {
  transform: translateY(-5px);
}

.service-feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.service-feature h3 {
  color: var(--text-primary);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

.service-feature p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
}

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

.service-feature li {
  color: var(--text-secondary);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  padding-left: 1.5rem;
}

.service-feature li::before {
  content: '✓';
  color: var(--brand-primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.service-feature li:last-child {
  border-bottom: none;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.benefit-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition-fast);
}

.benefit-card:hover {
  transform: translateY(-3px);
}

.benefit-card h3 {
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

.benefit-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.process-steps {
  max-width: 800px;
  margin: 3rem auto 0;
}

.process-step {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 25px;
  top: 60px;
  bottom: -50px;
  width: 2px;
  background: var(--border-light);
}

.process-step-number {
  width: 50px;
  height: 50px;
  background: var(--brand-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.process-step-content h3 {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

.process-step-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.faq-list {
  max-width: 800px;
  margin: 3rem auto 0;
}

.faq-item {
  background: white;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.5rem 2rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  background: white;
  border: none;
  outline: none;
  transition: background-color var(--transition-fast);
  position: relative;
}

.faq-item summary:hover {
  background: var(--background-light);
}

.faq-item summary::marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--brand-primary);
  transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
  padding: 0 2rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.cta-section {
  background: var(--brand-primary);
  color: white;
  text-align: center;
}

.cta-content h2 {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
}

.cta-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0 0 3rem 0;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.cta-features {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-feature {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .service-hero {
    padding: 6rem 0 4rem;
  }
  
  .service-hero h1 {
    font-size: 2.5rem;
  }
  
  .service-hero-description {
    font-size: 1.1rem;
  }
  
  .service-hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .service-features {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .service-feature {
    padding: 2rem;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .process-step {
    flex-direction: column;
    gap: 1rem;
  }
  
  .process-step:not(:last-child)::after {
    display: none;
  }
  
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-features {
    flex-direction: column;
    gap: 1rem;
  }
}

.reveal--visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Stagger animation for groups */
.reveal:nth-child(1) { transition-delay: 0ms; }
.reveal:nth-child(2) { transition-delay: 100ms; }
.reveal:nth-child(3) { transition-delay: 200ms; }
.reveal:nth-child(4) { transition-delay: 300ms; }
.reveal:nth-child(5) { transition-delay: 400ms; }
.reveal:nth-child(6) { transition-delay: 500ms; }

/* Override delays for service-detail cards to ensure consistent hover */
.service-detail.reveal {
  transition-delay: 0ms !important;
}

/* 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;
  }
  
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Print Styles */
@media print {
  .skip-link,
  .hero-actions,
  .contact-form,
  .site-footer,
  .cookie-banner,
  .cookie-overlay {
    display: none !important;
  }
  
  .site-header {
    position: static;
    background: white;
    box-shadow: none;
  }
  
  * {
    background: white !important;
    color: black !important;
  }
}

/* DSGVO-konformer Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 90vh;
  overflow-y: auto;
}

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

.cookie-content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.5rem 2rem;
}

.cookie-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cookie-header h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-close {
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.cookie-close:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.cookie-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 1rem 0;
  max-width: none;
}

.cookie-details {
  margin: 1rem 0;
}

.cookie-toggle {
  background: none;
  border: none;
  color: var(--brand-primary);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.cookie-toggle:hover {
  color: var(--brand-secondary);
}

.cookie-arrow {
  transition: transform var(--transition-fast);
}

.cookie-toggle[aria-expanded="true"] .cookie-arrow {
  transform: rotate(180deg);
}

.cookie-details-content {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--brand-primary);
}

.cookie-category {
  margin-bottom: 1rem;
}

.cookie-category:last-child {
  margin-bottom: 0;
}

.cookie-category-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.cookie-category h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
  font-family: 'Inter', sans-serif;
}

.cookie-category p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* Cookie Switch Styling */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

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

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-default);
  transition: all var(--transition-fast);
  border-radius: 24px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: all var(--transition-fast);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

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

.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(20px);
}

.cookie-switch input:disabled + .cookie-slider {
  background-color: var(--brand-accent);
  cursor: not-allowed;
}

.cookie-switch input:disabled + .cookie-slider:before {
  background-color: white;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 1rem 0;
}

.cookie-btn {
  flex: 1;
  min-width: 140px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  white-space: nowrap;
}

.cookie-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  margin-top: 1rem;
}

.cookie-footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  text-align: center;
  line-height: 1.4;
}

.cookie-footer a {
  color: var(--brand-primary);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-footer a:hover {
  color: var(--brand-secondary);
}

/* Cookie Overlay */
.cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cookie-overlay.show {
  opacity: 1;
}

/* Responsive Cookie Banner */
@media (max-width: 768px) {
  .cookie-content {
    padding: 1rem;
  }
  
  .cookie-actions {
    flex-direction: column;
  }
  
  .cookie-btn {
    width: 100%;
  }
  
  .cookie-category-header {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
  
  .cookie-switch {
    align-self: flex-start;
  }
}

@media (min-width: 769px) {
  .cookie-banner {
    left: 2rem;
    right: 2rem;
    bottom: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    max-width: 600px;
    margin: 0 auto;
    transform: translateY(calc(100% + 2rem));
  }
  
  .cookie-banner.show {
    transform: translateY(0);
  }
  
  .cookie-content {
    padding: 2rem;
  }
}

/* ============================================
   Success Notification Pop-up
   ============================================ */

.success-notification {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.success-notification.show {
  opacity: 1;
  visibility: visible;
}

.success-notification-content {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  max-width: 450px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.success-notification.show .success-notification-content {
  transform: scale(1);
  animation: successPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successPop {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  animation: successIconPulse 0.6s ease;
}

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

.success-icon svg {
  animation: successCheckmark 0.8s ease 0.3s both;
}

@keyframes successCheckmark {
  0% {
    stroke-dasharray: 0, 100;
  }
  100% {
    stroke-dasharray: 100, 100;
  }
}

.success-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin: 0 0 0.75rem 0;
}

.success-message {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 2rem 0;
}

.success-close {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: white;
  border: none;
  padding: 0.875rem 2.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(45, 90, 61, 0.3);
}

.success-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(45, 90, 61, 0.4);
}

.success-close:active {
  transform: translateY(0);
}

@media (max-width: 576px) {
  .success-notification-content {
    padding: 2rem 1.5rem;
  }
  
  .success-icon {
    width: 64px;
    height: 64px;
  }
  
  .success-icon svg {
    width: 36px;
    height: 36px;
  }
  
  .success-title {
    font-size: 1.25rem;
  }
  
  .success-message {
    font-size: 0.95rem;
  }
}
