/* ============================================================
   PrimeWorkSpace – Demo (Kirby CMS)
   Palette abgeleitet vom Hero-Branding:
   Gold #a6823f · Anthrazit #262523 · Creme #f6f1e8
   ============================================================ */

:root {
  --gold: #a6823f;
  --gold-soft: #c6a768;
  --ink: #262523;
  --ink-soft: #4c4a45;
  --cream: #f6f1e8;
  --cream-2: #efe8db;
  --paper: #fdfbf7;
  --line: #e2d9c8;
  --white: #ffffff;

  --font-display: "Jost", "Century Gothic", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 82px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
}
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.25rem; font-weight: 500; }

p { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--gold);
  margin: 0 0 1rem;
}
.eyebrow.gold { color: var(--gold-soft); }

.lead { font-size: 1.18rem; color: var(--ink-soft); }
.measure-center { max-width: 46ch; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
  text-decoration: none;
  padding: 0.95rem 1.9rem;
  background: var(--gold);
  color: #fff;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-hero {
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.55);
  /* skaliert mit der Panorama-Höhe mit, damit der Button nicht überproportional gross wirkt */
  font-size: clamp(0.6rem, 0.9vw, 0.82rem);
  padding: clamp(0.5rem, 0.9vw, 0.95rem) clamp(0.9rem, 1.9vw, 1.9rem);
  letter-spacing: 0.05em;
}
@media (max-width: 700px) {
  /* mobiler Quadrat-Hero ist wieder hoch -> Button in Normalgrösse, breiter & zentriert */
  .btn-hero {
    font-size: 0.82rem;
    padding: 0.95rem 2rem;
    width: min(80vw, 340px);
    text-align: center;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s;
  /* dezenter heller Verlauf, damit die dunkle Nav auf dem hellen Hero lesbar ist */
  background: linear-gradient(to bottom, rgba(253,251,247,.9), rgba(253,251,247,0));
}
.site-header.is-solid {
  background: rgba(253,251,247,.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-mark { color: var(--gold); display: flex; }
.brand-text {
  font-family: var(--font-display);
  display: flex; flex-direction: column; line-height: .95;
}
.brand-text strong { font-weight: 600; letter-spacing: .22em; font-size: 1rem; }
.brand-text span { font-weight: 300; letter-spacing: .34em; font-size: .62rem; }
.brand-text.light { color: #fff; }
.brand-text.light strong { color: #fff; }

.site-nav { display: flex; align-items: center; }
.nav-list {
  list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0;
  font-family: var(--font-display); font-size: .92rem;
}
.nav-list a { text-decoration: none; position: relative; padding: .3rem 0; transition: color .2s; }
.nav-list a:not(.nav-cta):hover { color: var(--gold); }
.nav-cta {
  border: 1px solid currentColor; padding: .5rem 1.1rem !important;
  border-radius: var(--radius); letter-spacing: .04em;
}
.nav-cta:hover { background: var(--gold); border-color: var(--gold); color: #fff !important; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: .4rem;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; background: #f2ece0; overflow: hidden; }
.hero-img {
  width: 100%;            /* volle Breite */
  height: auto;          /* Seitenverhältnis 2.4:1 -> ~2/3 Höhe */
  max-height: 82vh;
  object-fit: cover;
  object-position: top;
  display: block;
}
/* CTA sitzt zentriert unter den vier Icons des Branding-Blocks */
.hero-cta {
  position: absolute;
  top: 76%;                 /* direkt unter der Icon-Zeile */
  left: 33%;                /* Mitte des Icon-/Branding-Blocks (Desktop-Panorama) */
  transform: translateX(-50%);
}
@media (max-width: 700px) {
  .hero-cta { top: 78%; left: 50%; }  /* im mobilen Quadrat-Ausschnitt ist der Block zentriert */
}
.hero-scroll {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.7);
  border-radius: 20px; display: none;
}
.hero-scroll span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px;
  background: #fff; border-radius: 3px; transform: translateX(-50%);
  animation: scroll 1.6s infinite;
}
@keyframes scroll { 0%{opacity:0;transform:translate(-50%,0)} 40%{opacity:1} 80%{opacity:0;transform:translate(-50%,10px)} }

@media (min-width: 900px) { .hero-scroll { display: block; } }

/* ---------- Überlappende Impressionen rechts neben dem Branding (nur grössere Screens) ---------- */
.hero-thumbs { display: none; }
@media (min-width: 1100px) {
  .hero-thumbs {
    display: block;
    position: absolute; z-index: 3;
    left: 47%;                       /* direkt rechts neben Logo/Schriftzug/Icons */
    top: 50%; transform: translateY(-50%);
    width: clamp(320px, 33vw, 500px);
    height: clamp(230px, 23vw, 340px);
  }
  .hero-thumb {
    position: absolute; margin: 0; overflow: hidden;
    width: clamp(190px, 20vw, 285px);
    height: clamp(143px, 15vw, 214px);
    border: 5px solid #fff;
    border-radius: 5px;
    box-shadow: 0 24px 55px -20px rgba(20,18,15,.75);
    transition: transform .35s ease;
  }
  .hero-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .hero-thumb:nth-child(1) { left: 0;  top: 0;    z-index: 3; }   /* oben links */
  .hero-thumb:nth-child(2) { right: 0; bottom: 0; z-index: 4; }   /* unten rechts, überlappt */
  .hero-thumb:hover { transform: translateY(-5px); z-index: 5; }
  .hero-thumb figcaption {
    position: absolute; inset: auto 0 0 0;
    padding: 1rem .7rem .5rem;
    color: #fff; font-family: var(--font-display);
    letter-spacing: .12em; text-transform: uppercase; font-size: .6rem;
    line-height: 1.2;
    background: linear-gradient(to top, rgba(20,18,15,.82), rgba(20,18,15,0));
  }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section-accent { background: var(--cream); }
.section-intro { background: var(--paper); }
.section-head { margin-bottom: 3rem; }
.section-head.center { text-align: center; }

.grid-2 { display: grid; gap: clamp(1.5rem, 4vw, 4rem); }
.grid-2--wide { grid-template-columns: 1fr; }
@media (min-width: 820px) { .grid-2--wide { grid-template-columns: 5fr 7fr; align-items: start; } }

.intro-lead h2 { margin-top: 0; }
.intro-body .lead { margin-bottom: 1.2rem; }

/* ---------- Cards / Angebot ---------- */
.cards {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px -28px rgba(0,0,0,.4);
  border-color: var(--gold-soft);
}
.card-num {
  font-family: var(--font-display); color: var(--gold);
  font-size: .8rem; letter-spacing: .2em; display: block; margin-bottom: 1rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ---------- Vorteile / Highlights (im Angebot) ---------- */
.highlights {
  display: grid; gap: 2rem 1.8rem; margin-top: clamp(3rem, 6vw, 4.5rem);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.highlight { padding: 0; }
.highlight-bar { display: block; width: 42px; height: 3px; background: var(--gold); margin-bottom: 1.2rem; }
.highlight h3 { margin-bottom: .55rem; }
.highlight p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ---------- Video ---------- */
.section-video .section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.video-frame {
  position: relative; max-width: 960px; margin: 0 auto;
  aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.85);
  border: 1px solid rgba(255,255,255,.12);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Galerie (Masonry + Lightbox) ---------- */
.gallery { column-count: 3; column-gap: 1rem; }
@media (max-width: 900px) { .gallery { column-count: 2; } }
@media (max-width: 540px) { .gallery { column-count: 1; } }
.gallery-item {
  display: block; width: 100%; margin: 0 0 1rem; padding: 0;
  border: 0; background: none; cursor: pointer; break-inside: avoid;
  position: relative; overflow: hidden; border-radius: 5px;
  box-shadow: 0 14px 34px -20px rgba(20,18,15,.55);
}
.gallery-item img { width: 100%; height: auto; display: block; transition: transform .55s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute; inset: auto 0 0 0;
  padding: 1.8rem 1rem .85rem; text-align: left;
  color: #fff; font-family: var(--font-display);
  letter-spacing: .14em; text-transform: uppercase; font-size: .72rem;
  background: linear-gradient(to top, rgba(20,18,15,.8), rgba(20,18,15,0));
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
}
.gallery-item:hover .gallery-caption,
.gallery-item:focus-visible .gallery-caption { opacity: 1; transform: none; }
.gallery-item:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(18,16,14,.94); padding: 4vw;
  animation: lb-in .25s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox-figure { margin: 0; text-align: center; }
.lightbox-figure img {
  max-width: 90vw; max-height: 80vh; width: auto; height: auto;
  display: block; margin: 0 auto; border-radius: 4px;
  box-shadow: 0 40px 90px -20px #000;
}
.lightbox-figure figcaption {
  color: #e8e2d6; margin-top: 1.1rem;
  font-family: var(--font-display); letter-spacing: .16em;
  text-transform: uppercase; font-size: .78rem;
}
.lightbox-close {
  position: absolute; top: 1rem; right: 1.5rem;
  background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1;
  cursor: pointer; opacity: .85; transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #fff; font-size: 3rem;
  cursor: pointer; padding: .4rem 1.1rem; opacity: .75; transition: opacity .2s;
}
.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: .3rem; }
.lightbox-next { right: .3rem; }
@media (max-width: 560px) { .lightbox-nav { font-size: 2.1rem; padding: .3rem .6rem; } }

/* ---------- Standort (dark) ---------- */
.section-dark { background: var(--ink); color: #d8d3c9; }
.section-dark h2 { color: #fff; }
.section-dark p { color: #b9b3a7; }
.facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); overflow: hidden;
}
.fact { background: var(--ink); padding: 1.8rem 1.5rem; }
.fact-value {
  display: block; font-family: var(--font-display);
  font-size: 2rem; color: var(--gold-soft); line-height: 1;
}
.fact-label { display: block; margin-top: .6rem; font-size: .85rem; color: #a49e92; }

/* ---------- Vergleich ---------- */
.compare {
  display: grid; gap: 1.5rem; grid-template-columns: 1fr;
  max-width: 940px; margin-inline: auto;
}
@media (min-width: 760px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare-col {
  padding: 2.2rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper);
}
.compare-col h3 { color: var(--ink-soft); }
.compare-col--accent {
  background: var(--cream); border-color: var(--gold-soft);
}
.compare-col--accent h3 { color: var(--gold); }
.compare-col p { margin: 0; color: var(--ink-soft); }

/* ---------- Kontakt ---------- */
.section-contact { background: var(--cream); }
.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; }
.contact-list li {
  display: flex; flex-direction: column; padding: .9rem 0;
  border-top: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-label {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: .18em; font-size: .68rem; color: var(--gold); margin-bottom: .2rem;
}
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--gold); }

.contact-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 30px 60px -40px rgba(0,0,0,.35);
}
.field { margin-bottom: 1.1rem; }
.field label {
  display: block; font-family: var(--font-display); font-size: .78rem;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: .4rem; color: var(--ink-soft);
}
.field input, .field textarea {
  width: 100%; padding: .8rem .9rem; font: inherit; font-size: .95rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--ink); resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(166,130,63,.15);
}
.form-note { text-align: center; font-size: .78rem; color: var(--ink-soft); margin: .8rem 0 0; }

/* Honeypot – für Menschen unsichtbar */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Formular-Meldungen */
.form-alert {
  background: #fbeae4; border: 1px solid #e0a793; color: #8a3b26;
  border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: 1.3rem; font-size: .9rem;
}
.form-alert p { margin: .15rem 0; }
.form-success { text-align: center; padding: 1.5rem .5rem; }
.form-success-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--gold); color: #fff; font-size: 1.6rem; margin-bottom: 1rem;
}
.form-success h3 { color: var(--ink); margin-bottom: .4rem; }
.form-success p { color: var(--ink-soft); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #1c1b19; color: #a49e92; padding: clamp(3rem,6vw,4.5rem) 0 1.8rem; }
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr; margin-bottom: 2.5rem;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand p { margin-top: 1rem; max-width: 34ch; }
.footer-col h3 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .18em;
  color: var(--gold-soft); margin-bottom: .9rem;
}
.footer-col p { margin: 0; line-height: 1.9; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08);
  font-size: .82rem;
}
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-soft); }

/* ---------- Mobile Nav ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: flex; z-index: 60; }
  .nav-list {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    background: var(--ink); flex-direction: column; gap: 1.5rem;
    padding: 6rem 2rem 2rem; transform: translateX(100%);
    transition: transform .3s ease; box-shadow: -20px 0 40px -20px rgba(0,0,0,.5);
  }
  .nav-list.is-open { transform: translateX(0); }
  .nav-list a, .site-header:not(.is-solid) .nav-list a { color: #fff; font-size: 1.1rem; }
  .nav-cta { display: inline-block; text-align: center; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
