/* elbrachtweller – eigenes Stylesheet, Schriften lokal (keine Google-Server) */
@font-face { font-family: "Gilda Display"; src: url(fonts/gilda-display-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Yantramanav"; src: url(fonts/yantramanav-latin-300-normal.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Yantramanav"; src: url(fonts/yantramanav-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Yantramanav"; src: url(fonts/yantramanav-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #252525;
  --bg-2: #333333;
  --fg: #ffffff;
  --muted: #bdbdbd;
  --accent: #ad8e70;
  --serif: "Gilda Display", Georgia, serif;
  --sans: "Yantramanav", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(20px, 4vw, 58px);
  --gap: 20px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; }
.small { font-size: 14px; color: var(--muted); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(34px, 4.2vw, 60px); letter-spacing: .02em; }
h2 { font-size: clamp(28px, 2.8vw, 40px); letter-spacing: .02em; }

/* Header & Navigation */
.header { display: flex; align-items: center; justify-content: space-between; padding: 40px var(--pad); gap: 24px; position: relative; z-index: 20; }
.logo img { width: clamp(180px, 24vw, 340px); }
.menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; align-items: center; }
.menu a, .menu button { font: 400 14px/1 var(--sans); letter-spacing: .03em; color: var(--fg); text-decoration: none; background: none; border: 0; cursor: pointer; padding: 8px 0; border-bottom: 1px solid transparent; }
.menu a:hover, .menu button:hover, .menu [aria-current="page"], .menu .is-active { color: var(--accent); }
.menu > li > [aria-current="page"], .menu .is-active { border-bottom-color: var(--accent); }
.has-sub { position: relative; }
.has-sub > button::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.sub { list-style: none; margin: 0; padding: 12px 0; position: absolute; left: -18px; top: 100%; min-width: 240px; background: var(--bg-2); box-shadow: 0 10px 30px rgba(0,0,0,.4); display: none; }
.sub a { display: block; padding: 9px 18px; border: 0; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { display: block; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span:not(.sr) { display: block; width: 24px; height: 1px; background: var(--fg); margin: 6px 0; }

@media (max-width: 900px) {
  .nav-toggle { display: block; position: relative; z-index: 31; }
  .menu { position: fixed; inset: 0; background: var(--bg); flex-direction: column; justify-content: center; gap: 18px; display: none; z-index: 30; overflow-y: auto; padding: 80px 20px; }
  .menu.open { display: flex; }
  .menu a, .menu button { font-size: 20px; }
  .sub { position: static; display: none; background: none; box-shadow: none; text-align: center; padding: 6px 0; min-width: 0; }
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: none; }
  .has-sub.open .sub { display: block; }
  .sub a { font-size: 16px; padding: 6px; color: var(--muted); }
  .has-sub { text-align: center; }
}

/* Startseite */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); padding: 60px var(--pad) 40px; }
.tile { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .6s ease; filter: brightness(.82); }
.tile span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; letter-spacing: .05em; }
.tile:hover img { transform: scale(1.04); filter: brightness(.6); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } .tile { aspect-ratio: 4 / 3; } }

/* Intro (Überschrift links, Text rechts) */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 8vw; padding: 80px var(--pad) 60px; align-items: start; }
.intro p { margin: 0 0 1em; max-width: 60ch; }
@media (max-width: 800px) { .intro { grid-template-columns: 1fr; padding-top: 30px; } }
.intro-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding: 0 var(--pad) 60px; align-items: start; }

.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: 14px 28px; letter-spacing: .1em; font-size: 15px; border: 0; transition: filter .2s; }
.btn:hover { filter: brightness(1.12); }

/* Masonry-Galerie */
.masonry { columns: 3; column-gap: var(--gap); padding: 0 var(--pad) 60px; }
.masonry figure { margin: 0 0 var(--gap); break-inside: avoid; }
.masonry a { display: block; cursor: zoom-in; }
.masonry img { width: 100%; transition: opacity .3s; }
.masonry a:hover img { opacity: .85; }
@media (max-width: 1000px) { .masonry { columns: 2; } }
@media (max-width: 560px) { .masonry { columns: 1; } }

/* Teaser & Blättern */
.teaser { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding: 20px var(--pad) 40px; }
.teaser a { background: var(--bg-2); padding: 50px 30px; text-align: center; text-decoration: none; transition: background .3s; }
.teaser a:hover { background: #3d3d3d; }
.teaser h2 { margin-bottom: .2em; }
.teaser span { color: var(--accent); letter-spacing: .05em; }
.pager { display: flex; justify-content: space-between; padding: 10px var(--pad) 40px; }
.pager a { text-decoration: none; color: var(--muted); }
.pager a:hover { color: var(--accent); }
@media (max-width: 560px) { .teaser { grid-template-columns: 1fr; } }

/* Wir */
.wir-imgs { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap); padding: 0 var(--pad) 60px; align-items: start; }
@media (max-width: 700px) { .wir-imgs { grid-template-columns: 1fr; } }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 8vw; background: var(--bg-2); padding: 70px var(--pad); }
.contact p { max-width: 60ch; }
.contact-box { font-size: 18px; }
.mail-line { font-family: var(--serif); font-size: 24px; }
@media (max-width: 800px) { .contact { grid-template-columns: 1fr; } }
/* Adresse steht rückwärts im HTML und wird per CSS richtig herum gezeigt – Kopieren liefert Unsinn */
.mail-rtl { unicode-bidi: bidi-override; direction: rtl; user-select: none; -webkit-user-select: none; }

/* Rechtstexte */
.legal { max-width: 820px; margin: 0 auto; padding: 40px var(--pad) 80px; }
.legal h2 { font-size: 24px; margin-top: 1.6em; }

/* Footer */
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 30px var(--pad) 40px; font-size: 14px; color: var(--muted); }
.footer a { margin-right: 22px; text-decoration: none; color: var(--fg); }
.footer a:hover { color: var(--accent); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(20,20,20,.97); z-index: 100; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: calc(100vw - 140px); max-height: calc(100vh - 80px); width: auto; height: auto; object-fit: contain; user-select: none; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font: 300 40px/1 var(--sans); padding: 16px; opacity: .7; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 10px; right: 14px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 22px; left: 24px; font-size: 14px; color: var(--muted); }
@media (max-width: 700px) { .lightbox img { max-width: 100vw; max-height: 85vh; } .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; } }
