/* ============================================
   Centura AG - Design System v2.0
   Modern, professional Swiss business aesthetic
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;600;700;900&display=swap');

/* --- Design Tokens --- */
:root {
  /* Brand Colors */
  --primary: #0f4e92;
  --primary-dark: #0a3a6e;
  --primary-light: #1a6bc4;
  --accent: #0d6f4f;
  --accent-dark: #0a5a40;
  --accent-light: #11946a;
  --secondary: #106892;
  --highlight: #bc1915;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    #0f4e92 0%,
    #106892 50%,
    #0d6f4f 100%
  );
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --gradient-subtle: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  --gradient-hero: linear-gradient(
    to bottom,
    rgba(10, 28, 58, 0.5) 0%,
    rgba(10, 28, 58, 0.72) 100%
  );

  /* Typography */
  --font-family:
    'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --leading-tight: 1.15;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* 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;

  /* Layout */
  --max-width: 75rem;
  --max-width-narrow: 52rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 10px 40px rgba(0, 0, 0, 0.1);

  /* Borders */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--gray-700);
  background-color: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

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

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: var(--leading-tight);
  color: var(--gray-900);
  font-weight: 700;
}

h1 {
  font-size: var(--text-5xl);
}
h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}
h3 {
  font-size: var(--text-xl);
}

@media (max-width: 48rem) {
  h1 {
    font-size: var(--text-3xl);
  }
  h2 {
    font-size: var(--text-2xl);
  }
  h3 {
    font-size: var(--text-lg);
  }
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-24) 0;
}

.section--gray {
  background-color: var(--gray-50);
}

.text-center {
  text-align: center;
}
.text-primary {
  color: var(--primary);
}
.text-accent {
  color: var(--accent);
}
.text-muted {
  color: var(--gray-500);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.8rem 1.75rem;
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.btn--primary:hover {
  background-color: transparent;
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(13, 111, 79, 0.3);
}

.btn--secondary {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

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

.btn--outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

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

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

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

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: var(--text-lg);
}

/* --- Header / Navbar --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition-base);
}

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

.header > div {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-6);
}

.header .logo img {
  height: 2.5rem;
  width: auto;
}

.header nav {
  z-index: 99;
}

.header nav ul {
  display: flex;
  gap: var(--space-1);
}

.header nav .nav-wrapper > ul > li {
  position: relative;
}

@media (min-width: 52rem) {
  .header nav .nav-wrapper > ul > li {
    display: flex;
    align-self: center;
  }
}

.header nav .nav-wrapper > ul > li > a:not(.header__demo-button) {
  position: relative;
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.header nav .nav-wrapper > ul > li > a:not(.header__demo-button):hover,
.header nav .nav-wrapper > ul > li.active > a:not(.header__demo-button) {
  color: var(--primary);
  background-color: rgba(15, 78, 146, 0.06);
}

.header .hamburger-trigger {
  display: none;
}

.header .checkbox-label {
  display: none;
}

/* Sub-menu dropdown indicator */
.header .nav-wrapper > ul > li > a:has(+ .sub-menu)::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 6px;
  vertical-align: middle;
  opacity: 0.5;
}

/* Sub-menu */
.header .nav-wrapper > ul > li .sub-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  padding: var(--space-2);
  min-width: 14rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
  opacity: 0;
  transform: translateY(4px);
  transition: all var(--transition-base);
}

.header .nav-wrapper > ul > li:hover .sub-menu {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  z-index: 99;
}

.header .nav-wrapper > ul > li .sub-menu li a {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.header .nav-wrapper > ul > li .sub-menu li a:hover {
  color: var(--primary);
  background-color: var(--gray-50);
}

/* Demo button in nav — size override only, inherits .btn .btn--primary */
.header__demo-button {
  padding: var(--space-2) var(--space-4) !important;
  font-size: var(--text-sm) !important;
}

/* Lock body scroll when mobile nav is open */
@media (max-width: 52rem) {
  body:has(.header #check:checked) {
    overflow: hidden;
  }
}

/* Mobile nav */
@media (max-width: 52rem) {
  .header .checkbox-label {
    display: block;
    font-size: 1.375rem;
    cursor: pointer;
    color: var(--gray-700);
    padding: var(--space-2);
  }

  .header .nav-wrapper {
    display: none;
  }

  .header #check:checked ~ .nav-wrapper {
    display: block;
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    max-height: calc(100vh - 100%);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    padding: var(--space-3) var(--space-5);
  }

  .header #check:checked ~ .nav-wrapper > ul {
    flex-direction: column;
    gap: var(--space-1);
  }

  .header #check:checked ~ .nav-wrapper > ul > li > a {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    display: block;
  }

  .header .nav-wrapper > ul > li .sub-menu {
    display: flex;
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0 var(--space-4);
    opacity: 1;
    transform: none;
    min-width: auto;
    border-radius: 0;
  }

  .header .nav-wrapper > ul > li .sub-menu li a {
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
  }
}

/* --- Hero / Banner --- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: url('assets/banner.jpg');
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-20) var(--space-6);
  color: var(--white);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero__title {
  font-size: var(--text-6xl);
  font-weight: 900;
  color: var(--white);
  max-width: 48rem;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.9);
  max-width: 36rem;
  margin-bottom: var(--space-8);
  line-height: var(--leading-relaxed);
  font-weight: 300;
}

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

@media (max-width: 48rem) {
  .hero {
    min-height: 60vh;
  }

  .hero__title {
    font-size: var(--text-4xl);
  }

  .hero__subtitle {
    font-size: var(--text-lg);
  }
}

/* --- Page Header (sub-pages) --- */
.page-header {
  background: var(--primary);
  min-height: 22rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-20) var(--space-6) var(--space-24);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 50% at 10% 80%,
      rgba(255, 255, 255, 0.04) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 60% at 90% 20%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 55%
    );
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 4rem;
  background: var(--white);
  clip-path: polygon(0 60%, 100% 100%, 0 100%);
}

.page-header__eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

.page-header__title {
  font-size: var(--text-4xl);
  color: var(--white);
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 42rem;
}

.page-header__description {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  line-height: var(--leading-relaxed);
  font-weight: 300;
}

@media (max-width: 48rem) {
  .page-header {
    min-height: 16rem;
    padding: var(--space-16) var(--space-6) var(--space-20);
  }

  .page-header__title {
    font-size: var(--text-2xl);
  }

  .page-header__description {
    font-size: var(--text-base);
  }
}

/* --- Main Content --- */
body > article,
body > main {
  min-height: calc(100vh - 120px);
}

/* --- Section Intro --- */
.section-intro {
  text-align: center;
  max-width: var(--max-width-narrow);
  margin: 0 auto var(--space-16);
}

.section-intro h2 {
  color: var(--gray-900);
  margin-bottom: var(--space-4);
}

.section-intro p {
  font-size: var(--text-lg);
  color: var(--gray-500);
  line-height: var(--leading-relaxed);
}

.section-label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-slow);
}

.card__icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--space-5);
  color: var(--primary);
}

.card h3 {
  color: var(--gray-900);
  margin-bottom: var(--space-3);
  font-size: var(--text-lg);
}

.card p {
  color: var(--gray-500);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* --- USP Grid (homepage) --- */
.usp-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.usp-item {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  border: 1px solid var(--gray-100);
  transition: all var(--transition-slow);
}

.usp-item object {
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: var(--space-5);
}

.usp-item h3 {
  color: var(--primary);
  margin-bottom: var(--space-3);
  font-size: var(--text-lg);
  font-weight: 700;
}

.usp-item p {
  color: var(--gray-500);
  font-size: var(--text-sm);
  line-height: 1.6;
}

@media (max-width: 64rem) {
  .usp-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 36rem) {
  .usp-container {
    grid-template-columns: 1fr;
  }
}

/* --- Stats / Social Proof --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.stats__item {
  text-align: center;
}

.stats__number {
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stats__label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

.stats--dark .stats__number {
  color: var(--primary);
}

.stats--dark .stats__label {
  color: var(--gray-500);
}

@media (max-width: 48rem) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: all var(--transition-slow);
  display: flex;
  flex-direction: column;
}

.service-card__icon {
  height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  padding: var(--space-6);
}

.service-card__icon object {
  width: 100%;
  height: 100%;
  max-width: 10rem;
}

.service-card__body {
  padding: var(--space-8);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card__body .btn {
  align-self: flex-start;
}

.service-card__body h3 {
  color: var(--primary);
  margin-bottom: var(--space-3);
  font-size: var(--text-xl);
}

.service-card__body p {
  color: var(--gray-500);
  margin-bottom: var(--space-6);
  line-height: var(--leading-relaxed);
  flex: 1;
}

@media (max-width: 64rem) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 32rem;
    margin: 0 auto;
  }
}

/* --- Client Logos --- */
.client-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-10);
  padding: var(--space-8) 0;
}

.client-logos img {
  height: 2.5rem;
  width: auto;
  max-width: 10rem;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: all var(--transition-base);
}

/* --- CTA Section --- */
.cta {
  background: var(--primary);
  padding: var(--space-20) var(--space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 80% at 50% 50%,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 65%
  );
}

.cta header {
  position: relative;
  z-index: 1;
}

.cta h2 {
  color: var(--white);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-lg);
  max-width: var(--max-width-narrow);
  margin: 0 auto var(--space-8);
  font-weight: 300;
}

.cta .buttons {
  position: relative;
  z-index: 1;
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Content Sections --- */
.content__section {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  padding: var(--space-20) var(--space-6);
  max-width: var(--max-width);
  margin: 0 auto;
}

.content__section--reverse {
  flex-direction: row-reverse;
}

.content__text {
  flex: 1;
}

.content__text h2 {
  color: var(--gray-900);
  margin-bottom: var(--space-6);
}

.content__illustration-container {
  flex: 1;
  display: flex;
  justify-content: center;
}

.content__illustration-container object,
.content__illustration-container img {
  width: 100%;
  max-width: 28rem;
  height: auto;
}

.content__illustration {
  max-width: 100%;
  height: auto;
  max-height: 28rem;
  object-fit: contain;
}

@media (max-width: 52rem) {
  .content__section,
  .content__section--reverse {
    flex-direction: column;
    padding: var(--space-12) var(--space-6);
  }

  .content__illustration-container {
    order: -1;
    max-width: 20rem;
  }
}

/* --- Benefit Items --- */
.content__benefit {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-6);
  padding-left: var(--space-5);
  border-left: 2px solid var(--accent);
}

.content__benefit-title {
  font-size: var(--text-lg);
  color: var(--primary);
  font-weight: 700;
}

.content__benefit-description {
  color: var(--gray-500);
  line-height: var(--leading-relaxed);
}

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

.content__list-item {
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

/* --- Why Us Grid --- */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: var(--space-6);
}

.why-us-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-slow);
}

.why-us-card img {
  width: 100%;
  height: 10rem;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
}

.why-us-card h3 {
  color: var(--primary);
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.why-us-card p {
  color: var(--gray-500);
  line-height: var(--leading-relaxed);
  font-size: var(--text-sm);
}

@media (max-width: 52rem) {
  .why-us-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Team --- */
.ueber-uns {
  padding: var(--space-16) var(--space-6);
  max-width: var(--max-width);
  margin: 0 auto;
}

.ueber-uns ul {
  margin-left: var(--space-4);
}

.ueber-uns .team {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.ueber-uns .team-member {
  text-align: center;
  max-width: 16rem;
  min-width: 14rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: all var(--transition-slow);
}

.ueber-uns .team-member img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.ueber-uns .team-member h3 {
  padding: var(--space-4) var(--space-4) var(--space-1);
  font-size: var(--text-lg);
  color: var(--gray-900);
}

.ueber-uns .team-member p {
  padding: 0 var(--space-4);
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: 600;
}

.ueber-uns .team-member__linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-3);
  opacity: 0.4;
  transition: opacity var(--transition-base);
}

.ueber-uns .team-member__linkedin:hover {
  opacity: 1;
}

.ueber-uns .team-member__description {
  padding: var(--space-4);
  color: var(--gray-500);
  font-size: var(--text-sm);
  line-height: 1.6;
  border-top: 1px solid var(--gray-100);
  margin-top: var(--space-4);
}

/* --- Partners & Clients --- */
.partners-und-kunden {
  padding: var(--space-16) var(--space-6);
  max-width: var(--max-width);
  margin: 0 auto;
}

.partners-und-kunden .partners,
.partners-und-kunden .kunden {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-10);
  padding: var(--space-10);
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-100);
}

.partners-und-kunden .partner-tile,
.partners-und-kunden .kunden-tile {
  display: flex;
  justify-content: center;
  align-items: center;
}

.partners-und-kunden .partner-tile img,
.partners-und-kunden .kunden-tile img {
  max-width: 15rem;
  max-height: 6rem;
  object-fit: contain;
  transition: all var(--transition-base);
}

/* --- Solutions Page --- */
.loesungen {
  padding: var(--space-16) var(--space-6);
  max-width: var(--max-width);
  margin: 0 auto;
}

.loesungen ul {
  padding-left: var(--space-6);
  margin-top: var(--space-4);
  list-style: disc;
}

.loesungen ul li {
  color: var(--gray-600);
  margin-bottom: var(--space-2);
}

.loesungen-wrapper {
  display: flex;
  gap: var(--space-8);
  align-items: center;
}

.loesungen-wrapper > * {
  flex: 1;
}

.loesungen-wrapper > * img {
  max-width: 100%;
  border-radius: var(--radius-lg);
}

@media (max-width: 52rem) {
  .loesungen-wrapper {
    flex-direction: column;
  }
}

.loesungen .features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.loesungen .features .feature {
  background: var(--white);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  text-align: center;
  border: 1px solid var(--gray-100);
  transition: all var(--transition-slow);
}

.loesungen .features .feature h3 {
  color: var(--primary);
  margin-bottom: var(--space-3);
}

.loesungen .features .feature p {
  color: var(--gray-500);
  font-size: var(--text-sm);
}

@media (max-width: 52rem) {
  .loesungen .features {
    grid-template-columns: 1fr;
  }
}

.loesungen .industry-solutions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.loesungen .industry {
  background: var(--white);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-slow);
}

.loesungen .industry h3 {
  color: var(--primary);
  margin-bottom: var(--space-3);
}

.loesungen .industry p {
  color: var(--gray-500);
  font-size: var(--text-sm);
}

@media (max-width: 52rem) {
  .loesungen .industry-solutions {
    grid-template-columns: 1fr;
  }
}

/* --- Dienstleistung --- */
.dienstleistung {
  padding: var(--space-16) var(--space-6);
  max-width: var(--max-width);
  margin: 0 auto;
}

.dienstleistung .content {
  align-items: flex-start;
}

.dienstleistung .content p,
.dienstleistung .content li {
  color: var(--gray-600);
}

.dienstleistung .content ul,
.dienstleistung .content ol {
  margin: var(--space-3) 0 var(--space-6);
  padding-left: var(--space-5);
  list-style: disc;
}

.dienstleistung-main .dienstleistung-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 52rem) {
  .dienstleistung-main .dienstleistung-wrapper {
    grid-template-columns: 1fr;
  }
}

.dienstleistung-main .work-methode {
  display: flex;
  max-width: 100%;
  margin-bottom: var(--space-10);
}

.dienstleistung-main .work-methode object {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

/* --- Kontakt --- */
.kontakt {
  padding: var(--space-16) var(--space-6);
  max-width: var(--max-width);
  margin: 0 auto;
}

.address-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-6);
}

@media (min-width: 48rem) {
  .address-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

.address-grid p {
  margin: 0;
  line-height: var(--leading-relaxed);
  color: var(--gray-600);
}

.kontakt .map-container > * {
  margin-top: var(--space-8);
  height: 22rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.kontakt .map-container .leaflet-pane.leaflet-tile-pane {
  filter: grayscale(100%);
}

.kontakt .map-container .leaflet-marker-icon {
  filter: invert(30%);
}

/* Contact Form */
.contact-form {
  max-width: 40rem;
  margin: 0 auto;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

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

.contact-form__field--full {
  grid-column: 1 / -1;
}

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

.contact-form input,
.contact-form textarea {
  padding: var(--space-3);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-family: var(--font-family);
  transition: border-color var(--transition-base);
  background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 78, 146, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-form__submit {
  background-color: var(--accent);
  color: var(--white);
  padding: var(--space-3) var(--space-6);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: 600;
  font-family: var(--font-family);
  transition: all var(--transition-base);
}

.contact-form__submit:hover {
  background-color: var(--accent-dark);
  transform: translateY(-1px);
}

@media (max-width: 48rem) {
  .contact-form__grid {
    grid-template-columns: 1fr;
  }
}

/* Quick Contact */
.quick-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: var(--space-8);
  margin: var(--space-8) 0;
}

.quick-contact__item {
  text-align: center;
  padding: var(--space-8);
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-100);
}

.quick-contact__item h3 {
  color: var(--primary);
  margin-bottom: var(--space-3);
}

.quick-contact__link {
  color: var(--accent);
  font-weight: 600;
  transition: color var(--transition-base);
}

.quick-contact__link:hover {
  color: var(--primary);
}

/* Trust Signals */
.trust-signals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: var(--space-8);
  margin: var(--space-8) 0;
  text-align: center;
}

.trust-signals__item h3 {
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.trust-signals__item p {
  color: var(--gray-500);
}

/* --- ERPNext Modules --- */
.erpnext {
  padding: var(--space-16) var(--space-6);
  max-width: var(--max-width);
  margin: 0 auto;
}

.erpnext .modules {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.erpnext .module {
  display: flex;
  gap: var(--space-8);
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  transition: all var(--transition-slow);
}

.erpnext .module > img {
  width: 100%;
  max-height: 20rem;
  object-fit: cover;
}

.erpnext .module-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8);
  flex: 1;
}

@media (min-width: 52rem) {
  .erpnext .module {
    flex-direction: row;
  }

  .erpnext .module > img {
    width: 40%;
    flex: 0 0 40%;
    max-width: 100%;
  }

  .erpnext .module-content {
    flex: 1;
  }
}

@media (max-width: 52rem) {
  .erpnext .module {
    flex-direction: column;
  }
}

/* --- Frappe Framework --- */
.frappe-framework .content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.frappe-framework .features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.frappe-framework .feature {
  background: var(--gray-50);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--gray-100);
  transition: all var(--transition-slow);
}

.frappe-framework .elements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: var(--space-4);
}

.frappe-framework .element {
  background: var(--gray-50);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
}

@media (max-width: 48rem) {
  .frappe-framework .features {
    grid-template-columns: 1fr;
  }
}

/* --- Demo Page --- */
.demo {
  padding: var(--space-16) var(--space-6);
  max-width: var(--max-width);
  margin: 0 auto;
}

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

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

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

.demo__title {
  font-size: var(--text-3xl);
  color: var(--primary);
  font-weight: 800;
}

.demo__description {
  color: var(--gray-600);
  font-size: var(--text-lg);
}

.demo__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.demo__list li {
  position: relative;
  padding-left: var(--space-6);
  color: var(--gray-600);
}

.demo__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.demo__illustration img {
  max-width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.demo__form {
  padding: var(--space-12) 0;
}

.demo__form-content {
  max-width: 36rem;
  margin: 0 auto;
}

.demo__form .form-notice {
  color: var(--gray-500);
  font-size: var(--text-sm);
  text-align: center;
  padding: var(--space-4);
  background: var(--gray-50);
  border-radius: var(--radius-md);
}

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

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

.demo__form .form-group input,
.demo__form .form-group textarea {
  padding: var(--space-3);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-family: var(--font-family);
  transition: border-color var(--transition-base);
}

.demo__form .form-group input:focus,
.demo__form .form-group textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 111, 79, 0.1);
}

.demo__form .form-group textarea {
  resize: vertical;
  min-height: 8rem;
}

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

.demo__form .submit-button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  background-color: var(--accent);
  color: var(--white);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--text-base);
  font-family: var(--font-family);
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: all var(--transition-base);
}

.demo__form .submit-button:hover,
.submit-button:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 111, 79, 0.3);
}

@media (max-width: 52rem) {
  .demo__grid {
    grid-template-columns: 1fr;
  }

  .demo__illustration {
    order: -1;
  }
}

/* --- Karriere --- */
.karriere {
  padding: var(--space-16) var(--space-6);
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--white);
}

.karriere > * {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.karriere h2,
.karriere h3 {
  margin: var(--space-4) 0;
}

.karriere div,
.karriere ul,
.karriere p {
  color: var(--gray-600);
}

.karriere ul {
  margin-left: var(--space-4);
  list-style: disc;
}

/* --- Legal Pages --- */
.datenschutzerklaerung,
.impressum {
  background: var(--white);
  padding: var(--space-16) var(--space-6);
  max-width: var(--max-width);
  margin: 0 auto;
}

.datenschutzerklaerung ul {
  margin-left: var(--space-8);
  list-style: disc;
}

.datenschutzerklaerung h1 {
  font-size: var(--text-2xl) !important;
  margin-top: var(--space-2);
}

.datenschutzerklaerung * {
  font-size: var(--text-base) !important;
  color: var(--gray-600);
}

.datenschutzerklaerung h1,
.datenschutzerklaerung h2,
.datenschutzerklaerung h3 {
  color: var(--gray-900) !important;
}

/* --- Footer --- */
.footer {
  background: var(--gray-900);
  color: var(--gray-200);
  position: relative;
}

.footer > div {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-16) var(--space-6) var(--space-8);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-10);
}

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

.footer > div > div,
.footer > div > ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-sm);
}

.footer a {
  color: var(--gray-200);
  transition: color var(--transition-base);
}

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

.footer .swiss-digital-services {
  width: 8rem;
  margin-top: var(--space-4);
  opacity: 0.7;
  transition: opacity var(--transition-base);
}

.footer .swiss-digital-services:hover {
  opacity: 1;
}

.footer .illustrations-storyset {
  margin-top: var(--space-4);
}

.footer .illustrations-storyset > * {
  font-size: var(--text-xs);
  color: var(--gray-400);
}

@media (max-width: 52rem) {
  .footer > div {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

@media (max-width: 36rem) {
  .footer > div {
    grid-template-columns: 1fr;
  }
}

/* Remove old footer scroll-to-top pseudo element */
footer:before {
  display: none;
}

/* --- Wrapper/Content containers (compatibility) --- */
.wrapper {
  margin-bottom: var(--space-12);
}

.wrapper .content {
  background-color: var(--white);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-100);
}

.wrapper .content a:not(.btn) {
  color: var(--accent);
  font-weight: 500;
}

.wrapper .content a:not(.btn):hover {
  color: var(--primary);
}

/* --- Welcome Section (homepage) --- */
.welcome-content {
  text-align: center;
  padding: var(--space-16) var(--space-8);
}

.welcome-text {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.welcome-text h2 {
  color: var(--gray-900);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.welcome-subtitle {
  font-size: var(--text-xl);
  color: var(--accent);
  margin-bottom: var(--space-6);
  font-weight: 600;
}

.welcome-description {
  font-size: var(--text-lg);
  color: var(--gray-500);
  line-height: var(--leading-relaxed);
  max-width: 38rem;
  margin: 0 auto;
}

/* --- Dienstleistungs Container (homepage) --- */
.main .dienstleistungs-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.main .dienstleistungs-item {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-slow);
}

.main .dienstleistungs-item object {
  height: 10rem;
  margin-bottom: var(--space-5);
}

.main .dienstleistungs-item h2 {
  font-size: var(--text-xl);
  color: var(--primary);
  margin-bottom: var(--space-3);
}

.main .dienstleistungs-item p {
  color: var(--gray-500);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  flex: 1;
}

@media (max-width: 52rem) {
  .main .dienstleistungs-container {
    grid-template-columns: 1fr;
    max-width: 28rem;
    margin: var(--space-8) auto 0;
  }
}

/* --- Main (homepage) --- */
.main {
  padding: var(--space-16) var(--space-6);
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (max-width: 52rem) {
  .main {
    padding: var(--space-8) var(--space-4);
  }
}

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

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

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.reveal-stagger.visible > *:nth-child(1) {
  transition-delay: 0ms;
}
.reveal-stagger.visible > *:nth-child(2) {
  transition-delay: 80ms;
}
.reveal-stagger.visible > *:nth-child(3) {
  transition-delay: 160ms;
}
.reveal-stagger.visible > *:nth-child(4) {
  transition-delay: 240ms;
}
.reveal-stagger.visible > *:nth-child(5) {
  transition-delay: 320ms;
}
.reveal-stagger.visible > *:nth-child(6) {
  transition-delay: 400ms;
}

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- Misc compat --- */
.erpnext-schweiz {
  padding: var(--space-16) var(--space-6);
  max-width: var(--max-width);
  margin: 0 auto;
}

.frappe,
.beratung,
.hosting,
.anpassung {
  padding: var(--space-16) var(--space-6);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Banner (old compat - reused as hero) */
.banner {
  display: none;
}

/* --- Lightbox --- */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(5, 10, 20, 0.92);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.lightbox-overlay.is-open {
  display: flex;
}

.lightbox-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  max-width: 92vw;
  max-height: 92vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  object-fit: contain;
  animation: lightbox-in 0.22s ease;
}

@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--text-sm);
  text-align: center;
  margin: 0;
}

.lightbox-close {
  position: fixed;
  top: var(--space-5);
  right: var(--space-6);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-base);
  font-family: var(--font-family);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}
