/* Klangkammer — Pfeifenfelder, Notensystem, Eiche und Zinn. */
:root {
  --eiche: #4a3424;
  --zinn: #8d8f93;
  --kerze: #f3e2b8;
  --docht: #1c1612;
  --metall: #c8c4bb;
  --saal: #2a211b;
  --bad: #c45c4a;
  --gut: #7ea07a;
}

*,
*::before,
*::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--kerze);
  background: var(--saal);
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 0.98rem;
  line-height: 1.65;
}

body.nav-lock { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--kerze); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--zinn); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 0.8rem;
  top: -3rem;
  background: var(--kerze);
  color: var(--docht);
  padding: 0.35rem 0.6rem;
  z-index: 90;
}
.skip:focus { top: 0.7rem; }

/* Side pipe columns + center hall */
.orgelhaus {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  min-height: 100vh;
}

.pfeifenwand {
  background:
    repeating-linear-gradient(
      90deg,
      #3b2c22 0 10px,
      #5a4332 10px 14px,
      #2b211a 14px 22px,
      #6a5340 22px 26px,
      #241c16 26px 36px
    );
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.45);
}

@media (max-width: 720px) {
  .orgelhaus { grid-template-columns: 1fr; }
  .pfeifenwand { display: none; }
}

.saalsteg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem 0.6rem;
  border-bottom: 0;
}

.signet {
  text-decoration: none;
  color: var(--kerze);
  font-family: Spectral, Georgia, serif;
  font-style: italic;
  font-size: 1.7rem;
}
.signet em {
  display: block;
  font-family: Manrope, sans-serif;
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--zinn);
}

.klaviatur {
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  padding: 0;
}
.klaviatur span {
  display: block;
  height: 1px;
  background: var(--kerze);
}
.klaviatur span:nth-child(2),
.klaviatur span:nth-child(4) { width: 70%; }

.stimmen {
  display: flex;
  gap: 1.2rem;
  align-items: baseline;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.stimmen a { text-decoration: none; color: var(--metall); }
.stimmen a[aria-current="page"] { color: var(--kerze); }
.stimmen .ruf { color: var(--zinn); font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .stimmen {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 80;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #1c1612;
    gap: 1.4rem;
    font-size: 1.1rem;
  }
  .stimmen.is-open { display: flex; }
  .klaviatur { position: relative; z-index: 90; }
}

@media (min-width: 901px) {
  .klaviatur { display: none; }
}

/* Five staff lines */
.system {
  height: 2.4rem;
  margin: 0 1.4rem 1.6rem;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0 6px,
      rgba(200, 196, 187, 0.35) 6px 7px
    );
}

.saal {
  padding: 0 1.6rem 3rem;
}

.prinzipal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 32%);
  gap: 2rem;
  align-items: start;
  min-height: 70vh;
}

@media (max-width: 860px) {
  .prinzipal { grid-template-columns: 1fr; }
}

.prinzipal h1 {
  font-family: Spectral, Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.02;
  margin: 0 0 1rem;
  color: var(--kerze);
}

.prinzipal .lede {
  font-size: 1.08rem;
  color: var(--metall);
  max-width: 34rem;
}

.pfeiler {
  position: relative;
  min-height: 28rem;
}
.pfeiler img {
  width: 100%;
  height: 100%;
  min-height: 28rem;
  object-fit: cover;
  filter: sepia(0.25) contrast(1.05);
  clip-path: inset(0 18% 0 18%);
}
.pfeiler figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1rem;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--zinn);
}

.manual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 2.4rem 0;
  border-top: 1px solid rgba(200, 196, 187, 0.25);
}
.manual article {
  padding: 1.2rem 1rem 1.4rem 0;
  border-right: 1px solid rgba(200, 196, 187, 0.18);
}
.manual article:last-child { border-right: 0; }
.manual h2 {
  font-family: Spectral, Georgia, serif;
  font-weight: 500;
  font-size: 1.45rem;
  margin: 0 0 0.5rem;
}
.manual p { margin: 0; color: var(--metall); }

@media (max-width: 720px) {
  .manual { grid-template-columns: 1fr; }
  .manual article { border-right: 0; border-bottom: 1px solid rgba(200, 196, 187, 0.18); }
}

.intonation {
  max-width: 40rem;
}
.intonation h1,
.intonation h2 {
  font-family: Spectral, Georgia, serif;
  font-weight: 400;
  font-style: italic;
}
.intonation h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }

.labial {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
}
.labial li {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(200, 196, 187, 0.16);
}
.labial b {
  font-family: Spectral, Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
}

.kerze-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.65rem 1.15rem;
  background: var(--kerze);
  color: var(--docht);
  text-decoration: none;
  border: 0;
  font: inherit;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
  cursor: pointer;
}

.page-pipe img {
  width: 100%;
  max-height: 46vh;
  object-fit: cover;
  clip-path: inset(0 22% 0 22%);
  margin: 0 auto 1.6rem;
}

.ton {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.85rem;
}
.ton span {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--zinn);
}
.ton input,
.ton textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--zinn);
  color: var(--kerze);
  font: inherit;
  padding: 0.5rem 0;
}
.ton textarea { min-height: 7.5rem; resize: vertical; }
.is-bad { box-shadow: inset 0 -2px 0 var(--bad); }

.agree {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0.8rem 0 1rem;
  color: var(--metall);
  font-size: 0.9rem;
}
.agree.is-bad { outline: 1px solid var(--bad); padding: 0.3rem; }

.ok {
  color: var(--gut);
  font-family: Spectral, Georgia, serif;
  font-style: italic;
  font-size: 1.35rem;
}

.colophon-orgel {
  padding: 2rem 1.6rem 5.5rem;
  color: var(--zinn);
  font-size: 0.88rem;
}
.colophon-orgel a { color: var(--metall); }
.colo-org {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.4rem;
}
@media (max-width: 720px) { .colo-org { grid-template-columns: 1fr; } }
.colophon-orgel nav { display: flex; flex-direction: column; gap: 0.3rem; }

.cookie {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: auto;
  max-width: 22rem;
  z-index: 70;
  background: var(--kerze);
  color: var(--docht);
  padding: 1rem 1.1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.cookie-actions { display: flex; gap: 0.5rem; margin-top: 0.7rem; }
.cookie-actions button {
  font: inherit;
  cursor: pointer;
  border: 0;
  padding: 0.45rem 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
}
.cookie-actions [data-cookie-accept] { background: var(--eiche); color: var(--kerze); }
.cookie-actions [data-cookie-reject] { background: transparent; border: 1px solid var(--eiche); }
