/* Exeratus Pass – gemeinsames Stylesheet */

@font-face { font-family: "Lora"; src: url("fonts/lora.woff") format("woff"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-300.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-400.woff") format("woff"); font-weight: 400; font-display: swap; }

:root {
  --ink: #142619;
  --ink-soft: #3d4d41;
  --paper: #ffffff;
  --footer: #e4e4e2;
  --red: #a3201a;
  --red-dark: #7f1813;
  --night: #0e120f;
  --display: "Lora", "Bodoni 72", Didot, Georgia, serif;
  --body: "Poppins", "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --gutter: clamp(1.25rem, 5vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 300 1.0625rem/1.75 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--red); outline-offset: 3px;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -0.025em; }
.display { font-size: clamp(2.6rem, 6.5vw, 5.25rem); }
.title { font-size: clamp(2.2rem, 5vw, 4.25rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.015em; }
p { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.6rem); line-height: 1.7; }

.wrap { padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.center { text-align: center; }
.measure { max-width: none; }

/* Header */
.site-header { position: relative; z-index: 20; background: var(--paper); }
.site-header .wrap {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-block: 1rem; max-width: none; padding-inline: clamp(1rem, 2vw, 2rem);
}
.logo img { height: clamp(64px, 7vw, 96px); width: auto; }
.nav ul { display: flex; gap: clamp(1.25rem, 2vw, 2rem); list-style: none; margin: 0; padding: 0; }
.nav a { font-family: var(--display); font-size: 1.375rem; text-decoration: none; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration-line: underline; }
.menu-toggle { display: none; }

@media (max-width: 62rem) {
  .site-header .wrap { grid-template-columns: auto 1fr; }
  .menu-toggle {
    display: inline-flex; justify-self: end; align-items: center; gap: .5rem;
    background: none; border: 1px solid var(--ink); border-radius: 999px;
    padding: .5rem 1.1rem; font: 400 1rem var(--body); color: var(--ink); cursor: pointer;
  }
  .nav { display: none; grid-column: 1 / -1; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 1rem 0 .5rem; border-top: 1px solid var(--ink); margin-top: 1rem; }
  .nav a { display: block; padding: .6rem 0; font-size: 1.6rem; }
}

/* Bilder */
.bleed { width: 100%; overflow: hidden; position: relative; background: var(--night); }
.bleed img { width: 100%; height: 100%; object-fit: cover; }
.hero { height: min(88vh, 62vw); min-height: 22rem; }
.hero img { object-position: 50% 45%; transform-origin: 50% 40%; }
.panorama { height: min(80vh, 58vw); min-height: 18rem; }
.parallax img { height: 120%; will-change: transform; }

/* Split: Überschrift links, Text rechts */
.split { display: grid; gap: 2rem 4rem; grid-template-columns: 1fr; }
@media (min-width: 56rem) { .split { grid-template-columns: 4fr 8fr; } }
.split .lead { margin: .4rem 0 0; }

/* Maskenstreifen */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.strip figure { margin: 0; overflow: hidden; aspect-ratio: 3 / 4; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.strip figure:hover img { transform: scale(1.04); }
@media (max-width: 40rem) {
  .strip { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; }
  .strip figure { scroll-snap-align: start; }
}

/* Raster mit Linien */
.rules { display: grid; gap: 0 clamp(2rem, 5vw, 5rem); grid-template-columns: 1fr; margin-top: clamp(2rem, 5vw, 4rem); }
.rules.two { grid-template-columns: 1fr; }
@media (min-width: 48rem) { .rules.two { grid-template-columns: 1fr 1fr; } }
.rules.two .rule-item p { font-size: clamp(1.1rem, 1.6vw, 1.4rem); }
.rules.three { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.rule-item { border-top: 1px solid var(--ink); padding: 1.6rem 0 3rem; text-decoration: none; display: block; }
.rule-item h3 { margin-bottom: .9rem; }
.rule-item p { margin: 0; }
a.rule-item h3 { text-decoration: underline transparent 1px; text-underline-offset: 6px; transition: text-decoration-color .2s; }
a.rule-item:hover h3 { text-decoration-color: currentColor; }
.rules.three .rule-item h3 { font-family: var(--body); font-weight: 300; font-size: 1.45rem; letter-spacing: 0; }
.rules.three .rule-item p { font-size: 1rem; }

/* Scroll-Effekt: Bild öffnet sich */
.reveal { height: 230vh; position: relative; background: var(--paper); }
.reveal-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.reveal-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: inset(var(--iy, 18%) var(--ix, 26%)); transform: scale(var(--sc, 1.12));
  will-change: clip-path, transform;
}
.reveal-text {
  position: absolute; inset: auto 0 0 0; padding: 0 var(--gutter) clamp(2.5rem, 8vh, 5rem);
  color: #fff; opacity: var(--op, 0); transform: translateY(calc((1 - var(--op, 0)) * 24px));
  background: linear-gradient(to top, rgba(8,10,9,.7), transparent); padding-top: 8rem;
}
.reveal-text p { font-family: var(--display); font-size: clamp(2rem, 5vw, 4.25rem); line-height: 1.05; letter-spacing: -0.025em; margin: 0; max-width: 18ch; }
@media (prefers-reduced-motion: reduce) {
  .reveal { height: auto; }
  .reveal-sticky { position: relative; height: 80vh; }
  .reveal-img { clip-path: none; transform: none; }
  .reveal-text { opacity: 1; transform: none; }
}

/* Formular */
.form { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: .95rem; margin-bottom: .4rem; }
.form input, .form textarea {
  width: 100%; font: 300 1.05rem var(--body); color: var(--ink);
  border: 1px solid #7d867f; border-radius: 999px; padding: .9rem 1.2rem; background: #fff;
}
.form textarea { border-radius: 26px; min-height: 8rem; resize: vertical; }
.form .hp { display: none; }
.form-note { font-size: .85rem; color: var(--ink-soft); margin: 0; }
.form-status { min-height: 1.5em; margin: 0; font-weight: 400; }
@media (max-width: 40rem) { .form { grid-template-columns: 1fr; } }

.btn {
  display: inline-block; text-align: center; cursor: pointer; text-decoration: none;
  font: 400 1.15rem var(--body); padding: .95rem 2.5rem; border-radius: 999px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; border-radius: 0; }
.btn.red:hover { background: var(--red-dark); }
.btn.block { width: 100%; }

.text-links a { font-size: clamp(1.3rem, 2vw, 1.75rem); display: inline-block; margin: .3rem 0; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* Museum */
.emblem { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; padding-block: 2.5rem 1rem; }
.emblem::before, .emblem::after { content: ""; height: 2px; background: var(--ink); }
.emblem img { width: clamp(150px, 16vw, 210px); }
.mosaic { display: grid; gap: 6px; grid-template-columns: 7fr 5fr; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic .tall { grid-row: span 2; aspect-ratio: 3 / 4; }
.mosaic .small { aspect-ratio: 4 / 3; }
@media (max-width: 40rem) { .mosaic { grid-template-columns: 1fr; } .mosaic .tall { grid-row: auto; } }
.visit-card { background: #f4f3f0; padding: clamp(1.5rem, 3vw, 2.5rem); }
.visit-card img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; margin-bottom: 1.5rem; }

/* Verein */
.team { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 3rem; }
@media (min-width: 36rem) { .team { grid-template-columns: 1fr 1fr; } }
@media (min-width: 60rem) { .team { grid-template-columns: repeat(3, 1fr); } }
.member { border: 1px solid var(--ink); display: flex; flex-direction: column; }
.member-head { padding: 1.4rem 1.5rem 1.2rem; }
.member-head h3 { font-family: var(--body); font-weight: 300; font-size: 1.45rem; letter-spacing: 0; margin-bottom: .3rem; }
.member-head p { margin: 0; font-size: .95rem; }
.member figure { margin: 0; overflow: hidden; aspect-ratio: 4 / 5; }
.member img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.member:hover img { transform: scale(1.04); }

/* Events */
.event { max-width: none; margin: 2.5rem auto 0; border: 1px solid #e2e2e0; }
.event img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; }
.event-body { padding: 2rem 1.5rem 2.5rem; text-align: center; }
.event-body h3 { font-family: var(--body); font-weight: 300; font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: 0; margin-bottom: .4rem; }
.event-meta { margin: 0 0 1.5rem; }
.tag { display: inline-block; font-size: .85rem; border: 1px solid var(--ink-soft); color: var(--ink-soft); padding: .15rem .8rem; border-radius: 999px; }
.empty { border: 1px dashed #9aa39c; padding: 2.5rem 1.5rem; text-align: center; max-width: none; margin: 2.5rem auto 0; }

/* Galerie */
.gallery { columns: 3 18rem; column-gap: 8px; margin-top: 3rem; }
.gallery button { all: unset; display: block; cursor: zoom-in; margin-bottom: 8px; break-inside: avoid; overflow: hidden; }
.gallery button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.gallery img { width: 100%; height: auto; transition: transform 1s cubic-bezier(.2,.7,.2,1), filter .4s; }
.gallery button:hover img { transform: scale(1.03); }
.lightbox { position: fixed; inset: 0; background: rgba(8,10,9,.94); display: none; place-items: center; z-index: 50; padding: 3.5rem 4rem; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 86vh; max-width: 100%; width: auto; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font: 300 2.5rem/1 var(--body); cursor: pointer; padding: 1rem; }
.lb-close { top: .5rem; right: 1rem; }
.lb-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .5rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 40rem) { .lightbox { padding: 3.5rem .5rem; } }

/* Rechtliches */
.legal h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 2.5rem 0 1rem; }
.legal h3 { font-family: var(--body); font-weight: 400; font-size: 1.1rem; letter-spacing: 0; margin: 1.6rem 0 .4rem; }

/* Footer */
.site-footer { background: var(--footer); padding-block: clamp(3rem, 6vw, 5rem); font-size: 1rem; line-height: 1.6; }
.site-footer .wrap { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); align-items: end; }
.site-footer h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); margin-bottom: 1.25rem; }
.site-footer p { margin: 0 0 1rem; }
.site-footer a { text-underline-offset: 4px; }

.museum-sign { width: 100%; height: auto; }
