/* ============================================
   EZYBAU — Design Tokens & Styles
   Colors derived from logo: 
   Blue #1565A0 / Gray #9EA6A8 / Dark #2B3A42
   ============================================ */

:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;
}

/* LIGHT MODE (default) */
:root, [data-theme="light"] {
  --color-bg: #f5f6f7;
  --color-surface: #ffffff;
  --color-surface-2: #f0f2f4;
  --color-surface-offset: #e8ebee;
  --color-divider: #d4d8dc;
  --color-border: #c8cdd2;
  --color-text: #1a2530;
  --color-text-muted: #5a6572;
  --color-text-faint: #9aa4ae;
  --color-text-inverse: #f5f6f7;
  --color-primary: #1565A0;
  --color-primary-hover: #0d4f80;
  --color-primary-active: #0a3d63;
  --color-primary-highlight: #d0e4f2;
  --color-dark: #2B3A42;
  --color-gray: #9EA6A8;
  --color-gray-light: #c5cbcd;
  --shadow-sm: 0 1px 2px oklch(0.2 0.01 230 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.01 230 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.01 230 / 0.12);
}

/* DARK MODE */
[data-theme="dark"] {
  --color-bg: #0f1419;
  --color-surface: #161c22;
  --color-surface-2: #1c242c;
  --color-surface-offset: #1a2028;
  --color-divider: #2a3440;
  --color-border: #354050;
  --color-text: #d0d6dc;
  --color-text-muted: #8a95a0;
  --color-text-faint: #5a6572;
  --color-text-inverse: #1a2530;
  --color-primary: #4a9fd4;
  --color-primary-hover: #3a8fc4;
  --color-primary-active: #2a7fb4;
  --color-primary-highlight: #1e3448;
  --color-dark: #d0d6dc;
  --color-gray: #8a95a0;
  --color-gray-light: #5a6572;
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0f1419;
    --color-surface: #161c22;
    --color-surface-2: #1c242c;
    --color-surface-offset: #1a2028;
    --color-divider: #2a3440;
    --color-border: #354050;
    --color-text: #d0d6dc;
    --color-text-muted: #8a95a0;
    --color-text-faint: #5a6572;
    --color-text-inverse: #1a2530;
    --color-primary: #4a9fd4;
    --color-primary-hover: #3a8fc4;
    --color-primary-active: #2a7fb4;
    --color-primary-highlight: #1e3448;
    --color-dark: #d0d6dc;
    --color-gray: #8a95a0;
    --color-gray-light: #5a6572;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
  }
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  color: var(--color-primary-hover);
}

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-8);
  }
}

/* Section spacing */
.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.section-title span {
  color: var(--color-primary);
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
  line-height: 1.7;
}

/* Short accent line (inspired by tp-sanierung) */
.accent-line {
  width: 48px;
  height: 3px;
  background: var(--color-primary);
  margin-bottom: var(--space-6);
  border-radius: 2px;
}

/* ============================================
   HEADER / NAV
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .header-inner {
    padding-inline: var(--space-8);
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.logo img {
  height: 52px;
  width: auto;
}

.logo-slogan {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-left: 2px solid var(--color-primary);
  padding-left: var(--space-3);
  line-height: 1.3;
  white-space: nowrap;
}

@media (max-width: 479px) {
  .logo-slogan {
    display: none;
  }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) 0;
  position: relative;
  letter-spacing: 0.02em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s var(--ease-out);
}

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

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-interactive),
              transform var(--transition-interactive),
              box-shadow var(--transition-interactive);
  white-space: nowrap;
}

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

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-interactive),
              border-color var(--transition-interactive),
              transform var(--transition-interactive);
  white-space: nowrap;
}

.btn-outline:hover {
  background: var(--color-surface);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
  z-index: 200;
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100dvh;
  background: var(--color-surface);
  padding: calc(72px + var(--space-8)) var(--space-8) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: right 0.4s var(--ease-out);
  z-index: 99;
  box-shadow: var(--shadow-lg);
}

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

.nav-mobile a {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-3) 0;
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: oklch(0 0 0 / 0.4);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Theme toggle */
.theme-toggle {
  padding: var(--space-2);
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  color: var(--color-text);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Hero Slider */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

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

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    oklch(0.18 0.02 230 / 0.78) 0%,
    oklch(0.22 0.01 230 / 0.58) 50%,
    oklch(0.25 0.02 230 / 0.42) 100%
  );
}

/* Slider indicators */
.hero-indicators {
  position: absolute;
  bottom: calc(var(--space-8) + 40px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: var(--space-3);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  border: 2px solid oklch(1 0 0 / 0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.hero-dot:hover {
  border-color: #fff;
  transform: scale(1.2);
}

.hero-dot.active {
  background: #fff;
  border-color: #fff;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: calc(72px + var(--space-12)) var(--space-4) var(--space-12);
  color: #fff;
}

@media (min-width: 768px) {
  .hero-content {
    padding-inline: var(--space-8);
    max-width: 750px;
    margin-inline: 0;
    margin-left: max(var(--space-8), calc((100vw - var(--content-wide)) / 2));
  }
}

.hero-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: oklch(1 0 0 / 0.7);
  margin-bottom: var(--space-4);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: var(--space-6);
  color: #fff;
}

.hero-title .thin {
  font-weight: 300;
  color: oklch(1 0 0 / 0.8);
}

.hero-description {
  font-size: var(--text-base);
  line-height: 1.7;
  color: oklch(1 0 0 / 0.8);
  max-width: 48ch;
  margin-bottom: var(--space-8);
}

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

.hero-actions .btn-primary {
  background: #fff;
  color: var(--color-primary);
}

.hero-actions .btn-primary:hover {
  background: var(--color-primary-highlight);
  color: var(--color-primary-hover);
}

.hero-actions .btn-outline {
  border-color: oklch(1 0 0 / 0.4);
  color: #fff;
}

.hero-actions .btn-outline:hover {
  background: oklch(1 0 0 / 0.1);
  border-color: oklch(1 0 0 / 0.7);
  color: #fff;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: oklch(1 0 0 / 0.5);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, oklch(1 0 0 / 0.5), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.5); }
}

/* ============================================
   WHY US
   ============================================ */

.why-us {
  background: var(--color-bg);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-10);
}

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

.why-card {
  position: relative;
  padding: var(--space-10) var(--space-8) var(--space-8);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.why-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.why-card-number {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: oklch(from var(--color-primary) l c h / 0.1);
  line-height: 1;
}

.why-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-5);
  color: var(--color-primary);
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.why-card p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================
   ABOUT US
   ============================================ */

.about {
  background: var(--color-surface);
}

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

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

.about-image-wrapper {
  position: relative;
}

.about-image-wrapper img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  right: calc(-1 * var(--space-4));
  bottom: calc(-1 * var(--space-4));
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.3;
}

.about-text p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.about-values {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.about-value-tag {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  border-radius: var(--radius-full);
}

/* ============================================
   REFERENZEN / REFERENCES
   ============================================ */

.references {
  background: var(--color-bg);
}

.ref-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-10);
}

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

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

.ref-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.ref-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

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

.ref-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(0.1 0.02 230 / 0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-6);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.ref-card:hover .ref-card-overlay {
  opacity: 1;
}

.ref-card-overlay h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-1);
}

.ref-card-overlay p {
  font-size: var(--text-sm);
  color: oklch(1 0 0 / 0.7);
}

/* ============================================
   ABLAUF / PROCESS
   ============================================ */

.process {
  background: #2B3A42;
  color: #fff;
}

.process .section-label {
  color: oklch(1 0 0 / 0.5);
}

.process .section-title {
  color: #fff;
}

.process .section-title span {
  color: var(--color-primary);
}

[data-theme="dark"] .process .section-title span {
  color: var(--color-primary);
}

.process .section-subtitle {
  color: oklch(1 0 0 / 0.6);
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-10);
}

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

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

.process-step {
  position: relative;
  padding: var(--space-8);
  background: oklch(1 0 0 / 0.05);
  border: 1px solid oklch(1 0 0 / 0.08);
  border-radius: var(--radius-lg);
}

.process-step-number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: oklch(1 0 0 / 0.1);
  line-height: 1;
  margin-bottom: var(--space-4);
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-3);
}

.process-step p {
  font-size: var(--text-sm);
  color: oklch(1 0 0 / 0.6);
  line-height: 1.7;
}

/* ============================================
   LEISTUNGEN / SERVICES
   ============================================ */

.services {
  background: var(--color-surface);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-10);
}

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

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

.service-card {
  padding: var(--space-8);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

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

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-5);
  color: var(--color-primary);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.service-card p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================
   PARTNER
   ============================================ */

.partners {
  background: var(--color-bg);
}

.partners-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-10);
}

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

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-8);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  text-decoration: none;
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.partner-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: oklch(from var(--color-primary) l c h / 0.2);
}

.partner-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100px;
  margin-bottom: var(--space-6);
  padding: var(--space-4);
}

.partner-logo-wrapper img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* In dark mode, invert dark logos for visibility */
[data-theme="dark"] .partner-logo-wrapper img {
  filter: brightness(0.9) contrast(1.1);
}

.partner-info h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.partner-info p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================
   CONTACT
   ============================================ */

.contact {
  background: var(--color-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  margin-top: var(--space-10);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-highlight);
  border-radius: var(--radius-md);
  color: var(--color-primary);
}

.contact-item h4 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.contact-item p, .contact-item a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  color: var(--color-text-muted);
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              border-color var(--transition-interactive);
}

.social-link:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* Form status messages */
.form-status[hidden] {
  display: none !important;
}

.form-status {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
}

.form-status svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.form-status strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.form-status p {
  font-size: var(--text-sm);
  line-height: 1.6;
  margin: 0;
}

.form-status--success {
  background: oklch(0.45 0.12 145 / 0.12);
  border: 1px solid oklch(0.45 0.12 145 / 0.25);
  color: oklch(0.35 0.1 145);
}

.form-status--success svg {
  color: oklch(0.45 0.12 145);
}

.form-status--error {
  background: oklch(0.55 0.2 25 / 0.1);
  border: 1px solid oklch(0.55 0.2 25 / 0.25);
  color: oklch(0.45 0.15 25);
}

.form-status--error svg {
  color: oklch(0.55 0.2 25);
}

[data-theme="dark"] .form-status--success {
  background: oklch(0.45 0.12 145 / 0.15);
  color: oklch(0.75 0.1 145);
}

[data-theme="dark"] .form-status--error {
  background: oklch(0.55 0.2 25 / 0.15);
  color: oklch(0.75 0.12 25);
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.12);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.15);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: #2B3A42;
  color: oklch(1 0 0 / 0.7);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-logo {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.footer-slogan {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(1 0 0 / 0.45);
  margin-top: var(--space-2);
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: oklch(1 0 0 / 0.5);
  margin-top: var(--space-4);
  max-width: 35ch;
}

.footer h4 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.footer-links li a {
  font-size: var(--text-sm);
  color: oklch(1 0 0 / 0.5);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.footer-links li a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid oklch(1 0 0 / 0.1);
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p,
.footer-bottom a {
  font-size: var(--text-xs);
  color: oklch(1 0 0 / 0.35);
}

.footer-bottom a:hover {
  color: oklch(1 0 0 / 0.7);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.fade-in {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}

.reveal-up {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .reveal-up {
    clip-path: inset(100% 0 0 0);
    animation: reveal-clip linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

@keyframes reveal-clip {
  to { clip-path: inset(0 0 0 0); }
}

/* ============================================
   FOOTER LEGAL LINKS
   ============================================ */

.footer-legal {
  display: flex;
  gap: var(--space-6);
  align-items: center;
  flex-wrap: wrap;
}

/* ============================================
   COOKIE CONSENT BANNER (DSGVO)
   ============================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 24px oklch(0 0 0 / 0.12);
  padding: var(--space-6) var(--space-4);
}

[data-theme="dark"] .cookie-banner {
  box-shadow: 0 -4px 24px oklch(0 0 0 / 0.3);
}

.cookie-banner-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
}

@media (min-width: 768px) {
  .cookie-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
  }
}

.cookie-banner-text p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-1);
}

.cookie-banner-text p:first-child {
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

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

.cookie-banner-actions {
  flex-shrink: 0;
}

.cookie-accept {
  white-space: nowrap;
}

/* ============================================
   RESPONSIVE IMPROVEMENTS
   ============================================ */

/* Improve touch targets on mobile */
@media (max-width: 767px) {
  .hero-content {
    padding-top: calc(72px + var(--space-8));
    padding-bottom: var(--space-16);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    width: 100%;
    justify-content: center;
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-base);
  }

  /* Stack contact items more compactly on mobile */
  .contact-info {
    gap: var(--space-4);
  }

  /* Full-width submit button is already set, but ensure spacing */
  .contact-form .btn-primary {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-base);
  }

  /* Footer grid: 2 columns on small screens */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  /* Improve Why Us cards spacing */
  .why-card {
    padding: var(--space-8) var(--space-6) var(--space-6);
  }

  /* Services cards touch-friendly */
  .service-card {
    padding: var(--space-6);
  }

  /* Better hero dot targets on mobile */
  .hero-dot {
    width: 14px;
    height: 14px;
    border-width: 2px;
  }

  .hero-indicators {
    gap: var(--space-4);
  }
}

/* Small phone breakpoint */
@media (max-width: 374px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-legal {
    flex-direction: column;
    gap: var(--space-2);
  }
}

/* Ensure picture elements inside hero-slide behave correctly */
.hero-slide picture {
  display: contents;
}

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

/* Picture elements in ref-cards */
.ref-card picture {
  display: contents;
}

.ref-card picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

/* Picture elements in about section */
.about-image-wrapper picture {
  display: contents;
}

.about-image-wrapper picture img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-float:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: var(--space-6);
    right: var(--space-6);
    width: 50px;
    height: 50px;
  }
  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}
