/* ==========================================================================
   TUTTNER BADSYSTEME - Premium Bathroom Design
   High-End, Modern, Architectural Aesthetic
   ========================================================================== */

/* --------------------------------------------------------------------------
   Self-Hosted Fonts (GDPR Compliant)
   -------------------------------------------------------------------------- */

/* Cormorant Garamond */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/cormorant-garamond-v21-latin-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/cormorant-garamond-v21-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/cormorant-garamond-v21-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/cormorant-garamond-v21-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Inter */
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-v20-latin-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-v20-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-v20-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-v20-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   CSS Variables - Premium Color Palette
   -------------------------------------------------------------------------- */
:root {
  /* Primary Colors - Warm Stone & Architectural Tones */
  --color-primary: #2C2C2C;
  --color-primary-dark: #1A1A1A;
  --color-secondary: #8B7355;
  --color-accent: #A69076;
  
  /* Neutral Palette */
  --color-white: #FFFFFF;
  --color-off-white: #cabdb5;
  --color-cream: #cabdb5;
  --color-warm-grey: #cabdb5;
  --color-stone: #b8a99f;
  --color-medium-grey: #9A9590;
  --color-dark-grey: #4A4744;
  --color-charcoal: #2C2926;
  --color-black: #1A1816;
  
  /* Functional Colors - WCAG AA Compliant on cream backgrounds */
  --color-text: #2C2926;
  --color-text-light: #3D3A38;
  --color-text-muted: #4A4744;
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-light: rgba(0, 0, 0, 0.04);
  
  /* Typography - Self-hosted fonts (will be added) */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;
  --space-5xl: 12rem;
  
  /* Layout */
  --container-max: 1400px;
  --container-narrow: 900px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slower: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-off-white);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   Page Loader
   -------------------------------------------------------------------------- */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-black);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader-logo-img {
  height: 50px;
  width: auto;
  filter: invert(1);
  margin-bottom: var(--space-lg);
}

@media (max-width: 480px) {
  .loader-logo-img {
    height: 36px;
  }
}

.loader-bar {
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.loader-progress {
  width: 0;
  height: 100%;
  background: var(--color-white);
  animation: loadProgress 1.5s ease-out forwards;
}

@keyframes loadProgress {
  to { width: 100%; }
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.section-label-light {
  color: rgba(255, 255, 255, 0.75);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}

.section-title-light {
  color: var(--color-white);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-light);
  max-width: 500px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--space-md) 0;
  transition: all var(--transition-base);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: var(--space-sm) 0;
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  transition: opacity var(--transition-fast);
}

.nav-logo:hover {
  opacity: 0.7;
}

.logo-img {
  height: 40px;
  width: auto;
  transition: filter var(--transition-base), opacity var(--transition-base);
}

/* When nav is scrolled, keep logo as is (black logo on white bg) */
.nav.scrolled .logo-img {
  opacity: 1;
}

@media (max-width: 768px) {
  .logo-img {
    height: var(--logo-height-mobile, 32px) !important;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: var(--logo-height-mobile, 28px) !important;
  }
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--color-black);
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

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

.nav-link {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text);
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-secondary);
  transition: width var(--transition-base);
}

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

.nav-link:hover::after {
  width: 100%;
}

.nav-link-cta {
  padding: 0.75rem 1.5rem;
  background: var(--color-black);
  color: var(--color-white) !important;
  border-radius: 2px;
  transition: all var(--transition-base);
}

.nav-link-cta::after {
  display: none;
}

.nav-link-cta:hover {
  background: var(--color-secondary);
  color: var(--color-white) !important;
  transform: translateY(-2px);
}

/* Social icons in header */
.nav-social {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-left: var(--space-md);
}

.nav-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--color-text);
  transition: all var(--transition-base);
}

.nav-social-link:hover {
  color: var(--color-secondary);
  background: var(--color-off-white);
  transform: translateY(-2px);
}

.nav-social-link svg {
  width: 18px;
  height: 18px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-black);
  transition: all var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .nav-links,
  .nav-social {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: var(--space-sm) 0;
  }

  .nav.scrolled {
    padding: var(--space-xs) 0;
  }

  .nav-container {
    padding: 0 var(--space-md);
  }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-off-white);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}

.mobile-link {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--color-text);
  transition: color var(--transition-fast);
  opacity: 0;
  transform: translateY(20px);
}

.mobile-menu.active .mobile-link {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, color 0.2s ease;
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.3s; }

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

.mobile-cta {
  margin-top: var(--space-lg);
  padding: 1rem 2rem;
  background: var(--color-black);
  color: var(--color-white) !important;
  border-radius: 4px;
  font-size: 1rem !important;
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  letter-spacing: 0.05em;
}

@media (max-width: 480px) {
  .mobile-link {
    font-size: 1.5rem;
  }

  .mobile-cta {
    font-size: 0.9375rem !important;
    padding: 0.875rem 1.75rem;
  }
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5xl) var(--space-lg) var(--space-4xl);
  overflow: hidden;
}

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

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--color-cream) 0%,
    var(--color-warm-grey) 50%,
    var(--color-stone) 100%
  );
}

.hero-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: 
    radial-gradient(circle at 70% 30%, rgba(139, 115, 85, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(166, 144, 118, 0.06) 0%, transparent 50%);
}

.hero-content {
  max-width: 900px;
  text-align: center;
}

/* Minimal hero for inner pages */
.hero-minimal {
  min-height: 50vh;
  padding: calc(var(--space-3xl) + 80px) var(--space-lg) var(--space-3xl);
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

.label-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--color-text-muted);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 300;
  line-height: 1;
  color: var(--color-black);
  margin-bottom: var(--space-xl);
}

.title-accent {
  color: var(--color-secondary);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.hero-scroll span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

.hero-stats {
  position: absolute;
  bottom: var(--space-2xl);
  right: var(--space-2xl);
  display: flex;
  gap: var(--space-2xl);
}

.stat {
  text-align: right;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: var(--space-xs);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
    padding: var(--space-4xl) var(--space-md) var(--space-2xl);
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-label {
    margin-bottom: var(--space-lg);
    font-size: 0.7rem;
  }

  .label-line {
    width: 24px;
  }

  .hero-title {
    font-size: clamp(2.5rem, 12vw, 4rem);
    margin-bottom: var(--space-lg);
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: var(--space-xl);
    line-height: 1.7;
  }

  .hero-subtitle br {
    display: none;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .hero-scroll,
  .hero-stats {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: var(--space-3xl) var(--space-md) var(--space-xl);
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 0.9375rem;
  }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 1rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 2px;
  transition: all var(--transition-base);
}

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

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

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

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

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

.btn-outline:hover {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-black);
}

.btn-white:hover {
  background: var(--color-cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 0.875rem 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   Value Section
   -------------------------------------------------------------------------- */
.value-section {
  padding: var(--space-5xl) 0;
  background: var(--color-off-white);
}

.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
  margin-bottom: var(--space-4xl);
}

.value-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--color-black);
}

.value-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.value-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.pillar {
  padding: var(--space-xl);
  background: var(--color-white);
  border-radius: 16px;
  transition: all var(--transition-base);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.pillar-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--color-secondary);
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: var(--space-sm);
}

.pillar-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-light);
}

@media (max-width: 1024px) {
  .value-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .value-pillars {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .value-section {
    padding: var(--space-3xl) 0;
  }

  .value-grid {
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
  }

  .value-title {
    font-size: 2rem;
  }

  .value-text {
    font-size: 1rem;
  }

  .value-pillars {
    gap: var(--space-md);
  }

  .pillar {
    padding: var(--space-lg);
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
  }

  .pillar-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .pillar-icon svg {
    width: 24px;
    height: 24px;
  }

  .pillar-content {
    flex: 1;
  }

  .pillar-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
  }

  .pillar-text {
    font-size: 0.875rem;
  }
}

/* --------------------------------------------------------------------------
   Projects Gallery Section
   -------------------------------------------------------------------------- */
.projects-section {
  padding: var(--space-5xl) 0;
  background: var(--color-off-white);
}

.projects-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.projects-header .section-subtitle {
  max-width: 500px;
  margin: var(--space-md) auto 0;
}

/* Project Gallery Grid */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.gallery-item-large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
  filter: saturate(0.9);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(44, 41, 38, 0.7) 0%,
    rgba(44, 41, 38, 0.2) 30%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: flex-end;
  padding: var(--space-lg);
}

/* Removed "Ansehen" text - clicking image opens lightbox */

.gallery-item:hover img {
  transform: scale(1.08);
  filter: saturate(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Gallery Info Text */
.gallery-info {
  position: absolute;
  bottom: var(--space-lg);
  left: var(--space-lg);
  right: var(--space-lg);
  z-index: 2;
}

.gallery-info h4 {
  color: var(--color-white);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
}

.gallery-info span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8125rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.gallery-item {
  cursor: pointer;
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 1;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-caption {
  text-align: center;
  color: white;
  font-size: 1rem;
  margin-top: 1rem;
  opacity: 0.9;
}

.gallery-cta {
  text-align: center;
}

.gallery-cta .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.gallery-cta .btn-outline svg:first-child {
  width: 20px;
  height: 20px;
}

/* Hide gallery navigation on desktop */
.gallery-nav-mobile {
  display: none;
}

/* Gallery Responsive */
@media (max-width: 1024px) {
  .project-gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
  }

  .gallery-item-large {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  .projects-section {
    padding: var(--space-3xl) 0;
  }

  .projects-header {
    margin-bottom: var(--space-xl);
    text-align: left;
    padding: 0 var(--space-md);
  }

  .projects-header .section-title {
    font-size: 2rem;
  }

  .projects-header .section-subtitle {
    font-size: 0.9375rem;
  }

  /* Mobile Gallery - Horizontal Carousel */
  .project-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: var(--space-md);
    padding: 0 var(--space-md);
    padding-bottom: var(--space-md);
    margin: 0 calc(-1 * var(--space-md));
  }

  .project-gallery::-webkit-scrollbar {
    display: none;
  }

  .gallery-item {
    flex: 0 0 85%;
    scroll-snap-align: center;
    height: 380px;
    border-radius: 12px;
  }

  .gallery-item-large {
    flex: 0 0 85%;
  }

  .gallery-item img {
    border-radius: 12px;
  }

  .gallery-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(44, 41, 38, 0.6) 0%, transparent 40%);
    border-radius: 12px;
  }

  /* Gallery mobile navigation */
  .gallery-nav-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-md);
    padding: 0 var(--space-sm);
  }

  .gallery-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-stone);
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-primary);
    cursor: pointer;
    transition: all var(--transition-base);
    flex-shrink: 0;
  }

  .gallery-arrow:hover,
  .gallery-arrow:active {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-white);
  }

  .gallery-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
  }

  .gallery-arrow:disabled:hover {
    background: var(--color-white);
    border-color: var(--color-stone);
    color: var(--color-primary);
  }

  /* Gallery scroll indicator */
  .gallery-scroll-hint {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 0;
  }

  .gallery-scroll-hint span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-stone);
    transition: all var(--transition-base);
    cursor: pointer;
  }

  .gallery-scroll-hint span:hover {
    background: var(--color-secondary);
  }

  .gallery-scroll-hint span.active {
    width: 24px;
    border-radius: 3px;
    background: var(--color-secondary);
  }

  .gallery-cta {
    margin-top: var(--space-lg);
  }

  .gallery-cta .btn-outline {
    font-size: 0.8125rem;
    padding: 0.875rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .gallery-item {
    flex: 0 0 90%;
    height: 320px;
  }
}

/* Legacy styles - hidden */
.projects-gallery-wrapper,
.instagram-posts-wrapper,
.instagram-feed-wrapper {
  display: none;
}

/* Legacy gallery styles - keeping for reference */
.gallery-wrapper {
  padding: 0 var(--space-lg);
  margin-bottom: var(--space-3xl);
}

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: var(--space-md);
  max-width: 1600px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item-tall {
  grid-row: span 2;
}

.gallery-item-wide {
  grid-column: span 2;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-stone) 0%, var(--color-warm-grey) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-slow);
}

.gallery-item:hover .gallery-placeholder {
  transform: scale(1.05);
}

.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-dark-grey);
  opacity: 0.6;
}

.placeholder-content span {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-overlay span {
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 500;
}

.gallery-cta {
  text-align: center;
}

@media (max-width: 1200px) {
  .gallery-masonry {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
  }
}

@media (max-width: 768px) {
  .projects-header .container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  
  .gallery-item-wide {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  .gallery-masonry {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }
  
  .gallery-item-tall {
    grid-row: span 1;
  }
}

/* --------------------------------------------------------------------------
   Services Section
   -------------------------------------------------------------------------- */
.services-section {
  padding: var(--space-5xl) 0;
  background: var(--color-white);
}

.services-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-4xl);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-3xl);
}

/* 5 cards side by side only on very large screens (>2200px) */
@media (min-width: 2200px) {
  .services-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Show 2 columns on smaller screens */
@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  padding: var(--space-xl);
  padding-top: calc(var(--space-xl) + 4px);
  background: var(--color-off-white);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* Beam accent at top of card - invisible until hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--color-secondary);
  border-radius: 0 0 4px 4px;
  transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.service-card:hover::before {
  width: 100%;
  border-radius: 0;
}

.service-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--color-secondary);
  opacity: 0.6;
  line-height: 1;
  margin-bottom: var(--space-md);
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.service-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

.service-list {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-md);
}

.service-list li {
  font-size: 0.875rem;
  color: var(--color-text-light);
  padding: var(--space-xs) 0;
  padding-left: var(--space-md);
  position: relative;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  background: var(--color-secondary);
  border-radius: 50%;
}

.services-note {
  text-align: center;
  padding: var(--space-xl);
  background: var(--color-cream);
  border-radius: 4px;
  max-width: 700px;
  margin: 0 auto;
}

.services-note p {
  font-size: 1rem;
  color: var(--color-text-light);
}

.services-note strong {
  color: var(--color-text);
}

@media (max-width: 768px) {
  .services-section {
    padding: var(--space-3xl) 0;
  }

  .services-header {
    text-align: left;
    margin-bottom: var(--space-2xl);
  }

  .services-header .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .service-card {
    padding: var(--space-lg);
  }

  .service-number {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    color: var(--color-secondary);
    opacity: 0.6;
  }

  .service-title {
    font-size: 1.25rem;
    color: var(--color-primary);
  }

  .service-desc {
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
  }

  .service-list li {
    font-size: 0.8125rem;
  }

  .services-note {
    padding: var(--space-lg);
  }

  .services-note p {
    font-size: 0.9375rem;
  }
}

/* --------------------------------------------------------------------------
   Process Section
   -------------------------------------------------------------------------- */
.process-section {
  padding: var(--space-5xl) 0;
  background: var(--color-white);
  position: relative;
}

.process-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-4xl);
}

.process-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 32px;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-off-white) 0%, var(--color-stone) 100%);
  border-radius: 2px;
}

.process-step {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  position: relative;
  padding: var(--space-lg);
  padding-top: calc(var(--space-lg) + 4px);
  background: var(--color-off-white);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all var(--transition-base);
  overflow: hidden;
}

/* Beam accent at top of process step - invisible until hover */
.process-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--color-secondary);
  border-radius: 0 0 4px 4px;
  transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.process-step:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 8px 16px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(184, 156, 128, 0.1);
}

.process-step:hover::before {
  width: 100%;
  border-radius: 0;
}

.process-step:last-child {
  margin-bottom: 0;
}

.step-marker {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border: none;
  border-radius: 50%;
  z-index: 1;
  transition: all var(--transition-base);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step-marker span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-secondary);
}

.process-step:hover .step-marker {
  background: var(--color-secondary);
  transform: scale(1.1);
}

.process-step:hover .step-marker span {
  color: var(--color-white);
}

.step-content {
  padding-top: var(--space-xs);
  flex: 1;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.step-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-light);
  max-width: 500px;
}

.step-note {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px dashed var(--color-border);
  font-style: italic;
}

@media (max-width: 768px) {
  .process-section {
    padding: var(--space-3xl) 0;
  }

  .process-header {
    text-align: left;
    margin-bottom: var(--space-2xl);
  }

  .process-header .section-title {
    font-size: 2rem;
  }

  .process-header .section-subtitle {
    font-size: 0.9375rem;
  }
}

@media (max-width: 640px) {
  .timeline-line {
    left: 20px;
  }

  .step-marker {
    width: 40px;
    height: 40px;
  }

  .step-marker span {
    font-size: 1rem;
  }

  .process-step {
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
  }

  .step-title {
    font-size: 1.25rem;
  }

  .step-desc {
    font-size: 0.875rem;
  }

  .step-note {
    font-size: 0.8rem;
  }

  .process-step {
    padding: var(--space-md);
  }

  .process-step:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow:
      0 12px 24px rgba(0, 0, 0, 0.12),
      0 4px 8px rgba(0, 0, 0, 0.08);
  }
}

/* --------------------------------------------------------------------------
   Quality Section
   -------------------------------------------------------------------------- */
.quality-section {
  position: relative;
  padding: var(--space-5xl) 0;
  overflow: hidden;
}

.quality-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-charcoal) 0%, var(--color-black) 100%);
  z-index: -1;
}

.quality-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.quality-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-md);
}

.quality-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.quality-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-white);
  font-size: 0.9375rem;
}

.quality-feature svg {
  flex-shrink: 0;
  color: var(--color-secondary);
}

.quality-visual {
  display: flex;
  justify-content: center;
}

.visual-card {
  padding: var(--space-3xl);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.visual-icon {
  color: var(--color-secondary);
  margin-bottom: var(--space-lg);
}

.visual-card h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.visual-card p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .quality-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .quality-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .quality-section {
    padding: var(--space-3xl) 0;
  }

  .quality-content .section-title {
    font-size: 2rem;
  }

  .quality-text {
    font-size: 1rem;
  }

  .quality-features {
    gap: var(--space-sm);
    margin-top: var(--space-lg);
  }

  .quality-feature {
    font-size: 0.875rem;
    padding: var(--space-sm) 0;
  }

  .quality-feature svg {
    width: 20px;
    height: 20px;
  }

  .visual-card {
    padding: var(--space-xl);
  }

  .visual-icon svg {
    width: 48px;
    height: 48px;
  }

  .visual-card h3 {
    font-size: 1.5rem;
  }

  .visual-card p {
    font-size: 0.9375rem;
  }
}

/* --------------------------------------------------------------------------
   Trust / About Section
   -------------------------------------------------------------------------- */
.trust-section {
  padding: var(--space-5xl) 0;
  background: var(--color-white);
}

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

/* Team Portraits */
.team-portraits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.team-member {
  text-align: center;
}

.team-photo {
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: var(--space-md);
  background: var(--color-warm-grey);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: all 0.5s ease;
}

.team-member:hover .team-photo {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.18),
    0 8px 16px rgba(0, 0, 0, 0.1);
}

.team-member:hover .team-photo img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.team-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-charcoal);
  margin-bottom: var(--space-xs);
}

.team-role {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.trust-image-placeholder {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--color-warm-grey) 0%, var(--color-stone) 100%);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
}

.placeholder-icon {
  color: var(--color-dark-grey);
  opacity: 0.5;
}

.trust-image-placeholder span {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-dark-grey);
  opacity: 0.6;
}

.trust-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.trust-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}

.trust-value h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: var(--space-xs);
  color: var(--color-secondary);
}

.trust-value p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-light);
}

@media (max-width: 1024px) {
  .trust-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .team-portraits {
    order: -1;
  }

  .trust-image-placeholder {
    aspect-ratio: 16 / 9;
    order: -1;
  }

  .trust-values {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

@media (max-width: 768px) {
  .trust-section {
    padding: var(--space-3xl) 0;
  }

  .trust-grid {
    gap: var(--space-xl);
  }

  .team-portraits {
    gap: var(--space-md);
  }

  .team-photo {
    aspect-ratio: 1 / 1;
  }

  .team-name {
    font-size: 1.125rem;
  }

  .team-role {
    font-size: 0.8125rem;
  }

  .team-member:hover .team-photo {
    transform: translateY(-6px) scale(1.01);
    box-shadow:
      0 12px 24px rgba(0, 0, 0, 0.12),
      0 4px 8px rgba(0, 0, 0, 0.08);
  }

  .trust-content .section-title {
    font-size: 2rem;
  }

  .trust-text {
    font-size: 1rem;
  }

  .trust-values {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
  }

  .trust-value h4 {
    font-size: 1.125rem;
  }

  .trust-value p {
    font-size: 0.8125rem;
  }
}

/* --------------------------------------------------------------------------
   News/Blog Section
   -------------------------------------------------------------------------- */
.news-section {
  padding: var(--space-5xl) 0;
  background: var(--color-white);
}

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

.news-header .section-subtitle {
  max-width: 600px;
  margin: var(--space-md) auto 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-xl);
}

.news-loading,
.news-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-3xl);
  color: var(--admin-text-light);
}

.news-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-base);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-border);
}

.news-card-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: var(--color-warm-grey);
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.05);
}

.news-card-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--color-border-light);
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.news-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-badge-news {
  background: #e3f2fd;
  color: #1976d2;
}

.news-badge-offer {
  background: #fff3e0;
  color: #f57c00;
}

.news-badge-project {
  background: #f3e5f5;
  color: #7b1fa2;
}

.news-badge-tip {
  background: #e8f5e9;
  color: #388e3c;
}

.news-card-date {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.news-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.news-card-body {
  padding: var(--space-lg);
}

.news-card-content {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-light);
}

/* Rich text content styling */
.news-card-content p {
  margin-bottom: 0.75rem;
}

.news-card-content p:last-child {
  margin-bottom: 0;
}

.news-card-content strong {
  font-weight: 600;
  color: var(--color-primary);
}

.news-card-content em {
  font-style: italic;
}

.news-card-content a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: opacity 0.2s;
}

.news-card-content a:hover {
  opacity: 0.7;
}

.news-card-content ul,
.news-card-content ol {
  margin: 0.5rem 0 0.75rem 1.5rem;
  padding: 0;
}

.news-card-content li {
  margin-bottom: 0.25rem;
}

.news-card-content h2,
.news-card-content h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-primary);
  margin: 1rem 0 0.5rem;
}

.news-card-content h2 {
  font-size: 1.25rem;
}

.news-card-content h3 {
  font-size: 1.1rem;
}

.news-card-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 0.75rem 0;
}

.news-card-footer {
  padding: 0 var(--space-lg) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .news-section {
    padding: var(--space-3xl) 0;
  }

  .news-header {
    margin-bottom: var(--space-2xl);
    text-align: left;
  }

  .news-header .section-title {
    font-size: 2rem;
  }

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

  .news-card-title {
    font-size: 1.25rem;
  }

  .news-card-header,
  .news-card-body,
  .news-card-footer {
    padding: var(--space-md);
  }
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
  position: relative;
  padding: var(--space-5xl) 0;
  text-align: center;
  overflow: hidden;
}

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

.cta-gradient {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-charcoal) 100%);
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.cta-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-2xl);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

@media (max-width: 768px) {
  .cta-section {
    padding: var(--space-3xl) 0;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-text {
    font-size: 1rem;
    margin-bottom: var(--space-xl);
  }

  .cta-text br {
    display: none;
  }
}

@media (max-width: 640px) {
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  padding: var(--space-4xl) 0 var(--space-xl);
  background: var(--color-black);
  color: var(--color-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  margin-bottom: var(--space-md);
}

.footer-logo-img {
  height: 36px;
  width: auto;
  filter: invert(1);
}

@media (max-width: 480px) {
  .footer-logo-img {
    height: 30px;
  }
}

.footer-tagline {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.footer-links h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-md);
}

.footer-links a {
  display: block;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--color-white);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
  }
  
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: var(--space-2xl) 0 var(--space-lg);
  }

  .footer-grid {
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
  }

  .footer-tagline {
    font-size: 0.9375rem;
  }

  .footer-links h4 {
    margin-bottom: var(--space-sm);
  }

  .footer-links a {
    font-size: 0.875rem;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-brand {
    grid-column: span 1;
    text-align: center;
  }

  .footer-logo {
    display: flex;
    justify-content: center;
  }

  .footer-links {
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }

  .footer-bottom p {
    font-size: 0.8125rem;
  }

  .footer-legal {
    gap: var(--space-md);
  }

  .footer-legal a {
    font-size: 0.8125rem;
  }
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

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

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Allow hover transforms on animated cards */
.animate-on-scroll.visible.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.animate-on-scroll.visible.process-step:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 8px 16px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(184, 156, 128, 0.1);
}


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

/* --------------------------------------------------------------------------
   Dropdown Menu
   -------------------------------------------------------------------------- */
.nav-item-has-children {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -20px; /* Slight offset */
  background: var(--color-white);
  min-width: 260px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  padding: var(--space-sm) 0;
  border-radius: 2px;
  z-index: 1002;
}

.nav-item-has-children:hover .nav-dropdown,
.nav-item-has-children:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-link {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--color-text);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
  border-left: 2px solid transparent;
}

.nav-dropdown-link:hover {
  background: var(--color-cream);
  color: var(--color-secondary);
  border-left-color: var(--color-secondary);
}

/* Mobile Dropdown styles handled via JS injection */

/* --------------------------------------------------------------------------
   Improved Card Designs
   -------------------------------------------------------------------------- */

/* Value Pillars (Qualität die man spürt) */
.pillar {
  padding: var(--space-xl);
  background: var(--color-white); /* Brighter background */
  border-radius: 12px; /* Softer corners */
  transition: all var(--transition-base);
  border: 1px solid rgba(0, 0, 0, 0.05); /* Subtle border */
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pillar:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); /* Stronger lift effect */
  border-color: transparent;
}

.pillar-icon {
  width: 72px;
  height: 72px;
  background: var(--color-cream);
  border-radius: 50%; /* Circle icon background */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--color-secondary);
  transition: all var(--transition-base);
}

.pillar:hover .pillar-icon {
  background: var(--color-secondary);
  color: var(--color-white);
  transform: scale(1.1);
}

/* Duplicate service-card styles removed - using main definition above */

/* Typography Enhancements */
.pillar-title {
  font-weight: 500;
  letter-spacing: -0.01em;
}

.pillar-text {
  color: var(--color-text-light);
  line-height: 1.8;
}

/* Duplicate news-card styles removed - using main definition above */

/* Process Steps - styles moved to main Process Section block above */

/* Duplicate service-card color overrides removed - using main definition above */

/* ==========================================================================
   BLOG PAGE (Aktuelles) - Premium Magazine Layout
   ========================================================================== */

/* Blog Hero */
/* Blog/Aktuelles page - Nav should have background immediately */
body:has(.blog-hero) .nav,
.nav.nav-on-light {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}

.blog-hero {
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-off-white) 100%);
  padding: calc(var(--space-3xl) + 80px) var(--space-lg) var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 115, 85, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.blog-hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.blog-hero-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.blog-hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-light);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* Category Filters */
.blog-filter-section {
  padding: var(--space-2xl) 0;
  background: var(--color-white);
  position: sticky;
  top: 80px;
  z-index: 10;
  border-bottom: 1px solid var(--color-border-light);
}

.blog-filters {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.blog-filter-btn {
  padding: var(--space-sm) var(--space-lg);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-base);
  letter-spacing: 0.02em;
}

.blog-filter-btn:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  transform: translateY(-2px);
}

.blog-filter-btn.active {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-white);
}

/* Featured Post */
.blog-featured-section {
  padding: var(--space-2xl) 0;
  background: var(--color-white);
}

.blog-featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  background: var(--color-off-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.blog-featured-post:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.blog-featured-image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.blog-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.blog-featured-post:hover .blog-featured-image img {
  transform: scale(1.05);
}

.blog-featured-content {
  padding: var(--space-3xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-featured-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.blog-featured-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: var(--color-secondary);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
}

.blog-featured-date {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.blog-featured-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.blog-featured-excerpt {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
}

/* Blog Grid */
.blog-grid-section {
  padding: var(--space-4xl) 0;
  background: var(--color-white);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: var(--space-2xl);
}

.blog-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-border);
}

.blog-card-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
  background: var(--color-off-white);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.08);
}

.blog-card-content {
  padding: var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.blog-card-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--color-off-white);
  color: var(--color-text);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
}

.blog-card-badge-news {
  background: #E3F2FD;
  color: #1976D2;
}

.blog-card-badge-offer {
  background: #FFF3E0;
  color: #F57C00;
}

.blog-card-badge-project {
  background: #E8F5E9;
  color: #388E3C;
}

.blog-card-badge-tip {
  background: #F3E5F5;
  color: #7B1FA2;
}

.blog-card-date {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

.blog-card-excerpt {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-light);
  flex: 1;
}

/* Empty State */
.blog-empty {
  text-align: center;
  padding: var(--space-4xl) var(--space-2xl);
}

.blog-empty-icon {
  color: var(--color-text-muted);
  opacity: 0.5;
  margin-bottom: var(--space-lg);
}

.blog-empty h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.blog-empty p {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 1024px) {
  .blog-hero-title {
    font-size: 2.5rem;
  }

  .blog-featured-post {
    grid-template-columns: 1fr;
  }

  .blog-featured-image {
    min-height: 300px;
  }

  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-xl);
  }
}

@media (max-width: 768px) {
  .blog-hero {
    padding: calc(var(--space-3xl) + 80px) var(--space-lg) var(--space-3xl);
  }

  .blog-hero-title {
    font-size: 2rem;
  }

  .blog-hero-subtitle {
    font-size: 1rem;
  }

  .blog-filter-section {
    position: relative;
    top: 0;
  }

  .blog-filters {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: var(--space-sm);
    -webkit-overflow-scrolling: touch;
  }

  .blog-filter-btn {
    white-space: nowrap;
  }

  .blog-featured-content {
    padding: var(--space-xl);
  }

  .blog-featured-title {
    font-size: 1.75rem;
  }

  .blog-featured-excerpt {
    font-size: 1rem;
  }

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

  .blog-card-image {
    height: 220px;
  }

  .blog-card-content {
    padding: var(--space-lg);
  }

  .blog-card-title {
    font-size: 1.25rem;
  }
}
