/* Staging theme — generic, clean, neutral. Real client themes are
   designed at onboarding (stage 7); this file exists to prove the
   public-rendering pipeline end-to-end. */

*, *::before, *::after { box-sizing: border-box; }
:root {
  --primary: #1a1f29;
  --accent:  #16a34a;
  --fg:      #1a1f29;
  --fg-muted: #6b7280;
  --bg:      #ffffff;
  --bg-soft: #f7f8fa;
  --line:    #e5e7eb;
  --radius:  6px;
  --max-w:   980px;
}

html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, sans-serif;
  color: var(--fg);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
}
a { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }

.preview-banner {
  background: #fef3c7; color: #78350f;
  padding: 10px 18px; text-align: center;
  border-bottom: 1px solid #facc15; font-size: 14px;
}
.preview-banner strong { margin-right: 10px; }

.site-header {
  background: var(--primary); color: #fff;
  padding: 26px 24px;
}
.site-header-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.site-title { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: 0.2px; }
.site-nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-nav a { color: #fff; opacity: 0.85; text-decoration: none; font-size: 14px; }
.site-nav a:hover { opacity: 1; }

main { max-width: var(--max-w); margin: 0 auto; padding: 32px 24px 64px; }

.empty { color: var(--fg-muted); text-align: center; padding: 48px 0; }

.content-section { margin-bottom: 56px; }
.section-title {
  font-size: 24px; font-weight: 600;
  margin: 0 0 20px; padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}
.entries { display: grid; gap: 24px; }
.entries-events,
.entries-team { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.entry {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  position: relative;
}
.entry.is-featured { border-color: var(--accent); border-left-width: 4px; }
.entry.is-draft   { outline: 2px dashed #d97706; outline-offset: -2px; }
.draft-marker {
  position: absolute; top: 8px; right: 8px;
  background: #fef3c7; color: #78350f;
  padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
}

.field { margin-bottom: 12px; }
.field:last-child { margin-bottom: 0; }
.field p { margin: 0; }

.field-text p { font-size: 18px; font-weight: 600; }
.field-longtext { color: var(--fg); }
.field-longtext p { margin: 0 0 0.7em; }
.field-longtext p:last-child { margin-bottom: 0; }
.field-longtext a { color: var(--accent); }

.field-date_range .date-range,
.field-date time,
.field-price .price,
.field-number .number {
  display: inline-flex; align-items: baseline; gap: 6px;
  background: #fff; border: 1px solid var(--line);
  padding: 4px 12px; border-radius: 999px;
  font-size: 13px; color: var(--fg-muted);
}
.field-label { color: var(--fg-muted); font-weight: 600; }
.field-value { color: var(--fg); font-weight: 500; }

.field-url a, .field-email a, .field-phone a {
  color: var(--accent); text-decoration: underline;
}
.file-link {
  display: inline-block;
  padding: 6px 12px; background: var(--accent); color: #fff;
  border-radius: var(--radius); text-decoration: none; font-weight: 600; font-size: 14px;
}
.file-link:hover { background: var(--primary); }

.image-single {
  border-radius: var(--radius);
  max-width: 220px;
}

.gallery {
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.gallery-item { margin: 0; position: relative; }
.gallery-item img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; }
.gallery-sticker {
  position: absolute; bottom: 6px; left: 6px;
  background: rgba(15,23,42,0.8); color: #fff;
  padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
}

.sticker, .tag {
  display: inline-block;
  background: #ede9fe; color: #5b21b6;
  padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.event-title { font-size: 17px; font-weight: 600; }
.event-when, .event-where { color: var(--fg-muted); font-size: 14px; }
.event-desc { margin-top: 8px; }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  margin-top: 64px;
}
.site-footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 18px 24px;
  color: var(--fg-muted); font-size: 13px;
  display: flex; gap: 18px; flex-wrap: wrap;
}
.site-footer-inner a { color: var(--fg-muted); }

/* legal / contact / events pages (modules) */
.legal-main, .contact-main, .events-main {
  max-width: var(--max-w); margin: 0 auto; padding: 32px 24px 64px;
}
.legal { margin-bottom: 32px; }
.legal h1 { font-size: 26px; margin: 0 0 24px; }
.legal-block { margin-bottom: 22px; }
.legal-block h2 { font-size: 16px; margin: 0 0 6px; }
.legal-block p { margin: 0 0 8px; line-height: 1.6; }
.legal-block a { color: var(--accent); text-decoration: underline; }
.impressum-address { font-style: normal; margin: 8px 0 12px; line-height: 1.55; }
.impressum-contact a { color: var(--accent); }

.contact-form { display: grid; gap: 14px; max-width: 480px; margin-top: 16px; }
.contact-form .form-row { display: flex; flex-direction: column; gap: 4px; }
.contact-form label { font-weight: 600; font-size: 13px; }
.contact-form input, .contact-form textarea {
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; font: inherit; background: #fff;
}
.contact-form .btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 18px; background: var(--accent); color: #fff;
  border: 0; border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 14px;
  width: max-content;
}
.contact-form .btn:hover { background: var(--primary); }
/* Honeypot is off-screen — NOT display:none, which simple bots skip. */
.contact-form .honeypot {
  position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden;
}
.contact-flash {
  background: #ecfccb; color: #365314;
  padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px;
  border-left: 4px solid var(--accent);
}

.event-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 16px; }
.event-item { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }

@media (max-width: 600px) {
  .site-header-inner { flex-direction: column; align-items: flex-start; }
  .section-title { font-size: 20px; }
  .entry { padding: 16px; }
}
