/* ============================================================
   Veranstaltungskalender Castrop-Rauxel und Umgebung
   Gemeinsame Styles für alle Seiten
   Wappenfarben: Gold #c8a832 · Blau #1a6bb5 · Rot #b83232
   ============================================================ */

:root {
  --bg:       #0d1520;
  --surface:  #152030;
  --surface2: #1c2d40;
  --border:   rgba(180,150,60,.15);
  --border-h: rgba(200,170,80,.35);
  --text:     #f2ead8;
  --muted:    #8899aa;
  --accent:   #c8a832;
  --accent2:  #1a6bb5;
  --red:      #b83232;
  --castrop:  #c8a832;
  --herne:    #4a9eff;
  --datteln:  #e07830;
  --waltrop:  #8ab84a;
  --dortmund: #b83232;
  --multi:    #4ecdc4;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(200,168,50,.05) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 90%, rgba(26,107,181,.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── HEADER ─────────────────────────────────────────────── */
header {
  position: relative;
  background: linear-gradient(160deg, #0d1a2e 0%, #111e30 60%, #0d1520 100%);
  border-bottom: 2px solid var(--accent);
  overflow: hidden;
  padding: 0;
}
header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), var(--accent), transparent);
}
header::after {
  content: '✦';
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 200px;
  color: rgba(200,168,50,.03);
  line-height: 1;
  pointer-events: none;
  font-family: serif;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 40px 40px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before, .eyebrow::after {
  content: '';
  flex: 1;
  max-width: 36px;
  height: 1px;
}
.eyebrow::before { background: linear-gradient(90deg,  transparent, var(--accent)); }
.eyebrow::after  { background: linear-gradient(270deg, transparent, var(--accent)); }

h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  line-height: 1.0;
  margin-bottom: 6px;
  color: var(--text);
}
.h1-top  { font-size: clamp(16px,2.5vw,26px); font-weight: 700; letter-spacing: .03em; color: var(--muted); display: block; margin-bottom: 4px; }
.h1-city { font-size: 28px; color: var(--accent); display: block; line-height: 1.1; }
@media (min-width: 600px) { .h1-city { font-size: 48px; } }
.h1-sub  { display: block; font-size: clamp(13px,1.8vw,20px); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent2); margin-top: 8px; font-family: 'Source Sans 3', sans-serif; }

.header-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.meta-stat { display: flex; flex-direction: column; }
.meta-stat strong { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; color: var(--accent); line-height: 1; }
.meta-stat span   { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.meta-div  { width: 1px; height: 32px; background: var(--border-h); }

/* ── NAV LINK ────────────────────────────────────────────── */
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .08em;
  transition: color .15s;
  margin-bottom: 32px;
}
.nav-back:hover { color: var(--accent); }
.nav-back svg   { flex-shrink: 0; }

/* ── STATUS BAR ──────────────────────────────────────────── */
.sb {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 40px;
  border-bottom: 1px solid var(--border);
  background: rgba(13,21,32,.96);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 200;
  flex-wrap: wrap;
}
.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot.ok         { background: var(--accent); box-shadow: 0 0 8px rgba(200,168,50,.6); }
.dot.loading,
.dot.refreshing { background: var(--accent2); animation: pulse 1s infinite; }
.dot.error      { background: var(--red); }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.25} }
.st  { font-size: 12px; color: var(--muted); flex: 1; min-width: 0; }
.st strong { color: var(--text); }
/* ── MAIN WRAPPER ────────────────────────────────────────── */
.pw {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 40px;
  position: relative;
  z-index: 1;
}

/* ── CONTROLS ────────────────────────────────────────────── */
.controls { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.sw { position: relative; }
.sw svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
#search {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 11px 16px 11px 44px;
  color: var(--text);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
}
#search:focus       { border-color: var(--accent); }
#search::placeholder { color: var(--muted); }

.fr  { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.fl  { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }

.pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 4px 12px;
  font-size: 12px;
  font-family: 'Source Sans 3', sans-serif;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.pill:hover                    { border-color: var(--border-h); color: var(--text); }
.pill.active                   { background: var(--accent);   border-color: var(--accent);   color: #0d1520; font-weight: 600; }
.pill[data-plz="castrop"].active { background: var(--castrop); border-color: var(--castrop); color: #0d1520; }
.pill[data-plz="herne"].active   { background: var(--herne);   border-color: var(--herne);   color: #fff; }
.pill[data-plz="datteln"].active { background: var(--datteln); border-color: var(--datteln); color: #fff; }
.pill[data-plz="waltrop"].active { background: var(--waltrop); border-color: var(--waltrop); color: #0d1520; }
.pill[data-plz="dortmund"].active{ background: var(--dortmund);border-color: var(--dortmund);color: #fff; }

/* ── MONTH GROUP ─────────────────────────────────────────── */
.mb { margin-bottom: 44px; animation: fi .3s ease; }
@keyframes fi { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:none} }
.mh {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.mh::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); align-self: center; }
.mc { font-family: 'Source Sans 3', sans-serif; font-size: 11px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ── EVENT CARD ──────────────────────────────────────────── */
.ec {
  display: grid;
  grid-template-columns: 4px 1fr;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  margin-bottom: 6px;
  overflow: hidden;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.ec:hover { border-color: var(--border-h); transform: translateX(3px); box-shadow: 0 2px 20px rgba(200,168,50,.05); }
.es { width: 4px; }
.es.castrop  { background: var(--castrop); }
.es.herne    { background: var(--herne); }
.es.datteln  { background: var(--datteln); }
.es.waltrop  { background: var(--waltrop); }
.es.dortmund { background: var(--dortmund); }
.eb  { padding: 12px 16px; display: flex; flex-direction: column; gap: 5px; }
.eh  { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; justify-content: space-between; }
.eds { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.br  { display: flex; gap: 5px; flex-wrap: wrap; }
/* Vorschaubild */
.ei  {
  width: 100px;
  height: auto;
  border-radius: 3px;
  object-fit: cover;
  align-self: flex-start;
  opacity: .9;
  transition: opacity .15s;
  flex-shrink: 0;
}
.badge { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 2px; white-space: nowrap; }
.badge.castrop  { background: rgba(200,168,50,.12); color: var(--castrop); }
.badge.herne    { background: rgba(74,158,255,.12);  color: var(--herne); }
.badge.datteln  { background: rgba(224,120,48,.12);  color: var(--datteln); }
.badge.waltrop  { background: rgba(138,184,74,.12);  color: var(--waltrop); }
.badge.dortmund { background: rgba(184,50,50,.12);   color: var(--dortmund); }
.badge.multi    { background: rgba(78,205,196,.12);  color: var(--multi); }
.et { font-size: 15px; font-weight: 400; color: var(--text); line-height: 1.35; }
.el { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.lr { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.lb {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 3px;
  border: 1px solid var(--border-h);
  color: var(--muted);
  text-decoration: none;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.lb:hover        { color: var(--text); border-color: rgba(200,168,50,.5); background: rgba(200,168,50,.04); }
.lb.eventim      { background: rgba(26,107,181,.2); border-color: rgba(74,158,255,.4); color: #7ab8ff; font-weight: 600; }
.lb.eventim:hover{ background: rgba(74,158,255,.25); color: #fff; }

/* ── SKELETON ────────────────────────────────────────────── */
.sk { background: var(--surface); border-radius: 4px; margin-bottom: 6px; padding: 18px 16px; animation: sh 1.6s infinite; }
@keyframes sh { 0%,100%{opacity:.4} 50%{opacity:.8} }
.sl { height: 11px; border-radius: 3px; background: var(--surface2); margin-bottom: 8px; }
.sl.w60 { width: 60%; }
.sl.w40 { width: 40%; }
.sl.w80 { width: 80%; }

/* ── EMPTY STATE ─────────────────────────────────────────── */
.empty { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty .big { font-family: 'Playfair Display', serif; font-size: 72px; color: var(--surface2); margin-bottom: 12px; }

#ri { font-size: 12px; color: var(--muted); margin-bottom: 18px; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 40px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}
footer a { color: var(--muted); text-decoration: none; transition: color .15s; }
footer a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ── CONTENT PAGES (Impressum, Datenschutz) ──────────────── */
.content-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 40px 80px;
  position: relative;
  z-index: 1;
}
.content-page h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.content-page h2:first-child { margin-top: 0; }
.content-page h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin: 28px 0 10px;
}
.content-page p  { color: var(--muted); margin-bottom: 14px; line-height: 1.7; }
.content-page a  { color: var(--accent2); text-decoration: none; }
.content-page a:hover { text-decoration: underline; }
.content-page ul { color: var(--muted); padding-left: 20px; margin-bottom: 14px; line-height: 1.8; }
.content-page address { font-style: normal; color: var(--muted); line-height: 2; }
.info-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 16px 20px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ── CONTACT FORM ────────────────────────────────────────── */
.cform { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.cform label { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px; }
.cform input,
.cform textarea,
.cform select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 11px 14px;
  color: var(--text);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
}
.cform input:focus,
.cform textarea:focus { border-color: var(--accent); }
.cform textarea { resize: vertical; min-height: 120px; }
.cform input::placeholder,
.cform textarea::placeholder { color: var(--muted); }
.cform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cbtn {
  padding: 11px 28px;
  background: var(--accent);
  border: none;
  border-radius: 4px;
  color: #0d1520;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  cursor: pointer;
  transition: all .15s;
  align-self: flex-start;
}
.cbtn:hover { background: #d4b43a; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(200,168,50,.25); }
.form-success {
  display: none;
  background: var(--surface);
  border: 1px solid rgba(138,184,74,.3);
  border-left: 3px solid var(--waltrop);
  border-radius: 4px;
  padding: 16px 20px;
  color: var(--waltrop);
  font-size: 14px;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .header-inner, .pw, footer, .content-page { padding-left: 20px; padding-right: 20px; }
  .sb { padding-left: 20px; padding-right: 20px; }
  .h1-city { font-size: clamp(32px,9vw,56px); }
  .mh { font-size: 24px; }
  .cform-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; align-items: flex-start; gap: 16px; }
}
