/* Popchor Ulm — Skin "popchor"
   Farbpalette direkt aus dem Vereinslogo abgeleitet. */

:root {
  --c-orange:  #FF8C1A;
  --c-magenta: #F013C4;
  --c-red:     #FF4419;
  --c-mint:    #17D98C;
  --c-green:   #7ED321;
  --c-yellow:  #FFC61A;
  --c-cyan:    #00C2D1;

  --ink:       #211E2E;
  --ink-soft:  #514C63;
  --paper:     #FFFFFF;
  --paper-alt: #FAF7F2;
  --line:      #E7E1D8;

  --radius: 18px;
  --shadow: 0 12px 30px -14px rgba(33, 30, 46, 0.28);
  --maxw: 1180px;

  --font-body: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Segoe UI Semibold", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper-alt);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--c-magenta); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  margin: 1.4em 0 0.5em;
}
h1:first-child, h2:first-child, h3:first-child { margin-top: 0; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.2rem; }
p { margin: 0.9em 0; }
ul, ol { padding-left: 1.3em; }

/* ---------- Header ---------- */
#pcu-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.pcu-headerbar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.pcu-logo img { height: 52px; width: auto; }
.pcu-nav { flex: 1; }
.pcu-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  justify-content: center;
}
.pcu-nav a {
  display: inline-block;
  padding: 10px 14px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.97rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.pcu-nav a:hover { background: var(--paper-alt); }
.pcu-nav a.pcu-active {
  color: var(--c-magenta);
  font-weight: 800;
}

.pcu-social { display: flex; gap: 10px; }
.pcu-social a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--paper-alt);
  color: var(--ink-soft);
}
.pcu-social a svg { width: 17px; height: 17px; fill: currentColor; }
.pcu-social a:hover { background: var(--c-magenta); color: #fff; text-decoration: none; }

.pcu-navtoggle-input { display: none; }
.pcu-navtoggle-btn { display: none; }

/* ---------- Hero (Startseite) ---------- */
#pcu-hero {
  position: relative;
  color: #fff;
  min-height: 68vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center 30%;
  overflow: hidden;
}
#pcu-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.3);
}
.pcu-hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 60px 24px 40px;
  width: 100%;
  text-align: center;
}
.pcu-hero-lead {
  color: rgba(255,255,255,0.9);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}
.pcu-hero-inner h1 {
  color: #fff;
  font-size: clamp(2.8rem, 8vw, 5rem);
  margin: 2px 0 10px;
}
.pcu-hero-tagline {
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.15rem;
  margin: 0 0 24px;
}
.pcu-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Kürzerer Hero auf Unterseiten: nur die Seitenüberschrift einfarbig
   (weiß) als Overlay über dem Foto, kein Eyebrow/Text/CTA. */
#pcu-hero.pcu-hero-sm {
  min-height: 340px;
  align-items: center;
}
#pcu-hero.pcu-hero-sm .pcu-hero-inner { padding: 20px 24px; text-align: center; }
#pcu-hero.pcu-hero-sm h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.pcu-stripe {
  height: 8px;
  background: linear-gradient(90deg,
    var(--c-orange) 0 14.28%, var(--c-magenta) 14.28% 28.56%,
    var(--c-green) 28.56% 42.84%, var(--c-red) 42.84% 57.12%,
    var(--c-yellow) 57.12% 71.4%, var(--c-mint) 71.4% 85.68%,
    var(--c-cyan) 85.68% 100%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none !important;
  border: 2px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn a, a.btn { color: inherit; text-decoration: none !important; }
.btn-primary {
  background: var(--c-magenta);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(240, 19, 196, 0.6);
}
.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--c-magenta); color: var(--c-magenta); }

/* ---------- Layout ---------- */
#pcu-wrap { max-width: var(--maxw); margin: 0 auto; padding: 20px 20px 10px; }
.pcu-card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px clamp(20px, 4vw, 48px);
  margin-bottom: 40px;
}
#pcu-hero + #pcu-wrap .pcu-card { margin-top: 0; }

/* ---------- Tables & misc content ---------- */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.2em 0;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.wikitable th, .wikitable td {
  border: 1px solid var(--line);
  padding: 9px 12px;
  text-align: left;
}
.wikitable th { background: var(--paper-alt); }
.wikitable tr:nth-child(even) td { background: var(--paper-alt); }
blockquote {
  margin: 1.2em 0;
  padding: 4px 20px;
  border-left: 4px solid var(--c-yellow);
  background: var(--paper-alt);
  border-radius: 0 10px 10px 0;
}
hr { border: none; border-top: 1px solid var(--line); margin: 2em 0; }

/* Section chips used across content pages */
.pcu-chip {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  color: #fff;
  margin-bottom: 8px;
}
.pcu-chip-orange  { background: var(--c-orange); }
.pcu-chip-magenta { background: var(--c-magenta); }
.pcu-chip-green   { background: var(--c-green); color: var(--ink); }
.pcu-chip-red     { background: var(--c-red); }
.pcu-chip-yellow  { background: var(--c-yellow); color: var(--ink); }
.pcu-chip-mint    { background: var(--c-mint); }
.pcu-chip-cyan    { background: var(--c-cyan); }

.pcu-placeholder {
  border: 2px dashed var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  background: var(--paper-alt);
  color: var(--ink-soft);
  font-style: italic;
}

/* Info / notice boxes for the home page news feed */
.pcu-noticebox {
  border-radius: 14px;
  padding: 18px 20px;
  margin: 16px 0;
  background: var(--paper-alt);
  border-left: 5px solid var(--c-cyan);
}
.pcu-noticebox h3 { margin-top: 0; }

/* ---------- Startseite: Kachel-Grid ---------- */
.pcu-tilegrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0;
}
.pcu-tile {
  border-radius: 16px;
  padding: 18px;
  color: #fff;
  text-decoration: none;
  display: block;
  min-height: 90px;
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
}
.pcu-tile:hover { text-decoration: none; filter: brightness(1.05); }
.pcu-tile h3 { color: #fff; margin: 0 0 6px; }
.pcu-tile a { color: #fff; }
.pcu-tile p { color: rgba(255,255,255,0.9); margin: 0; font-size: 0.92rem; }
.pcu-tile.t1 { background: linear-gradient(135deg, var(--c-magenta), #ff5fce); }
.pcu-tile.t2 { background: linear-gradient(135deg, var(--c-orange), #ffb14d); }
.pcu-tile.t3 { background: linear-gradient(135deg, var(--c-cyan), #38e4ef); }

/* ---------- Kalender / Termine ---------- */
.eventlist { list-style: none; margin: 0; padding: 0; }
.eventmonth {
  font-weight: 800;
  font-family: var(--font-head);
  color: var(--c-magenta);
  margin: 26px 0 10px;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.eventmonth:first-child { margin-top: 0; }
.eventitem {
  display: flex;
  align-items: stretch;
  gap: 16px;
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
}
.eventitem:last-child { border-bottom: none; }
.eventdate {
  flex: 0 0 62px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background: var(--paper-alt);
  border-radius: 12px;
  padding: 8px 4px;
}
.eventday { display: block; font-size: 1.3rem; font-weight: 800; color: var(--ink); line-height: 1.1; margin-top: 2px; }
.eventmon { display: block; font-size: 0.72rem; text-transform: uppercase; color: var(--ink); margin-top: 2px; }
.eventbody { flex: 1; }
.eventwd { display: block; color: var(--ink); font-weight: 700; font-size: 0.7rem; text-transform: uppercase; line-height: 1; }
.eventtitle { font-weight: 700; }
.eventtime { color: var(--ink-soft); font-size: 0.9rem; }
.eventlocation { color: var(--ink-soft); font-size: 0.9rem; }
.eventlink { color: var(--c-magenta); font-size: 0.9rem; font-weight: 600; }
.calnotice {
  border-radius: 14px;
  padding: 18px 20px;
  background: var(--paper-alt);
  border-left: 5px solid var(--c-yellow);
}

/* ---------- Media / Galerie ---------- */
.pcu-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0;
}
.pcu-gallery-item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--paper);
}
.pcu-gallery-item img {
  width: 100%; height: 210px; object-fit: cover;
  transition: transform 0.25s ease;
  border-radius: 0;
  margin: 0;
}
.pcu-gallery-item:hover img { transform: scale(1.05); }
.pcu-gallery-cap { display: block; padding: 8px 12px; font-size: 0.85rem; color: var(--ink-soft); }
.pcu-gallery-item p { margin: 0; }

/* .pcu-gallery wird per JS (skin.js) progressiv zum Karussell erweitert;
   ohne JS bleibt es das normale 3-Spalten-Raster (Fallback). */
.pcu-gallery.pcu-carousel-active {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--ink);
}
.pcu-carousel-active .pcu-gallery-item {
  position: relative;
  flex: 0 0 100%;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  cursor: zoom-in;
}
.pcu-carousel-active .pcu-gallery-item img {
  height: 460px;
  transition: none;
}
.pcu-carousel-active .pcu-gallery-item:hover img { transform: none; }
.pcu-carousel-active .pcu-gallery-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 18px 14px;
  background: linear-gradient(180deg, rgba(33,30,46,0) 0%, rgba(33,30,46,0.75) 100%);
  color: #fff;
  font-weight: 600;
}
@media (max-width: 600px) {
  .pcu-carousel-active .pcu-gallery-item img { height: 280px; }
}

/* Lightbox: zeigt das angeklickte Karussell-Bild komplett (object-fit: contain
   statt cover), ohne Beschnitt. */
.pcu-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20,18,28,0.92);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px;
  cursor: zoom-out;
}
.pcu-lightbox.active { display: flex; }
.pcu-lightbox img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
}
.pcu-lightbox-cap {
  color: #fff;
  text-align: center;
  margin-top: 14px;
  font-weight: 600;
}
.pcu-lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.pcu-lightbox-close:hover { background: rgba(255,255,255,0.3); }
.pcu-lightbox-prev, .pcu-lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
}
.pcu-lightbox-prev { left: 24px; }
.pcu-lightbox-next { right: 24px; }

/* ---------- Bilder-Karussell (Media-Galerie, siehe skin.js) ---------- */
.pcu-carousel-track {
  display: flex;
  transition: transform 0.45s ease;
}
.pcu-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.15s ease;
}
.pcu-carousel-btn:hover { background: #fff; color: var(--c-magenta); }
.pcu-carousel-prev { left: 14px; }
.pcu-carousel-next { right: 14px; }
.pcu-carousel-dots {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.pcu-carousel-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
}
.pcu-carousel-dot.active { background: #fff; }

@media (max-width: 600px) {
  .pcu-carousel-btn { width: 36px; height: 36px; font-size: 1.2rem; }
}

/* ---------- Chorleitung / Bio-Layout ---------- */
/* Bild schwimmt rechts, Text fließt drumherum (kein verschachteltes Grid,
   da PmWikis >>div<<-Blöcke nicht zuverlässig ineinander verschachteln). */
.pcu-bio-photo {
  float: right;
  width: 260px;
  max-width: 42%;
  margin: 4px 0 20px 28px;
}
.pcu-bio-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}
.pcu-bio-caption { display: block; margin-top: 10px; font-size: 0.85rem; color: var(--ink-soft); text-align: center; }
.pcu-bio-clear { clear: both; }

/* Zweites Bild (Aktion/Dirigat), zentriert statt geflotet - lockert
   den langen Fließtext auf. */
.pcu-bio-action {
  width: 420px;
  max-width: 100%;
  margin: 8px auto 32px;
  text-align: center;
}
.pcu-bio-action img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

@media (max-width: 600px) {
  .pcu-bio-photo { float: none; width: 100%; max-width: 260px; margin: 0 auto 24px; }
}

/* ---------- Kontakt ---------- */
.pcu-contactgrid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: start;
}
.pcu-infobox {
  background: var(--paper-alt);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 20px;
}
.pcu-infobox h3 { margin-top: 0; }

/* ---------- Footer ---------- */
#pcu-footer { background: var(--ink); color: rgba(255,255,255,0.82); margin-top: 30px; }
.pcu-footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 44px 20px 20px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
}
.pcu-footer-logo { height: 40px; margin-bottom: 12px; filter: brightness(0) invert(1); opacity: 0.92; }
.pcu-footer-col a { color: rgba(255,255,255,0.82); }
.pcu-footer-col h3 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0; }
.pcu-footer-col ul { list-style: none; padding: 0; margin: 0; }
.pcu-footer-col li { margin-bottom: 8px; }
.pcu-social-footer a { background: rgba(255,255,255,0.1); color: #fff; }
.pcu-social-footer a:hover { background: var(--c-magenta); }
.pcu-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 20px 26px;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.pcu-admin a { color: rgba(255,255,255,0.4); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .pcu-tilegrid { grid-template-columns: 1fr; }
  .pcu-gallery { grid-template-columns: repeat(2, 1fr); }
  .pcu-contactgrid { grid-template-columns: 1fr; }
  .pcu-footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .pcu-headerbar { flex-wrap: wrap; padding: 6px 16px; gap: 0 12px; }
  .pcu-logo img { height: 38px; }
  .pcu-navtoggle-btn {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; cursor: pointer; order: 3;
    margin-left: auto;
  }
  .pcu-navtoggle-btn span { width: 100%; height: 2px; background: var(--ink); border-radius: 2px; }
  .pcu-nav {
    order: 4;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .pcu-navtoggle-input:checked ~ .pcu-nav { max-height: 480px; }
  .pcu-nav ul { flex-direction: column; padding: 10px 0; }
  .pcu-nav a { display: block; padding: 12px 8px; }
  .pcu-social { order: 2; }
  #pcu-hero { min-height: 45vh; }
  #pcu-hero.pcu-hero-sm { min-height: 200px; }
  .pcu-hero-inner { padding: 40px 18px 30px; }
  .pcu-card { padding: 26px 18px; }
  .pcu-gallery { grid-template-columns: 1fr 1fr; }
  .pcu-footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .pcu-gallery { grid-template-columns: 1fr; }
}
