/* ---------- Self-hosted fonts ---------- */
@font-face {
  font-family: "InterVar";
  src: url("/assets/fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PlayfairDisplay";
  src: url("/assets/fonts/PlayfairDisplay-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PlayfairDisplay";
  src: url("/assets/fonts/PlayfairDisplay-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* System fallback stacks */
body {
  font-family: InterVar, Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    Arial, sans-serif;
}
.h-serif {
  font-family: "PlayfairDisplay", Georgia, serif;
}

/* =============== VARIABLES & BASE =============== */
:root {
  --brand: #2e4a35;
  --accent: #c6a664;
  --paper: #f7f5f0;
  --gutter: clamp(16px, 4vw, 32px);
}

html {
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  color: #111;
  background: var(--paper);
  line-height: 1.6;
  width: 100%;
  overflow-x: hidden;
}

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

.container {
  width: min(1200px, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
  /* Safe Areas (iOS) */
  padding-left: calc(var(--gutter) + env(safe-area-inset-left, 0px));
  padding-right: calc(var(--gutter) + env(safe-area-inset-right, 0px));
}

/* =============== TYPO & SECTIONS =============== */
.section {
  padding-block: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 768px) {
  .section {
    padding-block: 120px;
  }
}
.section.alt {
  background: #fff;
}

.service-area-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(247, 245, 240, 0.86) 14%, rgba(247, 245, 240, 0.98) 100%);
  overflow-x: clip;
}

.h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  color: var(--brand);
  margin: 0 0 16px;
}
.h-serif {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0.2px;
}
.muted {
  color: #5f6368;
}
.note {
  font-size: 0.95rem;
  color: #5f6368;
  margin-top: 12px;
}

.service-intro {
  max-width: 42rem;
  margin: 0;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.5;
  color: #556257;
}

.display-hero {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  line-height: 1.1;
  margin: 0;
}
.lead {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: #f1f1f1;
  margin: 10px 0 0;
}

.gold {
  background: linear-gradient(135deg, var(--accent), #eadbb1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.72rem 1.05rem;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: saturate(120%) blur(6px);
}
.btn:hover {
  border-color: #fff;
}

/* =============== HERO (Ken-Burns + Parallax) =============== */
.hero {
  position: relative;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  will-change: transform;
  transform: translateY(var(--py, 0px));
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 30s ease-in-out infinite alternate;
  transform-origin: center;
}
@keyframes kenburns {
  0% {
    transform: scale(1.06) translate(0, -1%);
  }
  50% {
    transform: scale(1.1) translate(0.8%, -0.2%);
  }
  100% {
    transform: scale(1.14) translate(1.4%, -0.4%);
  }
}
.hero-tint {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding-inline: var(--gutter);
  max-width: 780px;
}
.badge {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
  font-size: 0.8rem;
}
.hero-cta {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* =============== SERVICES GRID =============== */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #e6e6e6;
  background: var(--paper);
}
.card .em {
  font-size: 1.6rem;
}

.service-area {
  position: relative;
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  margin: 0;
  padding: 0;
  isolation: isolate;
}

.service-area::before {
  content: "";
  position: absolute;
  inset: -6% 0 -10% 0;
  z-index: -2;
  background:
    radial-gradient(circle at 62% 48%, rgba(198, 166, 100, 0.08), transparent 28%),
    radial-gradient(circle at 78% 54%, rgba(46, 74, 53, 0.08), transparent 34%);
  opacity: 1;
}

.service-area-copy {
  max-width: 31rem;
  position: relative;
  z-index: 2;
}

.service-area-eyebrow {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7d6a43;
}

.service-area-title {
  margin: 0;
  max-width: 26rem;
  font-size: clamp(1.5rem, 2.2vw, 2.15rem);
  color: var(--brand);
  line-height: 1.08;
  text-wrap: balance;
}

.service-area-text {
  max-width: 28rem;
  margin: 12px 0 0;
  font-size: 1rem;
}

.service-area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.service-area-chip {
  appearance: none;
  border: 1px solid rgba(46, 74, 53, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand);
  border-radius: 999px;
  padding: 0.68rem 0.96rem;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.service-area-chip:hover,
.service-area-chip:focus-visible,
.service-area-chip.is-active {
  transform: translateY(-1px);
  color: #1e2e22;
  border-color: rgba(46, 74, 53, 0.3);
  background: rgba(255, 252, 245, 0.96);
  box-shadow: 0 10px 26px rgba(46, 74, 53, 0.12);
}

.service-area-chip:focus-visible {
  outline: 3px solid rgba(198, 166, 100, 0.22);
  outline-offset: 3px;
}

.service-area-hint {
  margin: 16px 0 0;
  font-size: 0.92rem;
  color: #66725f;
}

.service-area-visual {
  position: relative;
  min-height: clamp(320px, 40vw, 520px);
  z-index: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.service-area-map-shell {
  position: absolute;
  inset: 0;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.92) 9%, #000 18%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.92) 9%, #000 18%, #000 92%, transparent 100%);
}

.service-area-map {
  position: absolute;
  inset: 0;
}

.service-area-map svg {
  position: absolute;
  top: 0;
  left: 0;
  width: max(100%, 780px);
  height: auto;
  max-width: none;
  transform-origin: 0 0;
  opacity: 0.72;
  transition: transform 720ms cubic-bezier(0.22, 1, 0.36, 1), opacity 280ms ease;
}

.service-area-map .title,
.service-area-map .subtitle,
.service-area-map .footnote {
  display: none;
}

.service-area-map svg > rect {
  display: none;
}

.service-area-map [id^="muni-"] path {
  transition: fill 240ms ease, stroke 240ms ease, opacity 240ms ease;
}

.service-area-map [id^="town-"] {
  opacity: 0.44;
  transition: opacity 240ms ease;
}

.service-area-map [id^="town-"] .marker-ring,
.service-area-map [id^="town-"] .marker-dot,
.service-area-map [id^="town-"] text {
  transition: transform 240ms ease, fill 240ms ease, stroke 240ms ease, opacity 240ms ease;
  transform-box: fill-box;
  transform-origin: center;
}

.service-area-map [id^="town-"].is-active,
.service-area-map [id^="town-"].is-nearby {
  opacity: 1;
}

.service-area-map [id^="town-"].is-active .marker-ring {
  fill: #fffaf0;
  stroke: #c6a664;
}

.service-area-map [id^="town-"].is-active .marker-dot {
  fill: #2e4a35;
}

.service-area-map [id^="town-"].is-active text {
  fill: #1b2b1f;
}

.service-area-map [id^="town-"].is-active .marker-ring,
.service-area-map [id^="town-"].is-active .marker-dot,
.service-area-map [id^="town-"].is-active text {
  transform: scale(1.06);
}

.service-area-map [id^="muni-"].is-active path {
  fill: #dfe8d6;
  stroke: #7c9c74;
}

@media (min-width: 920px) {
  .service-area {
    grid-template-columns: minmax(320px, 0.9fr) minmax(460px, 1.15fr);
  }
}

@media (max-width: 919px) {
  .service-area::before {
    inset: -4% 0 -6% 0;
  }

  .service-area-visual {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .service-area-section {
    overflow-x: hidden;
  }

  .service-intro {
    max-width: 26rem;
  }

  .service-area {
    gap: 18px;
  }

  .service-area-list {
    gap: 8px;
    margin-top: 18px;
  }

  .service-area-chip {
    padding: 0.62rem 0.9rem;
    font-size: 0.92rem;
  }

  .service-area-visual {
    min-height: 260px;
  }

  .service-area-map-shell {
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.95) 10%, #000 20%, #000 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.95) 10%, #000 20%, #000 90%, transparent 100%);
  }
}

/* =============== SPLIT / STEPS =============== */
.split {
  display: grid;
  gap: clamp(16px, 2.4vw, 24px);
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .split {
    grid-template-columns: 6fr 6fr;
  }
}
@media (min-width: 1100px) {
  .split {
    grid-template-columns: 5fr 7fr;
  }
}

.steps {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.steps li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(46, 74, 53, 0.1);
  color: #2e4a35;
  font-weight: 600;
}

/* =============== SLIDER (Mobile/Tablet) =============== */
.slider-container {
  --pad: clamp(16px, 5.5vw, 64px);
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: min(72vh, 820px);
  isolation: isolate;
}
.slider-viewport {
  position: absolute;
  inset: 0;
  padding: 0 var(--pad);
  background: var(--paper);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 10px 28px rgba(0, 0, 0, 0.1);
}
.slider-track {
  position: absolute;
  inset: 0;
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.slider-slide {
  flex: 0 0 100%;
  position: relative;
}
.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.slider-dots {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: 0;
  padding: 0;
}
.slider-dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* responsive slider heights */
@media (max-width: 900px) {
  .slider-container {
    aspect-ratio: 4/3;
  }
}
@media (max-width: 560px) {
  .slider-container {
    aspect-ratio: 3/4;
  }
}

/* Slider: links/rechts Luft auf Mobile/Tablet */
@media (max-width: 991px) {
  .slider-container {
    margin-inline: var(--gutter);
    width: calc(100% - 2 * var(--gutter));
  }
  .slider-viewport {
    padding-inline: 0;
  }
}

/* =============== GALLERY Sichtbarkeit (Mobile vs. Desktop) =============== */
.gallery-masonry {
  display: none;
}

/* Desktop (≥992px): Slider AUS, Grid AN */
@media (min-width: 992px) {
  .slider-container {
    display: none !important;
  }

  .gallery-masonry {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
    contain: layout paint; /* smoother paints */
    box-sizing: border-box;
  }

  .gallery-masonry .gm-card {
    position: relative;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(14px) scale(0.985);
    will-change: transform, opacity;
    transition: transform 0.55s cubic-bezier(0.2, 0.6, 0.2, 1),
      opacity 0.55s ease, box-shadow 0.25s ease;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
  }
  .gallery-masonry .gm-card.is-visible {
    opacity: 1;
    transform: none;
  }

  .gallery-masonry figure {
    margin: 0;
    contain: paint;
  }
  .gallery-masonry img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/10;
    object-fit: cover;
    background: #ecebe7;
    transform: translateZ(0);
    transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1), filter 0.5s ease;
    cursor: zoom-in;
  }

  .gallery-masonry .gm-card:hover img {
    transform: scale(1.03);
    filter: brightness(1.02) saturate(1.02);
  }
  .gallery-masonry .gm-card:hover {
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
  }
}
@media (min-width: 1400px) {
  .gallery-masonry {
    grid-template-columns: repeat(3, minmax(240px, 1fr));
  }
}

/* =============== ABOUT (neu) =============== */
.about-section {
  background: #f9f8f6;
  padding-block: 80px;
  border-radius: 12px;
}
.about-container {
  align-items: center;
}
.about-text {
  max-width: 560px;
}
.about-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.about-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.about-list .icon {
  font-size: 1.15rem;
  line-height: 1.2;
  flex-shrink: 0;
}
.about-photo {
  display: flex;
  justify-content: center;
}
.profile-card {
  background: #fff;
  padding: 14px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  max-width: 360px;
  text-align: center;
  border: 1px solid #ececec;
}
.profile-card img {
  width: 100%;
  border-radius: 10px;
  display: block;
}
.profile-card figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #444;
}
.profile-card em {
  display: block;
  font-style: italic;
  font-size: 0.9rem;
  color: #6a6a6a;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .about-container {
    grid-template-columns: 1fr;
  }
  .about-text {
    margin-bottom: 20px;
  }
}

/* ======= CTA (ERSETZT: prominenter, lesbarer Stil) ======= */
/* =============== CTA =============== */
.cta {
  background: linear-gradient(180deg, #2e4a35, #263e2e);
  color: #fff;
  padding-block: 44px; /* etwas mehr Höhe */
  position: relative;
  overflow: visible;
}

.cta-inner {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  width: min(1200px, 100%);
  margin-inline: auto;
}

/* Overline + Title */
.cta .over {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.85;
  font-size: 0.85rem;
}
.cta .title {
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}

/* Buttons container */
.cta-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: nowrap;
}

/* Haupt-CTA: ausgefüllte "Primär"-Pille (ersetzt alte .contact-pill / .btn) */
.cta .cta-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand);
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22),
    inset 0 -2px 0 rgba(0, 0, 0, 0.04);
  border: 0;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  white-space: nowrap;
}

/* Hover / active */
.cta .cta-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}
.cta .cta-primary:active {
  transform: translateY(-1px) scale(0.995);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

/* kleines Icon im pill */
.cta .cta-ico {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex: 0 0 20px;
}

/* mobile: weniger padding, responsive */
@media (max-width: 640px) {
  .cta {
    padding-block: 32px;
  }
  .cta .cta-primary {
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
  }
  .cta-inner {
    padding-inline: var(--gutter);
  }
}

/* Accessibility focus */
.cta .cta-primary:focus,
.cta .cta-ghost:focus {
  outline: 3px solid rgba(198, 166, 100, 0.22);
  outline-offset: 3px;
}

/* ===== Contact modal (verwaltet von contact.js) ===== */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
}
.contact-modal[aria-hidden="false"] {
  display: flex;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(1px);
}
.contact-modal__panel {
  position: relative;
  z-index: 10;
  width: min(720px, 94vw);
  background: #fff;
  color: #111;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform-origin: center;
  transition: transform 0.18s ease, opacity 0.14s ease;
}
.contact-modal__panel input,
.contact-modal__panel textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  margin-top: 6px;
  box-sizing: border-box;
  font-size: 1rem;
  color: #111;
  background: #fff;
}
.contact-modal__close {
  position: absolute;
  right: 10px;
  top: 8px;
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: #333;
}

/* small screens modal full width */
@media (max-width: 520px) {
  .contact-modal__panel {
    width: calc(100% - 28px);
    padding: 16px;
  }
}
/* ---------- CTA: nicer primary pill (gloss sweep + lift + icon slide) ---------- */
.cta .cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.72rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #f7f3ea 100%
  ); /* heller Fill */
  color: var(--brand);
  font-weight: 700;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
  border: 0;
  position: relative;
  overflow: hidden; /* für ::after sweep */
  transition: transform 160ms ease, box-shadow 160ms ease;
}

/* subtle glossy sweep using pseudo element */
.cta .cta-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 0;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(198, 166, 100, 0.06) 0%,
    rgba(198, 166, 100, 0.12) 30%,
    rgba(255, 255, 255, 0.02) 60%,
    rgba(198, 166, 100, 0.04) 100%
  );
  transform: skewX(-14deg);
  transition: width 420ms cubic-bezier(0.2, 0.9, 0.2, 1),
    left 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
  pointer-events: none;
}

/* hover: open sweep + lift */
.cta .cta-primary:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}
.cta .cta-primary:hover::after {
  width: 160%;
  left: -10%;
}

/* small arrow/icon that slides a bit */
.cta .cta-primary .cta-icon {
  display: inline-block;
  transition: transform 180ms ease, opacity 160ms;
  font-weight: 700;
  transform: translateX(0);
  opacity: 0.95;
}
.cta .cta-primary:hover .cta-icon {
  transform: translateX(6px);
}

/* focus visible: accessible outline */
.cta .cta-primary:focus {
  outline: 3px solid rgba(198, 166, 100, 0.22);
  outline-offset: 4px;
}

/* alternative accent fill (if you prefer warm gold tint instead of pure white) */
.cta .cta-primary--accent {
  background: linear-gradient(90deg, #fff9f0 0%, #f1ead6 100%);
  color: var(--brand);
}

/* mobile adjustments */
@media (max-width: 640px) {
  .cta .cta-primary {
    padding: 0.62rem 1rem;
    font-size: 0.96rem;
  }
}

/* reduce-motion: remove animated bits */
@media (prefers-reduced-motion: reduce) {
  .cta .cta-primary,
  .cta .cta-primary::after,
  .cta .cta-primary .cta-icon {
    transition: none !important;
  }
  .cta .cta-primary:hover::after {
    width: 0;
    left: -40%;
  }
  .cta .cta-primary:hover {
    transform: none;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
  }
}

/* =============== FOOTER =============== */
/* Mobile/Tablet: zentriert, ruhig */
.footer {
  position: relative;
  background: #0f1712;
  color: #fff;
  padding: 28px 0 24px;
  text-align: center;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  height: 1px;
  width: 100%;
  top: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.06)
  );
}
.foot-row {
  margin: 6px 0;
}
.foot-brand {
  opacity: 0.9;
  font-size: 0.95rem;
}
/* =============== FOOTER =============== */
.footer {
  position: relative;
  background: #0f1712;
  color: #fff;
  padding: 28px 0 24px;
  text-align: center;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  height: 1px;
  width: 100%;
  top: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.06)
  );
}
.footer .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding-block: 28px;
}
.foot-brand {
  justify-self: start;
  color: #fff;
  opacity: 0.95;
  font-size: 0.95rem;
}
.foot-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  justify-self: center;
}
.foot-links a {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
}
.foot-links a:hover {
  text-decoration: underline;
  opacity: 1;
}
.foot-links .sep {
  opacity: 0.45;
}
.foot-meta {
  justify-self: end;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #cfd6d1;
}
.foot-meta a {
  color: #fff;
  text-decoration: underline;
}
@media (max-width: 991px) {
  .footer .container {
    grid-template-columns: 1fr;
    text-align: center;
    row-gap: 8px;
  }
  .foot-brand,
  .foot-links,
  .foot-meta {
    justify-self: center;
  }
  .foot-meta {
    flex-direction: column;
    gap: 6px;
  }
}
@media (min-width: 992px) {
  .footer .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  .foot-brand {
    justify-self: start;
  }
  .foot-links {
    justify-self: center;
  }
  .foot-credit {
    justify-self: end;
  }
}

/* =============== EFFECTS & UTILITIES =============== */
.grain::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGNgYAAAAAMAASsJTYQAAAAASUVORK5CYII=");
  background-repeat: repeat;
}
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.fade-up.in {
  opacity: 1;
  transform: none;
}

.lang-switch {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 50;
  display: flex;
  gap: 8px;
}
.lang-pill {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  color: #fff;
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lang-pill[aria-pressed="true"] {
  background: rgba(0, 0, 0, 0.85);
}

/* === LEAVES: neue, spitzere Varianten + subtiles Float/Rotate -> ersetze vorhandenen #leaves-back/#leaves block === */

#leaves-back,
#leaves {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
#leaves-back {
  z-index: 1;
  opacity: 0.14;
}
#leaves {
  z-index: 40;
  opacity: 0.7;
}

#leaves-back span,
#leaves span {
  position: fixed;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.08));
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><path fill='%232e4a35' d='M32 2c10 6 18 18 18 30s-8 26-18 30S8 50 8 36 22 6 32 2z'/><path fill='%233b6d4a' d='M30 10c8 8 12 18 12 28-6-6-10-12-18-18 2-6 4-12 6-10z' opacity='.6'/></svg>");
  width: clamp(12px, 1.8vw, 26px);
  height: clamp(22px, 2.6vw, 36px);
  opacity: 0.32;
  will-change: transform, opacity;
  transition: opacity 300ms ease;
}

/* leichte Positions-Variationen / lebendigkeit (einfach per nth-child) */
#leaves span:nth-child(odd) {
  transform-origin: 50% 50%;
}
#leaves span:nth-child(even) {
  transform-origin: 50% 50%;
}

/* zufällige Rotation/Scale-Pattern (mehr Varianz durch :nth-child) */
#leaves span:nth-child(3n + 1) {
  transform: rotate(-16deg) scale(0.92);
}
#leaves span:nth-child(3n + 2) {
  transform: rotate(6deg) scale(1);
}
#leaves span:nth-child(3n + 3) {
  transform: rotate(24deg) scale(0.86);
}

/* Floating animation */
@keyframes leafFloat {
  0% {
    transform: translateY(0) rotate(var(--r, 0deg)) scale(var(--s, 1));
  }
  50% {
    transform: translateY(-6px) rotate(calc(var(--r, 0deg) + 6deg))
      scale(calc(var(--s, 1) * 1.02));
  }
  100% {
    transform: translateY(0) rotate(var(--r, 0deg)) scale(var(--s, 1));
  }
}
#leaves span {
  animation: leafFloat var(--dur, 6s) ease-in-out infinite;
}

/* etwas unterschiedlich timed */
#leaves span:nth-child(odd) {
  --dur: 7.2s;
}
#leaves span:nth-child(even) {
  --dur: 5.8s;
}

/* reduce motion respect */
@media (prefers-reduced-motion: reduce) {
  #leaves span {
    animation: none;
    transform: none !important;
  }
}

/* i18n root fade */
#i18n-root {
  opacity: 1;
  transition: opacity 0.4s ease;
}
#i18n-root.fading {
  opacity: 0;
}

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 60;
}
#lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
#lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.lb-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

/* Back-to-Top */
#toTop {
  position: fixed;
  left: 50%;
  bottom: 18px; /* JS überschreibt dynamisch */
  transform: translateX(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s,
    bottom 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 70;
}
#toTop.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -2px);
}

#toTop:focus-visible {
  outline: 2px solid #fff;
}

#toTop.idle {
  opacity: 0;
  pointer-events: none;
}

/* Accessible Dialog (Credits) */
#creditsDialog {
  width: min(560px, 92vw);
  border: 0;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
#creditsDialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}
#creditsDialog .dlg-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  cursor: pointer;
  font-size: 20px;
}
#creditsDialog .dlg-close:focus-visible {
  outline: 2px solid var(--brand);
}

/* =============== SERVICE ICON =============== */
.svc-ico {
  width: 48px;
  height: 48px;
  font-size: 28px;
  line-height: 1;
  display: inline-block;
  margin-bottom: 8px;
}
@media (min-width: 768px) {
  .svc-ico {
    font-size: 30px;
  }
}

/* =============== CTA PRIMARY BUTTON (zusammengefasst) =============== */
/* ---------------- Consolidated CTA / Primary pill styles ---------------- */

/* Base: apply to CTA area primary OR legacy contact-pill marked primary */
.cta .cta-primary,
.contact-pill.primary,
.contact-pill.cta-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.72rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffffff 0%, #f7f3ea 100%);
  color: var(--brand);
  font-weight: 700;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
  border: 0;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
  font-size: 1rem;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}

/* Sheen overlay (::after) */
.cta .cta-primary::after,
.contact-pill.primary::after,
.contact-pill.cta-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 0;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(198, 166, 100, 0.06) 0%,
    rgba(198, 166, 100, 0.12) 30%,
    rgba(255, 255, 255, 0.02) 60%,
    rgba(198, 166, 100, 0.04) 100%
  );
  transform: skewX(-14deg);
  transition: width 420ms cubic-bezier(0.2, 0.9, 0.2, 1),
    left 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
  pointer-events: none;
}

/* Hover lift + sheen reveal + icon shift */
.cta .cta-primary:hover,
.contact-pill.primary:hover,
.contact-pill.cta-primary:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}
.cta .cta-primary:hover::after,
.contact-pill.primary:hover::after,
.contact-pill.cta-primary:hover::after {
  width: 160%;
  left: -10%;
}

/* Icon movement: expects an element with class .cta-icon inside the button */
.cta .cta-primary .cta-icon,
.contact-pill.primary .cta-icon,
.contact-pill.cta-primary .cta-icon {
  display: inline-block;
  transition: transform 180ms ease, opacity 160ms;
  transform: translateX(0);
  opacity: 0.95;
}
.cta .cta-primary:hover .cta-icon,
.contact-pill.primary:hover .cta-icon,
.contact-pill.cta-primary:hover .cta-icon {
  transform: translateX(6px);
}

/* Focus */
.cta .cta-primary:focus,
.contact-pill.primary:focus,
.contact-pill.cta-primary:focus,
.cta .cta-primary:focus-visible,
.contact-pill.primary:focus-visible {
  outline: 3px solid rgba(198, 166, 100, 0.22);
  outline-offset: 4px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26),
    0 0 0 4px rgba(198, 166, 100, 0.06);
}

/* Accent variant (if you still use .cta-primary--accent) */
.cta .cta-primary--accent,
.contact-pill.primary.cta-primary--accent {
  background: linear-gradient(90deg, #fff9f0 0%, #f1ead6 100%);
  color: var(--brand);
}

/* Responsive smaller padding */
@media (max-width: 640px) {
  .cta .cta-primary,
  .contact-pill.primary,
  .contact-pill.cta-primary {
    padding: 0.62rem 1rem;
    font-size: 0.96rem;
  }
}

/* Reduced motion: disable transitions and reset shimmer */
@media (prefers-reduced-motion: reduce) {
  .cta .cta-primary,
  .contact-pill.primary,
  .contact-pill.cta-primary,
  .cta .cta-primary::after,
  .contact-pill.primary::after,
  .contact-pill.cta-primary::after,
  .cta .cta-primary .cta-icon,
  .contact-pill.primary .cta-icon,
  .contact-pill.cta-primary .cta-icon {
    transition: none !important;
  }
  .cta .cta-primary:hover::after,
  .contact-pill.primary:hover::after,
  .contact-pill.cta-primary:hover::after {
    width: 0;
    left: -40%;
  }
  .cta .cta-primary:hover,
  .contact-pill.primary:hover,
  .contact-pill.cta-primary:hover {
    transform: none;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
  }
}
/* icon spacing + size inside the pill */
.contact-pill .cta-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex: 0 0 auto;
  margin-right: 0.6rem;
  vertical-align: middle;
}

/* falls das Button-Label als inline-Element gesetzt wird */
.contact-pill #t.ctaPrimary {
  line-height: 1;
  display: inline-block;
}
/* ensure button base (keep your existing .contact-pill.primary rules) */
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.72rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffffff 0%, #f7f3ea 100%);
  color: var(--brand);
  font-weight: 700;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
  border: 0;
  transition: transform 160ms ease, box-shadow 160ms ease;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

/* Icon */
.cta-primary .cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--brand); /* SVG uses currentColor */
  transition: transform 180ms ease, opacity 160ms;
  transform: translateX(0);
  opacity: 0.98;
}

/* Text */
.cta-primary .cta-text {
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
}

/* hover lift + icon move */
.cta-primary:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}
.cta-primary:hover .cta-icon {
  transform: translateX(6px);
}

/* subtle swept gloss (optional) — keeps your existing ::after behavior if present */
.cta-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 0;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(198, 166, 100, 0.06) 0%,
    rgba(198, 166, 100, 0.12) 30%,
    rgba(255, 255, 255, 0.02) 60%,
    rgba(198, 166, 100, 0.04) 100%
  );
  transform: skewX(-14deg);
  transition: width 420ms cubic-bezier(0.2, 0.9, 0.2, 1),
    left 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
  pointer-events: none;
}
.cta-primary:hover::after {
  width: 160%;
  left: -10%;
}

/* focus */
.cta-primary:focus {
  outline: 3px solid rgba(198, 166, 100, 0.22);
  outline-offset: 4px;
}

/* small screens: slightly smaller padding */
@media (max-width: 640px) {
  .cta-primary {
    padding: 0.62rem 1rem;
    font-size: 0.96rem;
  }
  .cta-primary .cta-icon {
    width: 18px;
    height: 18px;
    transform: translateX(0);
  }
}
