:root {
  --bg: #f6efe8;
  --surface: #fffaf4;
  --text: #2a2421;
  --muted: #6b625c;
  --gold: #b68a57;
  --gold-soft: #d7b78f;
  --rose: #d6b6b3;
  --shadow: 0 20px 40px rgba(35, 24, 14, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html[data-lang="de"] .lang-en {
  display: none !important;
}

html[data-lang="en"] .lang-de {
  display: none !important;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(214, 182, 179, 0.25), transparent 30%),
    radial-gradient(circle at top left, rgba(182, 138, 87, 0.25), transparent 25%),
    var(--bg);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 244, 236, 0.88);
  backdrop-filter: blur(8px);
  padding: 0.85rem clamp(1rem, 3vw, 3rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(42, 36, 33, 0.08);
}

.top-nav nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-cluster {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s ease;
}

.top-nav a:hover {
  color: var(--text);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 170px;
  max-width: 42vw;
  height: auto;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(42, 36, 33, 0.13);
  border-radius: 999px;
  padding: 0.2rem;
}

.lang-btn {
  border: none;
  border-radius: 999px;
  padding: 0.35rem 0.62rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.lang-btn.is-active {
  background: #20160e;
  color: #fff;
}

.hero {
  min-height: 92vh;
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1s ease, transform 5.5s ease;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15);
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(31, 19, 9, 0.72) 20%, rgba(31, 19, 9, 0.42) 50%, rgba(31, 19, 9, 0.68) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 92vh;
  padding: clamp(2rem, 6vw, 6rem);
  max-width: 740px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  color: #fff;
}

.hero h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  line-height: 1.15;
  margin: 0;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.hero p {
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.82rem 1.35rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
  background: linear-gradient(120deg, var(--gold) 10%, var(--gold-soft) 85%);
  color: #20160e;
  box-shadow: 0 10px 25px rgba(182, 138, 87, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-dots,
.testimonial-dots {
  display: flex;
  gap: 0.4rem;
  margin-top: 1rem;
}

.dot {
  width: 30px;
  height: 4px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  cursor: pointer;
  border: none;
}

.dot.is-active {
  background: #fff;
}

.section {
  padding: clamp(2.8rem, 7vw, 6rem) 0;
}

.section-inner {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 0.74rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  margin-bottom: 1rem;
}

.about-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
}

.about-visual img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-services {
  background: rgba(255, 255, 255, 0.42);
  border-top: 1px solid rgba(42, 36, 33, 0.05);
  border-bottom: 1px solid rgba(42, 36, 33, 0.05);
}

.card-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.1rem;
  perspective: 1400px;
  align-items: stretch;
  counter-reset: service;
}

.service-card {
  position: relative;
  background: linear-gradient(155deg, #fffdf9 0%, #f8efe4 100%);
  padding: 1.35rem 1.2rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(182, 138, 87, 0.26);
  box-shadow:
    0 14px 28px rgba(35, 24, 14, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
}

.service-card::before {
  counter-increment: service;
  content: counter(service, decimal-leading-zero);
  position: absolute;
  top: 0.75rem;
  right: 0.82rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(40, 31, 24, 0.36);
  z-index: 2;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto 8% -18px 8%;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(23, 16, 11, 0.2), transparent 70%);
  filter: blur(6px);
  opacity: 0.56;
  pointer-events: none;
  z-index: -1;
}

.service-card:nth-child(odd) {
  transform: rotateY(-5deg) rotateX(1.2deg);
}

.service-card:nth-child(even) {
  transform: rotateY(5deg) rotateX(1.2deg);
}

.service-card:hover {
  transform: rotateY(0deg) translateY(-8px);
  border-color: rgba(182, 138, 87, 0.48);
  box-shadow:
    0 22px 42px rgba(35, 24, 14, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.service-card:hover::after {
  opacity: 0.9;
}

.service-card h3 {
  font-size: clamp(0.92rem, 1.35vw, 1.08rem);
  line-height: 1.25;
  margin: 0 0 0.5rem;
  padding-right: 2.1rem;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.service-card p {
  margin: 0;
  color: #514841;
  font-size: 0.88rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  hyphens: auto;
}

@media (max-width: 1260px) {
  .card-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.section-testimonials {
  background:
    radial-gradient(circle at 20% 20%, rgba(182, 138, 87, 0.2), transparent 40%),
    linear-gradient(180deg, #fff7ef 10%, #f7eee5 100%);
}

.testimonial-slider {
  position: relative;
  min-height: 188px;
}

.quote {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  background: rgba(255, 255, 255, 0.74);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quote.is-active {
  opacity: 1;
  transform: translateY(0);
}

.stars {
  letter-spacing: 0.17em;
  color: var(--gold);
}

.quote span {
  color: var(--muted);
  font-size: 0.93rem;
}

.section-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.gallery-item {
  border: none;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  background: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 250px;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.section-contact {
  background: #f9f2ea;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 3vw, 2.2rem);
  align-items: start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  color: var(--muted);
}

.contact-list li {
  margin-bottom: 0.35rem;
}

.socials {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.socials a {
  text-decoration: none;
  background: rgba(182, 138, 87, 0.15);
  color: #543a1f;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
}

.signature {
  margin-top: 1rem;
  width: min(360px, 100%);
  border-radius: 12px;
  border: 1px solid rgba(42, 36, 33, 0.1);
}

.contact-form {
  background: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form label {
  font-size: 0.89rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid rgba(42, 36, 33, 0.16);
  border-radius: 12px;
  padding: 0.75rem;
  font: inherit;
  background: #fff;
}

.hp-field {
  display: none;
}

.form-note {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.map-wrap {
  width: min(1180px, 92vw);
  margin: 1.3rem auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-wrap iframe {
  border: 0;
  width: 100%;
  min-height: 320px;
}

.section-english {
  background: rgba(255, 255, 255, 0.46);
}

.section-legal {
  background: rgba(255, 255, 255, 0.58);
  border-top: 1px solid rgba(42, 36, 33, 0.06);
}

.section-legal h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.footer {
  padding: 1.4rem 0 2rem;
  background: #20160e;
  color: #f6ece1;
}

.footer-grid {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 0.94rem;
}

.footer a {
  color: #edd2af;
  text-decoration: none;
}

#lightbox {
  border: none;
  padding: 0;
  border-radius: 14px;
  width: min(980px, 92vw);
  background: #130d08;
}

#lightbox::backdrop {
  background: rgba(7, 5, 3, 0.74);
}

#lightbox-image {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
}

#close-lightbox {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

@media (max-width: 920px) {
  .top-nav nav {
    display: none;
  }

  .top-nav {
    gap: 0.7rem;
  }

  .about-grid,
  .contact-grid,
  .section-gallery .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 84vh;
  }

  .hero-content {
    min-height: 84vh;
  }

  .card-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card,
  .service-card:nth-child(odd),
  .service-card:nth-child(even) {
    transform: none;
    min-height: auto;
  }

}

@media (max-width: 620px) {
  .card-track {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-slide,
  .quote,
  .reveal,
  .service-card {
    transition: none !important;
  }

  .hero-slide img,
  .gallery-item img {
    transform: none !important;
  }
}
