/* ==========================================================================
   Regina Büchner Combination — static site
   ========================================================================== */

:root {
  --bg: #1b1b1b;
  --bg-elevated: #262626;
  --bg-elevated-2: #2f2f2f;
  --border: #3a3a3a;
  --text: #d6d6d6;
  --text-muted: #9a9a9a;
  --heading: #ffffff;
  --accent-1: #ffb347;
  --accent-2: #d9631e;
  --accent-gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --radius-l: 20px;
  --radius-m: 12px;
  --radius-pill: 999px;
  --font: "PT Sans", "Segoe UI", sans-serif;
  --font-display: "Poppins", "PT Sans", sans-serif;
  --max-width: 1120px;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--accent-1); text-decoration: underline; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--heading);
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3.2vw, 2rem); }
h3 { font-size: 1.25rem; }
h5 { font-size: 1.05rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--accent-1); }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius-pill);
  background-image: var(--accent-gradient);
  color: #191307;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 167, 81, 0.35);
  color: #191307;
  text-decoration: none;
}
.btn.btn-outline {
  background-image: none;
  background: transparent;
  color: var(--heading);
  border: 1.5px solid var(--border);
}
.btn.btn-outline:hover {
  border-color: var(--accent-2);
  color: var(--accent-1);
  box-shadow: none;
}
.btn.btn-small { padding: 9px 20px; font-size: 0.75rem; }

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(27, 27, 27, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 10px 24px;
  min-height: 76px;
  padding-top: 12px;
  padding-bottom: 12px;
}
@media (max-width: 700px) {
  .site-header .container { flex-wrap: wrap; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--heading);
}
.brand img { height: 42px; width: 42px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--heading);
}
.brand-sub { font-size: 0.72rem; color: var(--accent-1); letter-spacing: 0.15em; text-transform: uppercase; }
.brand:hover .brand-title { text-decoration: none; }
.brand:hover { text-decoration: none; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.site-nav li { display: block; }
.site-nav a {
  display: block;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--accent-1); text-decoration: none; background: var(--bg-elevated-2); }
.site-nav a.active { color: #191307; background-image: var(--accent-gradient); }

@media (max-width: 700px) {
  .site-nav ul { width: 100%; justify-content: center; gap: 4px; }
  .site-nav a { padding: 8px 12px; font-size: 0.85rem; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  /* Scale with viewport width (not just a fixed px value) so the box never
     becomes so wide-and-short that background-size:cover has to crop past
     the four faces in hero.jpg — see besetzung/kontakt for the same photo. */
  min-height: max(420px, 23vw);
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center 12%;
  color: var(--heading);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.15) 0%, rgba(15, 15, 15, 0.92) 92%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 60px 24px 44px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}
.hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 10px;
}
.hero-page .hero { min-height: max(260px, 23vw); }
.hero-page h1 { margin-bottom: 0; }

/* Homepage only: the hero fills the whole first screen on load. 23vw stays
   as a floor so an unusually short/wide window still can't crop past the
   four faces (see the .hero comment above). */
.hero.hero-home { min-height: max(100vh, 23vw); }
@supports (min-height: 100dvh) {
  .hero.hero-home { min-height: max(100dvh, 23vw); }
}
/* Lift the headline/text/button block up off the bottom edge a bit. */
.hero-home .hero-inner { padding-bottom: calc(44px + 4cm); }

/* ---------- sections / cards ---------- */

section { padding: 64px 0; }
section.tight { padding: 32px 0; }
section + section { border-top: 1px solid var(--border); }

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}

.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.media-text {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: center;
}
.media-text.reverse { grid-template-columns: 1.3fr 1fr; }
.media-text.reverse .media-text-media { order: 2; }
.media-text-media img { border-radius: var(--radius-l); box-shadow: var(--shadow); }
@media (max-width: 760px) {
  .media-text, .media-text.reverse { grid-template-columns: 1fr; }
  .media-text.reverse .media-text-media { order: 0; }
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent-2); }
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover { text-decoration: none; }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-elevated-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 24px; }
.card-body h3 { margin-bottom: 6px; }

.member-card { text-align: left; }
.member-card .card-img { aspect-ratio: 3 / 4; }

/* ---------- termine / timeline ---------- */

.termine-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.termine-filter button {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  cursor: pointer;
  font-size: 0.85rem;
}
.termine-filter button.active {
  background-image: var(--accent-gradient);
  color: #191307;
  border-color: transparent;
  font-weight: 700;
}

.year-heading {
  margin: 48px 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--accent-1);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}
.year-heading::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.year-heading:first-child { margin-top: 0; }

.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: none; }
a.timeline-item {
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease;
}
a.timeline-item:hover { text-decoration: none; background: var(--bg-elevated); }
a.timeline-item:hover .timeline-text h3 { color: var(--accent-1); }
.timeline-date {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--heading);
  font-size: 1.05rem;
}
.timeline-date .time { display: block; color: var(--text-muted); font-family: var(--font); font-weight: 400; font-size: 0.85rem; }
.timeline-tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
  font-weight: 700;
}
.timeline-tag.ankuendigung { background: var(--accent-gradient); color: #191307; }
.timeline-tag.bericht { background: var(--bg-elevated-2); color: var(--text-muted); border: 1px solid var(--border); }
.timeline-body { display: flex; gap: 20px; }
.timeline-text { flex: 1; min-width: 0; }
.timeline-text h3 { margin-bottom: 8px; }
.timeline-text p { color: var(--text-muted); }
.timeline-img { width: 160px; flex-shrink: 0; border-radius: var(--radius-m); overflow: hidden; }
.timeline-img img { width: 100%; height: 110px; object-fit: cover; }

@media (max-width: 640px) {
  .timeline-item { grid-template-columns: 1fr; gap: 10px; }
  .timeline-body { flex-direction: column-reverse; }
  .timeline-img { width: 100%; }
  .timeline-img img { height: 180px; }
}

/* ---------- videos ---------- */

.video-row + .video-row { margin-top: 56px; }
.video-row h3 { margin-bottom: 4px; }
.video-row .meta { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* Once a video is playing, give it the full row width (text moves below)
   instead of sharing the row with the description like the still-thumbnail
   videos do. */
.video-row.is-playing { grid-template-columns: 1fr; gap: 20px; }
.video-row.is-playing .media-text-media { order: -1; }
.video-row.is-playing .video-facade { max-width: 900px; margin: 0 auto; }

.video-facade {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-l);
  overflow: hidden;
  background-color: var(--bg-elevated-2);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  border: none;
  padding: 0;
  display: block;
  width: 100%;
}
.video-facade iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-facade.is-playing { cursor: default; box-shadow: none; }
.video-facade .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.video-facade .play-btn svg { width: 26px; height: 26px; margin-left: 4px; fill: currentColor; }
.video-facade:hover .play-btn {
  background-image: var(--accent-gradient);
  border-color: transparent;
  color: #191307;
  transform: translate(-50%, -50%) scale(1.08);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent-1); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 12px; }

/* ---------- misc ---------- */

.text-center { text-align: center; }
.muted { color: var(--text-muted); }
.stack { display: flex; flex-direction: column; gap: 6px; }
.tag-list { display: flex; gap: 10px; flex-wrap: wrap; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.photo-grid figure { margin: 0; }
.photo-grid img { border-radius: var(--radius-m); box-shadow: var(--shadow); width: 100%; }
/* Wide/panoramic photos get squashed down to almost nothing if forced into
   the same single column width as portrait shots next to them — let them
   span two columns instead (added via JS once we know the image's real
   aspect ratio). */
.photo-grid figure.wide { grid-column: span 2; }
.photo-grid figcaption { font-size: 0.8rem; color: var(--text-muted); margin-top: 8px; }
.photo-grid a { display: block; cursor: zoom-in; }

/* ---------- lightbox ---------- */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px;
  background: rgba(10, 10, 10, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.lightbox-overlay.open { opacity: 1; pointer-events: auto; }
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow);
}
.lightbox-btn {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(20, 20, 20, 0.6);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.lightbox-btn:hover {
  background-image: var(--accent-gradient);
  color: #191307;
  border-color: transparent;
}
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox-overlay { padding: 16px; }
  .lightbox-btn { width: 38px; height: 38px; font-size: 1.1rem; }
}

.form-field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-weight: 700; color: var(--heading); font-size: 0.9rem; }
.form-field input, .form-field textarea, .form-field select {
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin-top: 30px; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-table th { color: var(--accent-1); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.08em; }
.admin-table tr:hover { background: var(--bg-elevated-2); }
.admin-table button { background: none; border: 1px solid var(--border); color: var(--text-muted); border-radius: var(--radius-pill); padding: 4px 12px; cursor: pointer; font-size: 0.75rem; }
.admin-table button:hover { border-color: var(--accent-2); color: var(--accent-1); }

.notice {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-2);
  border-radius: var(--radius-m);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.9rem;
}
.notice code { background: var(--bg-elevated-2); padding: 2px 6px; border-radius: 6px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--accent-1); color: #111; padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 16px; top: 16px; }
