/* ===================================================
   A.Illmann Zahntechnik GmbH – Modern Redesign
   Apple-inspired · clinical-premium · dark + light
   =================================================== */

/* --- Custom Properties --- */
:root {
  --color-bg:        #FAFAFA;
  --color-surface:   #FFFFFF;
  --color-surface2:  #F2F2F4;
  --color-dark:      #0A0A0C;
  --color-dark-2:    #141418;
  --color-dark-3:    #1C1C22;
  --color-text:      #121316;
  --color-text-mid:  #5A5B63;
  --color-text-dim:  #9A9BA2;
  --color-accent:    #1FA2D6;
  --color-accent-soft: rgba(31, 162, 214, .08);
  --color-accent-glow: rgba(31, 162, 214, .25);
  --color-border:    rgba(18, 19, 22, .07);
  --color-white-08:  rgba(255, 255, 255, .08);
  --color-white-12:  rgba(255, 255, 255, .12);
  --color-white-60:  rgba(255, 255, 255, .6);
  --color-white-80:  rgba(255, 255, 255, .8);

  --shadow-xs:  0 1px 2px rgba(0,0,0,.04);
  --shadow-sm:  0 2px 8px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.03);
  --shadow-md:  0 8px 24px rgba(0,0,0,.06), 0 2px 6px rgba(0,0,0,.03);
  --shadow-lg:  0 16px 48px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04);
  --shadow-glow: 0 0 40px var(--color-accent-glow);

  --radius-sm:  12px;
  --radius-md:  20px;
  --radius-lg:  28px;
  --radius-full: 980px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --ease:       cubic-bezier(.16, 1, .3, 1);
  --ease-out:   cubic-bezier(.33, 1, .68, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --dur:        250ms;
  --dur-slow:   500ms;

  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ol, ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Utilities --- */
.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;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

/* ===================================================
   SECTIONS
   =================================================== */
.section {
  padding: 80px 0;
  position: relative;
}

@media (min-width: 480px) {
  .section { padding: 100px 0; }
}

@media (min-width: 768px) {
  .section { padding: 120px 0; }
}

.section--dark {
  background: var(--color-dark);
  color: #fff;
}

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

.section__header {
  text-align: center;
  margin-bottom: 40px;
}

@media (min-width: 480px) {
  .section__header { margin-bottom: 56px; }
}

@media (min-width: 768px) {
  .section__header { margin-bottom: 72px; }
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.section--dark .section__label {
  color: var(--color-accent);
}

.section__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.section__subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--color-text-mid);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

.section--dark .section__subtitle {
  color: var(--color-white-60);
}

/* ===================================================
   NAV
   =================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(250, 250, 250, .72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--color-border);
  transition: height 350ms var(--ease), background 350ms var(--ease),
              box-shadow 350ms var(--ease), border-color 350ms var(--ease);
}

.nav.is-scrolled {
  height: 56px;
  background: rgba(250, 250, 250, .95);
  box-shadow: 0 1px 8px rgba(0,0,0,.04);
  border-color: transparent;
}

.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (min-width: 768px) {
  .nav__inner { padding: 0 40px; }
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity var(--dur) var(--ease);
}

.nav__logo:hover { opacity: .7; }

.nav__logo-img {
  height: 48px;
  width: auto;
  transition: height 350ms var(--ease);
}

.nav.is-scrolled .nav__logo-img {
  height: 38px;
}

.nav__logo-img--desktop { display: block; }
.nav__logo-img--mobile  { display: none; }

@media (max-width: 767px) {
  .nav__logo-img--desktop { display: none; }
  .nav__logo-img--mobile  { display: block; height: 42px; width: auto; }
  .nav.is-scrolled .nav__logo-img--mobile { height: 34px; }
}

/* Center nav links */
.nav__links {
  display: none;
  gap: 4px;
  margin: 0 auto;
}

.nav__link {
  font-size: 0.8125rem;
  font-weight: 550;
  letter-spacing: 0.015em;
  color: var(--color-text-mid);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  position: relative;
  transition: color var(--dur) var(--ease);
}

/* Underline hover indicator */
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 1.5px;
  background: var(--color-accent);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 300ms var(--ease);
}

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

.nav__link:hover::after {
  transform: scaleX(1);
}

.nav__link.is-active {
  color: var(--color-text);
  font-weight: 600;
}

.nav__link.is-active::after {
  transform: scaleX(1);
}

/* Right side: icon buttons */
.nav__right {
  display: none;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.nav__icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--color-text-mid);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.nav__icon-btn:hover {
  color: var(--color-accent);
  background: var(--color-accent-soft);
}

.nav__icon-btn svg {
  width: 18px;
  height: 18px;
}

/* Burger */
.nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 13px;
  margin-left: auto;
  border-radius: var(--radius-sm);
  transition: background var(--dur) var(--ease);
}

.nav__burger:hover { background: var(--color-surface2); }

.nav__burger-line {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 300ms var(--ease), opacity 300ms var(--ease);
  transform-origin: center;
}

.nav__burger.is-active .nav__burger-line:first-child {
  transform: translateY(3.25px) rotate(45deg);
}
.nav__burger.is-active .nav__burger-line:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* Desktop breakpoint */
@media (min-width: 768px) {
  .nav__links  { display: flex; }
  .nav__right  { display: flex; }
  .nav__burger { display: none; }
  .mobile-menu { display: none !important; }
}

/* ===================================================
   MOBILE MENU
   =================================================== */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(250, 250, 250, .97);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease);
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.mobile-menu__link {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 16px 40px;
  min-height: 52px;
  border-radius: var(--radius-md);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms var(--ease), transform 400ms var(--ease),
              color var(--dur) var(--ease);
}

.mobile-menu__link:hover,
.mobile-menu__link:active {
  color: var(--color-accent);
}

.mobile-menu.is-open .mobile-menu__link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open .mobile-menu__link:nth-child(1) { transition-delay: 80ms; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { transition-delay: 140ms; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { transition-delay: 200ms; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4) { transition-delay: 260ms; }

/* Mobile menu footer: CTA + Tel */
.mobile-menu__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
  transition-delay: 300ms;
}

.mobile-menu.is-open .mobile-menu__footer {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-accent);
  border: 2px solid var(--color-accent);
  padding: 14px 40px;
  border-radius: var(--radius-full);
  min-width: 240px;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.mobile-menu__cta:hover { background: #1A8FBE; }
.mobile-menu__cta:active { transform: translateY(1px); }

.mobile-menu__tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-mid);
  transition: color var(--dur) var(--ease);
}

.mobile-menu__tel:hover { color: var(--color-accent); }

.mobile-menu__tel svg {
  width: 16px;
  height: 16px;
}

/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: -20px;
  background: url('assets/images/hero.jpg') center/cover no-repeat;
  background-color: var(--color-dark);
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(10,10,12,.3) 0%, rgba(10,10,12,.7) 100%),
    linear-gradient(180deg, rgba(10,10,12,.2) 0%, rgba(10,10,12,.75) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 100px 20px 80px;
  max-width: 760px;
}

@media (min-width: 480px) {
  .hero__content { padding: 120px 24px 96px; }
}

/* Hide line breaks on small screens to prevent awkward wrapping */
@media (max-width: 479px) {
  .hero__subline br { display: none; }
}

.hero__badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-white-60);
  background: var(--color-white-08);
  border: 1px solid var(--color-white-12);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 32px;
}

.hero__headline {
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: #fff;
  margin-bottom: 20px;
}

.hero__subline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--color-white-60);
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto 32px;
}

/* Trust pills */
.hero__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 550;
  letter-spacing: 0.03em;
  color: var(--color-white-80);
  background: var(--color-white-08);
  border: 1px solid var(--color-white-12);
  padding: 6px 16px;
  border-radius: var(--radius-full);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

/* Full-width hero buttons on very small screens */
@media (max-width: 374px) {
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }
}

/* Microcopy below CTAs */
.hero__micro {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, .35);
  letter-spacing: 0.01em;
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero__scroll-hint span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 12px;
  position: relative;
}

.hero__scroll-hint span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: rgba(255,255,255,.5);
  border-radius: 2px;
  animation: scrollBounce 2s var(--ease) infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50%      { transform: translateX(-50%) translateY(12px); opacity: 0; }
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  min-height: 44px;
  padding: 12px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Allow wrapping on small screens for long button text */
@media (max-width: 374px) {
  .btn { white-space: normal; text-align: center; font-size: 0.875rem; padding: 12px 20px; }
}

/* Global active: pressed feel */
.btn:active {
  transform: translateY(1px);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* --- Primary: filled accent blue --- */
.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border: 2px solid var(--color-accent);
}

.btn--primary:hover {
  background: #1A8FBE;
  border-color: #1A8FBE;
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(1px);
}

.btn--primary:disabled,
.btn--primary[disabled] {
  opacity: .35;
  cursor: not-allowed;
  pointer-events: none;
}

/* --- Secondary: outline accent blue --- */
.btn--secondary {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn--secondary:hover {
  background: var(--color-accent-soft);
  transform: translateY(-1px);
}

.btn--secondary:active {
  transform: translateY(1px);
}

/* Dark section override */
.section--dark .btn--secondary {
  color: #fff;
  border-color: var(--color-accent);
}

.section--dark .btn--secondary:hover {
  background: rgba(31, 162, 214, .15);
}

/* --- Tertiary: soft muted --- */
.btn--tertiary {
  background: var(--color-surface2);
  color: var(--color-text-mid);
  border: 1px solid var(--color-border);
}

.btn--tertiary:hover {
  background: #E8E8EC;
  color: var(--color-text);
  transform: translateY(-1px);
}

.btn--tertiary:active {
  transform: translateY(1px);
}

/* Dark section override */
.section--dark .btn--tertiary {
  background: var(--color-white-08);
  color: var(--color-white-60);
  border-color: var(--color-white-12);
}

.section--dark .btn--tertiary:hover {
  background: var(--color-white-12);
  color: var(--color-white-80);
}

/* --- Glass: backdrop blur (hero only) --- */
.btn--glass {
  background: var(--color-white-08);
  color: #fff;
  border: 2px solid var(--color-white-12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn--glass:hover {
  background: rgba(255, 255, 255, .18);
  transform: translateY(-1px);
}

.btn--glass:active {
  transform: translateY(1px);
}

.btn--large {
  width: 100%;
  padding: 16px 32px;
  font-size: 1rem;
}

@media (min-width: 480px) {
  .btn--large { width: auto; min-width: 200px; }
}

/* ===================================================
   CARDS (Leistungen)
   =================================================== */
.cards-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  will-change: box-shadow, border-color;
  transition: box-shadow 400ms var(--ease), border-color 400ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 480px) {
  .card { padding: 36px 32px; }
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

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

.card__icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-soft);
  border-radius: var(--radius-sm);
  color: var(--color-accent);
  margin-bottom: 24px;
  transition: background 400ms var(--ease), transform 400ms var(--ease);
}

.card:hover .card__icon-wrap {
  background: var(--color-accent);
  color: #fff;
  transform: scale(1.05);
}

.card__icon-wrap svg {
  width: 24px;
  height: 24px;
}

.card__title {
  font-size: 1.0625rem;
  font-weight: 620;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.card__text {
  font-size: 0.9375rem;
  color: var(--color-text-mid);
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Card bullet list */
.card__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  margin: 0;
}

.card__list li {
  font-size: 0.8125rem;
  color: var(--color-text-mid);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: .5;
}

/* ===================================================
   QUALITÄT
   =================================================== */
.qualitaet__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-bottom: 48px;
}

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

.qualitaet__card {
  background: var(--color-dark-2);
  border: 1px solid var(--color-white-08);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: border-color 400ms var(--ease), transform 400ms var(--ease);
}

@media (min-width: 480px) {
  .qualitaet__card { padding: 40px 32px; }
}

.qualitaet__card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.qualitaet__number {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.qualitaet__card-title {
  font-size: 1.25rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.qualitaet__card p {
  font-size: 0.9375rem;
  color: var(--color-white-60);
  line-height: 1.6;
}

/* Qualität chips */
.qualitaet__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

@media (max-width: 479px) {
  .qualitaet__chips {
    flex-direction: column;
    gap: 8px;
  }
}

.qualitaet__chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-white-60);
  background: var(--color-white-08);
  border: 1px solid var(--color-white-12);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  transition: border-color var(--dur) var(--ease);
}

.qualitaet__chip:hover {
  border-color: var(--color-accent);
}

/* ===================================================
   GALERIE
   =================================================== */
.gallery-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 480px) {
  .gallery-grid { gap: 14px; }
}

@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  /* Editorial: first item spans 2 cols */
  .gallery-grid .gallery-item:first-child {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
  }
}

@media (min-width: 960px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .gallery-grid .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-surface2);
  cursor: pointer;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform 500ms var(--ease), box-shadow 500ms var(--ease),
              border-color 500ms var(--ease);
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* Cool-tone overlay + gradient on hover */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(200, 220, 235, .06) 0%, rgba(200, 220, 235, .03) 50%, transparent 100%),
    linear-gradient(180deg, transparent 40%, rgba(0,0,0,.4) 100%);
  opacity: 1;
  transition: opacity 500ms var(--ease);
  z-index: 1;
  mix-blend-mode: normal;
}

.gallery-item:hover::after {
  background:
    linear-gradient(180deg, rgba(200, 220, 235, .04) 0%, transparent 40%, transparent 100%),
    linear-gradient(180deg, transparent 30%, rgba(0,0,0,.5) 100%);
}

/* Magnifier icon */
.gallery-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%) scale(.6);
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
  z-index: 3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%230A0A0C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='9' r='6'/%3E%3Cline x1='13.5' y1='13.5' x2='18' y2='18'/%3E%3Cline x1='9' y1='6.5' x2='9' y2='11.5'/%3E%3Cline x1='6.5' y1='9' x2='11.5' y2='9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
}

.gallery-item:hover::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Gallery caption */
.gallery-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #fff;
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
}

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

/* Clinical-clean image treatment */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.82) contrast(1.08) brightness(1.05);
  transition: transform 700ms var(--ease), filter 500ms var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.04);
  filter: saturate(.9) contrast(1.12) brightness(1.07);
}

/* Touch feedback */
.gallery-item {
  -webkit-tap-highlight-color: transparent;
}

.gallery-item:active {
  transform: scale(.97);
}

/* Hide hover effects on touch devices */
@media (hover: none) {
  .gallery-item:hover { transform: none; box-shadow: var(--shadow-sm); }
  .gallery-item:hover::before { opacity: 0; }
  .gallery-item:hover::after {
    background:
      linear-gradient(180deg, rgba(200, 220, 235, .06) 0%, rgba(200, 220, 235, .03) 50%, transparent 100%),
      linear-gradient(180deg, transparent 40%, rgba(0,0,0,.4) 100%);
  }
  .gallery-item:hover img { transform: none; filter: saturate(.82) contrast(1.08) brightness(1.05); }
  .gallery-item:hover .gallery-item__caption { opacity: 0; }
  .gallery-item:active { transform: scale(.97); }
}

/* ===================================================
   LIGHTBOX
   =================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 4, 6, .96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 350ms var(--ease);
  padding: 24px;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__img {
  max-width: 90%;
  max-height: 82vh;
  border-radius: var(--radius-md);
  object-fit: contain;
  transform: scale(.88);
  opacity: 0;
  transition: transform 450ms var(--ease-spring), opacity 350ms var(--ease);
  box-shadow: 0 24px 80px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.3);
  filter: saturate(.88) contrast(1.04) brightness(1.03);
}

.lightbox.is-open .lightbox__img {
  transform: scale(1);
  opacity: 1;
  transition: transform 450ms var(--ease-spring), opacity 200ms var(--ease);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), color var(--dur) var(--ease);
}

.lightbox__close:hover {
  background: rgba(255,255,255,.14);
  color: #fff;
  transform: rotate(90deg);
}

.lightbox__close svg {
  width: 18px;
  height: 18px;
}

/* Lightbox nav arrows */
.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
  z-index: 2;
}

.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }

.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255,255,255,.14);
  color: #fff;
}

.lightbox__prev:active { transform: translateY(-50%) scale(.92); }
.lightbox__next:active { transform: translateY(-50%) scale(.92); }

.lightbox__prev svg,
.lightbox__next svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 600px) {
  .lightbox { padding: 12px; }
  .lightbox__prev,
  .lightbox__next {
    width: 44px;
    height: 44px;
    top: auto;
    bottom: 56px;
    transform: none;
  }
  .lightbox__prev { left: calc(50% - 58px); }
  .lightbox__next { right: calc(50% - 58px); }
  .lightbox__prev:active,
  .lightbox__next:active { transform: scale(.92); }
  .lightbox__img {
    max-width: 100%;
    max-height: 65vh;
    border-radius: var(--radius-sm);
  }
  .lightbox__close {
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
  }
}

.lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,.4);
  letter-spacing: 0.08em;
  background: rgba(255,255,255,.06);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,.08);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .lightbox__counter {
    bottom: 16px;
    font-size: 0.6875rem;
  }
}

/* ===================================================
   ÜBER UNS
   =================================================== */
.ueber-uns__content {
  max-width: 960px;
  margin: 0 auto;
}

.ueber-uns__grid {
  display: grid;
  gap: 32px;
  margin-bottom: 48px;
}

@media (min-width: 480px) {
  .ueber-uns__grid { gap: 40px; margin-bottom: 64px; }
}

@media (min-width: 768px) {
  .ueber-uns__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
  }
}

.ueber-uns__text-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ueber-uns__text {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text-mid);
  max-width: 65ch;
}

.ueber-uns__img {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.ueber-uns__img::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  pointer-events: none;
}

.ueber-uns__img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 600ms var(--ease), filter 600ms var(--ease);
  filter: brightness(1.08) contrast(1.05) saturate(1.15);
}

.ueber-uns__img:hover img {
  transform: scale(1.03);
}

/* Arbeitsweise / Process stepper */
.arbeitsweise__title {
  font-size: 1.25rem;
  font-weight: 620;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.arbeitsweise__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.arbeitsweise__step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
  transition: background 300ms var(--ease);
}

@media (min-width: 480px) {
  .arbeitsweise__step { gap: 24px; padding: 28px 0; }
}

.arbeitsweise__step:first-child {
  border-top: 1px solid var(--color-border);
}

.arbeitsweise__step-number {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-accent);
  flex-shrink: 0;
  width: 32px;
  padding-top: 2px;
}

.arbeitsweise__step strong {
  font-size: 1rem;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.arbeitsweise__step p {
  font-size: 0.9375rem;
  color: var(--color-text-mid);
  line-height: 1.6;
}

/* ===================================================
   KONTAKT
   =================================================== */
/* Kontakt details row */
.kontakt__details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto 48px;
  padding: 28px 24px;
  background: var(--color-dark-2);
  border: 1px solid var(--color-white-08);
  border-radius: var(--radius-md);
}

@media (min-width: 480px) {
  .kontakt__details { padding: 32px 36px; gap: 28px; }
}

@media (min-width: 768px) {
  .kontakt__details {
    grid-template-columns: repeat(4, auto);
    gap: 40px;
    margin-bottom: 56px;
  }
}

.kontakt__detail-block h3 {
  font-size: 0.6875rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-dim);
  margin-bottom: 8px;
}

.kontakt__detail-block p,
.kontakt__detail-block address {
  font-size: 0.9375rem;
  color: var(--color-white-60);
  line-height: 1.7;
  font-style: normal;
}

.kontakt__detail-block a {
  color: var(--color-white-80);
  transition: color var(--dur) var(--ease);
}

.kontakt__detail-block a:hover { color: #fff; }


/* CTA grid (two cards) */
.kontakt__cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

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

/* Contact cards */
.kontakt__card {
  background: var(--color-dark-2);
  border: 1px solid var(--color-white-08);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 400ms var(--ease), transform 400ms var(--ease);
}

@media (min-width: 480px) {
  .kontakt__card { padding: 40px 36px; }
}

.kontakt__card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.kontakt__card-title {
  font-size: 1.25rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.kontakt__card-text {
  font-size: 0.9375rem;
  color: var(--color-white-60);
  line-height: 1.7;
  margin-bottom: 28px;
}

.kontakt__card-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.kontakt__card-note {
  font-size: 0.75rem;
  color: var(--color-text-dim);
  letter-spacing: 0.02em;
  margin-top: auto;
}

/* Checklist in callback card */
.kontakt__checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--color-dark-3);
  border: 1px solid var(--color-white-08);
  border-radius: var(--radius-sm);
}

.kontakt__checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--color-white-80);
  font-weight: 500;
}

.kontakt__checklist-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: var(--color-dark);
  border-top: 1px solid var(--color-white-08);
  padding: 32px 0 calc(80px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  .footer { padding: 32px 0; }
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

@media (min-width: 600px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__brand {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-white-60);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__link {
  font-size: 0.8125rem;
  color: var(--color-text-dim);
  transition: color var(--dur) var(--ease);
}

.footer__link:hover { color: #fff; }

.footer__copy {
  font-size: 0.75rem;
  color: var(--color-text-dim);
}

/* ===================================================
   MOBILE STICKY CTA BAR (two buttons)
   =================================================== */
.mobile-cta-bar {
  display: flex;
  gap: 8px;
  position: fixed;
  bottom: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  left: 16px;
  right: 16px;
  z-index: 90;
  transition: transform 300ms var(--ease);
  transform: translateY(0);
}

.mobile-cta-bar.is-hidden {
  transform: translateY(100px);
  pointer-events: none;
}

.mobile-cta-bar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 16px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  transition: background var(--dur) var(--ease);
}

.mobile-cta-bar__btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mobile-cta-bar__btn--call {
  background: var(--color-accent);
  box-shadow: 0 4px 20px rgba(31, 162, 214, .35);
}

.mobile-cta-bar__btn--call:hover { background: #1A8FBE; }

.mobile-cta-bar__btn--mail {
  background: var(--color-dark-2);
  border: 1px solid var(--color-white-12);
}

.mobile-cta-bar__btn--mail:hover { background: var(--color-dark-3); }

@media (min-width: 768px) {
  .mobile-cta-bar { display: none; }
}

/* ===================================================
   REVEAL ANIMATIONS
   =================================================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

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

/* Staggered cards */
.reveal-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}

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

/* ===================================================
   LEGAL PAGES (Impressum, Datenschutz)
   =================================================== */
.legal__content {
  max-width: 720px;
  margin: 0 auto;
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 40px;
  transition: opacity var(--dur) var(--ease);
}

.legal__back:hover {
  opacity: .7;
}

.legal__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 8px;
}

.legal__meta {
  font-size: 0.9375rem;
  color: var(--color-text-dim);
  margin-bottom: 56px;
}

.legal__section {
  margin-bottom: 48px;
}

.legal__section:last-child {
  margin-bottom: 0;
}

.legal__section h2 {
  font-size: 1.125rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.legal__section p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--color-text-mid);
  margin-bottom: 12px;
}

.legal__section p:last-child {
  margin-bottom: 0;
}

.legal__section a {
  color: var(--color-accent);
  transition: opacity var(--dur) var(--ease);
}

.legal__section a:hover {
  opacity: .7;
}

.legal__section ul {
  margin: 12px 0;
  padding-left: 20px;
  list-style: none;
}

.legal__section ul li {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--color-text-mid);
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
}

.legal__section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
}
