/* Posiles Group – gemeinsames Stylesheet für alle Seiten */
:root {
  --ink: #221a26;
  --paper: #f3f4f1;
  --paper-2: #e8eae5;
  --wine: #6b1e3a;
  --wine-dark: #4d1429;
  --sea: #1f5b63;
  --muted: #5d5864;
  --line: #cfd2cb;
  --radius: 4px;
  --maxw: 1100px;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--wine); text-underline-offset: 3px; }
a:hover { color: var(--wine-dark); }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; }

.wrap { width: min(var(--maxw), 100% - 2.5rem); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .6em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 62ch; }

/* ---------- Kopfzeile ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; flex-wrap: wrap; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; padding: .25rem 0; border-bottom: 2px solid transparent; font-weight: 600; font-size: .98rem; }
.nav a:hover { border-color: var(--line); }
.nav a[aria-current="page"] { border-color: var(--wine); color: var(--wine); }

/* ---------- Startseiten-Hero ---------- */
.hero { padding: clamp(3rem, 9vw, 7rem) 0 clamp(2rem, 5vw, 4rem); }
.hero h1 {
  font-size: clamp(3.4rem, 15vw, 10.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: .9;
  margin: 0 0 .25em -0.04em;
  color: var(--wine);
}
.hero p { font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: var(--muted); margin: 0; max-width: 40ch; }

/* ---------- Seitenkopf (Unterseiten) ---------- */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1.5rem; border-bottom: 1px solid var(--line); margin-bottom: 2.5rem; }
.page-head h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 .3em; color: var(--wine); }
.page-head p { color: var(--muted); font-size: 1.15rem; margin: 0; }

/* ---------- Bereiche als Zeilen ---------- */
.areas { border-top: 1px solid var(--ink); }
.area {
  display: grid;
  grid-template-columns: minmax(150px, 280px) 1fr auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.area-media { aspect-ratio: 4 / 3; background: var(--paper-2); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; }
.area-media img { width: 100%; height: 100%; object-fit: cover; }
.area-media.logo img { object-fit: contain; padding: 1.25rem; }
.area-media.text { background: var(--wine); color: var(--paper); padding: 1rem; text-align: left; place-items: end start; }
.area-media.text span { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.1; }
.area h2 { margin-bottom: .25em; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.area p { margin: 0; color: var(--muted); }
.area p + p { margin-top: .4rem; }
.area-body .note { font-size: .95rem; }

.btn {
  display: inline-block;
  background: var(--wine);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: .7rem 1.25rem;
  border-radius: var(--radius);
  border: 2px solid var(--wine);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--wine-dark); border-color: var(--wine-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--wine); }
.btn.ghost:hover { background: var(--wine); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.section-head h2 { margin: 0; }

/* ---------- Termine ---------- */
.event-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.event { display: grid; grid-template-columns: 9.5rem 1fr auto; gap: 1rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.event time { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.event-title { font-weight: 600; }
.event-meta { color: var(--muted); font-size: .98rem; }
.event a { font-weight: 600; white-space: nowrap; }
.empty { color: var(--muted); padding: 1rem 0; }

/* ---------- Formular ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); }
.contact address { font-style: normal; }
form { display: grid; gap: 1rem; }
label { display: grid; gap: .3rem; font-weight: 600; font-size: .98rem; }
input, select, textarea {
  font: inherit;
  padding: .65rem .75rem;
  border: 1px solid #9ea39a;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  width: 100%;
}
textarea { min-height: 7rem; resize: vertical; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .88rem; color: var(--muted); line-height: 1.45; }
.consent input { width: auto; margin-top: .25rem; }
.hp { position: absolute; left: -9999px; }
.msg { padding: .9rem 1rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-weight: 600; }
.msg.ok { background: #dcebe3; color: #17432d; }
.msg.err { background: #f4dcdc; color: #5c1a1a; }

/* ---------- Galerie / Karte ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); }
.map { border: 0; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--paper-2); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.facts li { border-top: 2px solid var(--wine); padding-top: .6rem; }
.facts strong { display: block; font-family: var(--font-display); font-size: 1.15rem; }

/* ---------- Fußzeile ---------- */
.site-footer { background: var(--ink); color: #d9d6dd; margin-top: 3rem; padding: 2.5rem 0; font-size: .98rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 2rem 4rem; justify-content: space-between; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0 0 .3rem; }

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  .area { grid-template-columns: 1fr; }
  .area-media { aspect-ratio: 16 / 9; }
  .event { grid-template-columns: 1fr; gap: .15rem; }
  .contact { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Slideshow ---------- */
.slideshow { position: relative; background: var(--ink); overflow: hidden; }
.slides { position: relative; aspect-ratio: 21 / 8; max-height: 70vh; min-height: 220px; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .6s; pointer-events: none; }
.slide.is-active { opacity: 1; pointer-events: auto; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem clamp(1rem, 4vw, 3rem) 2.4rem; background: linear-gradient(transparent, rgba(34, 26, 38, .78)); }
.slide figcaption a { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 3vw, 2rem); text-decoration: none; }
.slide figcaption a:hover { text-decoration: underline; text-underline-offset: 5px; }
.slide-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85); color: var(--ink); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.slide-btn:hover { background: #fff; }
.slide-btn.prev { left: .75rem; }
.slide-btn.next { right: .75rem; }
.slide-dots { position: absolute; left: 0; right: 0; bottom: .8rem; display: flex; justify-content: center; gap: .5rem; }
.slide-dots button { width: .7rem; height: .7rem; padding: 0; border: 2px solid #fff; border-radius: 50%; background: transparent; cursor: pointer; }
.slide-dots button[aria-current="true"] { background: #fff; }
@media (max-width: 760px) { .slides { aspect-ratio: 4 / 3; } .slide-btn { display: none; } }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

.areas-section { padding-top: clamp(1.5rem, 4vw, 3rem); }

@media (max-width: 760px) {
  .site-header { position: static; }
  .site-header .wrap { flex-direction: column; justify-content: center; text-align: center; gap: .4rem; }
  .nav { gap: .1rem 1rem; justify-content: center; }
  .nav a { font-size: .93rem; }
}

/* ---------- Headerbild auf Unterseiten ---------- */
.page-banner { background: var(--ink); }
.page-banner img { display: block; width: 100%; aspect-ratio: 21 / 8; max-height: 70vh; min-height: 220px; object-fit: cover; }
@media (max-width: 760px) { .page-banner img { aspect-ratio: 4 / 3; } }

/* ---------- Punsch-Abschnitt (Zua Oidn Hex) ---------- */
.punsch { display: grid; grid-template-columns: minmax(220px, 380px) 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.punsch-poster img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 2px 14px rgba(34, 26, 38, .18); }
.punsch .event { grid-template-columns: 7.5rem 1fr; padding: .7rem 0; }
@media (max-width: 760px) { .punsch { grid-template-columns: 1fr; } }
.msg ul { margin: 0; padding-left: 1.2rem; font-weight: 400; }

/* ---- Veranstaltungsseiten ---- */
.page-text { margin-top: 1.5rem; }
.page-text h3 { margin-top: 1.4rem; }
.page-text p, .page-text ul { max-width: 68ch; }
.text-list { margin: 0 0 1em; padding-left: 1.2rem; }
.partners { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; align-items: stretch; }
.partners li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.2rem; display: flex; align-items: center; justify-content: center; min-width: 9rem; height: 6.5rem; }
.partners a { display: flex; align-items: center; justify-content: center; height: 100%; }
.partners img { max-height: 4.6rem; max-width: 11rem; width: auto; height: auto; object-fit: contain; }
.res-form { max-width: 40rem; }
.res-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.res-form .note { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 560px) { .res-form .two { grid-template-columns: 1fr; } }
.subpages { margin-top: 2rem; }
.subpages h3 { font-size: 1rem; color: var(--muted); font-weight: 600; margin-bottom: .4rem; }
.subpages ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.subpages a { font-size: .98rem; }

/* Links zu den Veranstaltungsseiten in der Startseiten-Kachel */
.area-links { list-style: none; margin: .8rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem .6rem; }
.area-links a { display: inline-block; padding: .3rem .8rem; border: 1px solid var(--wine); border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; }
.area-links a:hover { background: var(--wine); color: #fff; }
.subpages.top { margin: 1.5rem 0 1.75rem; }
