/* ═══════════════════════════════════════════════════════════════════════ */
/* GLANZ DESIGN – Main Stylesheet                                          */
/* ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* Brand Colors (OKLCH-tuned, fallback hex) */
  --color-blue:           #0052CC;
  --color-blue-400:       #2D7FF9;
  --color-blue-600:       #003D99;
  --color-blue-700:       #002F77;
  --color-blue-deep:      #0A1A3A;
  --color-blue-50:        #EBF1FB;
  --color-blue-100:       #D6E4F7;
  --color-purple:         #7C3AED;
  --color-purple-light:   #A78BFA;
  --color-purple-50:      #F4F0FE;

  /* Neutrals (slightly tinted toward brand) */
  --color-white:          #FFFFFF;
  --color-paper:          #FBFAFD;     /* warm off-white tint */
  --color-cream:          #F5F2EE;     /* subtle, used in cards */
  --color-grey-50:        #F7F8FB;
  --color-grey-100:       #F0F1F5;
  --color-grey-200:       #E4E6EC;
  --color-grey-300:       #C8CCD6;
  --color-grey-400:       #A0A6B5;
  --color-grey-500:       #6B7280;
  --color-grey-600:       #4B5563;
  --color-grey-800:       #1F2937;
  --color-grey-900:       #0F172A;

  /* Semantic Tokens */
  --bg-page:              var(--color-paper);
  --bg-elevated:          var(--color-white);
  --bg-dark:              var(--color-blue-deep);
  --bg-subtle:            var(--color-grey-50);
  --text-primary:         var(--color-grey-900);
  --text-secondary:       var(--color-grey-600);
  --text-muted:           var(--color-grey-500);
  --text-inverse:         var(--color-white);
  --border-color:         var(--color-grey-200);
  --border-strong:        var(--color-grey-300);
  --focus-ring:           0 0 0 3px rgba(0, 82, 204, 0.30);

  /* Typography */
  --font-sans:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif:   'Fraunces', 'Iowan Old Style', 'Apple Garamond', 'Baskerville', serif;

  --text-xs:      0.75rem;     /* 12px */
  --text-sm:      0.875rem;    /* 14px */
  --text-base:    1rem;        /* 16px */
  --text-lg:      1.125rem;    /* 18px */
  --text-xl:      1.25rem;     /* 20px */
  --text-2xl:     1.5rem;      /* 24px */
  --text-3xl:     1.875rem;    /* 30px */
  --text-4xl:     2.25rem;     /* 36px */
  --text-5xl:     3rem;        /* 48px */
  --text-6xl:     3.75rem;     /* 60px */
  --text-7xl:     4.5rem;      /* 72px */
  --text-display: clamp(2.75rem, 6vw, 5.25rem);

  --fw-regular:   400;
  --fw-medium:    500;
  --fw-semibold:  600;
  --fw-bold:      700;
  --fw-extrabold: 800;

  --lh-tight:     1.05;
  --lh-snug:      1.25;
  --lh-normal:    1.55;
  --lh-relaxed:   1.7;

  --tracking-tight:  -0.025em;
  --tracking-snug:   -0.012em;
  --tracking-wide:    0.04em;
  --tracking-wider:   0.12em;

  /* Spacing (8px grid) */
  --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 */
  --shell-width:        1200px;
  --shell-padding:      var(--space-6);
  --header-height:      5.5rem;

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

  /* Shadows (warm, layered) */
  --shadow-xs:   0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-sm:   0 2px 4px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md:   0 8px 24px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg:   0 20px 40px rgba(15, 23, 42, 0.10), 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-xl:   0 32px 64px rgba(15, 23, 42, 0.14), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-blue: 0 12px 32px rgba(0, 82, 204, 0.30), 0 2px 8px rgba(0, 82, 204, 0.20);
  --shadow-blue-lg: 0 20px 50px rgba(0, 82, 204, 0.38);
  --shadow-blue-glow: 0 0 0 4px rgba(45, 127, 249, 0.18), 0 14px 36px rgba(45, 127, 249, 0.50), 0 0 60px rgba(45, 127, 249, 0.55);

  /* Easing */
  --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
  --ease-out-expo:  cubic-bezier(0.19, 1, 0.22, 1);
  --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);

  --transition-fast:    180ms var(--ease-out-quart);
  --transition-base:    300ms var(--ease-out-quart);
  --transition-slow:    600ms var(--ease-out-expo);
}

/* ─────────────────────────────────────────────────────────────────────── */
/* RESET & BASE                                                            */
/* ─────────────────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

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

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: var(--space-3) var(--space-4);
  background: var(--color-blue);
  color: white;
  border-radius: 0 0 var(--radius-md) 0;
  z-index: 1000;
  font-weight: var(--fw-semibold);
}

.skip-link:focus {
  left: 0;
}

/* ─────────────────────────────────────────────────────────────────────── */
/* PRELOADER                                                               */
/* ─────────────────────────────────────────────────────────────────────── */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-page);
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 900ms var(--ease-out-quart), visibility 0s linear 900ms;
}

.preloader__bg {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 22% 32%, rgba(0, 82, 204, 0.09), transparent 55%),
    radial-gradient(circle at 78% 68%, rgba(124, 58, 237, 0.09), transparent 55%);
  filter: blur(40px);
  animation: preloader-drift 7s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes preloader-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-3%, -2%, 0) scale(1.06); }
}

.preloader__brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-sans);
  font-size: clamp(2.25rem, 6.5vw, 4rem);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-snug);
  color: var(--text-primary);
  white-space: nowrap;
}

.preloader__brand-glanz {
  font-weight: var(--fw-medium);
  color: var(--text-primary);
}

.preloader__brand-design {
  font-weight: var(--fw-bold);
  color: var(--color-blue);
}

.preloader__char {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  animation: preloader-char-in 750ms var(--ease-out-expo) both;
  will-change: opacity, transform;
}

@keyframes preloader-char-in {
  to { opacity: 1; transform: translateY(0); }
}

.preloader__brand-glanz  .preloader__char:nth-child(1) { animation-delay: 100ms; }
.preloader__brand-glanz  .preloader__char:nth-child(2) { animation-delay: 200ms; }
.preloader__brand-glanz  .preloader__char:nth-child(3) { animation-delay: 300ms; }
.preloader__brand-glanz  .preloader__char:nth-child(4) { animation-delay: 400ms; }
.preloader__brand-glanz  .preloader__char:nth-child(5) { animation-delay: 500ms; }
.preloader__brand-design .preloader__char:nth-child(1) { animation-delay: 620ms; }
.preloader__brand-design .preloader__char:nth-child(2) { animation-delay: 720ms; }
.preloader__brand-design .preloader__char:nth-child(3) { animation-delay: 820ms; }
.preloader__brand-design .preloader__char:nth-child(4) { animation-delay: 920ms; }
.preloader__brand-design .preloader__char:nth-child(5) { animation-delay: 1020ms; }
.preloader__brand-design .preloader__char:nth-child(6) { animation-delay: 1120ms; }

/* Body lock + content hide while loader is up */
body.is-loading {
  overflow: hidden;
}

body.is-loading > main,
body.is-loading > .site-header {
  opacity: 0;
}

/* Loader fade-out */
body.is-loaded .preloader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Hero choreography revealed after loader */
body.is-loaded .hero__content,
body.is-loaded .hero__visual {
  opacity: 1;
  transform: none;
}

body.is-loaded .site-header,
body.is-loaded .hero__badge,
body.is-loaded .hero__headline,
body.is-loaded .hero__subline,
body.is-loaded .hero__actions {
  animation: preloader-stage-in 1500ms var(--ease-out-expo) both;
}

body.is-loaded .hero__visual {
  animation: preloader-stage-in-visual 1700ms var(--ease-out-expo) both;
}

body.is-loaded .site-header     { animation-delay:  80ms; }
body.is-loaded .hero__badge     { animation-delay: 160ms; }
body.is-loaded .hero__headline  { animation-delay: 260ms; }
body.is-loaded .hero__subline   { animation-delay: 360ms; }
body.is-loaded .hero__actions   { animation-delay: 460ms; }
body.is-loaded .hero__visual    { animation-delay: 160ms; }

@keyframes preloader-stage-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes preloader-stage-in-visual {
  from { opacity: 0; transform: scale(0.975); }
  to   { opacity: 1; transform: scale(1); }
}

/* Reduced motion: present without animation */
@media (prefers-reduced-motion: reduce) {
  .preloader__bg { animation: none; }
  .preloader__char {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .preloader { transition: opacity 200ms linear, visibility 0s linear 200ms; }
  body.is-loaded .site-header,
  body.is-loaded .hero__badge,
  body.is-loaded .hero__headline,
  body.is-loaded .hero__subline,
  body.is-loaded .hero__actions,
  body.is-loaded .hero__visual {
    animation: none;
  }
}

/* ─────────────────────────────────────────────────────────────────────── */
/* LAYOUT UTILITIES                                                        */
/* ─────────────────────────────────────────────────────────────────────── */

.shell {
  width: 100%;
  max-width: var(--shell-width);
  margin-inline: auto;
  padding-inline: var(--shell-padding);
}

.section {
  padding-block: var(--space-24);
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding-block: var(--space-16);
  }
}

.section__header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--space-16);
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: var(--space-4);
  padding: var(--space-1) var(--space-3);
  background: var(--color-blue-50);
  border-radius: var(--radius-full);
}

.section__eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-blue);
}

.section__title {
  font-family: var(--font-sans);
  font-size: clamp(var(--text-3xl), 4.5vw, var(--text-5xl));
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}

.section__subtitle {
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
  max-width: 600px;
  margin-inline: auto;
}

.text-gradient-divider {
  display: inline-block;
  width: 0.6em;
  height: 0.06em;
  vertical-align: middle;
  background: linear-gradient(90deg, var(--color-blue), var(--color-purple));
  border-radius: var(--radius-full);
  margin: 0 0.18em;
}

/* ─────────────────────────────────────────────────────────────────────── */
/* BUTTONS                                                                 */
/* ─────────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  line-height: 1;
  letter-spacing: -0.005em;
  border-radius: var(--radius-full);
  transition: background var(--transition-fast),
              transform var(--transition-fast),
              box-shadow var(--transition-fast),
              color var(--transition-fast),
              border-color var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn--primary {
  background: var(--color-blue);
  color: var(--color-white);
  box-shadow: var(--shadow-blue);
}

.btn--primary:hover {
  background: var(--color-blue-400);
  box-shadow: var(--shadow-blue-glow);
}

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

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

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
}

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

.btn--sm {
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-base);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

.btn svg {
  transition: transform var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(2px);
}

/* ─────────────────────────────────────────────────────────────────────── */
/* HEADER                                                                  */
/* ─────────────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 253, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition-base),
              border-color var(--transition-base),
              box-shadow var(--transition-base);
}

.site-header--scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

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

.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity var(--transition-fast);
}

.site-header__logo:hover {
  opacity: 0.85;
}

.site-header__logo-mark {
  display: inline-flex;
  align-items: center;
  height: 60px;
  flex-shrink: 0;
}

.site-header__logo-mark svg,
.site-header__logo-mark img {
  height: 100%;
  width: auto;
  display: block;
}

.site-header__logo-text {
  font-size: 1.375rem;
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  letter-spacing: var(--tracking-snug);
  white-space: nowrap;
}

.site-header__logo-text strong {
  font-weight: var(--fw-bold);
  color: var(--color-blue);
}

.site-header__nav {
  display: none;
  flex: 1;
  justify-content: center;
}

.site-header__nav-list {
  display: flex;
  gap: var(--space-2);
  background: rgba(15, 23, 42, 0.04);
  padding: 6px;
  border-radius: var(--radius-full);
}

.site-header__nav-link {
  position: relative;
  display: inline-block;
  padding: 10px var(--space-5);
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: color var(--transition-fast),
              background var(--transition-fast),
              box-shadow var(--transition-fast),
              transform var(--transition-fast);
}

.site-header__nav-link:hover {
  color: var(--text-primary);
  background: var(--color-white);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  transform: translateY(-1px);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.site-header__hamburger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.site-header__hamburger:hover {
  background: rgba(15, 23, 42, 0.04);
}

/* Hamburger-Icons als Inline-SVG (Lucide-Stil): garantiert pixelgenaues,
   gleichmäßiges Rendering der drei Linien bzw. des X auf allen Geräten.
   Menu-Icon und Close-Icon liegen beide im Button — eines ist je nach
   aria-expanded-State ausgeblendet. */
.site-header__hamburger-icon {
  display: block;
  color: var(--text-primary);
  transition: opacity var(--transition-fast);
}

.site-header__hamburger-icon--close {
  display: none;
}

.site-header__hamburger[aria-expanded="true"] .site-header__hamburger-icon--menu {
  display: none;
}

.site-header__hamburger[aria-expanded="true"] .site-header__hamburger-icon--close {
  display: block;
}

/* Mobile-Nav als Vollbild-Overlay (unterhalb des Headers).
   Wenn der User auf das Menü-Symbol klickt, deckt das Overlay die komplette
   restliche Viewport-Fläche ab — er sieht nur noch Über uns / Leistungen /
   Projekte / Kontakt + CTA. Design bewusst minimal gehalten. */
.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  padding: var(--space-8) var(--space-6);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
  z-index: 50;
  overflow-y: auto;
}

.mobile-nav--open {
  opacity: 1;
  visibility: visible;
}

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

.mobile-nav__link {
  display: block;
  padding: var(--space-5) var(--space-2);
  font-size: var(--text-2xl);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  transition: color var(--transition-fast);
}

.mobile-nav__link:hover {
  color: var(--color-blue);
}

.mobile-nav__cta {
  width: 100%;
  margin-top: var(--space-8);
  font-size: var(--text-lg);
}

@media (min-width: 901px) {
  .site-header__nav { display: flex; }
  .site-header__hamburger { display: none; }
  .mobile-nav { display: none; }
}

@media (max-width: 900px) {
  .site-header__nav { display: none; }
  .site-header__hamburger { display: flex; }
  .site-header__actions .btn--primary { display: none; }
}

/* ─────────────────────────────────────────────────────────────────────── */
/* HERO                                                                    */
/* ─────────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding-block: var(--space-24) var(--space-20);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

.hero__orb--blue {
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(0, 82, 204, 0.45) 0%, transparent 70%);
  top: -160px;
  right: -120px;
}

.hero__orb--purple {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.40) 0%, transparent 70%);
  bottom: -120px;
  left: -60px;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 90%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--space-16);
  align-items: center;
}

.hero__content {
  max-width: 620px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-xs);
}

.hero__badge-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  position: relative;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
  animation: pulse 2.4s var(--ease-out-quart) infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0.08); }
}

.hero__headline {
  font-size: var(--text-display);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

.hero__headline--accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: var(--fw-medium);
  color: var(--color-blue);
  letter-spacing: -0.01em;
}

.hero__subline {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-8);
  max-width: 540px;
}

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

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-color);
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: var(--fw-medium);
}

.hero__trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-blue-50);
  color: var(--color-blue);
  font-size: 11px;
  font-weight: var(--fw-bold);
  flex-shrink: 0;
}

/* Hero Visual */
.hero__visual {
  position: relative;
  height: 540px;
}

.device {
  position: absolute;
  background: var(--color-white);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.device--browser {
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius-xl);
  top: 20px;
  right: -20px;
  transform: rotate(2deg);
  border: 1px solid var(--border-color);
}

.device--phone {
  width: 180px;
  height: 360px;
  border-radius: 32px;
  bottom: 0;
  left: -10px;
  transform: rotate(-6deg);
  border: 8px solid #1F2937;
  box-shadow: var(--shadow-xl), inset 0 0 0 1px rgba(255,255,255,0.2);
}

.device__bar {
  background: var(--color-grey-100);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border-color);
}

.device__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.device__url {
  margin-left: var(--space-3);
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'SF Mono', monospace;
}

.device__notch {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 16px;
  background: #1F2937;
  border-radius: 0 0 10px 10px;
  z-index: 2;
}

.device__screen {
  background: var(--color-white);
  height: 380px;
  overflow: hidden;
  position: relative;
}

.device--phone .device__screen {
  height: 100%;
  border-radius: 22px;
}

/* Preview content inside devices */
.preview {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.preview--mobile {
  padding: 28px 14px 14px;
  gap: 10px;
}

.preview__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-grey-100);
}

.preview__logo {
  width: 60px;
  height: 16px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-purple));
  border-radius: 4px;
}

.preview__nav-items {
  display: flex;
  gap: 10px;
}

.preview__nav-items span {
  display: block;
  width: 24px;
  height: 6px;
  background: var(--color-grey-200);
  border-radius: 3px;
}

.preview__hero {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0;
}

.preview__title {
  height: 14px;
  width: 90%;
  background: var(--color-grey-200);
  border-radius: 4px;
}

.preview__title--short {
  width: 65%;
}

.preview--mobile .preview__title {
  height: 18px;
}

.preview__text {
  height: 8px;
  width: 100%;
  background: var(--color-grey-100);
  border-radius: 3px;
}

.preview__text--short {
  width: 70%;
}

.preview__cta {
  height: 28px;
  width: 110px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-purple));
  border-radius: 6px;
  margin-top: 6px;
  box-shadow: 0 4px 12px rgba(0,82,204,0.20);
}

.preview--mobile .preview__cta {
  width: 100%;
}

.preview__cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}

.preview__card {
  height: 70px;
  background: linear-gradient(135deg, var(--color-grey-50), var(--color-grey-100));
  border-radius: 8px;
  border: 1px solid var(--color-grey-100);
}

.preview__card:nth-child(1) {
  background: linear-gradient(135deg, rgba(0, 82, 204, 0.08), rgba(0, 82, 204, 0.16));
}

.preview__card:nth-child(2) {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(124, 58, 237, 0.16));
}

/* Floating cards */
.hero__card {
  position: absolute;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border: 1px solid var(--border-color);
  z-index: 3;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.hero__card--success {
  bottom: 60px;
  right: -10px;
  animation-delay: -2s;
}

.hero__card--projects {
  top: 0;
  left: 100px;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: var(--space-4);
  animation-delay: -4s;
}

.hero__card-icon {
  flex-shrink: 0;
}

.hero__card-content {
  display: flex;
  flex-direction: column;
}

.hero__card-title {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  line-height: 1.2;
}

.hero__card-meta {
  font-size: var(--text-xs);
  color: #10B981;
  font-weight: var(--fw-semibold);
  margin-top: 2px;
}

.hero__card-number {
  font-size: var(--text-2xl);
  font-weight: var(--fw-extrabold);
  color: var(--color-blue);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
}

.hero__card-label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.3;
}

@media (max-width: 1100px) {
  .hero__inner {
    gap: var(--space-10);
  }
  .hero__card--success { right: -30px; }
  .hero__card--projects { left: 60px; }
}

@media (max-width: 900px) {
  /* Hero-Padding unten reduziert, damit die Stats-Bar näher an den
     Hero-Content rückt (Visual ist auf Mobile komplett ausgeblendet) */
  .hero {
    padding-block: var(--space-16) var(--space-6);
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
  .hero__content {
    max-width: 100%;
    text-align: center;
  }
  .hero__subline {
    margin-inline: auto;
  }
  .hero__actions {
    justify-content: center;
  }
  .hero__trust {
    justify-content: center;
  }
  /* Komplette Hero-Visual-Sektion auf Mobile/Tablet-Hochkant ausblenden:
     Browser-Mockup, Handy-Mockup und beide Floating-Cards verschwinden,
     damit der Hero-Inhalt im Fokus steht und die Stats-Bar näher rückt. */
  .hero__visual {
    display: none;
  }
  /* "Kostenloses Erstgespräch"-CTA prominenter / größer auf Mobile */
  .hero__actions .btn--primary {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-xl);
  }
  /* Stats-Bar oben enger an den Hero-Content rücken */
  .stats-bar {
    padding-block: var(--space-8);
  }
}

@media (max-width: 640px) {
  /* Buttons stapeln und volle Breite einnehmen.
     (Hero-Visual ist bereits im 900px-Block per display:none entfernt,
     darum hier keine Mockup- oder Card-Positionierungen mehr nötig.) */
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }
  .hero__actions .btn {
    width: 100%;
  }
}

/* ─────────────────────────────────────────────────────────────────────── */
/* STATS BAR                                                               */
/* ─────────────────────────────────────────────────────────────────────── */

.stats-bar {
  background: var(--bg-dark);
  padding-block: var(--space-12);
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 70% at 50% 0%, rgba(124, 58, 237, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

.stats-bar__inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, auto);
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stats-bar__item {
  text-align: center;
  padding-inline: var(--space-10);
}

.stats-bar__number {
  display: block;
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--fw-extrabold);
  color: var(--color-white);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
}

.stats-bar__label {
  display: block;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  margin-top: var(--space-3);
  letter-spacing: var(--tracking-snug);
}

.stats-bar__divider {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.20), transparent);
}

@media (max-width: 768px) {
  .stats-bar__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8) var(--space-4);
  }
  .stats-bar__item {
    padding-inline: var(--space-2);
  }
  .stats-bar__divider {
    display: none;
  }
}

/* ─────────────────────────────────────────────────────────────────────── */
/* ABOUT (Über uns)                                                        */
/* ─────────────────────────────────────────────────────────────────────── */

.about {
  position: relative;
}

.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--space-16);
  align-items: center;
}

.about__copy .section__eyebrow {
  margin-bottom: var(--space-5);
}

.about__copy .section__title {
  text-align: left;
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
}

.about__lead {
  margin-top: var(--space-6);
  font-size: var(--text-xl);
  line-height: var(--lh-snug);
  color: var(--text-primary);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-snug);
}

.about__text {
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  line-height: var(--lh-normal);
  color: var(--text-secondary);
}

.about__signature {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-10);
}

.about__signature-line {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-purple));
  border-radius: var(--radius-full);
}

.about__signature-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: var(--fw-medium);
  font-style: italic;
}

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

.values__item {
  background: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.values__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-blue-100);
}

.values__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-blue-50);
  color: var(--color-blue);
  margin-bottom: var(--space-4);
}

.values__title {
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  letter-spacing: var(--tracking-snug);
}

.values__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
}

@media (max-width: 900px) {
  .about__inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
}

@media (max-width: 480px) {
  .values {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────────────────────────────────────────────────────────── */
/* SERVICES (Leistungen)                                                   */
/* ─────────────────────────────────────────────────────────────────────── */

.services {
  background: var(--bg-subtle);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: stretch;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-blue-100);
}

.service-card--featured {
  border-color: var(--color-blue);
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-blue-50) 100%);
}

.service-card--featured:hover {
  border-color: var(--color-blue);
  box-shadow: var(--shadow-blue);
}

.service-card__featured-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-blue);
  color: white;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  box-shadow: var(--shadow-blue);
}

.service-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-blue), var(--color-purple));
  color: white;
  flex-shrink: 0;
}

.service-card--featured .service-card__icon {
  box-shadow: 0 8px 20px rgba(0, 82, 204, 0.30);
}

.service-card__tag {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  color: var(--text-muted);
  text-transform: uppercase;
}

.service-card__title {
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  letter-spacing: var(--tracking-tight);
}

.service-card__desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-6);
}

.service-card__list {
  margin-bottom: var(--space-8);
  flex-grow: 1;
}

.service-card__list li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--color-blue-50);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 7l3 3 5-6' stroke='%230052CC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 14px 14px;
  background-repeat: no-repeat;
  background-position: center;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-blue);
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-color);
  transition: gap var(--transition-fast);
}

.service-card__link:hover {
  gap: var(--space-3);
}

.service-card__link svg {
  transition: transform var(--transition-fast);
}

.service-card__link:hover svg {
  transform: translateX(2px);
}

@media (max-width: 900px) {
  .services__grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin-inline: auto;
  }
  /* Sobald die Karten gestapelt sind, "Beliebteste Wahl" (Website-Erneuerung,
     DOM-Position 2) nach oben tauschen. Reihenfolge mobil/tablet:
       1. Website-Erneuerung (Beliebteste Wahl)
       2. Neue Website
       3. Analyse & Beratung
     HTML bleibt unverändert; Desktop-Reihenfolge (drei Spalten) wird nicht
     berührt, weil dort grid-auto-flow row die DOM-Folge nutzt. */
  .services__grid > .service-card:nth-child(2) { order: 1; }
  .services__grid > .service-card:nth-child(1) { order: 2; }
  .services__grid > .service-card:nth-child(3) { order: 3; }
}

/* ─────────────────────────────────────────────────────────────────────── */
/* PROCESS (Prozess)                                                       */
/* ─────────────────────────────────────────────────────────────────────── */

.process__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: stretch;
  position: relative;
  counter-reset: process-counter;
}

.process-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  min-height: 360px;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  overflow: hidden;
}

.process-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.process-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-blue-100);
}

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

.process-card__number {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  font-family: var(--font-serif);
  font-size: var(--text-5xl);
  font-weight: var(--fw-bold);
  line-height: 1;
  color: var(--color-blue-50);
  font-style: italic;
  letter-spacing: var(--tracking-tight);
}

.process-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-blue-50);
  color: var(--color-blue);
  margin-bottom: var(--space-6);
  flex-shrink: 0;
}

.process-card__title {
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  letter-spacing: var(--tracking-tight);
}

.process-card__text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.process-card__meta {
  display: flex;
  flex-direction: column;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-color);
}

.process-card__meta-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-muted);
  font-weight: var(--fw-semibold);
}

.process-card__meta-value {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-top: 2px;
}

@media (max-width: 900px) {
  .process__grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin-inline: auto;
  }
  .process-card {
    min-height: auto;
  }
}

/* ─────────────────────────────────────────────────────────────────────── */
/* FAQ (Häufige Fragen)                                                    */
/* ─────────────────────────────────────────────────────────────────────── */

.faq {
  background: var(--bg-page);
}

.faq__list {
  max-width: 880px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--border-color);
}

.faq__item {
  border-bottom: 1px solid var(--border-color);
}

.faq__question {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-6) var(--space-2);
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  line-height: var(--lh-snug);
  transition: color var(--transition-fast);
}

.faq__question:hover {
  color: var(--color-blue);
}

.faq__question:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.faq__question-text {
  flex: 1 1 auto;
}

.faq__icon {
  flex-shrink: 0;
  color: var(--color-grey-400);
  transition: transform 350ms var(--ease-out-quart),
              color var(--transition-fast);
  will-change: transform;
}

.faq__item--open .faq__question {
  color: var(--color-blue);
}

.faq__item--open .faq__icon {
  transform: rotate(180deg);
  color: var(--color-blue);
}

.faq__answer-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 380ms var(--ease-out-quart);
}

.faq__item--open .faq__answer-wrapper {
  grid-template-rows: 1fr;
}

.faq__answer {
  overflow: hidden;
  min-height: 0;
}

.faq__answer p {
  padding: 0 var(--space-2) var(--space-6);
  margin: 0;
  max-width: 720px;
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: var(--lh-relaxed);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 280ms var(--ease-out-quart) 60ms,
              transform 320ms var(--ease-out-quart) 60ms;
}

.faq__item--open .faq__answer p {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .faq__answer-wrapper,
  .faq__icon,
  .faq__answer p,
  .faq__question {
    transition: none;
  }
}

@media (max-width: 640px) {
  .faq__list {
    max-width: 100%;
  }
  .faq__question {
    font-size: var(--text-base);
    padding: var(--space-5) var(--space-1);
    gap: var(--space-4);
  }
  .faq__answer p {
    padding: 0 var(--space-1) var(--space-5);
    font-size: var(--text-sm);
  }
  .faq__icon {
    width: 18px;
    height: 18px;
  }
}

/* ─────────────────────────────────────────────────────────────────────── */
/* PROJECTS (Projekte)                                                     */
/* ─────────────────────────────────────────────────────────────────────── */

.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.project-card__visual {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  text-decoration: none;
  color: inherit;
}

.project-card__visual:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

.project-card__image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-card__image {
  transform: scale(1.04);
}

.project-card__placeholder {
  position: relative;
  z-index: 2;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,0.20);
  padding: var(--space-2) var(--space-4);
  background: rgba(0, 0, 0, 0.18);
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.project-card__image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, transparent, transparent 22px, rgba(255,255,255,0.08) 22px, rgba(255,255,255,0.08) 23px),
    repeating-linear-gradient(0deg, transparent, transparent 22px, rgba(255,255,255,0.08) 22px, rgba(255,255,255,0.08) 23px);
  z-index: 1;
}

.project-card__image--restaurant {
  background: linear-gradient(135deg, #FF6B6B 0%, #C44569 100%);
}

.project-card__image--medical {
  background: linear-gradient(135deg, #4ECDC4 0%, #1A8E84 100%);
}

.project-card__image--craft {
  background: linear-gradient(135deg, #C9A96E 0%, #7A5A1F 100%);
}

.project-card__image--service {
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-purple) 100%);
}

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

.project-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.project-card__tag {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-blue);
  background: var(--color-blue-50);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.project-card__year {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-wide);
}

.project-card__title {
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  letter-spacing: var(--tracking-tight);
}

.project-card__desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-color);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--color-blue);
  text-decoration: none;
  letter-spacing: var(--tracking-snug);
  transition: color 0.2s ease;
}

.project-card__link:hover,
.project-card__link:focus-visible {
  color: var(--color-purple);
}

.project-card__link-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.project-card__link:hover .project-card__link-arrow,
.project-card__link:focus-visible .project-card__link-arrow {
  transform: translateX(4px);
}

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

/* ─────────────────────────────────────────────────────────────────────── */
/* TESTIMONIALS                                                            */
/* ─────────────────────────────────────────────────────────────────────── */

.testimonials {
  background:
    radial-gradient(ellipse 55% 50% at 82% 18%, rgba(124, 58, 237, 0.18) 0%, transparent 62%),
    radial-gradient(ellipse 60% 55% at 18% 82%, rgba(45, 127, 249, 0.14) 0%, transparent 65%),
    radial-gradient(ellipse 70% 45% at 50% 110%, rgba(0, 82, 204, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 45% 35% at 8% 12%, rgba(167, 139, 250, 0.08) 0%, transparent 70%),
    var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, transparent 55%, rgba(10, 26, 58, 0.45) 100%);
  pointer-events: none;
}

.testimonials .section__eyebrow {
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.95);
}

.testimonials .section__eyebrow::before {
  background: #86EFAC;
}

.testimonials .section__title {
  color: white;
}

.carousel {
  position: relative;
  max-width: 820px;
  margin-inline: auto;
}

.carousel__track {
  display: grid;
}

.carousel__slide {
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  pointer-events: none;
  transition: opacity 700ms var(--ease-out-quart),
              transform 700ms var(--ease-out-quart);
  will-change: opacity, transform;
}

.carousel__slide--active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .carousel__slide {
    transform: none;
    transition: opacity 200ms linear;
  }
}

.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-10);
  box-shadow: var(--shadow-xl);
  text-align: center;
  position: relative;
}

.testimonial-card__mark {
  font-family: var(--font-serif);
  font-size: 7rem;
  font-weight: var(--fw-bold);
  line-height: 0.8;
  color: var(--color-blue-50);
  position: absolute;
  top: var(--space-6);
  left: var(--space-8);
  pointer-events: none;
}

.testimonial-card__quote {
  position: relative;
  font-family: var(--font-serif);
  font-size: clamp(var(--text-xl), 2.4vw, var(--text-2xl));
  font-weight: var(--fw-medium);
  line-height: var(--lh-snug);
  color: var(--text-primary);
  margin-bottom: var(--space-8);
  letter-spacing: var(--tracking-snug);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  justify-content: center;
}

.testimonial-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-blue), var(--color-purple));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  font-size: var(--text-base);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 82, 204, 0.20);
}

.testimonial-card__name {
  display: block;
  font-weight: var(--fw-semibold);
  font-style: normal;
  text-align: left;
}

.testimonial-card__role {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-style: normal;
  text-align: left;
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.carousel__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.carousel__btn:hover {
  background: var(--color-white);
  color: var(--color-blue-deep);
  border-color: var(--color-white);
  transform: scale(1.06);
}

.carousel__dots {
  display: flex;
  gap: var(--space-2);
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.30);
  transition: background var(--transition-fast), width var(--transition-fast);
  cursor: pointer;
  border: none;
  padding: 0;
}

.carousel__dot--active {
  background: white;
  width: 28px;
  border-radius: var(--radius-full);
}

@media (max-width: 640px) {
  .testimonial-card {
    padding: var(--space-10) var(--space-6);
  }
  .testimonial-card__mark {
    font-size: 4rem;
    top: var(--space-3);
    left: var(--space-4);
  }
}

/* ─────────────────────────────────────────────────────────────────────── */
/* CONTACT (Kontakt)                                                       */
/* ─────────────────────────────────────────────────────────────────────── */

.contact {
  position: relative;
}

.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--space-16);
  align-items: start;
}

.contact__cta .section__eyebrow {
  margin-bottom: var(--space-5);
}

.contact__title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}

.contact__text {
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
}

.contact__benefits {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-8);
  margin-bottom: var(--space-10);
}

.contact__benefit {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--text-primary);
}

.contact__benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-blue-50);
  color: var(--color-blue);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  flex-shrink: 0;
}

.contact__direct {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  background: var(--color-blue-50);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--color-blue-100);
}

.contact__direct-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.contact__direct-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--fw-semibold);
  color: var(--color-blue);
  font-size: var(--text-base);
  transition: gap var(--transition-fast);
}

.contact__direct-link:hover {
  gap: var(--space-3);
}

.contact__form-wrap {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

/* Form */
.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form-field__label {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}

.form-field__input {
  width: 100%;
  padding: var(--space-4);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.form-field__input::placeholder {
  color: var(--text-muted);
}

.form-field__input:focus {
  border-color: var(--color-blue);
  box-shadow: var(--focus-ring);
  outline: none;
}

.form-field__input--invalid {
  border-color: #DC2626;
  background: rgba(220, 38, 38, 0.04);
}

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

.form-field__error {
  font-size: var(--text-sm);
  color: #DC2626;
  min-height: 1.2em;
}

.contact-form__submit {
  width: 100%;
  margin-top: var(--space-2);
}

.contact-form__status {
  text-align: center;
  margin-top: var(--space-4);
  font-weight: var(--fw-medium);
  font-size: var(--text-sm);
  min-height: 1.2em;
}

.contact-form__status--success {
  color: #059669;
}

.contact-form__status--error {
  color: #DC2626;
}

@media (max-width: 900px) {
  .contact__inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
  .contact__form-wrap {
    padding: var(--space-6);
  }
}

/* ─────────────────────────────────────────────────────────────────────── */
/* FOOTER                                                                  */
/* ─────────────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--bg-dark);
  color: var(--text-inverse);
  padding-top: var(--space-20);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-purple), transparent);
  opacity: 0.4;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.site-header__logo--footer .site-header__logo-text,
.site-footer .site-header__logo-text {
  color: white;
}

.site-header__logo--footer .site-header__logo-mark {
  height: 84px;
}

.site-header__logo--footer .site-header__logo-text {
  font-size: 1.75rem;
  line-height: 1;
}

.site-footer__tagline {
  color: rgba(255, 255, 255, 0.60);
  font-size: var(--text-sm);
  line-height: var(--lh-relaxed);
  margin-top: var(--space-5);
  max-width: 280px;
}

.site-footer__heading {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: rgba(255, 255, 255, 0.40);
  margin-bottom: var(--space-5);
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.site-footer__link {
  color: rgba(255, 255, 255, 0.70);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.site-footer__link:hover {
  color: var(--color-white);
}

.site-footer__text {
  color: rgba(255, 255, 255, 0.70);
  font-size: var(--text-sm);
}

.site-footer__bottom {
  padding-block: var(--space-6);
}

.site-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer__copyright,
.site-footer__credit {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.40);
}

@media (max-width: 900px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 480px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
  .site-footer__bottom-inner {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
  }
}

/* ─────────────────────────────────────────────────────────────────────── */
/* SCROLL REVEAL                                                           */
/* ─────────────────────────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

.reveal--delay-1 { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 200ms; }
.reveal--delay-3 { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__card {
    animation: none;
  }
  .hero__badge-dot {
    animation: none;
  }
}

/* ─────────────────────────────────────────────────────────────────────── */
/* SELECTION                                                               */
/* ─────────────────────────────────────────────────────────────────────── */

::selection {
  background: var(--color-blue);
  color: white;
}

/* ─────────────────────────────────────────────────────────────────────── */
/* HERO VISUAL — 3D-TILT (Desktop ≥901px, hover-fähige Geräte only)        */
/* Strikt isoliert: greift nicht auf Touch- oder Mobile-Layouts durch.     */
/* Effekt: Stage folgt der Maus mit max ±6°, Browser/Phone/Cards bekommen  */
/* parallaxe Tiefe via translateZ. Beim Verlassen kehrt die Stage in       */
/* 700ms ease-out-quart zur Null zurück.                                   */
/* ─────────────────────────────────────────────────────────────────────── */

.hero__visual-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

@media (hover: hover) and (min-width: 901px) {
  .hero__visual {
    perspective: 1500px;
  }

  .hero__visual-stage {
    transform-style: preserve-3d;
    transform:
      rotateX(var(--tilt-y, 0deg))
      rotateY(var(--tilt-x, 0deg));
    transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }

  /* Aktiver Folge-Modus: kürzere Transition, damit der Tilt der Maus */
  /* sichtbar nachfolgt, ohne hektisch zu wirken.                     */
  .hero__visual--active .hero__visual-stage {
    transition-duration: 140ms;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* Tiefen-Layering: Browser bleibt Basis, Phone und Cards treten heraus. */
  /* Bestehende Rotationen werden bewahrt, translateZ wird vorangestellt.  */
  .hero__visual-stage .device--browser {
    transform: translateZ(0) rotate(2deg);
  }

  .hero__visual-stage .device--phone {
    transform: translateZ(40px) rotate(-6deg);
    transition: box-shadow 500ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* Cards: bestehende float-Animation um translateZ erweitern.            */
  .hero__visual-stage .hero__card {
    animation-name: hero-float-3d;
    --card-depth: 60px;
    transition: box-shadow 500ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .hero__visual-stage .hero__card--projects {
    --card-depth: 80px;
  }

  .hero__visual-stage .hero__card--success {
    --card-depth: 70px;
  }

  @keyframes hero-float-3d {
    0%, 100% { transform: translateY(0)    translateZ(var(--card-depth, 60px)); }
    50%      { transform: translateY(-8px) translateZ(var(--card-depth, 60px)); }
  }

  /* Hover-Lift: dezente Schatten-Verstärkung als Interaktivitäts-Signal. */
  .hero__visual:hover .device--phone {
    box-shadow:
      0 32px 60px -18px rgba(0, 82, 204, 0.22),
      0 12px 24px -8px rgba(15, 23, 42, 0.10),
      inset 0 0 0 1px rgba(255,255,255,0.2);
  }

  .hero__visual:hover .hero__card {
    box-shadow:
      0 28px 50px -14px rgba(0, 82, 204, 0.18),
      0 12px 22px -10px rgba(124, 58, 237, 0.14);
  }
}

/* Reduced-Motion: Tilt komplett deaktivieren. */
@media (prefers-reduced-motion: reduce) {
  .hero__visual-stage {
    transform: none !important;
    transition: none !important;
  }
}

/* ─────────────────────────────────────────────────────────────────────── */
/* MOBILE-ONLY OVERRIDES (≤640px)                                          */
/* Diese Regeln betreffen ausschließlich die Handy-Ansicht.                */
/* Desktop und Tablet bleiben durch die Media-Query-Isolation unverändert. */
/* ─────────────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  /* Header: Logo-Bild ausblenden, Schriftzug "GlanzDesign" rückt nach links */
  .site-header__logo-mark {
    display: none;
  }

  /* "GlanzDesign"-Schriftzug auf Mobile prominenter (Bild ist ausgeblendet,
     daher darf der Wortlaut den frei gewordenen Platz nutzen). */
  .site-header__logo-text {
    font-size: 1.75rem;
  }

  /* Hero-Subline: alles nach "Wir hören erst zu, dann gestalten wir." ausblenden,
     damit die Buttons direkt darunter aufrücken */
  .hero__subline-extra {
    display: none;
  }

  /* Hinweis: Die komplette Hero-Visual-Sektion (Browser-Mockup, Handy-Mockup
     und beide Floating-Cards) wird bereits im 900px-Block per display:none
     entfernt, damit die Stats-Bar direkt unter dem Hero-Content erscheint. */

  /* Stats-Bar: alle vier Zahlen auf gleiche Höhe bringen.
     align-items: start verhindert, dass Items in einer mehrzeiligen Reihe
     mittig verschoben werden. Die Mindest-Höhe der Labels reserviert
     2 Zeilen Platz, damit beide Reihen identisch hoch sind und die
     Zahlen über alle vier Items hinweg auf einer Linie sitzen. */
  .stats-bar__inner {
    align-items: start;
  }
  .stats-bar__label {
    min-height: 2.6em;
  }

  /* Stats-Bar Reihenfolge auf Mobile umsortieren (nur via CSS-order, HTML
     unverändert, damit Desktop unangetastet bleibt):
       Reihe 1: Abgeschlossene Projekte  |  Erstgespräch & Analyse
       Reihe 2: Antwort-Versprechen      |  Kundenzufriedenheit
     nth-child bezieht sich auf die volle DOM-Reihenfolge inkl. Divider-Divs
     (Item-Positionen im DOM: 1, 3, 5, 7). */
  .stats-bar__item:nth-child(1) { order: 1; } /* Abgeschlossene Projekte */
  .stats-bar__item:nth-child(7) { order: 2; } /* Erstgespräch & Analyse  */
  .stats-bar__item:nth-child(5) { order: 3; } /* Antwort-Versprechen     */
  .stats-bar__item:nth-child(3) { order: 4; } /* Kundenzufriedenheit     */

  /* Kontakt-Sektion: Auf Mobile lief der Submit-Button und der Titel
     über die Shell-Kante hinaus (Texte am Rand abgeschnitten). Diese
     Anpassungen halten alles innerhalb der gleichen Shell-Breite wie
     der Footer, ohne Desktop-Layout zu berühren. */

  /* Titel: harter <br> würde beide Zeilen >330px breit machen –
     im Mobile-Flow wird er entfernt, Schriftgröße leicht reduziert. */
  .contact__title {
    font-size: clamp(1.5rem, 7.5vw, 1.875rem);
  }
  .contact__title br {
    display: none;
  }

  /* Beschreibungstext: kompakter, damit er nicht über den Rand läuft. */
  .contact__text {
    font-size: var(--text-base);
  }

  /* "Lieber direkt schreiben"-Box: lange E-Mail darf umbrechen
     statt rechts abgeschnitten zu werden. */
  .contact__direct {
    padding: var(--space-4);
  }
  .contact__direct-link {
    flex-wrap: wrap;
    font-size: var(--text-sm);
    word-break: break-word;
  }

  /* Form-Karte: Innenabstand reduzieren, Inputs gewinnen Breite. */
  .contact__form-wrap {
    padding: var(--space-5);
  }

  /* Submit-Button "Kostenloses Gespräch anfragen": .btn hat global
     white-space: nowrap, dadurch lief der Text + Icon bei btn--lg
     über die verfügbare Breite hinaus. Auf Mobile darf der Text
     umbrechen, Padding und Schriftgröße werden reduziert. */
  .contact-form__submit {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    white-space: normal;
    line-height: var(--lh-tight);
  }
  .contact-form__submit svg {
    flex-shrink: 0;
  }

  /* Kontakt-Reihenfolge auf Mobile: "Lieber direkt schreiben"-Box
     soll unter dem Formular erscheinen. Da .contact__direct im DOM
     ein Kind von .contact__cta ist (links neben dem Formular),
     lösen wir die cta-Hülle via display:contents auf — dadurch
     werden ihre Kinder zu direkten Grid-Items von .contact__inner
     und können per order umsortiert werden. HTML bleibt komplett
     unverändert, Desktop-Layout wird nicht berührt. */
  .contact__cta {
    display: contents;
  }
  .contact__inner {
    /* gap auf 0, die Kinder bringen eigene vertikale Margins mit */
    gap: 0;
  }
  /* Eyebrow / Titel / Text / Benefits behalten Default-order: 0,
     fließen also weiterhin in DOM-Reihenfolge oben.
     Danach: Formular (order 1), darunter Direkt-Box (order 2). */
  .contact__form-wrap {
    order: 1;
  }
  .contact__direct {
    order: 2;
    margin-top: var(--space-8);
  }

  /* Footer: blaue Fläche oberhalb des GlanzDesign-Logos auf Mobile
     deutlich kürzen. Default ist --space-20 (80px), das lässt einen
     großen leeren Blau-Block über dem Logo entstehen. Auf Mobile
     reicht ein knapper Abstand kurz über der Aufschrift. */
  .site-footer {
    padding-top: var(--space-6);
  }

  /* Footer-Spalten auf Mobile:
       Reihe 1: Brand (volle Breite)
       Reihe 2: Navigation | Rechtliches (nebeneinander auf einer Höhe)
       Reihe 3: Kontakt (volle Breite, Heading + Email + Standort)
     Im Navigation-Menü wird der "Kontakt"-Link auf Mobile ausgeblendet,
     da die eigene Kontakt-Spalte direkt darunter steht — der Link wäre
     redundant. WICHTIG: Header und Desktop bleiben unangetastet,
     die Anpassungen wirken ausschließlich in dieser Mobile-Media-Query. */
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8) var(--space-6);
  }
  .site-footer__brand {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .site-footer__nav {
    grid-column: 1;
    grid-row: 2;
  }
  .site-footer__legal-col {
    grid-column: 2;
    grid-row: 2;
  }
  .site-footer__contact {
    grid-column: 1 / -1;
    grid-row: 3;
  }
  /* "Kontakt"-Link im Navigation-Menü entfernen (4. Listeneintrag).
     Steht im DOM als letzter Punkt der Footer-Navigation und wäre
     direkt über der Kontakt-Spalte doppelt vertreten. */
  .site-footer__nav .site-footer__list li:nth-child(4) {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* LEGAL PAGES (Impressum, Datenschutz, AGB)                              */
/* ═══════════════════════════════════════════════════════════════════════ */

.legal-page {
  background: var(--bg-page);
  padding-top: calc(var(--header-height) + var(--space-12));
  padding-bottom: var(--space-24);
}

.legal-page__hero {
  max-width: 720px;
  margin: 0 auto var(--space-16);
  padding: 0 var(--shell-padding);
}

.legal-page__eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: var(--space-4);
}

.legal-page__title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  margin: 0 0 var(--space-5);
}

.legal-page__title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  margin-top: var(--space-5);
  background: linear-gradient(90deg, var(--color-blue), var(--color-purple));
  border-radius: var(--radius-full);
}

.legal-page__subtitle {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--text-muted);
  margin: 0;
}

.legal-page__content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--shell-padding);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
}

.legal-page__content h2 {
  font-family: var(--font-sans);
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-snug);
  color: var(--text-primary);
  margin: var(--space-16) 0 var(--space-5);
}

.legal-page__content > h2:first-child {
  margin-top: 0;
}

.legal-page__content h3 {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin: var(--space-8) 0 var(--space-3);
}

.legal-page__content p {
  margin: 0 0 var(--space-5);
}

.legal-page__content strong {
  color: var(--text-primary);
  font-weight: var(--fw-semibold);
}

.legal-page__content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
}

.legal-page__content ul li {
  position: relative;
  padding-left: var(--space-5);
  margin-bottom: var(--space-2);
}

.legal-page__content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  background: var(--color-blue);
  border-radius: var(--radius-full);
}

.legal-page__content a {
  color: var(--color-blue);
  text-decoration: underline;
  text-decoration-color: rgba(0, 82, 204, 0.25);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
  word-break: break-word;
}

.legal-page__content a:hover {
  text-decoration-color: var(--color-blue);
}

.legal-page__meta {
  display: inline-block;
  margin-top: var(--space-12);
  padding: var(--space-3) var(--space-5);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.legal-page__back {
  margin-top: var(--space-16);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-color);
}

.legal-page__back a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--color-blue);
  text-decoration: none;
}

.legal-page__back a:hover {
  color: var(--color-blue-600);
}

@media (max-width: 640px) {
  .legal-page {
    padding-top: calc(var(--header-height) + var(--space-6));
    padding-bottom: var(--space-16);
  }
  .legal-page__hero {
    margin-bottom: var(--space-10);
  }
  .legal-page__content h2 {
    margin-top: var(--space-12);
  }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* TERMIN PAGE – Booking calendar & form                                   */
/* ═══════════════════════════════════════════════════════════════════════ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.termin-page {
  padding-top: calc(var(--header-height) + var(--space-12));
  padding-bottom: var(--space-24);
  background: var(--bg-page);
  min-height: 100vh;
}

.termin-page__hero {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-10);
}

.termin-page__title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-snug);
  color: var(--text-primary);
  margin: var(--space-3) 0 var(--space-4);
}

.termin-page__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 56ch;
  margin: 0 auto;
}

/* Stepper */
.stepper {
  list-style: none;
  padding: 0;
  margin: 0 auto var(--space-12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: nowrap;
  max-width: 540px;
}

.stepper__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-muted);
  font-weight: var(--fw-medium);
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  transition: color .25s var(--ease-out-quart);
}

.stepper__num {
  width: 2.125rem;
  height: 2.125rem;
  border-radius: var(--radius-full);
  background: var(--color-grey-100);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  transition: all .25s var(--ease-out-quart);
  flex-shrink: 0;
}

.stepper__item--active {
  color: var(--text-primary);
}

.stepper__item--active .stepper__num {
  background: var(--color-blue);
  color: var(--text-inverse);
  box-shadow: var(--shadow-blue);
}

.stepper__item--done {
  color: var(--color-blue);
}

.stepper__item--done .stepper__num {
  background: var(--color-blue-50);
  color: var(--color-blue);
}

.stepper__separator {
  flex: 0 1 64px;
  height: 2px;
  background: var(--border-color);
  border-radius: 999px;
}

/* Steps container */
.termin-step {
  max-width: 1000px;
  margin: 0 auto;
}

.termin-step[hidden] { display: none; }

.termin-step__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-10);
  flex-wrap: wrap;
}

.termin-step__back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: color .2s, background .2s;
}

.termin-step__back-link:hover,
.termin-step__back-link:focus-visible {
  color: var(--color-blue);
  background: var(--color-blue-50);
}

.termin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--space-8);
  align-items: start;
}

/* Calendar */
.calendar {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.calendar__title {
  font-family: var(--font-serif);
  font-weight: var(--fw-semibold);
  font-size: var(--text-xl);
  color: var(--text-primary);
  margin: 0;
  text-align: center;
  flex: 1;
}

.calendar__nav {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background: var(--color-grey-50);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s var(--ease-out-quart);
  line-height: 1;
  flex-shrink: 0;
}

.calendar__nav:hover:not(:disabled) {
  background: var(--color-blue);
  color: var(--text-inverse);
  border-color: var(--color-blue);
  transform: translateY(-1px);
}

.calendar__nav:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.calendar__weekdays span {
  padding: var(--space-2) 0;
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar__day {
  position: relative;
  aspect-ratio: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: all .18s var(--ease-out-quart);
  padding: 0;
  min-width: 0;
}

.calendar__day--blank {
  pointer-events: none;
  cursor: default;
}

.calendar__day--disabled {
  color: var(--color-grey-300);
  cursor: not-allowed;
  background: transparent;
}

.calendar__day--available:hover,
.calendar__day--available:focus-visible {
  background: var(--color-blue-50);
  border-color: var(--color-blue-100);
  color: var(--color-blue);
  outline: none;
}

.calendar__day--today {
  font-weight: var(--fw-bold);
  color: var(--color-blue);
}

.calendar__day--today::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-blue);
}

.calendar__day--today.calendar__day--disabled::after {
  background: var(--color-blue);
  opacity: .55;
}

.calendar__day--selected,
.calendar__day--selected:hover,
.calendar__day--selected:focus-visible {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: var(--text-inverse);
  box-shadow: var(--shadow-blue);
}

.calendar__day--selected.calendar__day--today::after {
  background: var(--text-inverse);
}

.calendar__legend {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.calendar__legend-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.calendar__legend-item--muted {
  color: var(--text-muted);
}

.calendar__legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-blue);
  display: inline-block;
}

/* Time picker */
.time-picker {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.time-picker__title {
  font-family: var(--font-serif);
  font-weight: var(--fw-semibold);
  font-size: var(--text-xl);
  color: var(--text-primary);
  margin: 0 0 var(--space-5);
}

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

.time-picker__error {
  margin: var(--space-5) 0 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.28);
  border-radius: var(--radius-md);
  color: #DC2626;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.35;
}

.time-picker__error[hidden] {
  display: none;
}

.time-picker__error-icon {
  display: inline-flex;
  flex: 0 0 1.125rem;
  color: currentColor;
}

.time-slot {
  padding: var(--space-3) var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  cursor: pointer;
  transition: all .2s var(--ease-out-quart);
  text-align: center;
  line-height: 1.2;
}

.time-slot:hover,
.time-slot:focus-visible {
  background: var(--color-blue-50);
  border-color: var(--color-blue);
  color: var(--color-blue);
  outline: none;
  transform: translateY(-1px);
}

.time-slot--selected,
.time-slot--selected:hover,
.time-slot--selected:focus-visible {
  background: var(--color-blue);
  color: var(--text-inverse);
  border-color: var(--color-blue);
  box-shadow: var(--shadow-blue);
  transform: translateY(-1px);
}

.time-picker__custom {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-color);
}

.time-picker__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-blue);
  padding: var(--space-2) 0;
  letter-spacing: 0.01em;
  transition: color .2s;
}

.time-picker__toggle:hover {
  color: var(--color-blue-600);
}

.time-picker__toggle-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--color-blue-50);
  color: var(--color-blue);
  font-size: var(--text-base);
  line-height: 1;
  font-weight: var(--fw-bold);
}

.time-picker__custom-input {
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.time-picker__custom-input .form-field__input {
  font-size: var(--text-base);
}

.time-picker__custom-note {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: var(--lh-normal);
}

/* Summary card on step 2 */
.termin-summary {
  background: linear-gradient(135deg, var(--color-blue-50), var(--color-purple-50));
  border: 1px solid var(--color-blue-100);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.termin-summary__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-blue-600);
  font-weight: var(--fw-bold);
}

.termin-summary__value {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  line-height: var(--lh-tight);
}

.termin-summary__divider {
  color: var(--color-blue);
  font-size: var(--text-xl);
}

/* Form on step 2 */
.termin-form {
  display: grid;
  gap: var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}

.termin-form__intro {
  margin-bottom: var(--space-2);
}

.termin-form__title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
}

.termin-form__text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin: 0;
}

.form-field__optional {
  color: var(--text-muted);
  font-weight: var(--fw-regular);
  font-size: var(--text-sm);
}

/* Success */
.termin-success {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  max-width: 580px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.termin-success__icon {
  color: var(--color-blue);
  display: inline-flex;
  margin-bottom: var(--space-6);
}

.termin-success__title {
  font-family: var(--font-serif);
  font-size: var(--text-4xl);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin: 0 0 var(--space-4);
  line-height: var(--lh-tight);
}

.termin-success__text {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  margin: 0 0 var(--space-8);
}

.termin-success__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

@media (max-width: 880px) {
  .termin-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

@media (max-width: 640px) {
  .termin-page {
    padding-top: calc(var(--header-height) + var(--space-6));
    padding-bottom: var(--space-16);
  }
  .calendar,
  .time-picker,
  .termin-form {
    padding: var(--space-5);
  }
  .stepper {
    gap: var(--space-3);
  }
  .stepper__separator {
    flex: 0 1 32px;
  }
  .stepper__label {
    display: none;
  }
  .calendar__day {
    font-size: var(--text-sm);
  }
  .calendar__title {
    font-size: var(--text-lg);
  }
  .termin-step__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .termin-step__actions .btn {
    width: 100%;
    justify-content: center;
  }
  .termin-step__back-link {
    justify-content: center;
  }
  .termin-summary__value {
    font-size: var(--text-xl);
  }
  .termin-form {
    padding: var(--space-6);
  }
}
