/* /geschiedenis/ – Geschiedenis van de kermis */

body.page--geschiedenis{
  background:
    radial-gradient(1100px 600px at 12% -10%, rgba(160, 100, 240, .22), transparent 60%),
    radial-gradient(900px 500px at 95% 10%, rgba(255, 122, 26, .18), transparent 60%),
    linear-gradient(180deg, rgba(18,8,28,.95), rgba(12,4,20,.98));
  background-attachment: fixed;
  background-size: cover;
}

.page--geschiedenis .geschiedenis-page{
  margin-top: 18px;
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ============================================
   HERO
   ============================================ */
.gesch-hero{
  position: relative;
  overflow: hidden;
}

.gesch-hero::before{
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(600px 220px at 90% 0%, rgba(255, 122, 26, .18), transparent 60%),
    radial-gradient(700px 250px at 0% 100%, rgba(160, 110, 255, .18), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.gesch-hero > *{
  position: relative;
  z-index: 1;
}

.gesch-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(160, 110, 255, .22), rgba(255, 122, 26, .18));
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
}

.gesch-eyebrow i{
  font-size: 1rem;
  opacity: .85;
}

.gesch-hero h1{
  font-size: clamp(28px, 4vw, 40px);
}

.gesch-hero__grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 6px;
}

@media (min-width: 900px){
  .gesch-hero__grid{
    grid-template-columns: minmax(0, 1.6fr) minmax(240px, 320px);
    gap: 28px;
  }
}

.gesch-lead{
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .95);
}

.gesch-hero__prose p{
  line-height: 1.7;
  font-size: 1rem;
}

/* Facts card right */
.gesch-hero__facts{
  padding: 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .3);
  border: 1px solid rgba(255, 255, 255, .12);
}

.gesch-facts{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.gesch-facts li{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(160, 110, 255, .14), rgba(255, 122, 26, .08));
  border: 1px solid rgba(255, 255, 255, .10);
}

.gesch-facts__num{
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -.01em;
  background: linear-gradient(90deg, #c79bff, #ff9b4d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gesch-facts__lbl{
  margin-top: 2px;
  font-size: .82rem;
  color: rgba(255, 255, 255, .76);
  font-weight: 600;
  letter-spacing: .02em;
}

/* ============================================
   TOC
   ============================================ */
.gesch-toc{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .32);
  border: 1px solid rgba(255, 255, 255, .10);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.gesch-toc__label{
  flex: 0 0 auto;
  padding: 6px 4px;
  font-weight: 800;
  color: rgba(255, 255, 255, .75);
  font-size: .88rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.gesch-toc__chips{
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.gesch-chip{
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.gesch-chip:hover{
  background: rgba(255, 255, 255, .14);
  border-color: rgba(200, 140, 255, .45);
  transform: translateY(-1px);
}

/* ============================================
   SECTIONS
   ============================================ */
.gesch-section{
  position: relative;
  scroll-margin-top: 90px;
}

.gesch-section__num{
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  background: linear-gradient(135deg, rgba(160, 110, 255, .55), rgba(255, 122, 26, .35));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .55;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 560px){
  .gesch-section__num{
    font-size: 1.8rem;
    top: 10px;
    right: 14px;
  }
}

.gesch-section h2{
  padding-right: 60px;
}

.gesch-section p{
  font-size: 1rem;
  line-height: 1.7;
}

/* Subtle variants */
.gesch-section--shadow{
  background: linear-gradient(180deg, rgba(30, 8, 36, .82), rgba(18, 6, 28, .9));
}

.gesch-section--soft{
  background: rgba(30, 22, 44, .85);
}

.gesch-section--erfgoed{
  background:
    linear-gradient(135deg, rgba(160, 110, 255, .14), rgba(255, 122, 26, .08)),
    rgba(30, 30, 30, .9);
}

.gesch-section--final{
  background:
    radial-gradient(700px 320px at 100% 0%, rgba(255, 122, 26, .14), transparent 55%),
    linear-gradient(180deg, rgba(36, 14, 48, .9), rgba(20, 8, 32, .92));
  border: 1px solid rgba(200, 140, 255, .25);
}

.gesch-section--country{
  position: relative;
}

.gesch-flag{
  position: absolute;
  top: 16px;
  right: 70px;
  font-size: 1.5rem;
  opacity: .85;
}

@media (max-width: 560px){
  .gesch-flag{
    right: 56px;
    top: 12px;
    font-size: 1.2rem;
  }
}

.gesch-section--icon{
  overflow: hidden;
}

.gesch-icon-art{
  position: absolute;
  font-size: 9rem;
  top: -22px;
  right: -12px;
  color: rgba(160, 110, 255, .08);
  pointer-events: none;
  line-height: 1;
}

/* ============================================
   ETYMOLOGY box (oorsprong)
   ============================================ */
.gesch-section--etymology .gesch-etym{
  margin: 8px 0 18px;
  padding: 18px 20px;
  border-radius: 14px;
  background:
    radial-gradient(300px 120px at 0% 100%, rgba(255, 122, 26, .18), transparent 60%),
    linear-gradient(135deg, rgba(160, 110, 255, .12), rgba(60, 20, 90, .25));
  border: 1px dashed rgba(200, 140, 255, .35);
  text-align: center;
}

.gesch-etym__word{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.gesch-etym__small{
  font-size: .82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .65);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.gesch-etym__big{
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -.02em;
  background: linear-gradient(90deg, #c79bff, #ff9b4d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gesch-etym__from{
  font-style: italic;
  color: rgba(255, 255, 255, .8);
  font-size: .98rem;
}

/* ============================================
   Callout / highlight blocks
   ============================================ */
.gesch-callout{
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 16px 0 4px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(160, 110, 255, .10);
  border-left: 4px solid rgba(160, 110, 255, .55);
}

.gesch-callout i{
  font-size: 1.3rem;
  color: #c79bff;
  flex: 0 0 auto;
  margin-top: 2px;
}

.gesch-callout p{
  margin: 0;
  line-height: 1.6;
}

.gesch-callout--warm{
  background: rgba(255, 122, 26, .10);
  border-left-color: rgba(255, 122, 26, .65);
}

.gesch-callout--warm i{
  color: #ff9b4d;
}

.gesch-highlight{
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 16px 0 4px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 122, 26, .14), rgba(160, 110, 255, .10));
  border: 1px solid rgba(255, 255, 255, .12);
}

.gesch-highlight__icon{
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #ff9b4d;
  font-size: 1.3rem;
}

.gesch-highlight strong{
  display: block;
  margin-bottom: 4px;
  color: #fff;
  letter-spacing: .01em;
}

.gesch-highlight p{
  margin: 0;
  line-height: 1.6;
}

/* ============================================
   Pull quotes
   ============================================ */
.gesch-quote{
  position: relative;
  margin: 18px 0;
  padding: 18px 22px 18px 56px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .26);
  border: 1px solid rgba(255, 255, 255, .10);
  font-style: italic;
  color: rgba(255, 255, 255, .95);
  line-height: 1.55;
}

.gesch-quote::before{
  content: "\201C";
  position: absolute;
  left: 14px;
  top: 0;
  font-size: 4rem;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  color: rgba(199, 155, 255, .6);
  font-style: normal;
}

.gesch-quote p{
  margin: 0;
  font-size: 1.05rem;
}

.gesch-quote--lg p{
  font-size: 1.15rem;
  font-weight: 600;
}

/* ============================================
   Duo cards
   ============================================ */
.gesch-duo{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 14px 0 4px;
}

@media (min-width: 720px){
  .gesch-duo{
    grid-template-columns: 1fr 1fr;
  }
}

.gesch-card{
  position: relative;
  padding: 16px 16px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .26);
  border: 1px solid rgba(255, 255, 255, .12);
  overflow: hidden;
}

.gesch-card::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .85;
  background: radial-gradient(220px 140px at 100% 0%, var(--gesch-card-acc, rgba(255,255,255,.06)), transparent 60%);
}

.gesch-card > *{
  position: relative;
}

.gesch-card--accent-purple{
  --gesch-card-acc: rgba(160, 110, 255, .22);
  border-color: rgba(160, 110, 255, .25);
}

.gesch-card--accent-orange{
  --gesch-card-acc: rgba(255, 122, 26, .22);
  border-color: rgba(255, 122, 26, .25);
}

.gesch-card--soft{
  background: rgba(255, 255, 255, .04);
}

.gesch-card__head{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.gesch-card__head i{
  font-size: 1.4rem;
  color: rgba(255, 255, 255, .85);
}

.gesch-card__head h3{
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.gesch-card__pill{
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .88);
  letter-spacing: .02em;
}

.gesch-card p{
  margin: 0;
  font-size: .96rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .85);
}

/* ============================================
   Lists with icons
   ============================================ */
.gesch-list{
  list-style: none;
  margin: 12px 0 6px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.gesch-list li{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
}

.gesch-list li i.bi{
  flex: 0 0 auto;
  width: 1.2em;
  height: 1.2em;
  color: #c79bff;
  margin-top: 2px;
}

.gesch-list li span{
  color: rgba(255, 255, 255, .9);
  line-height: 1.5;
}

@media (min-width: 720px){
  .gesch-list--cols{
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   Timeline
   ============================================ */
.gesch-timeline{
  position: relative;
  margin: 16px 0 4px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.gesch-timeline::before{
  content: "";
  position: absolute;
  left: 9px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(160, 110, 255, .65), rgba(255, 122, 26, .55));
  border-radius: 2px;
}

.gesch-timeline__item{
  position: relative;
  padding: 8px 12px 8px 32px;
}

.gesch-timeline__item::before{
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c79bff, #ff9b4d);
  box-shadow: 0 0 0 3px rgba(20, 8, 32, .9), 0 0 12px rgba(199, 155, 255, .45);
}

.gesch-timeline__year{
  display: block;
  font-weight: 900;
  color: #ff9b4d;
  font-size: .82rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.gesch-timeline__label{
  display: block;
  color: rgba(255, 255, 255, .9);
  font-size: 1rem;
  line-height: 1.4;
  margin-top: 2px;
}

/* ============================================
   Badges (UNESCO, erfgoed)
   ============================================ */
.gesch-badge{
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 16px 0 4px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(160, 110, 255, .10);
  border: 1px solid rgba(160, 110, 255, .25);
}

.gesch-badge__year{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 64px;
  padding: 0 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6a3aa8, #b35a18);
  color: #fff;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: .02em;
  text-align: center;
}

.gesch-badge strong{
  display: block;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: .01em;
}

.gesch-badge p{
  margin: 0;
  line-height: 1.55;
}

.gesch-badge--unesco{
  background: rgba(255, 122, 26, .10);
  border-color: rgba(255, 122, 26, .30);
}

.gesch-badge--unesco .gesch-badge__year{
  background: linear-gradient(135deg, #d77a1c, #b35a18);
}

/* ============================================
   Photo placeholders (replaceable later)
   ============================================ */
.gesch-photo{
  margin: 8px 0 14px;
}

.gesch-photo--placeholder .gesch-photo__ph{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 200px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, .22);
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, .03) 0,
      rgba(255, 255, 255, .03) 12px,
      rgba(255, 255, 255, .06) 12px,
      rgba(255, 255, 255, .06) 24px
    );
  color: rgba(255, 255, 255, .55);
}

.gesch-photo__ph i{
  font-size: 2.2rem;
  opacity: .55;
}

.gesch-photo__ph span{
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.gesch-photo figcaption{
  margin-top: 8px;
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
  font-style: italic;
  text-align: center;
}

/* ============================================
   Treats / Lekkernijen
   ============================================ */
.gesch-treats{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 12px;
}

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

.gesch-treat{
  position: relative;
  padding: 16px 16px 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, .26);
  border: 1px solid rgba(255, 255, 255, .12);
  overflow: hidden;
}

.gesch-treat::after{
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(300px 160px at 100% 0%, var(--gesch-treat-acc, rgba(255,255,255,.06)), transparent 60%);
}

.gesch-treat > *{
  position: relative;
  z-index: 1;
}

.gesch-treat--zuurstok{
  --gesch-treat-acc: rgba(255, 80, 110, .26);
  border-color: rgba(255, 80, 110, .28);
}

.gesch-treat--oliebol{
  --gesch-treat-acc: rgba(255, 165, 60, .26);
  border-color: rgba(255, 165, 60, .28);
}

.gesch-treat--poffertjes{
  --gesch-treat-acc: rgba(255, 220, 140, .22);
  border-color: rgba(255, 220, 140, .28);
}

.gesch-treat__head{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 10px;
}

.gesch-treat__emoji{
  font-size: 2rem;
  line-height: 1;
}

.gesch-treat__head h3{
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.gesch-treat__tag{
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  color: rgba(255, 255, 255, .82);
  flex-basis: 100%;
}

.gesch-treat p{
  font-size: .94rem;
  line-height: 1.55;
  margin: 0 0 8px;
}

.gesch-treat p:last-child{
  margin-bottom: 0;
}

/* ============================================
   Final CTA
   ============================================ */
.gesch-closing{
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .26);
  border-left: 4px solid #ff9b4d;
  font-size: 1.02rem;
  line-height: 1.7;
}

.gesch-cta{
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gesch-cta__btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #6a3aa8, #b35a18);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .35);
  transition: filter .15s ease, transform .15s ease;
}

.gesch-cta__btn:hover{
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.gesch-cta__btn--ghost{
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: none;
  color: rgba(255, 255, 255, .92);
}

.gesch-cta__btn--ghost:hover{
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .45);
}

/* ============================================
   Mobile tweaks
   ============================================ */
@media (max-width: 720px){
  .gesch-hero__facts{
    order: 2;
  }
  .gesch-quote{
    padding-left: 44px;
  }
  .gesch-quote::before{
    font-size: 3rem;
    left: 12px;
  }
}

@media (prefers-reduced-motion: reduce){
  .gesch-chip,
  .gesch-cta__btn{
    transition: none;
  }
}
