/* =========================================================
   tivento.ch – Design D2 (Navy & Türkis)
   ========================================================= */

/* ---------- Farben & Grundwerte ---------- */
:root {
  --accent: #3ED6C0;      /* Türkis – Hauptakzent */
  --accent2: #A99BFF;     /* Lavendel – Zweitakzent */
  --bg: #060B38;          /* Seitenhintergrund */
  --surface: #121A52;     /* Karten */
  --surface-2: #1A2366;   /* Bildflächen, Kreise */
  --btn: #141C55;         /* Icon-Buttons im Header */
  --input: #0B1245;       /* Suchfelder */
  --border: #3A4590;      /* Umrandungen */
  --line: #1F2870;        /* Trennlinien */
  --text: #FFFFFF;
  --text-soft: #D9DCF5;
  --muted: #B8BEE6;
  --light: #E9EBFA;       /* helle Buttons */

  --radius-sm: 16px;
  --radius: 24px;
  --radius-lg: 28px;
  --container: 1360px;
  --font: "Poppins", system-ui, sans-serif;
}

/* ---------- Basis ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.4;
}
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--text-soft); }
h1, h2, h3 { margin: 0; }
button, input { font-family: inherit; }
img { max-width: 100%; display: block; }
svg { flex-shrink: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.section { padding-top: 56px; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.section-title {
  font-weight: 800;
  font-size: clamp(28px, 3vw, 40px);
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.placeholder-label { font-size: 13px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  border-radius: 18px;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn-accent { background: var(--accent); color: var(--bg); }
.btn-accent:hover { color: var(--bg); }
.btn-light { background: var(--light); color: var(--bg); }
.btn-light:hover { color: var(--bg); }
.btn-dark { background: var(--bg); color: var(--text); }
.btn-outline { border: 2px solid var(--border); background: transparent; color: var(--text); font-weight: 600; }
.btn-lg { font-size: 19px; padding: 20px 32px; }
.btn-md { font-size: 18px; padding: 18px 28px; border-radius: var(--radius-sm); }

/* ---------- Header ---------- */
.header {
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo { font-weight: 800; font-size: 34px; letter-spacing: -1px; }
.logo span { color: var(--accent); }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.main-nav a { font-weight: 500; font-size: 17px; padding: 14px 16px; }
.header-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.icon-btn {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: var(--btn);
  display: flex; align-items: center; justify-content: center;
}
.login-btn {
  display: flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 22px;
  border-radius: var(--radius-sm);
  background: var(--btn);
  font-weight: 600; font-size: 17px;
}

/* ---------- Kategorien (Story-Kreise) ---------- */
.categories { display: flex; flex-wrap: wrap; gap: 20px; padding-top: 8px; }
.category {
  width: 112px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  --ring: var(--accent);
}
.category:nth-child(even) { --ring: var(--accent2); }
.category-ring {
  width: 96px; height: 96px;
  border-radius: 999px;
  border: 3px solid var(--ring);
  padding: 4px;
  display: flex;
  transition: transform .15s ease;
}
.category:hover .category-ring { transform: scale(1.05); }
.category-icon {
  flex: 1;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ring);
  display: flex; align-items: center; justify-content: center;
}
.category-label { font-weight: 600; font-size: 15px; text-align: center; line-height: 1.25; }

/* ---------- Suche ---------- */
.search {
  margin-top: 36px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.search-field {
  flex: 1 1 200px;
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 22px;
  border-radius: 20px;
  background: var(--input);
}
.search-field--wide { flex: 2 1 320px; }
.search-field span {
  font-size: 13px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .6px;
}
.search-field input {
  background: transparent; border: 0; outline: none;
  color: var(--text); font-size: 21px; padding: 0;
}
.search-field input::placeholder { color: var(--muted); opacity: 1; }
.search-field:focus-within { outline: 2px solid var(--accent); }
.search-submit { flex: 1 1 200px; min-height: 80px; font-size: 20px; border-radius: 20px; }

/* ---------- Highlight ---------- */
.highlight { padding-top: 28px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero-card {
  flex: 2 1 640px; min-width: 0; min-height: 520px;
  border-radius: var(--radius-lg);
  background: var(--surface-2) center / cover no-repeat;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
  padding: clamp(28px, 4vw, 48px);
  position: relative;
}
.hero-card .placeholder-label { position: absolute; top: 24px; right: 28px; font-size: 14px; }
.badge {
  align-self: flex-start;
  background: var(--accent); color: var(--bg);
  font-weight: 700; font-size: 14px;
  padding: 8px 16px; border-radius: 999px;
}
.hero-title { font-weight: 800; font-size: clamp(36px, 4.6vw, 64px); line-height: 1.05; letter-spacing: -1px; }
.hero-meta { font-size: 19px; color: var(--text-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.side-list { flex: 1 1 320px; display: flex; flex-direction: column; gap: 16px; }
.side-item {
  flex: 1;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 22px;
  min-height: 120px;
  display: flex; align-items: center; gap: 16px;
  --tone: var(--accent);
}
.side-item.tone-2 { --tone: var(--accent2); }
.date-box {
  flex: 0 0 72px; height: 72px;
  border-radius: 18px;
  background: var(--surface-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1;
}
.date-box strong { font-weight: 800; font-size: 24px; }
.date-box span { font-size: 12px; font-weight: 600; color: var(--tone); }
.side-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.side-cat { font-size: 13px; font-weight: 600; color: var(--tone); }
.side-title { font-weight: 700; font-size: 19px; }
.side-place { font-size: 14px; color: var(--muted); }

/* ---------- Filter ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-weight: 600; font-size: 16px;
  height: 48px; padding: 0 22px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: transparent; color: var(--text);
  cursor: pointer;
}
.pill:hover { border-color: var(--light); }
.pill.is-active { background: var(--light); border-color: var(--light); color: var(--bg); }

/* ---------- Event-Karten ---------- */
.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.event-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  --tone: var(--accent);
}
.event-card:nth-child(even) { --tone: var(--accent2); }
.event-card[hidden] { display: none; }
.event-media {
  aspect-ratio: 16 / 10;
  background: var(--surface-2) center / cover no-repeat;
  padding: 14px;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.event-tag {
  background: var(--tone); color: var(--bg);
  font-weight: 700; font-size: 13px;
  padding: 6px 12px; border-radius: 999px;
}
.event-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.event-date { font-size: 15px; font-weight: 600; color: var(--tone); }
.event-title { font-weight: 700; font-size: 21px; }
.event-place { font-size: 15px; color: var(--muted); }
.event-body .btn { margin-top: auto; height: 56px; font-size: 17px; border-radius: var(--radius-sm); }
.event-body .event-place { margin-bottom: 14px; }

/* ---------- Regionen ---------- */
.region-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.region {
  background: var(--surface);
  border-radius: 18px;
  min-height: 76px; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; font-size: 18px;
}
.region:hover { background: var(--surface-2); color: var(--text); }

/* ---------- Promo ---------- */
.promos { padding-top: 56px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 16px; }
.promo {
  flex: 1 1 420px;
  border-radius: var(--radius-lg);
  padding: 40px;
  min-height: 220px;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface);
}
.promo--gift { background: var(--accent2); color: var(--bg); }
.promo--gift:hover { color: var(--bg); }
.promo-title { font-weight: 800; font-size: 32px; line-height: 1.1; }
.promo-text { font-size: 18px; }
.promo:not(.promo--gift) .promo-text { color: var(--muted); }
.promo .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); }
.footer-inner {
  padding-top: 44px; padding-bottom: 44px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px;
  font-size: 16px;
}
.footer-logo { font-weight: 800; font-size: 26px; }
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: var(--text-soft); }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .categories { gap: 12px; justify-content: center; }
  .category { width: 96px; }
  .category-ring { width: 84px; height: 84px; }
  .hero-card { min-height: 420px; }
  .promo { padding: 28px; }
}
