/*
Theme Name: UKC Redesign
Theme URI: https://ukc-ev.de
Author: TransTection / UKC e.V.
Description: Rahmen-Theme (Header/Footer/Farben) für UKC Uhsmannsdorfer Karnevalsclub e.V. Inhalte werden über Elementor gepflegt. Enthält Custom Post Type "Veranstaltung" und ein eigenes Elementor-Widget für den Veranstaltungs-Slider.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ukc-redesign
*/

:root {
  --rot:     #c0181e;
  --gold:    #d4a017;
  --gold-lt: #f5e6b0;
  --dunkel:  #1a1010;
  --cream:   #fdf6ec;
  --text:    #2a1f1f;
  --muted:   #7a6060;
  --nav-h:   72px;
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--text); }
a { color: inherit; }
img { max-width: 100%; }

/* ── SKIP LINK ───────────────────────────────────────── */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 999; background: var(--rot); color: #fff; padding: 12px 20px; border-radius: 0 0 6px 0; }
.skip-link:focus { left: 0; }

/* ── NAV (Kopfzeile, auf allen Seiten gleich) ─────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(26,16,16,0.92);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  border-bottom: 2px solid var(--gold);
  transition: background 0.3s;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 42px; width: auto; display: block; }
.nav-logo-text { font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; font-weight: 700; color: var(--gold); letter-spacing: 0.02em; line-height: 1.15; }
.nav-logo-text span { color: #fff; font-size: 0.72rem; display: block; font-weight: 500; letter-spacing: 0.08em; font-family: -apple-system,sans-serif; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: rgba(255,255,255,0.82); text-decoration: none; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; position: relative; transition: color 0.2s; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.25s; }
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* Body-Abstand, damit fixe Nav nichts überdeckt */
body { padding-top: var(--nav-h); }
.elementor-page body, body.elementor-page { padding-top: var(--nav-h); }

/* ── STRIPE DIVIDER (wiederverwendbares Karnevals-Element) ── */
.stripe-divider { height: 6px; background: repeating-linear-gradient(90deg, var(--rot) 0, var(--rot) 33.33%, var(--gold) 33.33%, var(--gold) 66.66%, #fff 66.66%, #fff 100%); }

/* ── BUTTONS (global verfügbar, auch in Elementor nutzbar) ── */
.btn-primary, .btn-ghost, .btn-white, .btn-outline {
  padding: 13px 30px; border-radius: 4px; font-weight: 700; font-size: .85rem;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none; display: inline-block;
  transition: background .2s, transform .15s, color .2s; border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--rot); color: #fff; border-color: var(--rot); }
.btn-primary:hover { background: #a01015; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-ghost:hover { background: rgba(212,160,23,.12); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--rot); border-color: #fff; }
.btn-white:hover { background: var(--gold-lt); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--rot); border-color: var(--rot); }
.btn-outline:hover { background: var(--rot); color: #fff; }

/* ── FOOTER (auf allen Seiten gleich) ─────────────────── */
.site-footer { background: var(--dunkel); color: rgba(255,255,255,.6); padding: 56px 24px 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; max-width: 1100px; margin: 0 auto 40px; }
.footer-logo { font-family: Georgia, serif; font-size: 1.4rem; font-weight: 700; color: var(--gold); margin-bottom: 14px; display: block; }
.footer-tagline { font-size: .85rem; line-height: 1.7; color: rgba(255,255,255,.5); }
.footer-heading { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.55); text-decoration: none; font-size: .85rem; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .76rem; color: rgba(255,255,255,.3); }

/* ── SCROLL REVEAL (global nutzbar, auch in Elementor-Sections per CSS-Klasse "reveal") ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── VERANSTALTUNGS-SLIDER (Widget-Styling) ───────────── */
.ukc-event-slider { position: relative; }
.ukc-event-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 28px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.ukc-event-track::-webkit-scrollbar { height: 8px; }
.ukc-event-track::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
.ukc-event-card { flex: 0 0 280px; scroll-snap-align: start; background: rgba(255,255,255,.05); border: 1px solid rgba(212,160,23,.2); border-radius: 8px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .25s, border-color .25s; }
.ukc-event-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.ukc-event-card-img { width: 100%; height: 150px; object-fit: cover; background: #2a1a1a; }
.ukc-event-card-body { padding: 20px 22px; position: relative; }
.ukc-event-card-body::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--gold); }
.ukc-event-date { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; font-weight: 700; }
.ukc-event-name { font-family: Georgia, serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.ukc-event-desc { font-size: .82rem; line-height: 1.55; opacity: .7; }
.ukc-event-link { display: inline-block; margin-top: 12px; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--gold); }
.ukc-slider-nav { display: flex; gap: 10px; justify-content: center; margin-top: 4px; }
.ukc-slider-btn { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--gold); background: transparent; color: var(--gold); cursor: pointer; font-size: 1rem; transition: background .2s, color .2s; }
.ukc-slider-btn:hover { background: var(--gold); color: var(--dunkel); }

/* ── ACCORDION (für "Unsere Garden") ──────────────────── */
.ukc-accordion { max-width: 760px; margin: 0 auto; }
.ukc-accordion-item { border-bottom: 1px solid rgba(192,24,30,.15); }
.ukc-accordion-trigger { width: 100%; text-align: left; background: none; border: none; padding: 22px 4px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-family: Georgia, serif; font-size: 1.2rem; font-weight: 700; color: var(--text); }
.ukc-accordion-trigger .ukc-acc-icon { color: var(--rot); font-size: 1.3rem; transition: transform .25s; }
.ukc-accordion-item.open .ukc-acc-icon { transform: rotate(45deg); }
.ukc-accordion-panel { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.ukc-accordion-item.open .ukc-accordion-panel { max-height: 400px; }
.ukc-accordion-panel-inner { padding: 0 4px 24px; color: var(--muted); line-height: 1.7; font-size: .95rem; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .site-nav { padding: 0 18px; }
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; background: rgba(26,16,16,0.98); flex-direction: column; padding: 24px; gap: 18px; transform: translateY(-120%); transition: transform .3s; backdrop-filter: blur(12px); }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}


/* UKC tablet + 404 header fix (2026-07-30) */
.site-nav{justify-content:flex-start!important;gap:12px;}
.site-nav > .nav-logo{display:flex!important;min-width:0;}
.site-nav .custom-logo-link{display:flex;align-items:center;flex:0 0 auto;}
.site-nav img.custom-logo{height:62px!important;width:62px!important;max-height:62px!important;object-fit:contain!important;}
.error404 .site-nav img.custom-logo{height:62px!important;width:62px!important;max-height:62px!important;}
.nav-links{margin-left:auto;}
@media (max-width:1024px){
  .site-nav{padding:0 18px;gap:12px;}
  .site-nav img.custom-logo,.error404 .site-nav img.custom-logo{height:46px!important;width:46px!important;max-height:46px!important;}
  .nav-logo-text{font-size:.85rem!important;}
  .nav-links{position:fixed;top:var(--nav-h);left:0;right:0;margin-left:0!important;background:rgba(26,16,16,.98);flex-direction:column;padding:24px;gap:18px;transform:translateY(-120%);transition:transform .3s;backdrop-filter:blur(12px);}
  .nav-links.open{transform:translateY(0);}
  .nav-toggle{display:block;margin-left:auto;}
}
