:root {
  --paper: #f4ede2;
  --paper-2: #ebe1d1;
  --ivory: #faf6ef;
  --ink: #2a1f17;
  --ink-soft: #5b4a3c;
  --walnut: #4a2e1f;
  --oxblood: #6e1f22;
  --oxblood-dark: #561618;
  --brass: #b08d4a;
  --brass-light: #d4b877;
  --ebony: #15110e;
  --line: rgba(74, 46, 31, .18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --caps: "Cormorant SC", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --max: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
em { font-style: italic; }

/* subtle paper grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow {
  font-family: var(--caps); font-size: 15px; letter-spacing: .22em; text-transform: lowercase;
  color: var(--oxblood); margin-bottom: 14px; display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.eyebrow-light { color: var(--brass-light); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; color: var(--walnut); }
h1, .display { font-size: clamp(44px, 6vw, 82px); letter-spacing: -.01em; }
.display { font-family: var(--serif); font-weight: 500; line-height: 1.08; color: var(--walnut); }
h1.eyebrow { font-family: var(--caps); font-size: 15px; font-weight: 500; line-height: 1.4; letter-spacing: .22em; color: var(--oxblood); }
h1 em, h2 em, .display em { color: var(--oxblood); font-weight: 400; }
h2 { font-size: clamp(36px, 4.4vw, 58px); }
h3 { font-size: 22px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; font-family: var(--sans); font-size: 13px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; transition: all .3s ease; white-space: nowrap;
}
.btn-primary { background: var(--oxblood); color: var(--ivory); }
.btn-primary:hover { background: var(--oxblood-dark); }
.btn-ghost { border-color: var(--walnut); color: var(--walnut); }
.btn-ghost:hover { background: var(--walnut); color: var(--ivory); }
.btn-gold { background: var(--brass); color: var(--ebony); }
.btn-gold:hover { background: var(--brass-light); }

/* TOPBAR + HEADER */
.topbar {
  background: var(--ebony); color: var(--paper-2); font-size: 13px; letter-spacing: .05em;
  display: flex; justify-content: center; gap: 28px; padding: 8px 16px; text-align: center; flex-wrap: wrap;
}
.topbar a { color: var(--brass-light); text-decoration: none; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px max(24px, calc((100% - var(--max)) / 2));
  background: rgba(244, 237, 226, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark {
  width: 46px; height: 46px; border: 1px solid var(--brass); border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif); font-style: italic;
  font-size: 28px; color: var(--oxblood); position: relative;
}
.brand-mark::after { content: ""; position: absolute; inset: 3px; border: 1px solid var(--line); border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--walnut); }
.brand-sub { font-family: var(--caps); font-size: 13px; letter-spacing: .2em; color: var(--ink-soft); text-transform: lowercase; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a { text-decoration: none; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; font-weight: 400; position: relative; }
.nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: var(--oxblood); transition: width .3s; }
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { border: 1px solid var(--oxblood); color: var(--oxblood); padding: 9px 18px; }
.nav-cta:hover { background: var(--oxblood); color: var(--ivory); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 7px; }
.nav-toggle span { display: block; height: 1px; background: var(--walnut); width: 28px; margin-left: auto; transition: .3s; }

/* HERO */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 72px 24px 88px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center;
}
.lead { font-size: 19px; color: var(--ink-soft); max-width: 520px; margin: 28px 0 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-facts { display: flex; gap: 40px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-facts dt { font-family: var(--serif); font-size: 36px; color: var(--oxblood); line-height: 1; }
.hero-facts dd { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-top: 6px; }

.hero-media { position: relative; }
.arch {
  border-radius: 999px 999px 0 0; overflow: hidden; aspect-ratio: 4 / 5;
  box-shadow: 0 40px 80px -30px rgba(42, 31, 23, .45);
  position: relative;
}
.arch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); transition: transform 6s ease; }
.hero-media:hover .arch img { transform: scale(1.08); }
.hero-media::before {
  content: ""; position: absolute; inset: -16px -16px 24px 16px;
  border: 1px solid var(--brass); border-radius: 999px 999px 0 0; z-index: -1;
}
.hero-media figcaption { margin-top: 16px; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink-soft); }
.hero-media figcaption span { font-family: var(--caps); font-style: normal; letter-spacing: .15em; color: var(--oxblood); margin-right: 8px; }

/* EPOCH MARQUEE */
.epochs { background: var(--walnut); color: var(--paper); overflow: hidden; padding: 18px 0; border-block: 1px solid var(--brass); }
.epochs-track { display: flex; gap: 36px; width: max-content; animation: marquee 40s linear infinite; align-items: center; }
.epochs span { font-family: var(--serif); font-style: italic; font-size: 26px; }
.epochs i { color: var(--brass-light); font-style: normal; font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* INTRO */
.intro { max-width: 980px; margin: 0 auto; padding: 110px 24px 90px; text-align: center; }
.ornament { font-size: 34px; color: var(--brass); margin-bottom: 22px; }
.intro-quote { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 38px); line-height: 1.35; color: var(--walnut); }
.intro-quote em { color: var(--oxblood); }
.cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 0; margin-top: 48px; }
.cats span { font-family: var(--caps); font-size: 17px; letter-spacing: .12em; text-transform: lowercase; color: var(--ink-soft); padding: 0 20px; border-right: 1px solid var(--brass); }
.cats span:last-child { border-right: 0; }

/* SECTION HEAD */
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head .eyebrow::after { content: ""; width: 32px; height: 1px; background: currentColor; }
.section-head p:not(.eyebrow) { color: var(--ink-soft); margin-top: 18px; }
.attrib { font-family: var(--caps); letter-spacing: .1em; white-space: nowrap; }

/* COLLECTION */
.collection { background: var(--ivory); padding: 100px 24px 110px; border-top: 1px solid var(--line); }
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.chip {
  background: none; border: 1px solid var(--line); padding: 9px 20px; font-size: 13px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); transition: .25s;
}
.chip:hover { border-color: var(--walnut); color: var(--walnut); }
.chip.is-active { background: var(--walnut); border-color: var(--walnut); color: var(--ivory); }

.grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 44px 32px; }
.card { display: block; cursor: pointer; text-align: left; text-decoration: none; color: inherit; animation: fadeUp .6s ease both; }
.card[hidden] { display: none; }
.card-img { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--paper-2); }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s ease, transform 1.2s ease; }
.card-img .alt { opacity: 0; }
.card:hover .card-img .alt, .card:focus-visible .card-img .alt { opacity: 1; }
.card:hover .card-img img { transform: scale(1.04); }
.card-no {
  position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--ivory);
  font-family: var(--caps); font-size: 13px; letter-spacing: .15em; padding: 3px 10px; color: var(--oxblood);
}
.card-body { padding-top: 18px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.card-style { font-family: var(--caps); font-size: 14px; letter-spacing: .14em; text-transform: lowercase; color: var(--brass); }
.card h3 { font-size: 24px; margin: 4px 0 6px; transition: color .25s; }
.card:hover h3 { color: var(--oxblood); }
.card-date { font-family: var(--serif); font-style: italic; color: var(--ink-soft); font-size: 17px; display: flex; justify-content: space-between; }
.card-date::after { content: "Ansehen →"; font-family: var(--sans); font-style: normal; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--oxblood); opacity: 0; transform: translateX(-6px); transition: .3s; }
.card:hover .card-date::after { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ENSEMBLE */
.ensemble { background: var(--ebony); color: #d9cfc0; padding: 110px 24px; position: relative; overflow: hidden; }
.ensemble::before { content: ""; position: absolute; inset: 24px; border: 1px solid rgba(176, 141, 74, .35); pointer-events: none; }
.ensemble-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.ensemble h2 { color: var(--ivory); }
.ensemble h2 em { color: var(--brass-light); }
.ensemble-text > p:not(.eyebrow) { margin: 24px 0 28px; }
.ensemble-list { list-style: none; margin-bottom: 36px; border-top: 1px solid rgba(176, 141, 74, .3); }
.ensemble-list li { border-bottom: 1px solid rgba(176, 141, 74, .3); }
.ensemble-list button {
  width: 100%; text-align: left; background: none; border: 0; color: var(--ivory);
  font-family: var(--serif); font-size: 22px; padding: 12px 0; display: flex; justify-content: space-between; transition: color .25s, padding .25s;
}
.ensemble-list button::after { content: "→"; color: var(--brass); }
.ensemble-list button:hover { color: var(--brass-light); padding-left: 8px; }
.ensemble-media { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(6, 70px); gap: 14px; }
.ensemble-media img { width: 100%; height: 100%; object-fit: cover; }
.e1 { grid-column: 1 / 5; grid-row: 1 / 5; }
.e2 { grid-column: 5 / 7; grid-row: 1 / 3; }
.e3 { grid-column: 5 / 7; grid-row: 3 / 5; }
.e4 { grid-column: 2 / 5; grid-row: 5 / 7; }
.ensemble-media::after { content: "Herrenzimmer · um 1910"; grid-column: 5 / 7; grid-row: 5 / 7; align-self: center; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--brass-light); padding-left: 6px; }

/* CRAFT MOSAIC */
.craft { padding: 110px 24px; }
.mosaic {
  max-width: var(--max); margin: 0 auto; display: grid;
  grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 16px;
}
.mosaic figure { position: relative; overflow: hidden; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.mosaic figure:hover img { transform: scale(1.06); }
.mosaic figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px;
  background: linear-gradient(transparent, rgba(21, 17, 14, .75)); color: var(--ivory);
  font-family: var(--serif); font-style: italic; font-size: 18px;
}
.m-a { grid-column: span 2; grid-row: span 2; }
.m-b { grid-row: span 2; }
.m-d { grid-row: span 2; }
.m-f { grid-column: span 2; }

/* ABOUT */
.about {
  background: var(--paper-2); padding: 110px max(24px, calc((100% - var(--max)) / 2));
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center;
}
.about-media { position: relative; }
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-media::after { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(250, 246, 239, .7); pointer-events: none; }
.about-text > p:not(.eyebrow):not(.signature) { color: var(--ink-soft); margin-top: 20px; }
.about-text em { color: var(--oxblood); font-family: var(--serif); font-size: 1.15em; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 40px 0 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.pillars h3 { color: var(--oxblood); margin-bottom: 6px; }
.pillars p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; }
.signature { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--walnut); }

/* VISIT */
.visit {
  padding: 110px 24px; background:
    linear-gradient(rgba(42, 31, 23, .78), rgba(42, 31, 23, .78)),
    url("images/06/05_Detail_Glastueren_Rundfenster.jpg") center / cover fixed;
}
.visit-card { max-width: 1000px; margin: 0 auto; background: var(--ivory); padding: 64px; text-align: center; outline: 1px solid var(--brass); outline-offset: -14px; }
.visit-card .eyebrow { justify-content: center; }
.visit-card .eyebrow::after { content: ""; width: 32px; height: 1px; background: currentColor; }
.visit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 44px 0; text-align: left; }
.visit-grid > div { border-top: 1px solid var(--brass); padding-top: 18px; }
.visit-grid h3 { font-family: var(--caps); font-size: 16px; letter-spacing: .18em; text-transform: lowercase; color: var(--oxblood); margin-bottom: 10px; }
.visit-grid p { margin-bottom: 10px; }
.visit-grid a { text-decoration: none; border-bottom: 1px solid var(--line); }
.visit-grid a:hover { color: var(--oxblood); border-color: var(--oxblood); }
.link { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--oxblood); }
.visit-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* FOOTER */
.site-footer {
  background: var(--ebony); color: #a99b88; font-size: 14px;
  padding: 56px max(24px, calc((100% - var(--max)) / 2)) 28px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.site-footer .brand-name { color: var(--ivory); }
.footer-legal { text-align: right; }
.footer-legal nav { display: flex; gap: 22px; justify-content: flex-end; margin-top: 12px; }
.footer-legal a { color: var(--brass-light); text-decoration: none; }
.copy { grid-column: 1 / -1; border-top: 1px solid rgba(176, 141, 74, .25); padding-top: 20px; font-size: 12px; letter-spacing: .1em; }

/* LEGAL PAGES */
.back-link { text-decoration: none; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--oxblood); }
.back-link:hover { text-decoration: underline; }
.legal { max-width: 760px; margin: 0 auto; padding: 80px 24px 100px; }
.legal h1 { margin-bottom: 40px; }
.legal h2 { font-size: 26px; margin: 36px 0 10px; }
.legal p { color: var(--ink-soft); margin-bottom: 12px; }
.legal a { color: var(--oxblood); }
.legal .note { font-size: 14px; font-style: italic; }

/* MODAL */
.modal {
  border: 0; padding: 0; margin: auto; width: min(1120px, calc(100% - 32px)); max-height: calc(100vh - 48px);
  background: var(--ivory); color: var(--ink); box-shadow: 0 40px 120px rgba(0, 0, 0, .5);
}
.modal::backdrop { background: rgba(21, 17, 14, .75); backdrop-filter: blur(4px); }
.modal[open] { animation: fadeUp .35s ease; }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ivory); border: 1px solid var(--line); font-size: 26px; line-height: 1; color: var(--walnut);
}
.modal-close:hover { background: var(--walnut); color: var(--ivory); }
.modal-body { display: grid; grid-template-columns: 1.1fr .9fr; max-height: calc(100vh - 48px); }
.modal-gallery { background: var(--paper-2); padding: 20px; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.modal-main { flex: 1; min-height: 0; display: grid; place-items: center; }
.modal-main img { max-height: calc(100vh - 200px); width: 100%; object-fit: contain; }
.modal-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.modal-thumbs button { flex: 0 0 72px; height: 72px; border: 2px solid transparent; padding: 0; background: none; opacity: .6; transition: .2s; }
.modal-thumbs button.is-active, .modal-thumbs button:hover { opacity: 1; border-color: var(--brass); }
.modal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.modal-info { padding: 48px 44px; overflow-y: auto; }
.modal-info h2 { font-size: clamp(30px, 3vw, 42px); }
.modal-style { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--oxblood); margin: 8px 0 18px; }
.modal-info > p#m-text { color: var(--ink-soft); font-size: 16px; }
.specs { margin: 26px 0 30px; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { font-family: var(--caps); letter-spacing: .12em; text-transform: lowercase; color: var(--brass); font-size: 15px; }
.hint { font-size: 13px; color: var(--ink-soft); margin-top: 12px; letter-spacing: .04em; }

/* RESPONSIVE */
@media (max-width: 1000px) {
  .hero, .ensemble-inner, .about { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: 48px; }
  .hero-media { max-width: 520px; margin: 0 auto; width: 100%; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .m-a, .m-f { grid-column: span 2; }
  .about-media { max-width: 520px; }
  .modal-body { grid-template-columns: 1fr; overflow-y: auto; }
  .modal-main img { max-height: 55vh; }
  .modal-info { overflow: visible; padding: 32px 24px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .4s ease;
  }
  .nav.is-open { max-height: 420px; }
  .nav a { padding: 16px 24px; width: 100%; border-top: 1px solid var(--line); }
  .nav-cta { border: 0; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .visit-grid, .pillars { grid-template-columns: 1fr; }
  .visit-card { padding: 44px 24px; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-legal { text-align: left; }
  .footer-legal nav { justify-content: flex-start; }
  .visit { background-attachment: scroll; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .topbar span { display: none; }
  .brand-name { font-size: 21px; }
  .brand-mark { width: 40px; height: 40px; font-size: 24px; }
  .hero { padding: 36px 16px 64px; }
  .hero-facts { gap: 24px; }
  .hero-facts dt { font-size: 28px; }
  .collection, .craft, .ensemble, .intro, .visit { padding-left: 16px; padding-right: 16px; }
  .about { padding-left: 16px; padding-right: 16px; }
  .ensemble::before { inset: 10px; }
  .ensemble-media { grid-template-rows: repeat(6, 48px); gap: 8px; }
  .mosaic { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .m-a, .m-b, .m-d, .m-f { grid-column: auto; grid-row: auto; }
  .cats span { border: 0; padding: 0 10px; }
  .specs div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Footer credits */
.copy { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.credits a { color: var(--brass-light); text-decoration: none; }
.credits a:hover { text-decoration: underline; }

/* Shop CTAs */
.shop-cta {
  max-width: var(--max); margin: 72px auto 0; padding: 36px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  background: var(--paper); border: 1px solid var(--brass); outline: 1px solid var(--line); outline-offset: 6px;
}
.shop-cta h3 { font-size: 28px; margin-bottom: 6px; }
.shop-cta p { color: var(--ink-soft); max-width: 620px; }
.visit-shop { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--walnut); margin-bottom: 22px; }
@media (max-width: 520px) { .shop-cta { padding: 28px 20px; } .shop-cta .btn { width: 100%; } }
