@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-500.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("fonts/outfit.woff2") format("woff2");
}

:root {
  --obsidian: #0B0B0A;
  --ink: #161614;
  --ivory: #F8F6F2;
  --gold: #C4A574;
  --gold-deep: #9A7B4F;
  --gold-soft: #E2D2B5;
  --stone: #8A8780;
  --mist: #EDEAE4;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Outfit", sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  display: flex;
  flex-direction: column;
  color: var(--ivory);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.55;
  background:
    radial-gradient(ellipse 65% 55% at 72% 18%, rgba(196, 165, 116, 0.16), transparent 50%),
    radial-gradient(ellipse 60% 50% at 8% 92%, rgba(107, 44, 62, 0.5), transparent 52%),
    linear-gradient(165deg, #2a1218 0%, var(--obsidian) 45%, #1a0e12 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0.65rem;
  border: 1px solid rgba(196, 165, 116, 0.8);
  pointer-events: none;
  z-index: 40;
}

a { color: inherit; }

.home {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  width: min(100%, 40rem);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.logo {
  display: block;
  width: min(15rem, 70vw);
  height: auto;
  margin: 0 auto 1.75rem;
}

.home .logo {
  width: min(26rem, 86vw);
  margin-bottom: 2.25rem;
}

.weg {
  position: absolute;
  top: 1.35rem;
  left: 1rem;
  right: 1rem;
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold);
}

h1 {
  margin: 0 auto;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 7vw, 4.6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.home h1 {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
}

h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.line {
  width: 4.5rem;
  height: 1px;
  margin: 1.6rem auto 1.35rem;
  background: var(--gold);
}

.lead {
  margin: 0 auto;
  max-width: 28rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: rgba(248, 246, 242, 0.78);
}

.soon {
  margin: 2.25rem auto 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin-top: 1.75rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-links a {
  color: var(--gold-soft);
  text-decoration: none;
}

.site-links a:hover { color: var(--gold); }

body.legal {
  color: var(--ink);
  background: var(--ivory);
}

.legal-wrap {
  position: relative;
  z-index: 1;
  width: min(100%, 40rem);
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
  text-align: center;
}

.legal .logo-link {
  display: block;
  margin-bottom: 2.5rem;
}

.legal .logo {
  width: min(12rem, 58vw);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.legal h1 {
  max-width: none;
  margin-bottom: 1.5rem;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  text-align: center;
}

.legal h2,
.legal p,
.legal li { text-align: center; }

.legal ul {
  list-style: none;
  padding-left: 0;
}

.legal h2 {
  margin: 2rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
}

.legal p,
.legal li {
  color: #2A2A27;
  font-size: 1rem;
}

.legal ul {
  margin: 0.4rem 0 0;
  padding-left: 0;
  list-style: none;
}

.legal a { color: var(--gold-deep); }

.legal .site-links {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--mist);
}

.legal .site-links a { color: var(--gold-deep); }
.legal .site-links a:hover { color: var(--ink); }

.services {
  position: relative;
  z-index: 1;
  background: var(--ivory);
  color: var(--ink);
  padding: clamp(4rem, 10vw, 6.5rem) 0;
  text-align: center;
}

.services .wrap {
  width: min(100% - 2.5rem, 1120px);
  margin: 0 auto;
}

.services h2 {
  margin: 0 auto 0.85rem;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section-lead {
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  color: var(--stone);
  font-size: 1.02rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pillar {
  padding-top: 1.1rem;
  border-top: 1px solid var(--gold);
}

.pillar h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
}

.pillar p {
  margin: 0;
  color: #2A2A27;
}

.services .site-links {
  margin-top: 2.75rem;
}

.services .site-links a { color: var(--gold-deep); }
.services .site-links a:hover { color: var(--ink); }

.objekte {
  position: relative;
  z-index: 1;
  background: #fff;
  color: var(--ink);
  padding: clamp(4rem, 10vw, 6.5rem) 0;
  text-align: center;
}

.objekte .wrap {
  width: min(100% - 2.5rem, 1120px);
  margin: 0 auto;
}

.objekte h2 {
  margin: 0 auto 0.85rem;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.carousel {
  position: relative;
}

.carousel-viewport {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.55s ease;
}

.slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
}

.slide img {
  display: block;
  width: 100%;
  height: min(62vw, 32rem);
  object-fit: cover;
  background: var(--obsidian);
}

.slide-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.35rem 4.5rem 1.2rem;
  background: linear-gradient(to top, rgba(11, 11, 10, 0.82), transparent);
  color: var(--ivory);
  text-align: center;
}

.slide-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.slide-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
}

.slide-copy p:last-child {
  margin: 0.2rem 0 0;
  color: rgba(248, 246, 242, 0.82);
}

.carousel-btn {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-deep);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.carousel-btn:hover { background: var(--gold); color: var(--obsidian); }

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.carousel-dots button {
  width: 1.6rem;
  height: 2px;
  padding: 0;
  border: 0;
  background: var(--mist);
  cursor: pointer;
}

.carousel-dots button[aria-current="true"] { background: var(--gold-deep); }

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  background: var(--obsidian);
  color: var(--gold-soft);
}

.site-footer .wrap {
  width: min(100% - 2.5rem, 1120px);
  margin: 0 auto;
  padding: 1.6rem 0 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
}

.site-footer .brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ivory);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.15rem;
}

.site-footer a {
  color: var(--gold-soft);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer a:hover { color: var(--gold); }

@media (max-width: 800px) {
  .pillars { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
}

body.error {
  min-height: 100vh;
  min-height: 100dvh;
}

body.error .home {
  flex: 1;
  min-height: 0;
  width: min(100%, 36rem);
}

body.error .logo-link {
  text-decoration: none;
}

body.error .logo {
  width: min(16rem, 62vw);
  margin-bottom: 1.5rem;
}

body.error h1 {
  max-width: none;
  font-size: clamp(2.15rem, 4.4vw, 3.15rem);
}

@media (max-width: 640px) {
  .home {
    width: min(100% - 2rem, 1120px);
    padding-bottom: 2rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .home .logo,
  .home h1,
  .home .line,
  .home .lead,
  .home .soon,
  .home .site-links {
    animation: rise 1s ease-out both;
  }

  .home h1 { animation-delay: 0.08s; }
  .home .line { animation-delay: 0.16s; }
  .home .lead { animation-delay: 0.24s; }
  .home .soon { animation-delay: 0.32s; }
  .home .site-links { animation-delay: 0.4s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
