:root {
  --bg: #0f0f0f;
  --bg-soft: #171717;
  --surface: #f6f3ee;
  --surface-soft: #efebe3;
  --text: #ece7de;
  --text-dark: #211f1a;
  --muted: #b7b1a7;
  --accent: rgb(119, 132, 37);
  --accent-hover: rgb(193, 198, 43);
  --accent-rgb: 119, 132, 37;
  --gold: var(--accent);
  --gold-soft: var(--accent-hover);
  --green: #576a56;
  --border: rgba(255, 255, 255, 0.16);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  font-family: "Work Sans", "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 12%, rgba(178, 138, 74, 0.16), transparent 40%),
    radial-gradient(circle at 15% 70%, rgba(87, 106, 86, 0.2), transparent 45%),
    var(--bg);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(248, 245, 238, 0.7), rgba(248, 245, 238, 0.7)),
    url("bilder/hintergrund.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.3;
}

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

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem clamp(1rem, 2vw, 2rem);
  border-bottom: 1px solid var(--border);
  background: rgba(24, 31, 16, 0.24);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand img {
  width: 64px;
  height: 64px;
}

.main-nav {
  display: flex;
  gap: 1.1rem;
  align-items: center;
}

.main-nav a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  transition: color 180ms ease;
  font-size: 0.95rem;
  padding-top: 0.6rem;
}

.main-nav a::before {
  content: "";
  position: absolute;
  top: 0.08rem;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
  transform: scaleX(0.32);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease, height 180ms ease, background 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
  color: var(--gold-soft);
}

.main-nav a:hover::before,
.main-nav a:focus-visible::before,
.main-nav a[aria-current="page"]::before {
  opacity: 1;
  transform: scaleX(1);
  height: 5px;
  background: var(--accent-hover);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
}

main {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
}

.hero {
  position: relative;
  display: grid;
  gap: 1.8rem;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  padding: 4rem 0 3rem;
}

.hero-content h1,
h1,
h2,
h3 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  margin-top: 0;
  line-height: 1.1;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 1rem;
  max-width: 18ch;
}

.hero-content h1 span {
  color: var(--gold-soft);
}

.hero-content p {
  color: var(--muted);
  max-width: 54ch;
}

.eyebrow {
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  margin-bottom: 0.9rem;
}

.hero-image {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transform: scale(1.03);
}

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

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  text-decoration: none;
  font-weight: 500;
  transition: transform 180ms ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  border: 1px solid var(--gold);
  color: var(--text);
}

.section {
  padding: 3.2rem 0;
}

.ornament-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  padding-top: 0.2rem;
}

.ornament-chip {
  margin: 0;
  padding: 0.42rem 0.88rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: #d9d2c8;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-soft {
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.05), rgba(87, 106, 86, 0.08));
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding-inline: clamp(1rem, 3vw, 2.3rem);
}

.section-heading {
  margin-bottom: 1.3rem;
}

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

.section p {
  color: var(--muted);
}

.split {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.split figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
}

.split img {
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

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

.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem;
}

.card h3,
.card h2 {
  font-size: 1.6rem;
  color: #f8f5f0;
  margin-bottom: 0.35rem;
}

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

.gallery img {
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--border);
}

.cta {
  margin-top: 1.2rem;
  margin-bottom: 3.5rem;
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: clamp(1.2rem, 2.5vw, 2rem);
  background:
    linear-gradient(120deg, rgba(var(--accent-rgb), 0.2), rgba(255, 255, 255, 0.03)),
    rgba(0, 0, 0, 0.2);
}

.page-head {
  padding-bottom: 1rem;
}

.page-head h1 {
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  margin-bottom: 0.4rem;
}

.contact-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: 0.95fr 1.05fr;
}

.contact-card a {
  color: var(--gold-soft);
}

.contact-form {
  display: grid;
  gap: 0.65rem;
}

.contact-form label {
  color: #ded9d0;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.72rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(var(--accent-rgb), 0.35);
  border-color: rgba(var(--accent-rgb), 0.9);
}

.hint {
  font-size: 0.9rem;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

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

.legal-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legal-card h3 {
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  font-size: 1.35rem;
  color: var(--gold-soft);
}

.footer {
  border-top: 1px solid var(--border);
  margin-top: 2.2rem;
  padding: 1.4rem min(4vw, 2rem) 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
}

.footer div {
  display: flex;
  gap: 1rem;
}

.footer a {
  text-decoration: none;
}

@media (max-width: 960px) {
  .hero,
  .split,
  .contact-layout,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .gallery,
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-image img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    right: 1rem;
    top: calc(100% + 0.4rem);
    flex-direction: column;
    align-items: flex-start;
    min-width: 240px;
    padding: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #151515;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: all 180ms ease;
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .gallery,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .ornament-row {
    justify-content: flex-start;
  }

  .cta,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
