:root {
  --header-offset: 96px;
  --viewport-height: 100vh;
  --section-space-y: clamp(5rem, 9vw, 8rem);
  --section-space-y-tight: clamp(4rem, 7vw, 6rem);
  --section-x: clamp(1rem, 3vw, 2rem);
  --hero-panel-width: min(100%, 42rem);
  --hero-panel-padding: clamp(1.75rem, 4vw, 3.5rem);
  --card-padding: clamp(1.5rem, 3vw, 2.5rem);
  --contact-min-height: clamp(22rem, 42vw, 30rem);
}

@media (max-width: 767px) {
  :root {
    --header-offset: 88px;
  }
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

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

#theme-switch-mobile {
  min-height: 2.25rem;
}

#theme-switch-mobile span {
  font-size: 0.625rem;
  line-height: 1;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

#mobile-menu .nav-item {
  font-size: clamp(0.875rem, 3.8vw, 0.95rem);
}

#mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

#mobile-menu-toggle,
#mobile-menu-toggle * {
  pointer-events: auto;
}

section {
  scroll-margin-top: var(--header-offset);
}

a[href^="tel:"],
a[href^="mailto:"],
.secure-contact {
  position: relative;
  z-index: 3;
  pointer-events: auto;
  touch-action: manipulation;
}

.contact-copy-btn {
  position: relative;
  z-index: 1;
  touch-action: manipulation;
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.35s ease,
    color 0.35s ease,
    background-color 0.35s ease;
}

.contact-copy-btn:hover,
.contact-copy-btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--contact-copy-border-hover) !important;
  color: var(--contact-copy-text-hover) !important;
  background-color: var(--contact-copy-bg-hover) !important;
  box-shadow: 0 0 26px var(--contact-copy-shadow);
}

.contact-copy-btn:focus-visible {
  outline: 2px solid rgba(212, 175, 55, 0.5);
  outline-offset: 2px;
}

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

.goldenglow {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.goldenglow:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.goldenglow:hover .service-card-img {
  filter: brightness(1);
  transform: scale(1.02);
}

.hero-image-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image-container picture,
.hero-image-container img {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-picture {
  background: none;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% top;
}

@media (max-width: 640px) {
  .hero-section.hero-immersive-priority .hero-bg-image {
    object-position: 42% top;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .hero-section.hero-immersive-priority .hero-bg-image {
    object-position: 47% 8%;
  }
}

@media (min-width: 1025px) {
  .hero-section.hero-immersive-priority .hero-bg-image {
    object-position: 50% 10%;
  }
}

.nav-link-glow.active {
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
  color: #d4af37 !important;
}

.nav-link-modern {
  position: relative;
  transition: all 0.3s ease;
}

.nav-link-modern.active {
  color: #d4af37 !important;
}

.nav-link-modern::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, #d4af37 0%, transparent 100%);
  box-shadow: 0 0 10px #d4af37;
  transition: width 0.3s ease;
}

.nav-link-modern.active::after {
  width: 80%;
}

@media (hover: hover) and (pointer: fine) {
  .nav-link-glow:hover {
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
    color: #d4af37 !important;
  }

  .nav-link-modern:hover {
    color: #d4af37 !important;
  }

  .nav-link-modern:hover::after {
    width: 80%;
  }
}

.hero-img-quality {
  image-rendering: auto;
}

.hero-overlay {
  background: linear-gradient(to bottom,
      rgba(5, 9, 20, 0.10) 0%,
      rgba(5, 9, 20, 0) 80%,
      rgba(5, 9, 20, 0.82) 100%);
}

.hero-panel {
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hero-home .hero-panel:hover {
  background: rgba(0, 0, 0, 0.45) !important;
}

.map-container {
  border-radius: 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 100%;
}

.map-lazy-container {
  position: relative;
  isolation: isolate;
}

.map-lazy-placeholder {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.75rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.map-lazy-placeholder:hover {
  transform: translateY(-2px);
}

.map-lazy-placeholder-content {
  width: min(100%, 30rem);
}

.map-lazy-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.map-lazy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.4rem;
  border-radius: 9999px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.map-lazy-btn:hover {
  transform: translateY(-1px);
}

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

@media (max-width: 767px) {
  .process-mobile-wrap {
    position: relative;
    width: 100%;
    padding-block: 0.5rem;
  }

  .process-mobile-icon-row {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    margin: 0;
  }

  .process-mobile-text-row {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    column-gap: 0;
    width: 100%;
    min-height: clamp(4rem, 11vw, 4.75rem);
    margin: 1rem 0 1.25rem;
  }

  .process-mobile-text-row:last-child {
    margin-bottom: 0;
  }

  .process-mobile-text-title {
    text-align: right;
    padding-right: clamp(1.25rem, 6vw, 2.75rem);
  }

  .process-mobile-text-copy {
    text-align: left;
    padding-left: clamp(1.25rem, 6vw, 2.75rem);
  }

  .process-mobile-text-copy p,
  .process-mobile-text-title h3 {
    margin: 0;
  }
}

.section-intro {
  text-align: center;
  margin-bottom: 6rem;
}

.section-heading-line {
  width: 3.25rem;
  height: 1px;
  margin: 0 auto 2rem;
  background: rgba(212, 175, 55, 0.9);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.18);
}

.section-heading-title {
  margin-bottom: 0.75rem;
}

.section-heading-subline {
  margin-top: 0;
}

.about-media > .absolute.top-4.right-4 {
  min-width: max-content;
  padding: 0.65rem 0.9rem;
  border-radius: 10px !important;
  gap: 0.18rem;
  letter-spacing: 0.13em;
  line-height: 1.15;
}

.about-media > .absolute.top-4.right-4 span {
  display: block;
  font-size: clamp(0.7rem, 0.92vw, 0.8rem) !important;
  font-weight: 700;
  line-height: 1.22 !important;
  opacity: 1 !important;
}

@media (max-width: 767px) {
  .section-intro {
    margin-bottom: 4rem;
  }

  .section-heading-line {
    width: 2.5rem;
    margin-bottom: 0.85rem;
  }

  .section-heading-title {
    margin-bottom: 0.85rem;
  }
}

@media (max-width: 479px) {
  .trustbar-inner {
    gap: 0.9rem;
  }

  .trustbar-item {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    text-align: left;
  }

  .trustbar-text {
    display: block;
    max-width: 14rem;
    line-height: 1.25;
  }

  .about-mobile-row {
    width: min(100%, 21rem);
  }
}

@media (min-width: 768px) {
  .process-lines-desktop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
  }

  .process-line-segment {
    position: absolute;
    top: 3rem;
    height: 1px;
    background: linear-gradient(to right,
        transparent 0%,
        rgba(212, 175, 55, 0.35) 18%,
        rgba(212, 175, 55, 0.45) 50%,
        rgba(212, 175, 55, 0.35) 82%,
        transparent 100%);
  }

  .process-line-segment-left {
    left: calc(16.666% + clamp(1rem, 2vw, 1.67rem));
    right: calc(50% + clamp(1.75rem, 4vw, 3rem));
  }

  .process-line-segment-right {
    left: calc(50% + clamp(1.75rem, 4vw, 3rem));
    right: calc(16.666% + clamp(1rem, 2vw, 1.67rem));
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .about-layout {
    align-items: flex-start;
  }

  .about-content {
    align-self: flex-start;
    padding-top: 0;
  }
}

@media (min-width: 1024px) {
  .about-layout {
    align-items: center;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .about-content .group {
    align-items: flex-start;
  }

  .about-content .group>div:first-child {
    margin-top: 0 !important;
  }

  .about-content .group h3 {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.6;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .about-content .group>div:last-child {
    transform: translateY(-0.2rem);
  }

  .about-content .group h3 {
    line-height: 1.45 !important;
  }
}

@media (max-width: 767px) {
  .about-mobile-stack {
    display: grid;
    justify-content: center;
    width: 100%;
  }

  .about-mobile-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: clamp(1rem, 6vw, 2.5rem);
    align-items: start;
    width: min(100%, 24rem);
    margin-inline: auto;
    text-align: left;
  }

  .about-mobile-row>div:first-child {
    margin-top: 0 !important;
  }

  .about-mobile-copy {
    min-width: 0;
    transform: translateY(-0.2rem);
  }

  .about-mobile-copy h3 {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.45;
  }
}

.service-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 14rem;
  object-fit: cover;
  border-radius: 1.2rem;
  transition: all 0.5s ease;
  filter: brightness(0.8);
}

.hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-home.hero-section {
  margin-top: var(--header-offset);
  height: auto;
  min-height: clamp(30rem, calc(var(--viewport-height, 100vh) - var(--header-offset)), 44rem);
}

.hero-home.hero-section.hero-immersive-priority {
  min-height: clamp(31rem, calc(var(--viewport-height, 100vh) - var(--header-offset)), 46rem);
}

.hero-content-shell {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: var(--section-x);
  padding-top: clamp(1rem, 3vh, 2rem);
  padding-bottom: clamp(1.5rem, 4vh, 3rem);
}

.hero-panel {
  width: var(--hero-panel-width);
  padding: var(--hero-panel-padding);
  text-align: center;
  pointer-events: auto;
  transition: background 0.35s ease;
}

.hero-home .hero-title {
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  line-height: 0.98;
}

.hero-home .hero-copy {
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  max-width: min(100%, 34rem);
}

.hero-home .hero-side-copy {
  font-size: clamp(1.35rem, 2.3vw, 2.5rem);
  line-height: 1.05;
}

.hero-desktop-bottom span {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: 100%;
  min-height: 2.05rem;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-family: Manrope, sans-serif;
  font-size: 0.75rem;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-home .hero-mobile-label {
  margin-bottom: clamp(1rem, 3vh, 2rem);
}

.hero-home .hero-mobile-bottom {
  margin-top: clamp(1rem, 3vh, 2rem);
}

.hero-home .hero-mobile-label,
.hero-home .hero-mobile-bottom {
  display: none;
}

.hero-home .hero-mobile-label span,
.hero-home .hero-mobile-bottom span {
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  min-height: 2.05rem;
  min-width: min(13rem, 78vw);
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  font-family: Manrope, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .hero-home.hero-section {
    min-height: clamp(30rem, calc(var(--viewport-height, 100vh) - var(--header-offset)), 40rem);
  }

  .hero-home.hero-section.hero-immersive-priority {
    min-height: clamp(31rem, calc(var(--viewport-height, 100vh) - var(--header-offset)), 42rem);
  }

  .hero-home .hero-content-shell {
    padding-inline: clamp(1rem, 5vw, 1.5rem);
    padding-top: clamp(1.25rem, 5vh, 2rem);
    padding-bottom: clamp(1rem, 5vh, 3rem);
  }

  .hero-home .hero-panel {
    width: min(100%, 34rem);
  }

  .hero-home .hero-title {
    font-size: clamp(1.9rem, 8vw, 3rem);
  }

  .hero-home .hero-copy {
    font-size: clamp(0.98rem, 3.9vw, 1.05rem);
    max-width: 28rem;
  }
}

@media (max-width: 767px) and (orientation: portrait) {
  .hero-home .hero-content-shell {
    align-items: stretch;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero-home .hero-content-shell > .flex {
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    justify-items: center;
    height: 100%;
  }

  .hero-home .hero-mobile-label,
  .hero-home .hero-mobile-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 34rem);
    margin: 0 !important;
  }

  .hero-home .hero-mobile-bottom {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-self: stretch;
    height: 100%;
    justify-content: space-evenly;
    gap: 0;
  }

  .hero-home .hero-panel {
    align-self: center;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
  }

  .hero-home .hero-mobile-label span,
  .hero-home .hero-mobile-bottom span {
    display: inline-flex;
    flex: 0 0 auto;
  }
}

@media (min-width: 768px) {
  .hero-home.hero-section {
    min-height: clamp(34rem, calc(var(--viewport-height, 100vh) - var(--header-offset)), 48rem);
  }

  .hero-home.hero-section.hero-immersive-priority {
    min-height: clamp(35rem, calc(var(--viewport-height, 100vh) - var(--header-offset)), 48rem);
  }

  .hero-desktop-bottom {
    bottom: clamp(1.5rem, 4vh, 3rem);
  }
}

@media (min-width: 1025px) {
  .hero-home.hero-section.hero-immersive-priority {
    min-height: clamp(35rem, calc(var(--viewport-height, 100vh) - var(--header-offset)), 48rem);
    max-height: 48rem;
  }

  .hero-home .hero-content-shell {
    padding-top: clamp(3.25rem, 6vh, 5.25rem);
  }
}

@media (max-height: 820px) and (min-width: 768px) {
  .hero-content-shell {
    align-items: flex-start;
    padding-top: clamp(0.75rem, 2vh, 1.25rem);
  }

  .hero-desktop-bottom {
    bottom: 1rem;
  }

  .hero-side-copy {
    font-size: clamp(1.2rem, 2vw, 2rem);
  }
}

.logo-fluid {
  height: clamp(4.4rem, 8vw, 5.88rem);
}

.section-space {
  padding-top: var(--section-space-y);
  padding-bottom: var(--section-space-y);
}

.section-space-tight {
  padding-top: var(--section-space-y-tight);
  padding-bottom: var(--section-space-y-tight);
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 3.5rem);
  line-height: 1.05;
}

.card-fluid {
  padding: var(--card-padding);
}

.contact-card-height {
  min-height: var(--contact-min-height);
}

.contact-action-row {
  width: 100%;
}

.contact-inline-value {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.footer-nav {
  row-gap: 0.75rem;
}

footer {
  padding-bottom: max(0px, env(safe-area-inset-bottom));
  background-clip: padding-box;
}

#scroll-to-top {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
}

#scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#mobile-menu {
  max-height: calc(var(--viewport-height, 100vh) - var(--header-offset));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Footer */
.footer-inner {
  text-align: initial;
}

.footer-copy {
  line-height: 1.6;
}

.footer-links {
  justify-content: flex-start;
}

@media (min-width: 768px) {
  #kontakt .contact-map-column {
    order: 1;
  }

  #kontakt .contact-info-card {
    order: 2;
  }

  .footer-links {
    justify-content: flex-end;
  }
}

@media (max-width: 767px) {
  #kontakt .contact-map-column {
    padding-bottom: 4.5rem;
  }

  .footer-inner {
    text-align: center;
  }

  .footer-copy {
    width: 100%;
    text-align: center;
  }

  .footer-links {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 639px) {
  .contact-inline-value {
    width: 100%;
  }
}

@media (min-width: 640px) and (max-width: 900px) {
  .contact-action-row {
    flex-wrap: wrap;
  }

  .contact-inline-value {
    width: 100%;
    padding-inline-start: 1.35rem;
  }
}

/* Safari / iPad */
.hero-image-container,
.hero-overlay {
  pointer-events: none;
}

.hero-content-shell,
.hero-panel,
.hero-panel * {
  pointer-events: auto;
}

#mobile-menu.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#mobile-menu:not(.hidden) {
  pointer-events: auto;
}

#main-header,
#mobile-menu {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

@media (hover: none) and (pointer: coarse) {
  #main-header,
  #mobile-menu {
    -webkit-transform: none;
    transform: none;
  }
}

header a,
header button,
.hero-panel a,
.hero-panel button,
footer a,
footer button {
  position: relative;
  z-index: 2;
}

#scroll-to-top {
  opacity: 0;
  visibility: hidden;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}

#scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#scroll-to-top .icon-svg {
  color: currentColor;
  stroke: currentColor;
  transition:
    color 0.3s ease,
    stroke 0.3s ease,
    transform 0.3s ease;
}

#scroll-to-top:hover .icon-svg {
  transform: translateY(-1px);
}

.text-on-surface-variant {
  opacity: 0.75;
}
