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

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

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

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-400.woff2") format("woff2");
}

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

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-600.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/inter-700.woff2") format("woff2");
}

:root {
  --ink: #2a211b;
  --muted: #786b60;
  --paper: #fbf8f1;
  --sand: #e8dcc8;
  --linen: #f3ece0;
  --cream: #fffdf8;
  --clay: #a77256;
  --sage: #767f5e;
  --gold: #d9ad46;
  --gold-deep: #8b6230;
  --maize: #e4bd49;
  --blush: #d8bca8;
  --rust: #ffffff;
  --rust-deep: #f2f0eb;
  --terracotta: #d97b4f;
  --white: #ffffff;
  --line: rgba(42, 33, 27, 0.12);
  --shadow: 0 10px 28px rgba(75, 54, 36, 0.08);
  --glow: 0 12px 30px rgba(75, 54, 36, 0.1);
  --radius: 6px;
  --arch: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  background: var(--paper);
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(22px, 4.6vw, 62px);
  border-bottom: 1px solid transparent;
  background: rgba(255, 253, 248, 0.86);
  backdrop-filter: blur(18px) saturate(1.08);
  transition: box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 12px 36px rgba(55, 42, 30, 0.09);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 250px;
}

.brand-mark {
  display: block;
  width: 72px;
  height: 45px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 23px;
  line-height: 1;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.8vw, 34px);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
  background: rgba(217, 173, 70, 0.13);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.section,
.intro,
.section-band {
  padding-inline: clamp(20px, 5vw, 78px);
}

.section {
  padding-top: clamp(74px, 9vw, 126px);
  padding-bottom: clamp(74px, 9vw, 126px);
}

.section-band {
  min-height: auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 1220px;
  margin: 0 auto;
  padding-top: clamp(24px, 4vw, 42px);
  padding-bottom: clamp(48px, 7vw, 92px);
  overflow: visible;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
}

.hero-visual {
  position: relative;
  min-height: auto;
  perspective: 1100px;
}

.hero-media {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sand);
  box-shadow: var(--shadow);
  transform: translateZ(0);
}

.arch-frame {
  overflow: hidden;
  border-radius: var(--arch);
  background: var(--sand);
  box-shadow: var(--shadow);
}

.arch-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.primary-image {
  position: relative;
  height: clamp(340px, 44vw, 500px);
  border: 8px solid var(--cream);
  border-radius: var(--arch);
  box-shadow: var(--shadow);
}

.primary-image img {
  object-position: center 12%;
  filter: sepia(0.14) saturate(0.82) contrast(0.98) brightness(1.03);
  transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.primary-image:hover img {
  transform: scale(1.02);
}

.paint-intro {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

/* No-JS fallback: without the "js" class on <html>, the cover/figure never
   render, so the hero photo just shows normally. hero-paint.js takes over
   the moment it runs. */
.paint-cover,
.paint-character {
  display: none;
}

.js .paint-cover,
.js .paint-character {
  display: block;
}

.paint-cover {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  /* <canvas>: hero-paint.js draws the wall wash, wet-sheen highlight and the
     current mask frame directly onto its pixels every tick (destination-in
     compositing). A CSS mask-image swapped via JS was tried first, but
     changing mask-image every ~30ms/frame can make the browser briefly show
     the layer unmasked while the new image loads/decodes - visible as
     flicker on both desktop and mobile Chrome. Canvas draws are synchronous,
     so there's no such gap. */
}

.paint-character {
  position: absolute;
  bottom: 0;
  left: 2%;
  width: clamp(120px, 19vw, 215px);
  height: clamp(172px, 27vw, 307px);
  opacity: 0;
  will-change: transform, opacity;
}

.paint-character img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

/* Content revealed by hero-paint.js after the wipe finishes. Hidden only
   when JS is confirmed running (see the inline "js" class script in <head>)
   so the page still works with JS disabled or if the script errors early. */
.js [data-paint-reveal] {
  opacity: 0;
  transform: translateY(16px);
}

.js [data-paint-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms ease, transform 700ms ease;
}

.hero-title-panel {
  position: relative;
  z-index: 1;
  width: min(730px, calc(100% - 52px));
  margin: clamp(-84px, -7vw, -58px) auto 0;
  padding: clamp(18px, 3vw, 30px) clamp(22px, 4vw, 46px);
  border: 1px solid rgba(42, 33, 27, 0.08);
  background: rgba(255, 253, 248, 0.93);
  box-shadow: 0 18px 54px rgba(75, 54, 36, 0.11);
  backdrop-filter: blur(10px);
  text-align: center;
}

.hero-title-panel::before {
  content: "";
  display: block;
  width: 82px;
  height: 2px;
  margin: 0 auto 20px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 24px auto 0;
  text-align: center;
}

.hero-media img {
  width: 100%;
  height: 100%;
  overflow: hidden;
  object-fit: cover;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 0.98;
}

h1 {
  font-size: clamp(34px, 5vw, 62px);
  max-width: 900px;
  margin-inline: auto;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(31px, 4vw, 52px);
}

h3 {
  font-size: 25px;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy {
  max-width: 680px;
  margin: 0 auto;
  font-size: 17px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-actions {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.button.primary {
  color: var(--paper);
  background: #2d241e;
  box-shadow: 0 14px 30px rgba(42, 33, 27, 0.16);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.45);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

.anniversary-card {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: auto;
  margin-top: 22px;
  padding: 11px 18px;
  border: 1px solid rgba(139, 98, 48, 0.2);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.anniversary-card span {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.anniversary-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro {
  padding-top: 74px;
  padding-bottom: 74px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.8fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: end;
  max-width: 1180px;
  margin: 0 auto;
}

.intro-grid p:last-child {
  margin: 0;
  font-size: 17px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 42px;
}

.section-heading p:last-child {
  max-width: 620px;
  margin-top: 18px;
  font-size: 17px;
}

.section-heading.compact {
  max-width: 680px;
}

.services {
  background: var(--linen);
  border-block: 1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  min-height: 360px;
  padding: 0 24px 24px;
  border: 1px solid rgba(42, 33, 27, 0.08);
  border-radius: var(--radius);
  background: var(--cream);
  overflow: hidden;
  transition: box-shadow 210ms ease;
}

.service-card-media {
  display: block;
  height: 240px;
  width: calc(100% + 48px);
  margin: 0 -24px 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: zoom-in;
}

.service-card-media img {
  transition: transform 500ms ease;
}

.service-card:hover .service-card-media img {
  transform: scale(1.03);
}

.service-card:hover {
  box-shadow: var(--glow);
}

.service-card.featured {
  background:
    linear-gradient(145deg, rgba(42, 33, 27, 0.96), rgba(95, 74, 55, 0.94)),
    var(--ink);
}

.service-card.featured h3,
.service-card.featured p,
.service-card.featured span {
  color: var(--paper);
}

.service-card span {
  display: block;
  margin: 18px 0 10px;
  color: var(--gold-deep);
  font-weight: 800;
}

.service-card p {
  margin: 16px 0 0;
}

.service-list {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.service-list li {
  position: relative;
  padding-left: 18px;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.service-card.featured .service-list {
  color: rgba(255, 250, 242, 0.8);
}

.heritage {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(0, 0.92fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
  max-width: 1240px;
  margin-inline: auto;
}

.heritage-gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.82fr;
  gap: 14px;
}

.heritage-gallery figure {
  position: relative;
  display: grid;
  min-height: 210px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--sand);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.heritage-zoom {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.heritage-gallery figure:hover {
  box-shadow: var(--glow);
  transform: translateY(-4px);
}

.heritage-gallery img {
  object-fit: contain;
  object-position: center;
  padding: 12px;
  background: rgba(255, 253, 248, 0.72);
  filter: grayscale(0.8) sepia(0.16) contrast(1.05);
  transition: transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 220ms ease;
}

.heritage-gallery figure:hover img {
  transform: scale(1.015);
  filter: grayscale(0.18) sepia(0.08) contrast(1.06);
}

.heritage-main {
  grid-row: span 3;
  min-height: 650px;
}

.heritage-gallery figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 253, 248, 0.24);
  border-radius: 999px;
  color: var(--paper);
  font-size: 13px;
  font-weight: 800;
  background: rgba(32, 27, 23, 0.72);
  backdrop-filter: blur(10px);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 52px);
  background: rgba(42, 33, 27, 0.78);
  backdrop-filter: blur(18px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  position: relative;
  width: min(1080px, 92vw);
  max-height: 88vh;
  margin: 0;
  padding: clamp(12px, 2vw, 22px);
  border: 1px solid rgba(255, 253, 248, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
}

.lightbox img {
  width: 100%;
  height: min(72vh, 760px);
  object-fit: contain;
  background: var(--paper);
}

.lightbox figcaption {
  margin-top: 14px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.lightbox-arrow {
  position: fixed;
  top: 50%;
  z-index: 1;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 253, 248, 0.36);
  border-radius: 50%;
  color: var(--paper);
  font-size: 26px;
  line-height: 1;
  background: rgba(42, 33, 27, 0.66);
  cursor: pointer;
}

.lightbox-arrow[hidden] {
  display: none;
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 253, 248, 0.36);
  border-radius: 50%;
  color: var(--paper);
  font-size: 30px;
  line-height: 1;
  background: rgba(42, 33, 27, 0.66);
  cursor: pointer;
}

.heritage-content h2 span {
  color: var(--gold-deep);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-weight: 600;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sage);
}

.team-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  max-width: 1180px;
  margin-inline: auto;
  background: var(--linen);
}

.team-spotlight-media button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.team-spotlight-media img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
}

.team-spotlight-content p:not(.eyebrow) {
  margin: 0 0 16px;
  font-size: 17px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.process-list article {
  min-height: 210px;
  padding: 30px;
  background: rgba(255, 253, 248, 0.78);
}

.process-list span {
  color: var(--gold-deep);
  font-weight: 800;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: center;
  gap: clamp(28px, 6vw, 88px);
  min-height: auto;
  padding-top: clamp(76px, 9vw, 128px);
  padding-bottom: clamp(76px, 9vw, 128px);
  color: var(--paper);
  background:
    linear-gradient(rgba(42, 33, 27, 0.82), rgba(42, 33, 27, 0.82)),
    url("img/chronik/kontakt-bg.jpg") center / cover;
}

.contact p,
.contact .eyebrow {
  color: rgba(255, 250, 242, 0.82);
}

.contact h2 {
  color: var(--paper);
}

.contact .button.primary {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold);
}

.contact .button.secondary {
  color: var(--paper);
  border-color: rgba(255, 250, 242, 0.46);
  background: rgba(255, 250, 242, 0.1);
}

.contact-card {
  display: grid;
  gap: 10px;
  padding: 34px;
  border: 1px solid rgba(255, 250, 242, 0.24);
  border-radius: var(--radius);
  font-style: normal;
  background: rgba(255, 250, 242, 0.11);
  backdrop-filter: blur(14px);
}

.contact-card strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 32px;
  line-height: 1;
}

.site-footer,
.legal {
  padding: 24px clamp(20px, 5vw, 78px);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer div {
  display: flex;
  gap: 18px;
}

.legal {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.legal:target {
  display: block;
}

.legal {
  max-width: 760px;
  margin-inline: auto;
}

.legal h2 {
  font-size: 34px;
}

.legal h3 {
  margin-top: 32px;
  margin-bottom: 10px;
  font-size: 19px;
  color: var(--ink);
}

.legal p {
  font-size: 15px;
}

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

@media (max-width: 980px) {
  .hero,
  .intro-grid,
  .heritage,
  .team-spotlight,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
  }

  .service-grid,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .heritage-main {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 520px;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand {
    min-width: 0;
    gap: 10px;
  }

  .brand-mark {
    width: 58px;
    height: 36px;
  }

  .brand small {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 75px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-radius: var(--radius);
  }

  .section,
  .intro,
  .section-band {
    padding-inline: 18px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 32px;
  }

  .section-band {
    min-height: auto;
  }

  .hero-content {
    order: initial;
  }

  .hero-visual {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .primary-image {
    height: 300px;
  }

  .hero-title-panel {
    width: calc(100% - 22px);
    margin-top: -42px;
    padding: 18px 16px;
  }

  .anniversary-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
    margin: 20px auto 0;
    border-radius: var(--radius);
  }

  .service-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 220px;
  }

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

  .heritage-gallery figure,
  .heritage-main {
    min-height: 340px;
  }

  .heritage-gallery figcaption {
    border-radius: var(--radius);
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
