@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');
/* NOTE: "Montserrat" is a free stand-in for Gotham (a paid font).
   Once you have Gotham's font files, see the @font-face block
   below to swap it in — just uncomment and point to your files. */

/*
@font-face {
  font-family: 'Gotham';
  src: url('fonts/Gotham-Bold.woff2') format('woff2');
  font-weight: 700;
}
*/

:root {
  --bg: #DCF4A2;
  --surface: #FFFFFF;
  --text: #0055A4;

  --accent: #43B262;
  --orange: #FF8C42;
  --purple: #8B6FD6;
  --teal: #2A9D8F;
  --pink: #E85D9C;
  --grey: #6E7B85;

  --display-font: 'Montserrat', sans-serif; /* swap to 'Gotham' once you have the files */

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --shadow: 0 4px 16px rgba(0, 85, 164, 0.10);
  --shadow-hover: 0 8px 24px rgba(0, 85, 164, 0.16);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 32px;
  max-width: 960px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.logo-mark {
  height: 170px;
  width: auto;
  display: block;
}

.logo-img {
  height: 170px;
  width: auto;
  display: block;
}

.btn {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-block;
}

.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }

.btn-primary {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}
.btn-primary:hover {
  background: transparent;
  color: var(--text);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--text);
}
.btn-outline:hover {
  background: var(--text);
  color: var(--bg);
}

/* ---------- Hero ---------- */

.hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 32px 8px;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 10px;
  line-height: 1.3;
}

.hero p {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}

.intro-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  max-width: 520px;
  margin: 0;
}

/* ---------- Filters ---------- */

.filters {
  max-width: 960px;
  margin: 24px auto 8px;
  padding: 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.month-filters {
  max-width: 960px;
  margin: 28px auto 8px;
  padding: 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.month-chip {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  text-decoration: underline;
  color: var(--text);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.month-chip:hover { font-style: italic; }

.month-chip.active { color: var(--accent); }

.chip {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--text);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip:hover { background: var(--text); color: var(--bg); }
.chip.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

/* ---------- Event list ---------- */

.event-list {
  max-width: 960px;
  margin: 24px auto 80px;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.event-status {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  color: var(--text);
  text-transform: lowercase;
}

.event-card {
  position: relative;
  background: var(--bg);
  border: 2px solid var(--text);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease;
}

.event-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.event-title-group {
  flex: 1;
  min-width: 0;
  padding-right: 90px;
}

.event-card:hover {
  transform: translateY(-2px);
}

.date-badge {
  flex-shrink: 0;
  width: 70px;
  height: 102px;
  background-image: url('date-badge-shape.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  text-align: center;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.date-badge .day {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 0.95;
  color: var(--bg);
}

.date-badge .dash {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 0.8;
  color: var(--bg);
}

.date-badge .month {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 0.95;
  color: var(--bg);
}

.event-body { flex: 1; min-width: 0; }

.event-cats {
  font-family: 'Montserrat', sans-serif;
  font-style: italic;
  text-transform: lowercase;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 2px;
}

.event-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  text-transform: uppercase;
  margin: 0;
  color: var(--text);
}

.event-meta {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  color: var(--text);
  margin-top: 12px;
  margin-bottom: 10px;
}

.event-desc {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 14px;
  white-space: pre-line;
}

.event-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  text-decoration: underline;
}

.event-link:hover { opacity: 0.75; }

.desc-toggle {
  display: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 10px;
  cursor: pointer;
}

.empty-state {
  max-width: 960px;
  margin: 60px auto;
  padding: 0 32px;
  text-align: center;
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
}

.empty-state a {
  font-weight: 700;
  color: var(--text);
  text-decoration: underline;
}

.empty-state .emoji { font-size: 40px; display: block; margin-bottom: 12px; }

/* ---------- Submit form ---------- */

.form-wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 24px 32px 80px;
}

.form-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px;
}

label {
  display: block;
  font-weight: 700;
  font-size: 16px;
  margin: 20px 0 6px;
}

label:first-child { margin-top: 0; }

.hint {
  font-weight: 500;
  color: var(--text);
}

input, select, textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--text);
  background: var(--bg);
  color: var(--text);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}

textarea { resize: vertical; min-height: 90px; }

input[type="date"],
input[type="time"] {
  display: block;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
}

#event_date,
#start_time,
#end_time {
  width: 100%;
  max-width: 100%;
}

.row-2 {
  display: flex;
  gap: 16px;
}
.row-2 label { margin-top: 0; }
.row-2 > div { flex: 1; min-width: 0; }

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.checkbox-row input { width: auto; }
.checkbox-row label { margin: 0; font-weight: 700; }

.category-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  margin-bottom: 20px;
}

.category-break {
  flex-basis: 100%;
  height: 0;
}

.category-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}

.category-option input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.category-option span {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid var(--text);
  background: var(--bg);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  color: var(--text);
  transition: all 0.15s ease;
}

.category-option input:checked + span {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
  font-weight: 700;
}

.category-option input:disabled:not(:checked) + span {
  opacity: 0.35;
  cursor: not-allowed;
}

.char-count {
  text-align: right;
  font-weight: 500;
  color: var(--text);
  margin-top: 4px;
}

.submit-row { margin-top: 28px; }

.form-legend {
  margin-top: 16px;
  font-weight: 500;
  color: var(--text);
}

.form-message {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  display: none;
}
.form-message.success {
  display: block;
  background: #E4F4E4;
  color: #2E6B2E;
}
.form-message.error {
  display: block;
  background: #FCE4E4;
  color: #A32F2F;
}

.site-footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 32px 60px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
}

.site-footer p {
  margin: 0;
}

.site-footer p.copyright {
  font-style: normal;
  margin-top: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
  margin-top: 16px;
}

.footer-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  font-style: normal;
  color: var(--text);
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.footer-link:hover { opacity: 0.75; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 85, 164, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

.modal-overlay[hidden] { display: none; }

.modal-box {
  position: relative;
  background: var(--bg);
  border: 2px solid var(--text);
  border-radius: var(--radius-lg);
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px 32px 32px;
}

.modal-box p {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 16px;
}

.modal-box p:last-child { margin-bottom: 0; }

.modal-box p.modal-en {
  font-style: italic;
}

.modal-divider-logo {
  display: block;
  height: 40px;
  width: auto;
  margin: 8px auto 24px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--text);
  background: transparent;
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--text);
  color: var(--bg);
}

/* ---------- Attribute filters (Kostenlos, Barrierfrei) ---------- */
/* Same colors/behavior as .chip, but squared corners instead of a pill,
   to visually distinguish "attributes" from "categories" in the filter row. */

.chip-attribute {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--text);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-attribute:hover { background: var(--text); color: var(--bg); }
.chip-attribute.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

/* Sprout divider between category chips and attribute chips */
.filter-divider {
  display: inline-flex;
  align-items: center;
  height: 28px;
  width: auto;
  margin: 0 4px;
  opacity: 0.85;
}
.filter-divider img {
  height: 100%;
  width: auto;
  display: block;
}

@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    position: static;
  }
  .header-center {
    position: static;
    transform: none;
    order: 2;
  }
  .header-left { order: 1; }
  .header-right {
    order: 3;
    align-items: center;
    width: 100%;
  }
  .header-right .btn { width: 100%; text-align: center; }
  .logo-img { height: 80px; }
  .logo-mark { height: 80px; }

  .event-title-group { padding-right: 0; }
  .event-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .event-meta-sep { display: none; }
  .event-location { display: block; }
  .event-status {
    position: static;
    align-items: flex-start;
    margin-top: 10px;
  }
  .row-2 { flex-direction: column; gap: 0; }

  .event-details { display: none; }
  .event-details.open { display: block; }
  .desc-toggle { display: inline-block; }

  .modal-box { padding: 32px 20px 24px; }

  .form-wrap { padding: 16px 16px 60px; }
  .form-card { padding: 20px; }
  .category-picker { gap: 4px; }
  .month-chip { font-size: 18px; }
  .category-option span { padding: 5px 11px; font-size: 15px; }
  input, select, textarea { font-size: 15px; padding: 10px 12px; }
}
