/* === Lahn Artists – Rohentwurf ===
   Farben aus dem Logo abgeleitet. Alles bewusst schlicht gehalten,
   damit wir Struktur und Inhalt gemeinsam anpassen können. */

:root {
  --la-blue: #1c4a78;
  --la-blue-dark: #143659;
  --la-grey: #6b7280;
  --la-grey-dark: #4b5563;
  --footer-bg: #6f7176;
  --bg-light: #ececec;
  --bg-section: #e4e4e4;
  --placeholder: #c3c3c3;
  --text: #1f2328;
  --max-width: 1100px;
  --gap: 1.5rem;
  --radius: 4px;
  --header-h: 88px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: #fff;
}

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

a { color: var(--la-blue); }

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

/* Startseite: Luft zwischen Slider und Teasern bzw. vor dem Footer. */
body[data-page="home"] .container {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Inhaltsseiten: Abstand vor dem Footer. */
main.container { padding-bottom: 3rem; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-light);
  border-bottom: 1px solid #d4d4d4;
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 1rem; }
.brand .logo { height: 52px; width: auto; }

.home-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  color: var(--la-grey-dark);
}
.home-icon svg { width: 26px; height: 26px; }

.main-nav { margin-left: auto; }
.main-nav > ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0; padding: 0;
}
.main-nav li { position: relative; }
.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 1rem;
  padding: 0.4rem 0;
  display: inline-block;
}
.main-nav a:hover { color: var(--la-blue); }
.main-nav .active > a { font-weight: 700; color: var(--la-blue); }

/* Dropdown */
.dropdown > ul {
  list-style: none;
  position: absolute;
  top: 100%; left: 0;
  background: #fff;
  border: 1px solid #d4d4d4;
  border-radius: var(--radius);
  min-width: 230px;
  padding: 0.4rem 0;
  margin: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  transition: .15s ease;
}
.dropdown:hover > ul,
.dropdown:focus-within > ul {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown > ul a {
  display: block;
  padding: 0.45rem 1rem;
  font-size: .95rem;
}
.dropdown > ul a:hover { background: var(--bg-light); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none; border: 0;
  cursor: pointer; padding: .5rem;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; display: block;
  width: 26px; height: 2px;
  background: var(--text);
  transition: .2s;
}
.nav-toggle span::before { transform: translateY(-8px); }
.nav-toggle span::after { transform: translateY(6px); }

/* ---------- Page heading ---------- */
.page-title {
  font-size: 1.05rem;
  color: var(--la-grey-dark);
  font-weight: 400;
  margin: 1.5rem 0 0;
}

/* ---------- Hero / Slider ---------- */
.hero {
  background: var(--placeholder);
  position: relative;
  overflow: hidden;
}
.slider { position: relative; }
.slides {
  display: flex;
  transition: transform .5s ease;
}
.slide {
  min-width: 100%;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--la-grey-dark);
  font-size: 1.4rem;
  background: var(--placeholder);
}
.slide:nth-child(even) { background: #b8b8b8; }

.slider-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.35);
  border: 0; cursor: pointer;
  width: 64px; height: 120px;
  font-size: 2.5rem; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.slider-btn:hover { background: rgba(255,255,255,.55); }
.slider-btn.prev { left: 0; }
.slider-btn.next { right: 0; }
.slider-dots {
  position: absolute;
  bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: .5rem;
}
.slider-dots button {
  width: 11px; height: 11px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0;
}
.slider-dots button.active { background: #fff; }

/* ---------- Teaser blocks (Startseite) ---------- */
.teaser-label {
  font-size: .95rem;
  color: var(--la-grey-dark);
  margin: 2rem 0 .75rem;
}
.teaser {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
}
.teaser.reverse { grid-template-columns: 1fr 320px; }
.teaser.reverse .teaser-img { order: 2; }
.teaser-img {
  background: var(--placeholder);
  border-radius: var(--radius);
  aspect-ratio: 16 / 11;
}
.teaser-img.wide { grid-column: 1 / -1; aspect-ratio: 21 / 7; }
/* Großes KünstlerInnen-Bild und die zugehörige Bildunterschrift gehören
   zusammen – darum hier keinen großen Abstand zwischen beiden. */
.teaser:has(.teaser-img.wide) { margin-bottom: 1rem; }
.teaser-text h3 { margin: 0 0 .5rem; color: var(--la-blue); }
.teaser-text p { margin: 0 0 .75rem; color: #444; }

.btn {
  display: inline-block;
  background: var(--la-blue);
  color: #fff;
  text-decoration: none;
  padding: .55rem 1.2rem;
  border-radius: var(--radius);
  font-size: .95rem;
  border: 0; cursor: pointer;
}
.btn:hover { background: var(--la-blue-dark); }

/* ---------- Section / content pages ---------- */
.section {
  background: var(--bg-section);
  border-radius: var(--radius);
  margin: 1.5rem 0;
  padding: 2rem;
}
.section h2 {
  color: var(--la-blue);
  margin-top: 0;
}
.section + .section { margin-top: 1.25rem; }

.media-block {
  background: var(--placeholder);
  border-radius: var(--radius);
  min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  color: var(--la-grey-dark);
  margin: 1.5rem 0;
}

/* Kurs- / Termin-Einträge */
.course {
  border-left: 3px solid var(--la-blue);
  padding: .25rem 0 .25rem 1rem;
  margin: 1.25rem 0;
}
.course h3 { margin: 0 0 .25rem; color: var(--la-blue); font-size: 1.05rem; }
.course .meta { font-size: .9rem; color: var(--la-grey-dark); margin: 0 0 .35rem; }
.course .meta strong { color: var(--text); }
.course p { margin: .25rem 0; }
.course .price { font-weight: 700; }

.event {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  padding: .6rem 0;
  border-bottom: 1px solid #d7d7d7;
}
.event:last-child { border-bottom: 0; }
.event .when { font-weight: 700; color: var(--la-blue); font-size: .92rem; }
.event .what { margin: 0; }

/* Anchor sub-nav for content pages */
.sub-nav {
  position: sticky;
  top: var(--header-h);
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  padding: .6rem 1rem;
  margin: 1.25rem 0;
  z-index: 50;
}
.sub-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .25rem 1.25rem;
}
.sub-nav a { text-decoration: none; font-size: .95rem; color: var(--la-grey-dark); }
.sub-nav a:hover { color: var(--la-blue); }

/* ---------- Künstler-Grid ---------- */
.artist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.artist-card { text-align: center; }
.artist-card .work {
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  color: var(--la-grey);
  font-size: .9rem;
  overflow: hidden;
}
.artist-card .work img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.artist-card .name { font-weight: 700; padding: .5rem 0 .15rem; }
.artist-card .sparte { font-size: .82rem; color: var(--la-grey); }

/* Karten als klickbare Buttons */
button.artist-card {
  border: 0; background: none; padding: 0;
  font: inherit; cursor: pointer;
  display: block; width: 100%;
}
button.artist-card .work { transition: transform .2s, box-shadow .2s; }
button.artist-card:hover .work {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

.letter-block h2 {
  color: var(--la-blue);
  border-bottom: 2px solid var(--la-blue);
  padding-bottom: .2rem;
  margin-top: 2rem;
}

/* ---------- Galerie-Lightbox ---------- */
.gallery-modal {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20,28,40,.88);
  padding: 1.5rem;
  overflow: auto;
}
.gallery-modal.open { display: flex; align-items: center; justify-content: center; }
.g-box {
  background: #fff;
  border-radius: 6px;
  max-width: 900px; width: 100%;
  padding: 1.25rem 1.25rem 1rem;
  position: relative;
}
.g-close {
  position: absolute; top: .5rem; right: .75rem;
  background: none; border: 0; font-size: 1.8rem; line-height: 1;
  cursor: pointer; color: var(--la-grey-dark);
}
.g-head { margin-bottom: .75rem; padding-right: 2rem; }
.g-head .g-name { margin: 0; color: var(--la-blue); }
.g-head .g-sparte { color: var(--la-grey); font-size: .9rem; }
.g-head .g-links { font-size: .9rem; margin-top: .25rem; }
.g-stage {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background: #f3f3f3; border-radius: var(--radius);
}
.g-img {
  max-width: 100%; max-height: 64vh;
  width: auto; margin: 0 auto;
  object-fit: contain;
}
.g-prev, .g-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.4); color: #fff; border: 0;
  width: 48px; height: 64px; font-size: 2rem; cursor: pointer;
}
.g-prev { left: 0; } .g-next { right: 0; }
.g-prev:hover, .g-next:hover { background: rgba(0,0,0,.6); }
.g-foot {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; padding-top: .75rem;
}
.g-titlewrap { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.g-title {
  font-size: 1.3rem; font-weight: 700;
  color: var(--la-blue); font-style: italic;
}
.g-year {
  font-size: .9rem; color: var(--la-grey);
  background: var(--bg-light); border-radius: 999px;
  padding: .1rem .6rem;
}
.g-count { font-size: .9rem; color: var(--la-grey-dark); white-space: nowrap; }

.alpha-nav { font-size: .95rem; letter-spacing: .15em; }
.alpha-nav a { text-decoration: none; padding: 0 .15rem; }

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
.map-placeholder {
  background: var(--placeholder);
  border-radius: var(--radius);
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  color: var(--la-grey-dark);
}
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-size: .9rem; margin-bottom: .3rem; }
.form-field input,
.form-field textarea {
  width: 100%; padding: .6rem;
  border: 1px solid #ccc; border-radius: var(--radius);
  font: inherit;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: #f0f0f0;
  margin-top: 3rem;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.site-footer .logo-neg { height: 60px; margin-bottom: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h4 { margin: 0 0 .6rem; font-size: .95rem; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; font-size: .92rem; }
.site-footer .footer-note { color: #d2d2d2; font-style: italic; }
.member-link { display: inline-flex; align-items: center; gap: .4rem; }
.member-link .badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border: 1.5px solid #fff; border-radius: 50%;
  font-weight: 700; font-size: .85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    background: var(--bg-light);
    border-bottom: 1px solid #d4d4d4;
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; gap: 0; padding: .5rem 1.25rem; }
  .dropdown > ul {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding-left: 1rem; min-width: 0;
  }
  .teaser, .teaser.reverse { grid-template-columns: 1fr; }
  .teaser.reverse .teaser-img { order: 0; }
  .artist-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer .container { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Rich-Text-Inhalte (aus dem WYSIWYG-Editor) */
.rte > :first-child { margin-top: 0; }
.rte > :last-child { margin-bottom: 0; }
.rte p { margin: 0 0 .8em; }
.rte h2, .rte h3, .rte h4 { margin: 1.2em 0 .5em; }
.rte ul, .rte ol { margin: 0 0 .8em 1.4em; }
.rte li { margin: .2em 0; }
.rte blockquote {
  margin: 0 0 .8em; padding: .4em 1em;
  border-left: 3px solid #ccc; color: var(--la-grey-dark, #555);
}
.rte .ql-align-center { text-align: center; }
.rte .ql-align-right { text-align: right; }
.rte .ql-align-justify { text-align: justify; }
.rte .ql-indent-1 { padding-left: 3em; }
.rte .ql-indent-2 { padding-left: 6em; }
.rte .ql-indent-3 { padding-left: 9em; }

/* Honeypot gegen Formular-Spam – für Menschen unsichtbar, von Bots ausgefüllt */
.form-field.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Formular-Rückmeldungen (Kontaktformular) */
.msg { padding: .7rem 1rem; border-radius: 8px; margin: .6rem 0; }
.msg.ok { background: #e6f4ea; color: #1e5631; }
.msg.error { background: #fdecea; color: #8f1a1a; }
