/* ==========================================================================
   WALLIS TODAY — Stylesheet
   Brand: red pin/star mark on white, dark navy wordmark. Clean modern
   web-app look — light surfaces, one confident red accent, generous
   spacing, bold Helvetica/Arial headlines. No marketing chrome: the
   platform itself (event feed + bottom nav) is the whole UI.
   ========================================================================== */

:root{
  /* --- color tokens (derived from the logo files) --- */
  --red:           #F11E22;
  --red-dark:      #C8141A;
  --red-bg:        rgba(241, 30, 34, 0.08);
  --red-bg-strong: rgba(241, 30, 34, 0.14);

  --text:          #0F2033; /* dark navy, sampled from the wordmark */
  --text-muted:    #64748B;
  --text-faint:    #94A3B8;

  --bg:            #F8FAFC;
  --bg-card:       #FFFFFF;
  --bg-hover:      #F1F4F8;
  --border:        #E5E7EB;
  --border-strong: #D6DBE3;

  --radius-s:  8px;
  --radius-m:  14px;
  --radius-l:  20px;

  --shadow-card: 0 1px 2px rgba(15, 32, 51, 0.04);
  --shadow-hover: 0 12px 24px -12px rgba(15, 32, 51, 0.16);

  --font: Helvetica, Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --nav-h: 72px;
}

*{ box-sizing: border-box; }
[hidden]{ display: none !important; }
html,body{ margin:0; padding:0; }

body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--nav-h) + 16px);
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display:block; }
button{ font-family: inherit; cursor: pointer; }
ul{ margin:0; padding:0; }

::selection{ background: var(--red-bg-strong); color: var(--text); }

:focus-visible{
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden{
  position: absolute; width:1px; height:1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ---------------------------------------------------------------------- */
/* Layout shell                                                           */
/* ---------------------------------------------------------------------- */

.wrap{
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------------------------------------------------------------- */
/* Header — logo only, no navigation                                     */
/* ---------------------------------------------------------------------- */

.site-header{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248,250,252,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap{
  display: flex;
  align-items: center;
  height: 56px;
}

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

/* ---------------------------------------------------------------------- */
/* App toolbar — view status + filters (sits right under the header)     */
/* ---------------------------------------------------------------------- */

.app-toolbar{
  padding-top: 18px;
}

.view-status{
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.view-status .dot{
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  flex: 0 0 auto;
}
.view-status strong{ color: var(--text); }

.filter-bar{
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.filter-bar select,
.filter-bar .search-field{
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-s);
  font-family: inherit;
  font-size: 13.5px;
  padding: 10px 12px;
}
.filter-bar select{ flex: 0 0 auto; appearance: none; font-weight: 500; }
.filter-bar select:disabled{ opacity: 0.5; cursor: not-allowed; }
.filter-bar .search-field{
  flex: 1 1 160px;
  display:flex; align-items:center; gap:8px;
  min-width: 0;
}
.filter-bar .search-field svg{ flex: 0 0 auto; color: var(--text-faint); }
.filter-bar .search-field input{
  border: none; background: none; color: var(--text);
  font-family: inherit; font-size: 13.5px; width: 100%; min-width: 0;
}
.filter-bar .search-field input:focus{ outline: none; }
.filter-bar .search-field input::placeholder{ color: var(--text-faint); }
.filter-bar select:focus,
.filter-bar .search-field:focus-within{ border-color: var(--red); }

/* ---------------------------------------------------------------------- */
/* Day groups & event cards                                              */
/* ---------------------------------------------------------------------- */

.day-group{ margin-bottom: 26px; }
.day-group-heading{
  display:flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.day-group-heading .dg-day{
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.01em;
}
.day-group-heading .dg-date{
  font-size: 13px;
  color: var(--text-faint);
  font-weight: 500;
}

.event-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.event-card{
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .45s ease, transform .45s ease, box-shadow .15s ease, border-color .15s ease;
}
.event-card.is-visible{ opacity: 1; transform: translateY(0); }
.event-card:hover{
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
}

.ec-media{
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-card);
  overflow: hidden;
}
/* Flyer/Eventbilder vollständig zeigen (nicht zuschneiden): "anpassen" statt
   "füllen". Freie Flächen liegen auf weissem Karten-Hintergrund (--bg-card). */
.ec-media img{ width:100%; height:100%; object-fit: contain; object-position: center; }

/* Placeholder shown when an event has no flyer image — brand mark on a
   soft red-tinted field instead of an empty grey box. */
.ec-media.no-image{
  background: var(--red-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ec-media.no-image img.ec-placeholder-icon{
  width: 56px;
  height: 56px;
  opacity: 0.9;
}

.ec-media .ec-time{
  position: absolute;
  left: 10px; bottom: 10px;
  background: var(--bg-card);
  color: var(--red);
  font-weight: 700;
  font-size: 13px;
  padding: 5px 10px;
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-card);
  font-variant-numeric: tabular-nums;
}
.ec-media .ec-cat{
  position: absolute;
  right: 10px; top: 10px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  padding: 5px 9px;
  border-radius: var(--radius-s);
  background: rgba(255,255,255,0.92);
  color: var(--text-muted);
  border: 1px solid var(--border);
  backdrop-filter: blur(4px);
}

.ec-body{
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.ec-time-standalone{
  font-weight: 700;
  color: var(--red);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.ec-title{
  font-weight: 800;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0.002em;
  margin: 0;
}
.ec-meta{
  display:flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 13px;
  color: var(--text-muted);
}
.ec-meta-item{ display:flex; align-items:center; gap:5px; }
.ec-meta-item svg{ flex:0 0 auto; color: var(--text-faint); }

.ec-desc{
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 2px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ec-footer{
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
}
.ec-organizer{
  font-size: 12px;
  color: var(--text-faint);
  font-weight: 500;
}
.ec-link{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red-bg);
  border: 1px solid transparent;
  color: var(--red-dark);
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: var(--radius-s);
  transition: background .15s ease, color .15s ease;
}
.ec-link:hover{ background: var(--red); color: #fff; }

/* Standort als klickbarer Google-Maps-Link */
.ec-location{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px dotted var(--border-strong);
  transition: color .15s ease, border-color .15s ease;
}
.ec-location svg{ color: var(--text-faint); flex: 0 0 auto; }
.ec-location:hover{ color: var(--red); border-color: var(--red); }

/* Tageshighlight-Badge auf der Eventkarte */
.ec-highlight-badge{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 9px;
  border-radius: 999px;
}
.ec-highlight-badge svg{ flex: 0 0 auto; }

/* Hervorgehobene (Tageshighlight-)Karte */
.event-card.is-highlight{
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red), var(--shadow-card);
}

/* ---------------------------------------------------------------------- */
/* Day tabs (Fritag / Samstag / Sunntag)                                 */
/* ---------------------------------------------------------------------- */

.day-tabs{
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}
.day-tab{
  flex: 1 1 0;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.day-tab-name{ font-weight: 800; font-size: 14px; }
.day-tab-date{ font-size: 11.5px; color: var(--text-faint); font-weight: 500; }
.day-tab-count{
  position: absolute;
  top: -7px; right: -6px;
  min-width: 18px;
  background: var(--text-faint);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 999px;
  text-align: center;
}
.day-tab:hover{ border-color: var(--border-strong); color: var(--text); }
.day-tab.is-active{
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.day-tab.is-active .day-tab-date{ color: rgba(255,255,255,0.85); }
.day-tab.is-active .day-tab-count{ background: #fff; color: var(--red); }

/* ---------------------------------------------------------------------- */
/* Week filter (nur bei "Alli Events")                                   */
/* ---------------------------------------------------------------------- */

.week-filter{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 10px 14px;
}
.week-filter-label{
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  flex: 0 0 auto;
}
.week-filter select{
  flex: 1 1 auto;
  appearance: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 2px 0;
}
.week-filter select:focus{ outline: none; }

/* ---------------------------------------------------------------------- */
/* Highlight banner (highlight = week, "Shit der Wucha")                  */
/* Mobile: Flyer als Hintergrund + Overlay. Desktop: Flyer als Spalte     */
/* rechts. Text bleibt immer gut lesbar.                                  */
/* ---------------------------------------------------------------------- */

.hl-banner{
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-l);
  margin-bottom: 22px;
  box-shadow: var(--shadow-hover);
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
}

/* Hintergrundbild (nur Mobile sichtbar) + Overlay für Kontrast */
.hl-banner-bg{
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  display: none;
}
.hl-banner.has-image .hl-banner-bg{ display: block; }
.hl-banner.has-image::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  display: none;
  background:
    linear-gradient(180deg, rgba(15,32,51,0.55) 0%, rgba(15,32,51,0.78) 100%),
    linear-gradient(135deg, rgba(241,30,34,0.78) 0%, rgba(200,20,26,0.72) 100%);
}

.hl-banner-content{
  position: relative;
  z-index: 1;
  padding: 20px 22px;
}
.hl-banner-top{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.18);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.hl-banner-title{
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.15;
}
.hl-banner-meta{
  margin: 0;
  font-size: 13.5px;
  color: rgba(255,255,255,0.92);
}
.hl-banner-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  background: #fff;
  color: var(--red-dark);
  font-weight: 700;
  font-size: 13px;
  padding: 9px 15px;
  border-radius: var(--radius-s);
  transition: transform .12s ease;
}
.hl-banner-link:hover{ transform: translateY(-1px); }

/* Bild-Spalte: auf Mobile versteckt (Bild ist dort Hintergrund),
   auf Desktop rechts sichtbar. */
.hl-banner-media{ display: none; }
/* Highlight-Flyer (Desktop-Spalte) ebenfalls vollständig zeigen (anpassen). */
.hl-banner-media img{ width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }

@media (max-width: 759px){
  /* Mobile: Overlay über dem Hintergrundbild aktivieren */
  .hl-banner.has-image::before{ display: block; }
  .hl-banner.has-image .hl-banner-meta,
  .hl-banner.has-image .hl-banner-title{ text-shadow: 0 1px 12px rgba(0,0,0,0.35); }
}

@media (min-width: 760px){
  /* Desktop: zweispaltig, Bild als eigene Spalte rechts */
  .hl-banner.has-image{ display: grid; grid-template-columns: 1fr 230px; align-items: stretch; }
  .hl-banner.has-image .hl-banner-bg{ display: none; } /* kein Hintergrundbild auf Desktop */
  .hl-banner.has-image .hl-banner-content{ padding-right: 22px; }
  .hl-banner.has-image .hl-banner-media{
    display: block;
    margin: 12px 12px 12px 0;
    border-radius: var(--radius-m);
    overflow: hidden;
    background: #fff;              /* sauberer weisser Rahmen für den vollständigen Flyer */
  }
}

/* ---------------------------------------------------------------------- */
/* Empty / loading / error states                                        */
/* ---------------------------------------------------------------------- */

.feed-state{
  text-align: center;
  padding: 56px 20px;
  color: var(--text-muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-l);
  background: var(--bg-card);
}
.feed-state img{
  width: 44px; height: 44px;
  margin: 0 auto 14px;
  opacity: 0.85;
}
.feed-state strong{ display:block; color: var(--text); font-weight: 800; font-size: 16px; margin-bottom: 6px;}

/* ---------------------------------------------------------------------- */
/* Generic content pages (Veranstalter / Impressum / Datenschutz)        */
/* ---------------------------------------------------------------------- */

.page-hero{
  padding-top: 34px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1{
  font-weight: 800;
  font-size: clamp(26px, 6vw, 36px);
  margin: 0 0 10px;
  letter-spacing: 0.002em;
}
.page-hero p{ color: var(--text-muted); margin:0; font-size: 15px; }
.page-hero p + p{ margin-top: 10px; }
.page-eyebrow{
  font-size: 12.5px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}

.content-block{ padding-top: 26px; padding-bottom: 26px; }
.content-block + .content-block{ border-top: 1px solid var(--border); }
.content-block h2{
  font-weight: 800;
  font-size: 18px;
  margin: 0 0 12px;
}
.content-block p, .content-block li{ color: var(--text-muted); font-size: 14.5px; }
.content-block ul{ padding-left: 18px; margin: 10px 0; }
.content-block li{ margin-bottom: 6px; }

.steps{
  display: grid;
  gap: 12px;
  margin: 18px 0;
}
.step{
  display: flex;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 14px 16px;
}
.step .step-num{
  font-weight: 800;
  color: var(--red);
  flex: 0 0 auto;
}
.step h3{ margin: 0 0 4px; font-size: 14.5px; font-weight: 700; color: var(--text); }
.step p{ margin: 0; font-size: 13.5px; }

.cta-button{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  padding: 13px 22px;
  border: none;
  border-radius: var(--radius-m);
  margin-top: 6px;
  transition: background .12s ease, transform .12s ease, box-shadow .12s ease;
}
.cta-button:hover{ background: var(--red-dark); transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.cta-button:disabled{ opacity: 0.45; cursor: not-allowed; box-shadow:none; transform:none; }

.btn-secondary{
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: inherit;
  font-weight: 700;
  font-size: 13.5px;
  padding: 12px 18px;
  border-radius: var(--radius-m);
  transition: border-color .15s ease, background .15s ease;
}
.btn-secondary:hover{ border-color: var(--red); background: var(--red-bg); }
.btn-secondary:disabled{ opacity: 0.45; cursor: not-allowed; }

.info-grid{
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
.info-card{
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 18px;
  display:flex;
  flex-direction: column;
  gap: 6px;
}
.info-card h2{ font-size: 16px; margin:0; }
.info-card p{ margin: 0; font-size: 13.5px; }

dl.imprint{ margin: 0; }
dl.imprint dt{ font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--text-faint); margin-top: 16px; }
dl.imprint dd{ margin: 2px 0 0; font-size: 14.5px; color: var(--text); }

/* ---------------------------------------------------------------------- */
/* Reveal-on-scroll                                                       */
/* ---------------------------------------------------------------------- */

[data-reveal]{
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s ease, transform .5s ease;
}
[data-reveal].is-visible{ opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
  [data-reveal], .event-card{ transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* ---------------------------------------------------------------------- */
/* Bottom navigation — the ONLY navigation, fixed on every device        */
/* ---------------------------------------------------------------------- */

.bottom-nav{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
}
.bottom-nav-inner{
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  height: var(--nav-h);
}
.bottom-nav a{
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-faint);
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
  padding: 6px 4px 0;
  border-top: 2px solid transparent;
}
.bottom-nav a svg{ width: 21px; height: 21px; flex: 0 0 auto; }
.bottom-nav a.active{ color: var(--red); border-top-color: var(--red); }

/* ---------------------------------------------------------------------- */
/* Footer                                                                 */
/* ---------------------------------------------------------------------- */

.site-footer{
  padding-top: 30px;
  padding-bottom: 20px;
  margin-top: 34px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  align-items: center;
  justify-content: space-between;
}
.site-footer .footer-brand{
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-footer .footer-brand img{ height: 30px; width: auto; }
.site-footer .footer-links{ display:flex; gap: 16px; flex-wrap: wrap; }
.site-footer .footer-links a{ color: var(--text-muted); font-size: 13px; font-weight: 600; }
.site-footer .footer-links a:hover{ color: var(--red); }
.site-footer .footer-copy{
  width: 100%;
  font-size: 12px;
  color: var(--text-faint);
  margin: 0;
}

/* ---------------------------------------------------------------------- */
/* Desktop — bottom nav stays put, content just gets a bit more room     */
/* ---------------------------------------------------------------------- */

@media (min-width: 760px){
  .event-grid{ grid-template-columns: repeat(2, 1fr); }
  .filter-bar{ flex-wrap: nowrap; }
}

@media (min-width: 980px){
  .event-grid{ grid-template-columns: repeat(3, 1fr); }
}
