/* ==========================================================================
   Gewerbe- und Verkehrsverein Ulrichstein — Theme on top of Bootstrap 5.3
   Markenfarben (Blau/Terracotta), Typografie, bildlastige Komponenten
   ========================================================================== */

:root {
  /* Recolor Bootstrap primary to brand blue */
  --bs-primary:        #0a3a64;
  --bs-primary-rgb:    10, 58, 100;
  --bs-link-color:     #0a3a64;
  --bs-link-color-rgb: 10, 58, 100;
  --bs-link-hover-color: #072a49;

  /* Brand tokens */
  --brand:        #0a3a64;
  --brand-dark:   #072a49;
  --brand-soft:   #eaf1f8;
  --accent:       #e05a47;
  --accent-dark:  #c4452f;
  --accent-soft:  #fdeeea;
  --ink:          #15202b;

  --bs-body-color:      #44505f;
  --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bs-border-radius:    .85rem;
  --bs-border-radius-lg: 1.25rem;
  --bs-border-radius-xl: 1.75rem;
}

body { font-family: var(--bs-body-font-family); }
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.navbar-brand {
  font-family: 'Montserrat', system-ui, sans-serif;
  letter-spacing: -.01em;
}
.fw-black { font-weight: 800 !important; }
.ls-1 { letter-spacing: .12em !important; }

/* --- Brand color helpers --- */
.text-brand  { color: var(--brand) !important; }
.text-accent { color: var(--accent) !important; }
.bg-brand    { background-color: var(--brand) !important; }
.bg-brand-soft { background-color: var(--brand-soft) !important; }
.bg-accent-soft { background-color: var(--accent-soft) !important; }
.bg-ink      { background-color: var(--ink) !important; }

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}

/* --- Buttons --- */
.btn-primary {
  --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark);
  --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand);
}
.btn-accent {
  --bs-btn-color: #fff; --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--accent-dark); --bs-btn-hover-border-color: var(--accent-dark);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--accent-dark); --bs-btn-active-border-color: var(--accent-dark);
  color: #fff;
}
.btn-outline-brand {
  --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--brand); --bs-btn-active-border-color: var(--brand);
}
.btn { font-weight: 600; }
.btn-lg { padding: .85rem 1.9rem; }
.rounded-pill.btn, .btn.rounded-pill { border-radius: 50rem; }

/* --- Navbar --- */
.navbar {
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  transition: box-shadow .25s ease, background .25s ease;
}
.navbar.scrolled { box-shadow: 0 6px 24px rgba(16,28,44,.07); background: rgba(255,255,255,.97); }
.navbar-brand img { height: 50px; width: auto; }
.navbar .nav-link {
  font-weight: 500; color: var(--ink); border-radius: 50rem; white-space: nowrap;
  padding-inline: .7rem !important; transition: color .2s, background .2s;
}
.navbar .nav-link:hover { color: var(--brand); background: var(--brand-soft); }
.navbar .nav-link.active { color: var(--brand); font-weight: 600; }
.navbar .nav-link.nav-accent { color: var(--accent); font-weight: 600; }
.navbar .nav-link.nav-accent:hover { color: #fff; background: var(--accent); }

/* --- Full-bleed hero --- */
.hero-cover {
  position: relative; min-height: clamp(560px, 88vh, 820px);
  display: grid; align-items: center; color: #fff; overflow: hidden;
}
.hero-cover__img { position: absolute; inset: 0; z-index: 0; }
.hero-cover__img img { width: 100%; height: 100%; object-fit: cover; }
.hero-cover__veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(7,28,49,.55) 0%, rgba(7,28,49,.30) 40%, rgba(7,28,49,.78) 100%);
}
.hero-cover__inner { position: relative; z-index: 2; }
.hero-cover h1 { text-shadow: 0 2px 28px rgba(0,0,0,.4); }
.hero-cover .lead { color: rgba(255,255,255,.94); text-shadow: 0 1px 14px rgba(0,0,0,.35); }
.hero-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(6px); color: #fff;
  font-size: .82rem; font-weight: 600; letter-spacing: .03em;
  padding: .45rem 1rem; border-radius: 50rem;
}
.hero-scroll {
  position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 2;
  color: rgba(255,255,255,.85); width: 42px; height: 42px;
  display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4); animation: bob 2s infinite ease-in-out;
}
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* --- Section rhythm --- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.eyebrow + h2, .eyebrow + .h2 { margin-top: .5rem; }

/* --- Icon chip --- */
.icon-chip {
  width: 64px; height: 64px; border-radius: 1rem;
  display: grid; place-items: center; color: var(--brand);
  background: var(--brand-soft); transition: transform .25s, background .25s, color .25s;
}
.icon-chip svg { width: 30px; height: 30px; }
.hover-card:hover .icon-chip { background: var(--accent-soft); color: var(--accent); transform: scale(1.06); }

/* --- Cards --- */
.hover-card { transition: transform .3s ease, box-shadow .3s ease; }
.hover-card:hover { transform: translateY(-6px); box-shadow: 0 1.5rem 3rem rgba(16,28,44,.12) !important; }

/* --- Image overlay card (events) --- */
.img-card {
  position: relative; display: block; overflow: hidden; border-radius: var(--bs-border-radius-lg);
  min-height: 420px; color: #fff; box-shadow: 0 .5rem 1.5rem rgba(16,28,44,.10);
  transition: transform .35s ease, box-shadow .35s ease;
}
.img-card:hover { transform: translateY(-6px); box-shadow: 0 1.5rem 3rem rgba(16,28,44,.18); color: #fff; }
.img-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.img-card:hover img { transform: scale(1.06); }
.img-card__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,28,49,0) 35%, rgba(7,28,49,.45) 65%, rgba(7,28,49,.9) 100%);
}
.img-card__body { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.75rem; }
.img-card__date {
  position: absolute; top: 1.1rem; left: 1.1rem; z-index: 1;
  background: rgba(255,255,255,.95); color: var(--ink);
  font-size: .78rem; font-weight: 700; padding: .35rem .8rem; border-radius: 50rem;
}
.img-card h3 { color: #fff; }
.img-card__link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: #fff; }
.img-card__link svg { width: 1rem; height: 1rem; transition: transform .25s; }
.img-card:hover .img-card__link svg { transform: translateX(5px); }

/* --- Gallery --- */
.gallery-item { position: relative; overflow: hidden; border-radius: var(--bs-border-radius); display: block; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: rgba(10,58,100,0); transition: background .3s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item:hover::after { background: rgba(10,58,100,.18); }
.gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1rem;
  color: #fff; font-weight: 600; font-size: .95rem;
  background: linear-gradient(180deg, transparent, rgba(7,28,49,.75));
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
}
.gallery-item:hover .gallery-cap { opacity: 1; transform: none; }

/* --- Stats --- */
.stat-num { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; }

/* --- Program timeline --- */
.day-badge {
  flex-shrink: 0; width: 70px; height: 70px; border-radius: 1rem;
  background: var(--brand); color: #fff; display: grid; place-items: center; align-content: center; line-height: 1;
}
.day-badge b { font-family: 'Montserrat', sans-serif; font-size: 1.6rem; font-weight: 800; }
.day-badge span { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.slot-time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--brand); }

/* --- Location item --- */
.loc-ic { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.loc-ic svg { width: 22px; height: 22px; }
.map-frame { border: 0; width: 100%; height: 100%; min-height: 360px; }

/* --- CTA banner --- */
.cta-band {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  position: relative; overflow: hidden; color: #fff;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 80% at 100% 0%, rgba(224,90,71,.4), transparent 60%); }
.cta-band > * { position: relative; }

/* --- Footer --- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__logo { background: #fff; padding: 8px 12px; border-radius: .6rem; height: 46px; width: auto; }
.site-footer h5 { color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }

/* --- Misc --- */
.ratio-portrait { --bs-aspect-ratio: 125%; }
a.text-reset-hover:hover { color: inherit; }
