/* ==========================================================================
   XANTUM AG – Material Design 3 / Premium Corporate
   Version: 4.3
   ========================================================================== */

/* ---------- Custom Properties ---------- */
:root {
  /* Dark surfaces */
  --surface-dark: #0f1724;
  --surface-dark-variant: #1a2535;
  --surface-dark-card: #1e2a3d;
  --on-dark: #e4eaf4;
  --on-dark-muted: #8a97af;

  /* Light surfaces */
  --surface-light: #f4f6fa;
  --surface-light-card: #ffffff;
  --on-light: #1a1c2b;
  --on-light-muted: #5a6170;

  /* Primary (Teal) */
  --primary: #00d4aa;
  --primary-hover: #00e8bb;
  --primary-container: rgba(0, 212, 170, 0.10);
  --on-primary: #003d30;

  /* Secondary (Indigo) */
  --secondary: #667eea;
  --secondary-container: rgba(102, 126, 234, 0.10);

  /* Tertiary */
  --gold: #d4a853;
  --gold-container: rgba(212, 168, 83, 0.12);

  /* CTA Gradient */
  --gradient-cta: linear-gradient(135deg, #00d4aa 0%, #667eea 100%);
  --gradient-cta-hover: linear-gradient(135deg, #00e8bb 0%, #7b92f0 100%);
  --whatsapp: #25D366;

  /* Section Accent Tints */
  --surface-light-teal: #eef9f6;
  --surface-light-indigo: #f0f1fb;
  --surface-light-warm: #faf6ef;

  /* Material Elevation (enhanced) */
  --elevation-1: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --elevation-2: 0 8px 24px rgba(0,0,0,.10), 0 3px 8px rgba(0,0,0,.06);
  --elevation-3: 0 16px 40px rgba(0,0,0,.12), 0 6px 16px rgba(0,0,0,.08);
  --elevation-4: 0 24px 64px rgba(0,0,0,.16), 0 10px 24px rgba(0,0,0,.10);

  /* Border Radius – M3 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 100px;

  /* Fonts */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --max-width: 1100px;
  --nav-h: 64px;

  /* Gradient */
  --gradient-accent: linear-gradient(135deg, #00d4aa, #667eea);
}

/* ---------- Reset ---------- */
*, *::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-body);
  background: var(--surface-dark);
  color: var(--on-dark);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-hover); }
a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: var(--radius-sm); }

img { max-width: 100%; height: auto; display: block; }
address { font-style: normal; }

::selection { background: rgba(0,212,170,.25); color: #fff; }

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 999;
  padding: 8px 20px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.skip-link:focus { top: 0; color: var(--on-primary); }

/* ---------- NAV (Material Top App Bar) ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background .3s, box-shadow .3s;
}

.nav.scrolled {
  background: rgba(15, 23, 36, .95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--on-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;
  text-decoration: none;
}

.nav-logo:hover { color: var(--on-dark); }

.nav-logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

/* Nav Actions Container */


/* Base Nav CTA Button */

/* KI-Plattform Button (Primary with Icon Animation) */

@keyframes pulse-ai {
  0%, 100% { box-shadow: 0 2px 12px rgba(0,212,170,.25), 0 0 0 0 rgba(0,212,170,.4); }
  50% { box-shadow: 0 2px 12px rgba(0,212,170,.25), 0 0 0 3px rgba(0,212,170,.2); }
}

/* Kontakt Button (Secondary/Outline) */

/* Desktop Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 500;
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: color .2s;
  position: relative;
}

.nav-menu a:hover {
  color: var(--on-dark);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-cta);
  opacity: 0;
  transform: scaleX(0);
  transition: opacity .2s, transform .2s;
}

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

/* Mobile Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 102;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--on-dark);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

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

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

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

/* Mobile Drawer */
.nav-drawer {
  position: fixed;
  top: var(--nav-h);
  right: -100%;
  width: 280px;
  height: calc(100vh - var(--nav-h));
  background: var(--surface-dark-card);
  border-left: 1px solid rgba(255,255,255,.08);
  box-shadow: -4px 0 24px rgba(0,0,0,.3);
  transition: right .3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 101;
  overflow-y: auto;
}

.nav-drawer.open {
  right: 0;
}

.nav-drawer-inner {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.nav-drawer-link {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--on-dark);
  text-decoration: none;
  padding: 1rem;
  border-radius: var(--radius-md);
  transition: background .2s, color .2s;
}

.nav-drawer-link:hover {
  background: rgba(255,255,255,.06);
  color: var(--primary);
}

.nav-drawer-divider {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 1rem 0;
}

.nav-drawer-cta {
  font-family: var(--font-heading);
  font-size: .9rem;
  font-weight: 600;
  padding: .9rem 1rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: all .2s;
}

.nav-drawer-cta-ai {
  background: #143659;
  color: #fff;
  border: 1.5px solid #E8A819;
  margin-bottom: .25rem;
}

.nav-drawer-cta-ai:hover {
  box-shadow: 0 4px 20px rgba(0,212,170,.35);
  transform: translateY(-1px);
}

.nav-cta-ai {
  font-size: .85rem;
  font-weight: 600;
  padding: .45rem 1rem;
  border-radius: 99px;
  background: #143659;
  color: #fff;
  border: 1.5px solid #E8A819;
  text-decoration: none;
  transition: all .2s;
}
.nav-cta-ai:hover {
  background: #E8A819;
  color: #143659;
  border-color: #E8A819;
}

.nav-drawer-cta-sales {
  background: rgba(255,255,255,.08);
  color: var(--on-dark);
  border: 1.5px solid rgba(255,255,255,.15);
  margin-top: .5rem;
}

.nav-drawer-cta-sales:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.25);
}

/* ---------- HERO (Dark + Background Image) ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 32px 80px;
  position: relative;
  background: var(--surface-dark);
  background-image: url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

/* Dark overlay for text readability */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 18, 32, .88) 0%,
    rgba(12, 22, 38, .68) 40%,
    rgba(15, 23, 36, .92) 100%
  );
  pointer-events: none;
}

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

/* Material Chip / Badge */
.hero-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-container);
  padding: 8px 24px;
  border-radius: var(--radius-full);
  margin-bottom: 40px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 28px;
  color: var(--on-dark);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--on-dark-muted);
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--on-dark-muted);
  letter-spacing: .04em;
}

.hero-location svg { color: var(--primary); flex-shrink: 0; }

.hero-line {
  width: 80px;
  height: 3px;
  background: var(--gradient-accent);
  margin: 48px auto 0;
  border-radius: var(--radius-full);
}

/* ---------- SECTION BASE ---------- */
.section {
  padding: 100px 32px;
  position: relative;
}

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

.section-label {
  display: block;
  font-family: var(--font-heading);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 20px;
  text-align: center;
}

.section-text {
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto 20px;
  text-align: center;
  line-height: 1.85;
}

/* ---------- DARK SECTION DEFAULTS ---------- */
.section--dark {
  background: var(--surface-dark);
  color: var(--on-dark);
}

.section--dark .section-label { color: var(--primary); }
.section--dark .section-title { color: var(--on-dark); }
.section--dark .section-text { color: var(--on-dark-muted); }

/* ---------- LIGHT SECTION DEFAULTS ---------- */
.section--light {
  background: var(--surface-light);
  color: var(--on-light);
}

.section--light .section-label { color: var(--secondary); }
.section--light .section-title { color: var(--on-light); }
.section--light .section-text { color: var(--on-light-muted); }

.section--light a { color: var(--secondary); }
.section--light a:hover { color: #7b92f0; }

/* ---------- PHILOSOPHIE (Light) ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.value-card {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius-xl);
  background: var(--surface-light-card);
  box-shadow: var(--elevation-2);
  transition: transform .3s, box-shadow .3s;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--elevation-4);
}

.value-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--primary-container);
  color: var(--primary);
}

.value-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--on-light);
}

.value-card p {
  font-size: .9rem;
  color: var(--on-light-muted);
  line-height: 1.7;
}

/* ---------- TIMELINE (Dark) ---------- */
.timeline {
  max-width: 680px;
  margin: 48px auto 0;
  position: relative;
}

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

.timeline-item {
  display: flex;
  gap: 28px;
  padding-bottom: 40px;
  position: relative;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-year {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: .7rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--surface-dark);
  border: 2px solid rgba(0,212,170,.3);
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.timeline-content {
  padding-top: 12px;
}

.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--on-dark);
}

.timeline-content p {
  font-size: .9rem;
  color: var(--on-dark-muted);
  line-height: 1.7;
}

.timeline-content a {
  color: var(--primary);
}

/* Timeline expandable details */
.timeline-details {
  margin-top: 12px;
  border-radius: var(--radius-md);
  background: var(--surface-dark-variant);
  overflow: hidden;
}

.timeline-details summary {
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 600;
  padding: 12px 16px;
  cursor: pointer;
  color: var(--primary);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color .2s;
}

.timeline-details summary::-webkit-details-marker { display: none; }

.timeline-details summary::before {
  content: '+';
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--on-dark-muted);
  flex-shrink: 0;
  transition: transform .3s;
}

.timeline-details[open] summary::before {
  content: '\2212';
  color: var(--primary);
}

.timeline-details summary:hover { color: var(--primary-hover); }

.timeline-details p {
  font-size: .85rem;
  color: var(--on-dark-muted);
  line-height: 1.8;
  padding: 0 16px 16px;
}

/* ---------- PORTFOLIO (Light) ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.portfolio-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.portfolio-card {
  display: block;
  padding: 36px 32px;
  border-radius: var(--radius-xl);
  background: var(--surface-light-card);
  box-shadow: var(--elevation-2);
  position: relative;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  text-decoration: none;
  color: var(--on-light);
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--elevation-4);
  color: var(--on-light);
}

/* Material Chip Badge */
.portfolio-card-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--primary-container);
  color: #00a882;
  margin-bottom: 20px;
}

.badge-praxis {
  background: var(--secondary-container);
  color: #5068c8;
}

.portfolio-card-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -.01em;
  color: var(--on-light);
}

.portfolio-card-desc {
  font-size: .92rem;
  color: var(--on-light-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.portfolio-card-link {
  font-family: var(--font-heading);
  font-size: .8rem;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: .03em;
  transition: letter-spacing .2s;
}

.portfolio-card:hover .portfolio-card-link {
  letter-spacing: .08em;
}

/* ---------- FAQ (Dark) ---------- */
.faq-list {
  max-width: 720px;
  margin: 40px auto 0;
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.faq-item summary {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  padding: 20px 0;
  cursor: pointer;
  color: var(--on-dark);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color .2s;
}

.faq-item summary:hover { color: var(--primary); }
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--on-dark-muted);
  flex-shrink: 0;
  transition: transform .3s;
}

.faq-item[open] summary::after {
  content: '\2212';
  color: var(--primary);
}

.faq-item p {
  font-size: .92rem;
  color: var(--on-dark-muted);
  line-height: 1.8;
  padding: 0 0 20px;
}

.faq-item p a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- BLOG (Light) ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  background: var(--surface-light-card);
  box-shadow: var(--elevation-2);
  text-decoration: none;
  color: var(--on-light);
  transition: transform .3s, box-shadow .3s;
  overflow: hidden;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--elevation-4);
  color: var(--on-light);
}

.blog-card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

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

.blog-card-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-category {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--secondary-container);
  color: #5068c8;
  margin-bottom: 16px;
  align-self: flex-start;
}

.blog-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--on-light);
}

.blog-card p {
  font-size: .85rem;
  color: var(--on-light-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}

.blog-card-link {
  font-family: var(--font-heading);
  font-size: .78rem;
  font-weight: 600;
  color: var(--secondary);
  transition: letter-spacing .2s;
}

.blog-card:hover .blog-card-link {
  letter-spacing: .06em;
}

.blog-more {
  text-align: center;
  margin-top: 36px;
}

.blog-more-btn {
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 600;
  color: var(--secondary);
  padding: 12px 32px;
  border-radius: var(--radius-full);
  background: var(--secondary-container);
  transition: background .2s;
}

.blog-more-btn:hover {
  background: rgba(102, 126, 234, 0.18);
  color: var(--secondary);
}

/* ---------- STANDORT / MAP ---------- */
.map-container {
  margin-top: 40px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--elevation-3);
  background: var(--surface-light-card);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
}

.map-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: var(--surface-light-card);
}

.map-info-bar .map-pin {
  display: flex;
  align-items: center;
  gap: 12px;
}

.map-pin svg { color: var(--primary); flex-shrink: 0; }

.map-pin-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: .9rem;
  font-weight: 700;
  color: var(--on-light);
}

.map-pin-text span {
  font-size: .8rem;
  color: var(--on-light-muted);
}

/* Material Tonal Button */
.map-route-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: .8rem;
  font-weight: 600;
  color: var(--secondary);
  background: var(--secondary-container);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background .2s, box-shadow .2s;
}

.map-route-btn:hover {
  background: rgba(102, 126, 234, 0.18);
  box-shadow: var(--elevation-1);
  color: var(--secondary);
}

/* Dark map variant */
.map-info-bar--dark {
  background: var(--surface-dark-card);
}

.map-info-bar--dark .map-pin-text strong {
  color: var(--on-dark);
}

.map-info-bar--dark .map-pin-text span {
  color: var(--on-dark-muted);
}

.section--dark .map-container {
  background: var(--surface-dark-card);
}

/* ---------- KONTAKT ---------- */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
  align-items: start;
}

.kontakt-info-card {
  background: var(--surface-dark-card);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--elevation-2);
}

.kontakt-info-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--on-dark);
}

.kontakt-info-card p,
.kontakt-info-card address p {
  color: var(--on-dark-muted);
  font-size: .95rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.kontakt-email {
  margin-top: 8px;
}

.kontakt-email a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 1.05rem;
}

.kontakt-che {
  font-size: .8rem;
  color: var(--on-dark-muted);
  opacity: .6;
  margin-top: 12px;
}

.kontakt-che a {
  color: var(--on-dark-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.kontakt-che a:hover { color: var(--primary); }

/* Social Icons */
.kontakt-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.kontakt-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(0,0,0,.06);
  color: var(--on-light-muted);
  transition: background .2s, color .2s;
}

.kontakt-social a:hover {
  background: var(--primary-container);
  color: var(--primary);
}

.section--dark .kontakt-social a {
  background: rgba(255,255,255,.04);
  color: var(--on-dark-muted);
}

.section--dark .kontakt-social a:hover {
  background: var(--primary-container);
  color: var(--primary);
}

/* CTA Card */
.kontakt-cta-card {
  background: var(--surface-dark-card);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--elevation-2);
  text-align: center;
}

.kontakt-cta-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--on-dark);
}

.kontakt-cta-card p {
  color: var(--on-dark-muted);
  font-size: .92rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* Material Filled Button */
.kontakt-btns {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.kontakt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: var(--radius-full);
  background: var(--secondary-container);
  color: var(--secondary);
  text-decoration: none;
  transition: background .2s, box-shadow .2s, transform .15s;
  box-shadow: var(--elevation-1);
}

.kontakt-btn:hover {
  background: rgba(102, 126, 234, .18);
  color: var(--secondary);
  box-shadow: var(--elevation-2);
  transform: translateY(-2px);
}

/* Light Kontakt variant */
.kontakt-info-card--light {
  background: var(--surface-light-card);
}

.kontakt-info-card--light h3 { color: var(--on-light); }

.kontakt-info-card--light p,
.kontakt-info-card--light address p { color: var(--on-light-muted); }

.kontakt-info-card--light .kontakt-che { color: var(--on-light-muted); }
.kontakt-info-card--light .kontakt-che a { color: var(--on-light-muted); }
.kontakt-info-card--light .kontakt-che a:hover { color: var(--secondary); }

.kontakt-info-card--light .kontakt-email a { color: var(--secondary); }

.kontakt-cta-card--light {
  background: var(--surface-light-card);
}

.kontakt-cta-card--light h3 { color: var(--on-light); }
.kontakt-cta-card--light p { color: var(--on-light-muted); }

/* ---------- FOOTER (Sticky – immer sichtbar) ---------- */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: .85rem 0;
  border-top: 2px solid var(--primary);
  background: var(--surface-dark-variant);
  box-shadow: 0 -4px 20px rgba(0,0,0,.5);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.ft-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--on-dark-muted);
  font-size: .75rem;
  flex-wrap: wrap;
  gap: .5rem;
}

.ft-bottom p { margin: 0; }

.ft-legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.ft-legal a {
  color: var(--on-dark-muted);
  font-size: .75rem;
  transition: color .2s;
}

.ft-legal a:hover { color: var(--on-dark); }

/* Space for sticky footer */
main {
  padding-bottom: 50px;
  position: relative;
  z-index: 1;
}


/* ---------- FOOTER CTA (mobile only) ---------- */
.ft-cta {
  display: none;
}
/* mobile-cta-bar removed */

/* WhatsApp color */
.mcta-wa {
  background: #25D366;
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,211,102,.2);
}

.mcta-kontakt {
  background: rgba(255, 255, 255, .12);
  color: var(--on-dark);
  border: 1.5px solid rgba(255, 255, 255, .2);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* ---------- WhatsApp Button (Kontakt-Bereich) ---------- */
.kontakt-btn--wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  background: #25D366;
  color: #fff;
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, box-shadow .2s, transform .15s;
  box-shadow: 0 2px 12px rgba(37,211,102,.25);
}

.kontakt-btn--wa:hover {
  background: #20bd5a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,.35);
}

/* ---------- FADE-IN ANIMATION ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger */
.values .value-card:nth-child(2) { transition-delay: .1s; }
.values .value-card:nth-child(3) { transition-delay: .2s; }

/* ---------- 404 PAGE ---------- */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 32px;
  background: var(--surface-dark);
}

.error-page h1 {
  font-family: var(--font-heading);
  font-size: 6rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.error-page p {
  color: var(--on-dark-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.error-page a {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--elevation-2);
  transition: background .2s, box-shadow .2s;
}

.error-page a:hover {
  background: var(--primary-hover);
  color: var(--on-primary);
  box-shadow: var(--elevation-3);
}

/* ---------- PAGE TEMPLATE ---------- */
.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 32px 80px;
}

.page-content h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 32px;
  color: var(--on-dark);
}

.page-content h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--on-dark);
}

.page-content p {
  color: var(--on-dark-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.page-content ul, .page-content ol {
  color: var(--on-dark-muted);
  margin: 0 0 16px 20px;
  line-height: 1.8;
}

.page-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- ÜBER UNS PAGE ---------- */
.page-ueber-uns-wrap {
  position: relative;
  min-height: 100vh;
}
.page-bg-image {
  position: absolute;
  inset: 0;
  background: url('../img/bg-ueber-uns.jpg') center bottom / cover no-repeat;
  opacity: .15;
  pointer-events: none;
}
.page-ueber-uns-wrap .page-content {
  position: relative;
}

/* ---------- SECTION ACCENT TINTS ---------- */
.section--light-teal { background: var(--surface-light-teal); }
.section--light-indigo { background: var(--surface-light-indigo); }
.section--light-warm { background: var(--surface-light-warm); }

/* ---------- TESTIMONIALS ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--surface-dark-card);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--elevation-3);
  position: relative;
  transition: transform .3s, box-shadow .3s;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--elevation-4);
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 20px;
  left: 28px;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--primary);
  opacity: .15;
  line-height: 1;
}

.testimonial-quote {
  font-size: .95rem;
  color: var(--on-dark-muted);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: .75rem;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-meta strong {
  display: block;
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 700;
  color: var(--on-dark);
}

.testimonial-meta span {
  font-size: .78rem;
  color: var(--on-dark-muted);
}

/* Stagger */
.testimonials-grid .testimonial-card:nth-child(2) { transition-delay: .1s; }
.testimonials-grid .testimonial-card:nth-child(3) { transition-delay: .2s; }

/* OPINSTAR Reviews Widget */
.reviews-widget { margin-top: 2rem; border-radius: var(--radius-lg); background: #fff; padding: 1.5rem; }
.reviews-desktop { display: block; }
.reviews-mobile { display: none; }
@media (max-width: 768px) {
  .reviews-desktop { display: none; }
  .reviews-mobile { display: block; }
}

/* ---------- CTA SECTION ---------- */
.cta-section {
  padding: 80px 32px;
  background: linear-gradient(135deg, #0a2a3f 0%, #142040 40%, #1a1040 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(0,212,170,.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-headline {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--on-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta-text {
  font-size: 1.05rem;
  color: var(--on-dark-muted);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- GRADIENT CTA BUTTON ---------- */
.btn-gradient {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: var(--radius-full);
  background: var(--gradient-cta);
  color: #fff;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(0,212,170,.2);
  transition: transform .2s, box-shadow .2s;
}

.btn-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-cta-hover);
  opacity: 0;
  transition: opacity .3s;
  z-index: -1;
  border-radius: inherit;
}

.btn-gradient:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,212,170,.3);
}

.btn-gradient:hover::before { opacity: 1; }

/* Badge – Dienstleistung */
.badge-dienst {
  background: rgba(0, 212, 170, .12);
  color: #00a882;
}
.badge-ml { margin-left: 8px; }
.badge-coming-soon {
  background: #fff3e0;
  color: #e65100;
}

/* ---------- XANBOT POSITIONING (above sticky footer, same as xantum.online) ---------- */
@media (min-width: 769px) { #xb-root { bottom: 48px !important; right: 24px !important; } }
@media (max-width: 768px) {
  #xb-root { bottom: 160px !important; right: 12px !important; }
  #xb-root .xb-toggle { width: 44px !important; height: 44px !important; }
  #xb-root .xb-toggle img,
  #xb-root .xb-toggle svg { width: 28px !important; height: 28px !important; }
  #xb-root #xb-tip { font-size: .65rem !important; padding: 5px 9px !important; bottom: 46px !important; }
}

/* ---------- RESPONSIVE ---------- */

/* Tablet + Mobile Nav */
@media (max-width: 900px) {
  .values {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid--3 {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .kontakt-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .timeline::before { left: 24px; }

  .nav-menu {
    display: none;
  }

  .nav-burger {
    display: flex;
  }
}

@media (max-width: 768px) {

  .footer { padding: .6rem 0; bottom: 0; z-index: 90; padding-bottom: calc(.6rem + env(safe-area-inset-bottom, 0px)); }
  .footer-inner { padding: 0 16px; }
  .ft-cta {
    display: flex;
    gap: .5rem;
    margin-bottom: .5rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .ft-cta a {
    flex: 1;
    text-align: center;
    font-size: .75rem;
    padding: .55rem .5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
  }
  .ft-bottom { flex-direction: column; align-items: center; gap: 4px; }
  .ft-bottom p { font-size: .65rem; margin: 0; }
  .ft-legal { gap: 10px; justify-content: center; }
  .ft-legal a { font-size: .65rem; }

  main { padding-bottom: 100px !important; }

  /* Xanbot: handled via #xb-root in global media queries */
}

@media (max-width: 640px) {
  :root {
    --nav-h: 56px;
  }

  .nav-inner { padding: 0 16px; }
  .nav-logo span { font-size: .85rem; }
  .nav-logo img { width: 32px; height: 32px; }

  
  
  
  
  

  .hero {
    padding: 100px 20px 60px;
    min-height: 85vh;
  }

  .hero-badge { font-size: .7rem; margin-bottom: 28px; }
  .hero-title { font-size: 1.8rem; }
  .hero-sub { font-size: 1rem; }
  .hero-line { margin-top: 36px; }

  .section { padding: 64px 20px; }
  .section-title { font-size: 1.4rem; margin-bottom: 16px; }
  .section-text { font-size: .95rem; text-align: left; }

  .values { margin-top: 36px; }
  .value-card { padding: 28px 24px; border-radius: var(--radius-lg); }

  .timeline { margin-top: 32px; }
  .timeline-item { gap: 20px; }

  .portfolio-grid { margin-top: 28px; }
  .portfolio-card { padding: 28px 24px; border-radius: var(--radius-lg); }
  .portfolio-card-logo { font-size: 1.3rem; }

  .faq-list { margin-top: 28px; }
  .faq-item summary { font-size: .92rem; padding: 16px 0; }
  .faq-item p { font-size: .88rem; }

  .blog-grid { margin-top: 28px; }
  .blog-card { padding: 24px 20px; border-radius: var(--radius-lg); }

  .map-container { border-radius: var(--radius-lg); margin-top: 28px; }
  .map-container iframe { height: 360px; }
  .map-info-bar { padding: 16px 20px; flex-direction: column; gap: 16px; align-items: flex-start; }

  .kontakt-grid { margin-top: 28px; }
  .kontakt-info-card { padding: 28px 24px; border-radius: var(--radius-lg); }
  .kontakt-cta-card { padding: 28px 24px; border-radius: var(--radius-lg); }
  .kontakt-btns { flex-direction: column; }

  .testimonial-card { padding: 28px 24px; border-radius: var(--radius-lg); }
  .cta-section { padding: 64px 20px; }
  .cta-headline { font-size: 1.4rem; }
  .cta-buttons { flex-direction: column; align-items: center; }

  .ft-bottom { flex-direction: column; text-align: center; gap: .25rem; }
  .ft-legal { justify-content: center; }

  .page-content { padding: 100px 20px 60px; }
  .page-content h1 { font-size: 1.6rem; }

  .error-page h1 { font-size: 4rem; }
}

/* Extra Small Mobile – Nav Icons only */
@media (max-width: 480px) {
  
  
  
  
}

/* Disable hover transforms on touch */
@media (hover: none) {
  .kontakt-btn:hover,
  .kontakt-btn--wa:hover,
  
}

/* Small Mobile */
@media (max-width: 380px) {
  .hero-title { font-size: 1.5rem; }
  .hero-sub { font-size: .92rem; }
  .nav-logo img { width: 28px; height: 28px; }
  .error-page h1 { font-size: 3rem; }
}

/* ---------- WordPress Overrides ---------- */
.wp-block-image img { border-radius: var(--radius-md); }
.aligncenter { text-align: center; }
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  white-space: nowrap;
}

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