:root {
  --primary: #171818;
  --background: #fbf9f4;
  --surface: #fbf9f4;
  --surface-soft: #f5f3ee;
  --surface-muted: #f0eee9;
  --gold: #a47c49;
  --gold-light: #b18e49;
  --text: #1b1c19;
  --text-muted: #444748;
  --cream: #e9e2d5;
  --border: #c4c7c7;
  --container: 1440px;
  --font-headline: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #e6dfd2;
}

h1,
h2,
h3 {
  font-family: var(--font-headline);
  font-weight: 400;
}

a {
  color: inherit;
}

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

section {
  padding: 80px 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label,
.nav-link,
.button,
.fact-label,
.image-label,
.form-label,
.footer-links a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.button {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-align: center;
  text-decoration: none;
  transition: 0.3s ease;
}

.section-label {
  display: block;
  margin-bottom: 16px;
  color: var(--gold-light);
}

.section-title {
  margin-bottom: 32px;
  font-size: 32px;
  line-height: 1.3;
}

.section-text-large {
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

.section-text {
  color: var(--text-muted);
  opacity: 0.8;
}

.divider-gold {
  width: 40px;
  height: 1px;
  margin: 24px 0;
  background: var(--gold-light);
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 1.1s ease,
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'liga';

  font-variation-settings:
    'FILL' 0,
    'wght' 200,
    'GRAD' 0,
    'opsz' 24;
}

/* Landing */
.landing {
  position: relative;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  height: 80px;
  background: rgba(251, 249, 244, 0.9);
  border-bottom: 1px solid rgba(196, 199, 199, 0.3);
  backdrop-filter: blur(12px);
  transition: 0.5s ease;
}

header.scrolled {
  height: 64px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-left {
  display: flex;
  flex-direction: column;
}

.logo {
  color: var(--primary);
  font-family: var(--font-headline);
  font-size: 24px;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.header-left span {
  font-size: 12px;
  /* font-style: italic; */
  color: var(--text-muted);
}

nav {
  display: none;
  gap: 40px;
}

.nav-link {
  position: relative;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-button {
  display: none;
  padding: 12px 32px;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.header-button:hover {
  background: var(--primary);
  color: #fff;
}

.menu-button {
  background: none;
  border: 0;
  cursor: pointer;
}

#hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 700px;
  height: 100vh;
  padding: 0;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 12% 28%,
      rgba(214, 160, 70, 0.22) 0%,
      rgba(214, 160, 70, 0.12) 22%,
      rgba(214, 160, 70, 0) 48%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.02) 0%,
      rgba(0, 0, 0, 0.16) 38%,
      rgba(0, 0, 0, 0.4) 72%,
      rgba(0, 0, 0, 0.58) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.1) 0%,
      rgba(0, 0, 0, 0.22) 45%,
      rgba(0, 0, 0, 0.34) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  animation: fadeIn 1.5s ease-out forwards;
}

.hero-label,
.hero-title,
.hero-subtitle,
.hero-stats {
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.42);
}

.hero-label {
  display: block;
  margin-bottom: 24px;
  color: var(--cream);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

.hero-title {
  margin-bottom: 16px;
  font-size: 40px;
  line-height: 1.15;
}

.hero-subtitle {
  max-width: 672px;
  margin: 0 auto 24px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.01em;
  opacity: 0.9;
}

.hero-stats {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 34px 0 48px;
  padding: 14px 28px;
  background: rgba(20, 17, 12, 0.42);
  border-top: 1px solid rgba(164, 124, 73, 0.42);
  border-bottom: 1px solid rgba(164, 124, 73, 0.42);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-stats span {
  white-space: nowrap;
}

.stat-dot {
  display: none;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.button-light {
  padding: 20px 40px;
  background: #fff;
  color: var(--primary);
}

.button-light:hover {
  background: #e6dfd2;
}

.button-ghost {
  padding: 20px 40px;
  border: 1px solid #fff;
  color: #fff;
  backdrop-filter: blur(4px);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  z-index: 10;
  color: #fff;
  opacity: 0.7;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator .material-symbols-outlined {
  font-size: 32px;
}

/* Object intro */
#objekt {
  background: var(--surface);
}

.intro-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.intro-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.image-container {
  position: relative;
  overflow: hidden;
}

.image-container img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-container:hover img {
  transform: scale(1.03);
}

/* Facts */
#key-facts {
  background: var(--surface-muted);
  border-top: 1px solid rgba(196, 199, 199, 0.1);
  border-bottom: 1px solid rgba(196, 199, 199, 0.1);
}

.key-facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 32px;
  text-align: center;
}

.fact-label {
  margin-bottom: 8px;
  opacity: 0.6;
}

.fact-value {
  font-family: var(--font-headline);
  font-size: 24px;
  line-height: 1.4;
}

/* Highlights */
#highlights {
  background: var(--surface);
}

.section-heading {
  margin-bottom: 48px;
  text-align: center;
}

.section-heading .section-title {
  margin-bottom: 0;
}

.highlights-grid {
  display: grid;
  gap: 32px;
}

.highlight-card {
  padding: 40px;
  border: 1px solid rgba(196, 199, 199, 0.3);
  transition: border-color 0.5s ease;
}

.highlight-card:hover {
  border-color: var(--gold-light);
}

.highlight-card .material-symbols-outlined {
  display: block;
  margin-bottom: 24px;
  color: var(--gold-light);
  font-size: 40px;
}

.highlight-card h3 {
  margin-bottom: 16px;
  font-size: 24px;
  line-height: 1.4;
}

.highlight-card p {
  color: var(--text-muted);
  opacity: 0.8;
}

/* Gallery */
#galerie {
  overflow: hidden;
  background: var(--surface-soft);
}

.gallery-grid {
  display: grid;
  gap: 32px;
}

.gallery-large img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
}

.gallery-half img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}

.gallery-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gallery-intro p {
  margin-bottom: 32px;
  color: var(--text-muted);
}

.gallery-link {
  display: inline-block;
  width: fit-content;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--primary);
  color: var(--primary);
}

.image-label {
  position: absolute;
  bottom: 24px;
  left: 24px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  backdrop-filter: blur(4px);
  font-size: 10px;
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-intro {
    grid-row: 1;
  }

  .gallery-large {
    grid-row: 2;
  }

  .gallery-half:nth-of-type(3) {
    grid-row: 3;
  }

  .gallery-half:nth-of-type(4) {
    grid-row: 4;
  }
}

/* Floor plan */
#grundriss {
  background: var(--surface);
}

.concept-grid {
  display: grid;
  gap: 80px;
  align-items: center;
}

.floorplan-image {
  width: 100%;
}

.checklist {
  margin-top: 32px;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.checklist .material-symbols-outlined {
  margin-top: 4px;
  color: var(--gold-light);
  font-size: 20px;
}

@media (max-width: 480px) {
  .concept-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .concept-copy {
    order: 1;
  }
  .concept-image {
    order: 2;
  }
}

/* Location */
#lage {
  position: relative;
  overflow: hidden;
  background: var(--surface-muted);
}

.location-content {
  position: relative;
  z-index: 10;
}

.location-info {
  max-width: 768px;
}

.location-info .section-text-large {
  margin-bottom: 48px;
}

.location-features {
  display: grid;
  gap: 32px;
  margin-top: 48px;
}

.location-features h4 {
  margin-bottom: 16px;
  color: var(--primary);
}

.location-features p {
  color: var(--text-muted);
  opacity: 0.8;
}

.map-wrapper {
  margin-top: 80px;
  filter: grayscale(1);
  opacity: 0.8;
  transition: 1s ease;
}

.map-wrapper:hover {
  filter: grayscale(0);
  opacity: 1;
}

.map-wrapper img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Mood */
.mood-section {
  background: var(--primary);
  color: #fff;
  text-align: center;
}

.mood-content {
  max-width: 768px;
  margin: 0 auto;
}

.mood-content .divider-gold {
  margin-right: auto;
  margin-left: auto;
}

.mood-kicker {
  display: block;
  margin-bottom: 32px;
  font-size: 18px;
  font-style: italic;
  opacity: 0.6;
}

.mood-title {
  margin-bottom: 32px;
  font-size: 40px;
  line-height: 1.3;
}

.mood-text {
  margin-bottom: 48px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.8;
  opacity: 0.8;
}

/* Contact */
#kontakt {
  background: var(--background);
}

.contact-grid {
  display: grid;
  gap: 80px;
}

.contact-intro {
  margin-bottom: 48px;
  color: var(--text-muted);
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 48px;
}

.contact-name {
  color: var(--primary);
  font-family: var(--font-headline);
  font-size: 24px;
  line-height: 1.4;
}

.contact-company {
  color: var(--text-muted);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-link {
  color: var(--primary);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.form-card {
  padding: 32px;
  background: var(--surface-muted);
}

form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form-group {
  position: relative;
}

.form-label {
  display: block;
  color: var(--text-muted);
  font-size: 10px;
  transition: color 0.3s ease;
}

.form-group:focus-within .form-label {
  color: var(--gold-light);
}

.form-input {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  outline: none;
  font: inherit;
  transition: border-color 0.3s ease;
}

textarea.form-input {
  resize: none;
}

.form-input:focus {
  border-color: var(--gold-light);
}

.form-submit {
  padding-top: 16px;
  text-align: center;
}

.submit-button {
  width: 100%;
  padding: 20px;
  background: var(--primary);
  border: 0;
  color: #fff;
  cursor: pointer;
}

.submit-button:hover {
  background: var(--text-muted);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.privacy-note {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 10px;
  opacity: 0.6;
}

/* Popup */
.popup {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.popup.active {
  display: flex;
}

.popup__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  font-family: var(--font-body);
  background: var(--background);
  color: var(--text);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--outline);
}

#popupClose {
  margin-top: 1.5rem;
  padding: 12px 32px;

  font-family: var(--font-body);
  background: transparent;
  border-radius: 1px;

  border: 1px solid var(--primary);
  color: var(--primary);

  font-size: 0.8rem;
  font-weight: 600;

  cursor: pointer;
  transition: var(--transition);
}

#popupClose:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Footer */
footer {
  padding: 48px 0;
  background: var(--surface-muted);
  border-top: 1px solid rgba(196, 199, 199, 0.2);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.footer-logo {
  color: var(--primary);
  font-family: var(--font-headline);
  font-size: 24px;
  line-height: 1.4;
}

.copyright {
  color: var(--text-muted);
  text-align: center;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  color: var(--text-muted);
  letter-spacing: normal;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.material-symbols-outlined {
  font-variation-settings:
    'FILL' 0,
    'wght' 200,
    'GRAD' 0,
    'opsz' 24;
  vertical-align: middle;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@media (min-width: 640px) {
  .header-button {
    display: block;
  }

  .stat-dot {
    display: block;
    width: 6px;
    height: 6px;
    background: var(--cream);
    border-radius: 50%;
  }

  .hero-actions {
    flex-direction: row;
  }

  .location-features {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  section {
    padding: 120px 0;
  }

  .container {
    padding: 0 80px;
  }

  .hero-title {
    font-size: 64px;
  }

  .intro-grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .intro-copy {
    grid-column: span 5;
  }

  .intro-image {
    grid-column: 7 / span 6;
  }

  .key-facts-grid {
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
  }

  .highlights-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .gallery-large {
    grid-column: span 8;
  }

  .gallery-intro {
    grid-column: span 4;
    padding-left: 48px;
  }

  .gallery-half {
    grid-column: span 6;
  }

  .concept-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .concept-image {
    order: 2;
  }

  .concept-copy {
    order: 1;
  }

  .map-wrapper {
    margin-top: 128px;
  }

  .form-card {
    padding: 48px;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  nav {
    display: flex;
  }
}

/* Impressum & Datenschutz */
:is(.impressum, .datenschutz) {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 850px;
  margin: auto;
}

.datenschutz {
  margin: auto;
}

:is(.impressum, .datenschutz) h1 {
  margin-bottom: 1rem;
}

.impressum > * {
  color: var(--text);
  text-align: left;
}

.ul-indent {
  margin: 0.5rem 0 0.5rem 2rem;
}
