/* Frühschoppenrunde Ebenthal */

/* Schriften lokal (DSGVO-freundlich, ohne Google-Server).
   Dateien in /assets/fonts/ ablegen – siehe ANLEITUNG.md. Fehlen sie, greift die Ersatzschrift. */
@font-face { font-family: "Italiana"; src: url("fonts/italiana-v20-latin-regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Didact Gothic"; src: url("fonts/didact-gothic-v20-latin_latin-ext-regular.woff2") format("woff2"); font-display: swap; }

:root {
  --ink: #1c1c24;
  --text: #1f1f26;
  --muted: #4f4f58;
  --paper: #faf8f4;
  --alt: #f1ede5;
  --line: #e2ddd2;
  --accent: #a8762e;      /* Bernstein / Bier */
  --accent-dark: #7d5720;
  --display: "Italiana", "Didot", "Bodoni 72", Georgia, serif;
  --body: "Didact Gothic", "Century Gothic", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.7 var(--body); color: var(--text); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--ink); line-height: 1.2; letter-spacing: .04em; }
h2 { font-size: 1.9rem; margin: 2.2rem 0 1rem; }
h3 { font-size: 1.4rem; }

.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.wrap--narrow { max-width: 780px; }
.center { text-align: center; }
.small { font-size: .85rem; }

/* ---------- Hero / Kopf ---------- */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(rgba(28,28,36,.55), rgba(28,28,36,.55)), var(--hero) center / cover no-repeat, var(--ink);
  min-height: 300px; display: flex; flex-direction: column;
}
.hero--full { min-height: 100vh; min-height: 100svh; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 2rem; position: relative; z-index: 5; }
.brand { font-family: var(--display); color: #fff; text-decoration: none; text-transform: uppercase; letter-spacing: .35em; font-size: 1.05rem; line-height: 1.5; max-width: 22ch; }
.brand:hover { color: #fff; opacity: .85; }
.nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.nav a { color: #fff; text-decoration: none; padding: .45rem .8rem; font-size: .95rem; letter-spacing: .08em; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: rgba(255,255,255,.8); }
.menu-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; transition: transform .2s, opacity .2s; }

.hero-inner { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 2rem 2rem 4rem; max-width: 1140px; width: 100%; margin: 0 auto; }
.hero-title { font-family: var(--display); font-size: clamp(1.9rem, 8.5vw, 5.5rem); overflow-wrap: anywhere; text-transform: uppercase; letter-spacing: 5px; line-height: 1.1; margin: 0; color: #fff; }
.hero-title a { color: inherit; text-decoration: none; }
.hero-title--small { font-size: clamp(2rem, 5vw, 3.4rem); max-width: none; }
.hero-sub { margin: 1.2rem 0 0; font-size: 1.05rem; letter-spacing: .06em; opacity: .9; }
.is-inner .hero-inner { padding-bottom: 2.5rem; }

@media (max-width: 900px) {
  .topbar { padding: 1.1rem 1.25rem; }
  .brand { font-size: .9rem; letter-spacing: .28em; }
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: rgba(28,28,36,.97); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: .5rem 1.25rem 1.25rem; }
  .nav a { display: block; padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero-inner { padding: 1rem 1.25rem 3rem; }
  .hero-title { letter-spacing: 2px; }
}

/* ---------- Abschnitte ---------- */
.section { padding: 4rem 0; }
.section--alt { background: var(--alt); }
.section-title { font-size: 2.3rem; margin-top: 0; text-transform: uppercase; letter-spacing: .12em; }
.intro-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; align-items: center; }
.hours { border: 1px solid var(--line); background: #fff; padding: 2rem; text-align: center; }
.hours-label { text-transform: uppercase; letter-spacing: .25em; font-size: .8rem; color: var(--muted); margin: 0; }
.hours-text { font-family: var(--display); font-size: 1.7rem; color: var(--ink); line-height: 1.3; margin: .6rem 0 1rem; }
@media (max-width: 760px) { .intro-grid { grid-template-columns: 1fr; gap: 2rem; } }

.btn { display: inline-block; padding: .7rem 1.6rem; background: var(--ink); color: #fff; text-decoration: none; letter-spacing: .12em; text-transform: uppercase; font-size: .82rem; border: 1px solid var(--ink); border-radius: var(--radius); cursor: pointer; font-family: var(--body); }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }

/* ---------- Karten ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 2rem; margin: 2rem 0; }
.card { background: var(--ink); border: 1px solid var(--ink); overflow: hidden; border-radius: 12px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(28,28,36,.25); }
.card-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #2a2a35; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.3rem 1.4rem 1.6rem; }
.card-body time { font-size: .8rem; letter-spacing: .15em; color: #d9a441; font-weight: bold; }
.card-body h3 { margin: .3rem 0 .6rem; }
.card-body h3 { color: #fff; }
.card-body h3 a { color: #fff; text-decoration: none; }
.card-body h3 a:hover { color: #d9a441; }
.card-body p { margin: 0; color: rgba(255,255,255,.88); font-size: .95rem; }

.pager { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 2rem; }
.pager a { padding: .45rem .9rem; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: #fff; }
.pager a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Beitrag / Seite ---------- */
.entry-title { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 1.5rem; }
.meta { color: var(--muted); letter-spacing: .15em; font-size: .85rem; margin: 0 0 .3rem; }
.featured { margin: 0 0 2rem; }
.entry figure { margin: 1.5rem 0; }
.entry figure > figure { margin: 0; }
.entry figure:has(> figure) { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; }
.entry figure:has(> figure) img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.entry .alignright { float: right; max-width: 40%; margin: .3rem 0 1rem 1.5rem; }
.entry .alignleft { float: left; max-width: 40%; margin: .3rem 1.5rem 1rem 0; }
.entry::after { content: ""; display: table; clear: both; }
.entry ul { padding-left: 1.2rem; }
.entry li { margin: .35rem 0; }
.entry img { cursor: zoom-in; }
.back { margin-top: 3rem; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; margin: 1.5rem 0; }
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--alt); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }

.map-consent { border: 1px solid var(--line); background: var(--alt); padding: 2.5rem 1.5rem; text-align: center; margin: 1.5rem 0; }
.map-consent iframe { width: 100%; height: 480px; border: 0; display: block; }
.map-consent.loaded { padding: 0; }

.imprint { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.5rem; }
.imprint dt { font-weight: bold; }
.imprint dd { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.8); padding: 3rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-grid nav { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { font-family: var(--display); font-size: 1.4rem; color: #fff; letter-spacing: .15em; text-transform: uppercase; margin: 0 0 .5rem; }
.copy { text-align: center; font-size: .8rem; opacity: .6; margin: 2.5rem 0 0; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(10,10,14,.94); z-index: 200; display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; cursor: default; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 3rem; cursor: pointer; padding: 1rem; line-height: 1; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: .5rem; right: .8rem; }
.lb-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .5rem; top: 50%; transform: translateY(-50%); }
