@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #090909;
  --bg-soft: #111111;
  --bg-panel: #151515;
  --gold: #c8a95a;
  --gold-soft: #e4cc86;
  --gold-deep: #8d6a2f;
  --white: #f7f5f1;
  --muted: #c6c2b6;
  --line: rgba(200, 169, 90, 0.45);
  --line-soft: rgba(200, 169, 90, 0.2);
  --shadow-gold: 0 0 20px rgba(200, 169, 90, 0.25);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background:
    radial-gradient(circle at 15% 20%, rgba(200, 169, 90, 0.12), transparent 35%),
    radial-gradient(circle at 80% 10%, rgba(200, 169, 90, 0.1), transparent 40%),
    radial-gradient(circle at 70% 75%, rgba(200, 169, 90, 0.08), transparent 35%);
}

body::after {
  background:
    linear-gradient(112deg, transparent 0 20%, rgba(200, 169, 90, 0.08) 20% 21%, transparent 21% 37%, rgba(200, 169, 90, 0.05) 37% 38%, transparent 38% 100%),
    linear-gradient(-70deg, transparent 0 50%, rgba(200, 169, 90, 0.07) 50% 51%, transparent 51% 100%);
  animation: pulseLines 8s ease-in-out infinite;
}

a {
  color: var(--gold-soft);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(9, 9, 9, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  /* Slightly wider header container to give more breathing room between left and right elements */
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  max-width: min(44vw, 380px);
  color: var(--gold-soft);
  line-height: 0;
}

.brand-logo-img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(200, 169, 90, 0.32));
}

.desktop-nav {
  display: flex;
  /* increase gap slightly so first link sits further from the brand */
  gap: clamp(28px, 2.3vw, 42px);
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.desktop-nav::-webkit-scrollbar {
  display: none;
}

.desktop-nav a {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  padding: 2px 3px;
}

.desktop-nav a + a {
  margin-left: 8px;
}

.desktop-nav a,
.footer-links a {
  position: relative;
}

.nav-link-fx::before,
.nav-link-fx::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.nav-link-fx::before {
  bottom: -4px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
  opacity: 0.7;
}

.nav-link-fx::after {
  bottom: -7px;
  height: 7px;
  background: radial-gradient(circle at center, rgba(228, 204, 134, 0.4), transparent 68%);
  opacity: 0;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--gold-soft);
  text-shadow: 0 0 14px rgba(228, 204, 134, 0.48);
}

.nav-link-fx:hover::before,
.nav-link-fx.active::before,
.nav-link-fx:hover::after,
.nav-link-fx.active::after {
  transform: scaleX(1);
}

.nav-link-fx:hover::after,
.nav-link-fx.active::after {
  opacity: 1;
}

.mobile-nav-wrap {
  display: none;
}

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 70px;
}

.hero {
  min-height: 65vh;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 50px;
  background: linear-gradient(145deg, rgba(17, 17, 17, 0.9), rgba(21, 21, 21, 0.65));
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 10%, rgba(200, 169, 90, 0.1) 11%, transparent 12%),
    linear-gradient(-25deg, transparent 35%, rgba(200, 169, 90, 0.09) 36%, transparent 37%);
  animation: drift 18s linear infinite;
}

.hero-content,
.hero-media {
  position: relative;
  z-index: 1;
}

.editorial-kicker {
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.75rem;
  margin-bottom: 14px;
}

.editorial-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 0.95;
  margin: 0 0 18px;
  letter-spacing: 0.02em;
}

.editorial-lead {
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 54ch;
  line-height: 1.7;
}

.gold-button {
  margin-top: 24px;
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  padding: 12px 22px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.78rem;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.gold-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  background: rgba(200, 169, 90, 0.12);
}

.editorial-image,
.square-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform 0.45s ease, box-shadow 0.3s ease;
}

.image-frame {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(200, 169, 90, 0.03);
}

.image-frame:hover img,
.gallery-card:hover img,
.masonry-item:hover img,
.offer-image:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(200, 169, 90, 0.35);
}

.section {
  margin-top: 64px;
  padding: 34px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.65), rgba(9, 9, 9, 0.8));
}

.section-title {
  margin: 0 0 14px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  color: var(--gold-soft);
}

.section-text {
  color: var(--muted);
  line-height: 1.75;
  max-width: 75ch;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 22px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(21, 21, 21, 0.75);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.card:hover {
  border-color: var(--line);
  transform: translateY(-3px);
}

.card h3 {
  margin: 0 0 10px;
  color: var(--gold-soft);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.timeline {
  margin-top: 24px;
  border-left: 1px solid var(--line);
  padding-left: 24px;
  display: grid;
  gap: 24px;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -31px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(200, 169, 90, 0.65);
}

.masonry {
  columns: 3 280px;
  column-gap: 16px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(21, 21, 21, 0.65);
}

.masonry-item img {
  width: 100%;
  display: block;
  transition: transform 0.45s ease, box-shadow 0.35s ease;
}

.gallery-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(21, 21, 21, 0.8);
}

.gallery-card .meta {
  padding: 18px;
}

.gallery-card h3 {
  margin: 0 0 8px;
  color: var(--gold-soft);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
}

.gallery-card p {
  margin: 0;
  color: var(--muted);
}

.editorial-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.editorial-list li {
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 9px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-panel);
  padding: 24px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line-soft);
  background: #0e0e0e;
  color: var(--white);
  border-radius: 12px;
  padding: 12px 14px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--line);
  box-shadow: var(--shadow-gold);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

button {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  border-radius: 999px;
  padding: 11px 18px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  cursor: pointer;
}

button:hover {
  background: rgba(200, 169, 90, 0.1);
  box-shadow: var(--shadow-gold);
}

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 35vw);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.carousel::-webkit-scrollbar {
  height: 8px;
}

.carousel::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft));
  border-radius: 999px;
}

.feedback-card {
  scroll-snap-align: start;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px;
  background: rgba(21, 21, 21, 0.8);
}

.feedback-card h4 {
  margin: 0 0 8px;
  color: var(--gold-soft);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
}

.feedback-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.schedule-list {
  display: grid;
  gap: 16px;
}

.schedule-item {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(21, 21, 21, 0.75);
}

.schedule-item .date {
  color: var(--gold-soft);
  font-weight: 600;
}

.schedule-item .title {
  color: var(--white);
}

.schedule-item .line-pulse {
  height: 2px;
  width: 110px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: pulseLine 2s ease-in-out infinite;
}

.gold-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 34px 0;
}

.mt-gap {
  margin-top: 22px;
}

.line-draw {
  width: 220px;
  height: 70px;
}

.line-draw path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: drawLine 5s ease-in-out infinite;
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  padding: 30px 24px;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.footer-links a:hover {
  color: var(--white);
  border-color: var(--line);
  text-shadow: 0 0 16px rgba(228, 204, 134, 0.52);
}

.content-block {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(21, 21, 21, 0.82);
  padding: 24px;
}

.content-block h3 {
  margin: 0 0 10px;
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold-soft);
  font-size: 1.7rem;
}

.content-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.principles-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.3fr);
  gap: 18px;
  margin-top: 18px;
}

.principle-list {
  display: grid;
  gap: 10px;
}

.principle-button {
  text-align: left;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(14, 14, 14, 0.78);
  color: var(--gold-soft);
  text-transform: none;
  letter-spacing: 0.01em;
  padding: 12px 14px;
}

.principle-button.active,
.principle-button:hover {
  border-color: var(--line);
  box-shadow: var(--shadow-gold);
  background: rgba(200, 169, 90, 0.09);
}

.principle-panel {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  min-height: 260px;
  padding: 22px;
  background: rgba(18, 18, 18, 0.88);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.principle-panel.visible {
  opacity: 1;
  transform: translateY(0);
}

.principle-panel h3 {
  margin: 0 0 10px;
  color: var(--gold-soft);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
}

.principle-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.default-principle-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.certificates-stack {
  max-width: 380px;
  display: grid;
  gap: 10px;
}

.certificate-item {
  min-height: 95px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(18, 18, 18, 0.82);
}

.certificate-item h4 {
  margin: 0 0 6px;
  color: var(--gold-soft);
  font-size: 1.1rem;
  font-family: 'Cormorant Garamond', serif;
}

.certificate-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.5;
}

.marquee {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(16, 16, 16, 0.86);
  padding: 14px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 14px;
  padding-left: 14px;
  will-change: transform;
}

.marquee-card {
  width: 320px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(21, 21, 21, 0.9);
  padding: 16px;
}

.marquee-card h4 {
  margin: 0 0 8px;
  color: var(--gold-soft);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
}

.marquee-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

@keyframes pulseLines {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

@keyframes pulseLine {
  0%, 100% { opacity: 0.35; transform: scaleX(0.85); }
  50% { opacity: 1; transform: scaleX(1); }
}

@keyframes drawLine {
  0% { stroke-dashoffset: 320; opacity: 0.3; }
  40%, 70% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -320; opacity: 0.35; }
}

@keyframes drift {
  0% { transform: translateX(0); }
  50% { transform: translateX(20px); }
  100% { transform: translateX(0); }
}

@keyframes marqueeMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 980px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
  }

  .brand {
    max-width: 100%;
    font-size: clamp(1.05rem, 5.4vw, 1.45rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav-wrap {
    display: block;
  }

  .hero,
  .grid-2,
  .grid-3,
  .grid-4,
  .schedule-item,
  .principles-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 22px;
    gap: 18px;
  }

  .hero-content,
  .hero-media {
    min-width: 0;
  }

  .editorial-title {
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .button-row .gold-button,
  .button-row button {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .masonry {
    columns: 2 220px;
  }

  body[data-page="angebote"] .hero {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  body[data-page="angebote"] .hero .editorial-title {
    font-size: clamp(1.7rem, 11vw, 2.6rem);
    line-height: 1.02;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body[data-page="angebote"] .hero .editorial-kicker,
  body[data-page="angebote"] .hero .editorial-lead,
  body[data-page="angebote"] .hero .gold-button {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body[data-page="angebote"] .hero .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }
}