/* HERO */
.hero-wrap { position: relative; }

.hero {
  height: 100vh;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute;
  top: 60px; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--blue), var(--green));
  z-index: 3;
}
.hero-bg {
  position: absolute; inset: 0; background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
}
.hero-bg-img {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(17,18,20,0.25) 0%, rgba(17,18,20,0.5) 55%, rgba(17,18,20,0.97) 100%) center/cover no-repeat;
  /* Bild wird per PHP inline style gesetzt */
}
.hero-ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.6rem; pointer-events: none;
}
.hero-ph-icon { font-size: 4rem; opacity: 0.2; }
.hero-ph-text { font-size: 0.85rem; color: var(--text-faint); opacity: 0.7; }
.hero-ph-hint { font-size: 0.7rem; color: var(--text-faint); opacity: 0.5; }

.hero-glow { position: absolute; inset: 0; pointer-events: none; }
.hero-glow::before {
  content: ''; position: absolute;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,115,12,0.1) 0%, transparent 68%);
  top: -250px; right: -150px;
  animation: glow 7s ease-in-out infinite;
}
.hero-glow::after {
  content: ''; position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,155,199,0.08) 0%, transparent 68%);
  bottom: 50px; left: -150px;
  animation: glow 9s ease-in-out infinite reverse;
}
@keyframes glow { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.2);opacity:0.65} }

/* Desktop: Inhalt absolut über dem Hero-Bild */
.hero-content {
  position: absolute;
  bottom: 5.5rem; left: 0; right: 0;
  z-index: 2; text-align: center; padding: 0 1.5rem;
  animation: heroIn 1.1s cubic-bezier(.22,1,.36,1) both;
}
@keyframes heroIn { from{opacity:0;transform:translateY(50px)} to{opacity:1;transform:translateY(0)} }

.hero-title {
  font-family: var(--font-head); font-size: clamp(2.4rem,5.5vw,4.5rem);
  font-weight: 800; line-height: 1.06; color: var(--white);
  text-shadow: 0 2px 48px rgba(0,0,0,0.7);
  animation: heroIn 1.1s 0.12s cubic-bezier(.22,1,.36,1) both;
}
.hero-title .o { color: var(--orange); }
.hero-title .b { color: var(--blue); }
.hero-title .g { color: var(--green); }
.hero-title .sm { font-size: 0.62em; opacity: 0.82; display: block; margin-top: 0.15em; }

.hero-social {
  display: flex; align-items: center; justify-content: center; gap: 0.9rem;
  margin-top: 2rem;
  animation: heroIn 1.1s 0.28s cubic-bezier(.22,1,.36,1) both;
}
.hero-social .soc { width: 42px; height: 42px; }
.hero-social .soc svg { width: 18px; height: 18px; }

.scroll-hint {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  color: rgba(255,255,255,0.3); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  animation: bounce 2.5s ease-in-out infinite; z-index: 2;
}
.scroll-hint svg { width: 17px; height: 17px; stroke: rgba(255,255,255,0.25); fill: none; }
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  55% { transform: translateX(-50%) translateY(9px); }
}

/* PREVIEW STRIPS */
.strip { border-bottom: 1px solid var(--border); }
.strip.alt { background: var(--bg2); }
.strip-inner { max-width: 1100px; margin: 0 auto; padding: 4rem 2.5rem; }
.strip-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 1.75rem; flex-wrap: wrap; gap: 0.5rem;
}
.strip-head h2 {
  font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 0.5rem;
}
.strip-head h2 .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.strip-more {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-faint); text-decoration: none; font-family: var(--font-body);
  transition: color 0.2s;
}
.strip-more:hover { color: var(--orange); }

.pcards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.pcards-4 { grid-template-columns: repeat(4,1fr); }
@media(max-width:900px){ .pcards-4 { grid-template-columns: repeat(2,1fr); } }
@media(max-width:680px){
  .pcards { grid-template-columns: 1fr; }
  .pcards-4 { grid-template-columns: repeat(2,1fr); }

  /* Brauchtum-Kacheln: Zeichnung links klein, Titel+Beschreibung rechts */
  .pc.pc--brauchtum {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 0.9rem;
  }
  .pc.pc--brauchtum .pc-img-wrap--portrait {
    width: 60px;
    flex-shrink: 0;
    margin: 0;
  }
  .pc.pc--brauchtum .pc-text {
    display: flex;
    flex-direction: column;
    flex: 1;
  }
}

.pc {
  background: var(--bg3); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.2rem; cursor: pointer; transition: border-color 0.2s, transform 0.22s;
  text-decoration: none; display: block; color: inherit;
}
.pc:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.pc-date { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.4rem; }
.pc-icon { width: 42px; height: 42px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 0.7rem; }
.pc-img-wrap { width: 100%; aspect-ratio: 3/2; border-radius: 9px; overflow: hidden; margin-bottom: 0.7rem; background: var(--bg2); }
.pc-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Garde-Karten: Zeichnung ohne Box und Hintergrund */
.pc-img-wrap--garde { background: none; border-radius: 0; }
.pc-img--contain { object-fit: contain; }

/* Brauchtum-Karten: 9:16 Hochformat, Zeichnung freigestellt */
.pc-img-wrap--portrait { aspect-ratio: 9 / 16; }
.pc-img-wrap--contain { background: none; border-radius: 0; }
.pc-img-wrap--contain .pc-img { object-fit: contain; }

/* Event preview cards – fixed portrait ratio so all cards in a row align */
.pc-img-wrap--event {
  aspect-ratio: 3/4;
  border-radius: 0;
  margin: 0;
}
.pc-img-wrap--event .pc-img {
  object-fit: cover;
  object-position: top center;
}

/* Static placeholder – same proportions as the portrait source images */
.pc-img-skeleton {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pc-img-skeleton svg {
  width: 2.8rem;
  height: 2.8rem;
  opacity: 0.2;
  color: var(--text);
}
.pc h3 { font-family: var(--font-head); font-size: 0.93rem; font-weight: 700; margin-bottom: 0.3rem; color: var(--text); line-height: 1.3; }
.pc p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 0.6rem; }
.pc-meta { display: flex; flex-direction: column; gap: 0.25rem; margin-top: auto; }
.pc-meta-item { display: flex; align-items: center; gap: 0.3rem; font-size: 0.72rem; color: var(--text-faint); }
.pc-meta-item svg { width: 0.8rem; height: 0.8rem; flex-shrink: 0; opacity: 0.55; }

/* SECTION CARDS */
.sec-cards-wrap { padding: 5rem 2.5rem; max-width: 1100px; margin: 0 auto; }
.sec-cards-title {
  font-family: var(--font-head); font-size: 1.85rem; font-weight: 800;
  text-align: center; margin-bottom: 3rem; color: var(--text);
}
.sec-cards-title span { color: var(--blue); }
.cards-flex { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; }
.clink {
  background: var(--bg2); border-radius: 16px; padding: 1.9rem 1.4rem;
  border: 1px solid var(--border);
  transition: transform 0.3s cubic-bezier(.22,1,.36,1), border-color 0.3s, box-shadow 0.3s;
  text-align: center; position: relative; overflow: hidden;
  width: 195px; flex-shrink: 0; text-decoration: none; display: block; color: inherit;
}
.clink::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--a, var(--orange)); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s cubic-bezier(.22,1,.36,1);
}
.clink:hover { transform: translateY(-6px); box-shadow: 0 18px 50px rgba(0,0,0,0.4); border-color: var(--a, var(--orange)); }
.clink:hover::after { transform: scaleX(1); }
.clink-icon {
  width: 50px; height: 50px; border-radius: 12px;
  background: color-mix(in srgb, var(--a, var(--orange)) 16%, transparent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.9rem; font-size: 1.35rem;
  transition: transform 0.3s;
}
.clink:hover .clink-icon { transform: scale(1.12) rotate(-5deg); }
.clink h3 { font-family: var(--font-head); font-size: 0.98rem; font-weight: 700; color: var(--text); margin-bottom: 0.35rem; }
.clink p { font-size: 0.76rem; color: var(--text-muted); line-height: 1.5; }
.clink-arr { display: inline-block; margin-top: 0.75rem; font-size: 0.73rem; font-weight: 600; color: var(--a, var(--orange)); letter-spacing: 0.05em; transition: transform 0.2s; }
.clink:hover .clink-arr { transform: translateX(4px); }


@media(max-width:768px) {
  .hero { height: max(56vw, 260px); margin-top: 60px; }
  .hero::after { top: 0; }

  /* Mobile: aus dem Bild raus, eigener dunkler Streifen */
  .hero-content {
    position: static;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 1.4rem 1.5rem 1.6rem;
  }
  .hero-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  .hero-social { margin-top: 1.2rem; }
  .scroll-hint { display: none; }
}

@media(max-width:640px) {
  .strip-inner { padding: 2.5rem 1rem; }
  .sec-cards-wrap { padding: 3rem 1rem; }
}
