/* ===============================================
   LOADING SCREEN
   =============================================== */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader__bg {
  position: absolute;
  inset: 0;
  background: var(--navy-deep);
}

.loader__bg::after {
  content: '';
  position: absolute;
  inset: 32px;
  border: 1px solid rgba(195,165,120,0.07);
  animation: loaderBorderIn 2s var(--ease-out-expo) 0.3s both;
}

@keyframes loaderBorderIn {
  from { opacity: 0; inset: 70px; }
  to   { opacity: 1; inset: 32px; }
}

.loader__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader__logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader__logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
  animation: loaderLogoIn 1.6s var(--ease-out-expo) 0.15s both;
}

@keyframes loaderLogoIn {
  from { opacity: 0; transform: translateY(20px) scale(0.92); filter: blur(6px) brightness(0.5); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0) brightness(1.1); }
}

.loader__glow {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(195,165,120,0.12) 0%, transparent 70%);
  animation: loaderGlow 3s ease-in-out infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

@keyframes loaderGlow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

.loader__bar {
  width: 160px;
  height: 1.5px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 32px;
  animation: loaderBarIn 0.6s var(--ease-out-expo) 0.8s both;
}

@keyframes loaderBarIn {
  from { opacity: 0; width: 40px; }
  to   { opacity: 1; width: 160px; }
}

.loader__bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  background-size: 200% 100%;
  border-radius: 2px;
  animation:
    loaderFill 4s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards,
    loaderShimmer 1.6s linear infinite;
}

@keyframes loaderFill {
  0%   { width: 0%; }
  25%  { width: 40%; }
  55%  { width: 68%; }
  80%  { width: 86%; }
  100% { width: 100%; }
}

@keyframes loaderShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.loader__tagline {
  margin-top: 22px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(195,165,120,0.45);
  animation: loaderTagIn 1s var(--ease-out-expo) 1.2s both;
}

@keyframes loaderTagIn {
  from { opacity: 0; transform: translateY(6px); letter-spacing: 0.6em; }
  to   { opacity: 1; transform: translateY(0); letter-spacing: 0.3em; }
}

#page-loader.exit .loader__content {
  animation: loaderContentOut 0.7s var(--ease-out-expo) forwards;
}

@keyframes loaderContentOut {
  to { opacity: 0; transform: translateY(-24px) scale(0.95); }
}

#page-loader.exit .loader__bg {
  animation: loaderBgOut 0.9s var(--ease-out-expo) 0.3s forwards;
}

@keyframes loaderBgOut {
  to { opacity: 0; }
}

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

.hero__video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__static-bg {
  position: absolute;
  inset: 0;
  background:
    url('https://zu-auerbach.de/wp-content/uploads/2025/12/IMG-20251217-WA0012.jpg') center/cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(15,21,32,0.55) 0%,
      rgba(15,21,32,0.30) 40%,
      rgba(15,21,32,0.65) 100%
    );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  padding: 0 32px;
}

.hero__eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 0.4s forwards;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 300;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out-expo) 0.6s forwards;
}

.hero__title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero__sub {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin: 0 auto 36px;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out-expo) 0.8s forwards;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out-expo) 1s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: fadeUp 1s var(--ease-out-expo) 1.4s both;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gold);
  animation: scrollLine 2s ease-in-out infinite;
}

/* ===============================================
   SERVICES — DUAL COLOR SPLIT
   =============================================== */
.services-wrap {
  width: 100%;
  margin-top: 80px;
}

.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Full-bleed variant: edge-to-edge, taller cards. */
.services--full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  gap: 0;
}

.service-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: auto;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  padding: 72px clamp(48px, 7vw, 120px);
  cursor: pointer;
}

.service-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.8s ease, transform 0.8s var(--ease-out-expo);
}

.service-card:hover .service-card__img {
  filter: grayscale(0%);
  transform: scale(1.06);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255,255,255,0);
  z-index: 2;
  transition: all 0.6s var(--ease-out-expo);
  pointer-events: none;
}

.service-card:hover::before {
  inset: 20px;
  border-color: rgba(255,255,255,0.35);
}

.service-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15,21,32,0.75) 0%, rgba(15,21,32,0.15) 60%);
  transition: background 0.6s ease;
}

.service-card:hover .service-card__overlay {
  background: linear-gradient(0deg, rgba(15,21,32,0.65) 0%, rgba(15,21,32,0.08) 60%);
}

.service-card__content {
  position: relative;
  z-index: 3;
}

.service-card__label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.service-card--ingenieur .service-card__label { color: #8ab4c7; }
.service-card--makler .service-card__label { color: var(--gold); }

.service-card__title {
  font-family: var(--serif);
  font-size: clamp(32px, 3.6vw, 56px);
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 14px;
}

.service-card__desc {
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
  margin-bottom: 22px;
  max-width: 480px;
}

.service-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s ease, gap 0.3s ease;
}

.service-card:hover .service-card__arrow {
  color: #fff;
  gap: 14px;
}

/* ===============================================
   FAQ
   =============================================== */
.faq-list {
  margin-top: 56px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

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

.faq-item__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  text-align: left;
  color: var(--charcoal);
  cursor: pointer;
  transition: color 0.3s ease;
}

.faq-item__q:hover { color: var(--gold); }

.faq-item__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-left: 16px;
}

.faq-item.open .faq-item__icon {
  transform: rotate(45deg);
  border-color: var(--gold);
  color: var(--gold);
}

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out-expo), padding 0.5s ease;
}

.faq-item.open .faq-item__a {
  max-height: 300px;
  padding-bottom: 24px;
}

.faq-item__a p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-light);
}

/* ===============================================
   ABOUT ADVISORY — Text + 3 highlight boxes + image
   =============================================== */
.about-advisory {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-advisory__text > .section__heading {
  margin-bottom: 24px;
}

.about-advisory__lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 0 40px;
}

.about-advisory__highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.highlight-box {
  position: relative;
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.6);
  border-left: 2px solid var(--gold);
  transition: background 0.4s ease, transform 0.4s var(--ease-out-expo);
}

.highlight-box:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateX(4px);
}

.highlight-box__title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--charcoal);
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}

.highlight-box__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-light);
  margin: 0;
}

.about-advisory__image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.about-advisory__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-advisory__placeholder {
  width: 100%;
  height: 100%;
  background: #2C2C2C;
}

/* ===============================================
   CONTACT CTA — Phone + email + Kontaktformular button
   =============================================== */
.section--contact-cta {
  text-align: center;
}

.contact-cta {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.contact-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--charcoal);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-cta__link:hover {
  color: var(--gold);
}

.contact-cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--gold);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.contact-cta__icon svg {
  width: 18px;
  height: 18px;
}

.contact-cta__link:hover .contact-cta__icon {
  border-color: var(--gold);
  background: var(--gold-dim);
}

.contact-cta__action {
  margin-top: 40px;
}

.contact-cta__closing {
  margin: 40px auto 0;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-light);
}

/* ===============================================
   RESPONSIVE
   =============================================== */
@media (max-width: 960px) {
  .about-advisory {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-advisory__image {
    order: -1;
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .services { grid-template-columns: 1fr; }
  .services--full .service-card { min-height: 60vh; padding: 56px 32px; }
  .contact-cta { gap: 24px; flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow, .hero__title, .hero__sub, .hero__actions, .hero__scroll {
    animation-duration: 0.01ms !important;
  }
}
