/* Messnerhaus Suite – website styles */

/* Self-hosted fonts (no connection to Google servers) */
@font-face { font-family: 'Playfair Display'; src: url('../fonts/PlayfairDisplay-Regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('../fonts/PlayfairDisplay-Medium.woff') format('woff'); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('../fonts/PlayfairDisplay-Italic.woff') format('woff'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-Variable.woff') format('woff'); font-weight: 100 900; font-style: normal; font-display: swap; }

/* CI colours */
:root {
  --kalk: #F3EFE9;
  --leinen: #E2D9CD;
  --nussholz: #6B4A35;
  --anthrazit: #2B2927;
  --messing: #B48E5F;
  --beere: #6A3942;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--kalk); color: var(--anthrazit); font-family: 'Montserrat', sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--nussholz); }
a:hover { color: var(--anthrazit); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--messing); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Gallery tiles */
.tile { padding: 0; border: 0; background: none; cursor: pointer; display: block; min-width: 0; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.03); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(28, 26, 25, 0.97); color: var(--kalk); padding: 24px 5%; display: none; flex-direction: column; gap: 18px; }
.lightbox.is-open { display: flex; }
.lb-btn { flex-shrink: 0; width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #6E6862; background: transparent; color: var(--kalk); cursor: pointer; }
.lb-btn:hover { border-color: var(--messing); }
.lb-stage { flex-grow: 1; min-height: 0; display: flex; flex-direction: row; align-items: center; gap: 16px; }
.lb-img-wrap { flex-grow: 1; min-width: 0; height: 100%; display: flex; align-items: center; justify-content: center; }
.lb-img-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.lb-thumbs { display: flex; flex-direction: row; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.lb-thumbs button { flex-shrink: 0; width: 96px; height: 64px; padding: 0; border: 0; background: none; cursor: pointer; opacity: .45; }
.lb-thumbs button[aria-current="true"] { opacity: 1; outline: 1px solid var(--messing); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.lb-locked { overflow: hidden; }

/* Phones */
@media (max-width: 700px) {
  #home { height: 640px !important; }
  .mosaic-big { height: 320px !important; }
  .mosaic-small .tile { height: 160px !important; }
  .welcome-img { height: 300px !important; }
  .welcome-img.offset { margin-top: 32px !important; }
  #contact img.portrait { width: 220px !important; height: 220px !important; }
  h2 { font-size: 36px !important; }
  .lb-stage .lb-btn { display: none; }
  .lb-thumbs button { width: 72px; height: 48px; }
}
