/*
Theme Name:   Kadence Child
Theme URI:    https://example.com/
Description:  Child Theme for Kadence
Author:       Your Name
Template:     kadence
Version:      1.0.3
Version history: obsidian://open?vault=hofkastania.com%20-%20snippets&file=02_PLATTFORMEN%2Fhofkastania.com%2Fkadence-child%20-%20style.css%20version%20history
Text Domain:  kadence-child
*/

/* Change note 1.0.3: Refine 404 layout and social button hover states. */

/* ======================================================================
   HOF KASTANIA — FOOTER (Kadence) — Child Theme CSS
   Scope: .site-footer (nur Footer)
   Goal: konsistente Typografie, ruhige Link-Hierarchie, saubere Abstände
   ====================================================================== */


/* ----------------------------------------------------------------------
   00 — TOKENS (Footer-only)
   ---------------------------------------------------------------------- */
:root{
  --hk-footer-bg:        #1D2328;
  --hk-footer-text:      #ADBAC2;
  --hk-footer-heading:   #F8F4ED;
  --hk-footer-muted:     rgba(173,186,194,0.85);
  --hk-footer-strong:    #B9C5CB;
  --hk-footer-accent:    #FF9E3F;

  --hk-footer-title-size: 24px;
  --hk-footer-title-weight: 600;

  --hk-footer-body:      15px;
  --hk-footer-nav:       14px;
  --hk-footer-legal:     13px;

  --hk-footer-gap-title: 14px;
  --hk-footer-gap-item:  10px;
}


/* ----------------------------------------------------------------------
   10 — BASE
   ---------------------------------------------------------------------- */
.site-footer{
  background-color: var(--hk-footer-bg);
  color: var(--hk-footer-text);
}

/* Footer Links: NIE unterstrichen (auch nicht bei Hover/Focus/Active/Visited) */
.site-footer a,
.site-footer a:visited,
.site-footer a:hover,
.site-footer a:focus,
.site-footer a:active{
  color: var(--hk-footer-text);
  text-decoration: none !important;
  text-underline-offset: 0;
}

/* Hover/Focus: nur Farbe ändern */
.site-footer a:hover,
.site-footer a:focus{
  color: var(--hk-footer-accent);
  text-decoration: none !important;
}

/* Optional: sichtbarer Focus ohne Unterstreichung (accessibility) */
.site-footer a:focus-visible{
  outline: 2px solid rgba(255, 158, 63, 0.55);
  outline-offset: 3px;
  border-radius: 6px;
}


/* ----------------------------------------------------------------------
   20 — WIDGET TITLES
   ---------------------------------------------------------------------- */
.site-footer .widget-title,
.site-footer .footer-community-title{
  color: var(--hk-footer-heading);
  font-size: var(--hk-footer-title-size);
  font-weight: var(--hk-footer-title-weight);
  margin: 0 0 var(--hk-footer-gap-title) 0;
  text-transform: none;
  letter-spacing: 0;
}


/* ----------------------------------------------------------------------
   30 — TITLE → FIRST CONTENT CONSISTENCY
   ---------------------------------------------------------------------- */
.site-footer .widget-title + *,
.site-footer .footer-community-title + *{
  margin-top: 0;
  padding-top: 0;
}

.site-footer .widget .widget-content > :first-child,
.site-footer .widget .widget-inner > :first-child{
  margin-top: 0;
  padding-top: 0;
}

.site-footer .widget_nav_menu .menu,
.site-footer .legal-menu .menu{
  margin-top: 0;
  padding-top: 0;
}


/* ----------------------------------------------------------------------
   40 — RESPONSIVE VERTICAL SPACING
   ---------------------------------------------------------------------- */
@media (max-width: 1024px){
  .site-footer,
  .site-footer .footer-inner-wrap,
  .site-footer .footer-main,
  .site-footer .footer-widget-area{
    padding-top: 70px;
  }

  .site-footer .widget{
    margin-bottom: 34px;
  }
  .site-footer .widget:last-child{
    margin-bottom: 0;
  }
}

@media (max-width: 767px){
  .site-footer,
  .site-footer .footer-inner-wrap,
  .site-footer .footer-main,
  .site-footer .footer-widget-area{
    padding-top: 10px;
  }

  .site-footer .widget{
    margin-bottom: 42px;
  }
  .site-footer .widget:last-child{
    margin-bottom: 0;
  }
}


/* ----------------------------------------------------------------------
   50 — WIDGET 1: IDENTITY
   ---------------------------------------------------------------------- */
.site-footer .footer-identity{
  color: var(--hk-footer-text);
}

.site-footer .footer-title{
  color: var(--hk-footer-accent);
  font-size: var(--hk-footer-title-size);
  font-weight: var(--hk-footer-title-weight);
  margin: 0 0 var(--hk-footer-gap-title) 0;
}

.site-footer .footer-subline{
  color: var(--hk-footer-strong);
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 24px 0;
}

.site-footer .footer-event-date{
  color: var(--hk-footer-strong);
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.site-footer .footer-event-name{
  color: var(--hk-footer-text);
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 24px 0;
}

.site-footer .footer-address{
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.site-footer .footer-mail a{
  font-size: 15px;
  font-style: italic;
}


/* ----------------------------------------------------------------------
   60 — WIDGET 2: NAVIGATION
   ---------------------------------------------------------------------- */
.site-footer .widget_nav_menu .menu{
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer .widget_nav_menu .menu li{
  margin: 0 0 var(--hk-footer-gap-item) 0;
}
.site-footer .widget_nav_menu .menu li:last-child{
  margin-bottom: 0;
}

.site-footer .widget_nav_menu a{
  font-size: var(--hk-footer-nav);
  font-weight: 400;
  color: var(--hk-footer-text);
}


/* ----------------------------------------------------------------------
   70 — WIDGET 3: COMMUNITY (GLOBAL ZENTRIERT)
   ---------------------------------------------------------------------- */
.site-footer .footer-community{
  text-align: center;
}

.site-footer .footer-community-text{
  color: var(--hk-footer-text);
  font-size: var(--hk-footer-body);
  font-style: italic;
  line-height: 1.7;
  margin: 0 0 16px 0;
  text-align: center;
}

.site-footer .footer-community-links{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.site-footer .footer-community-links a{
  display: inline-flex;
}

.site-footer .footer-social-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--hk-footer-text);
  line-height: 1;
}

.site-footer .footer-social-link svg{
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  fill: currentColor;
  opacity: 0.75;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.site-footer .footer-social-link:hover svg{
  opacity: 1;
}

@media (max-width: 767px){
  .site-footer .footer-community-links{
    gap: 12px;
  }
}


/* ----------------------------------------------------------------------
   80 — WIDGET 4: RECHTLICHES
   ---------------------------------------------------------------------- */
.site-footer .legal-menu .menu{
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer .legal-menu li{
  margin: 0 0 8px 0;
}
.site-footer .legal-menu li:last-child{
  margin-bottom: 0;
}

.site-footer .legal-menu a{
  font-size: var(--hk-footer-legal);
  font-weight: 400;
  color: var(--hk-footer-muted);
}

/* ----------------------------------------------------------------------
   90 — 404 PAGE
   ---------------------------------------------------------------------- */
.hk-404{
  --hk-404-bg: #f8f4ed;
  --hk-404-text: #283038;
  --hk-404-heading: #d26d00;
  --hk-404-dark: #212830;
  --hk-404-secondary: #647382;
  --hk-404-secondary-hover: #738396;
  --hk-404-primary: #ff9e3f;
  --hk-404-primary-hover: #f28d28;
  --hk-404-width: 920px;
  --hk-404-icon: #f8f4ed;

  color: var(--hk-404-text);
  background: linear-gradient(180deg, #ffffff 0%, #fcfaf6 100%);
  margin: 0 calc(50% - 50vw);
}

.hk-404__panel-inner{
  width: min(100%, var(--hk-404-width));
}

.hk-404__hero-title{
  margin: 0 0 56px;
  color: var(--hk-404-text);
  font-size: clamp(2.3rem, 5vw, 3.5rem);
  line-height: 1.1;
  font-weight: 700;
  text-align: center;
}

.hk-404__panel{
  position: relative;
  padding: 88px 24px 88px;
  background: transparent;
}

.hk-404__panel::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 18px;
  background: linear-gradient(90deg, rgba(40,48,56,0.08), rgba(40,48,56,0.18), rgba(40,48,56,0.08));
  clip-path: polygon(0 55%, 10% 30%, 22% 62%, 35% 38%, 50% 70%, 66% 36%, 80% 58%, 100% 26%, 100% 100%, 0 100%);
}

.hk-404__panel-inner{
  margin: 0 auto;
  text-align: center;
}

.hk-404__headline{
  margin: 0 0 24px;
  color: var(--hk-404-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 700;
}

.hk-404__text,
.hk-404__cta-copy{
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.125rem;
  line-height: 1.7;
}

.hk-404__text{
  margin-top: 0;
  margin-bottom: 34px;
}

.hk-404__socials{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 34px;
}

.hk-404__social-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: var(--hk-404-secondary);
  color: var(--hk-404-icon);
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.hk-404__social-link:hover,
.hk-404__social-link:focus-visible{
  background: var(--hk-404-secondary-hover);
  color: var(--hk-404-icon);
  transform: translateY(-2px);
}

.hk-404__social-link:focus-visible,
.hk-404__button:focus-visible{
  outline: 3px solid rgba(255, 158, 63, 0.38);
  outline-offset: 4px;
}

.hk-404__icon{
  display: inline-flex;
  width: 24px;
  height: 24px;
}

.hk-404__icon svg{
  width: 100%;
  height: 100%;
}

.hk-404__cta-copy{
  margin-top: 0;
  margin-bottom: 28px;
}

.hk-404__actions{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.hk-404__button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: 60px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.hk-404__button:hover,
.hk-404__button:focus-visible{
  transform: translateY(-2px);
  text-decoration: none;
}

.hk-404__button--primary{
  background: var(--hk-404-primary);
  color: #fff;
}

.hk-404__button--primary:hover,
.hk-404__button--primary:focus-visible{
  background: var(--hk-404-primary-hover);
  color: #fff;
}

.hk-404__button--secondary{
  background: var(--hk-404-secondary);
  color: #fff;
}

.hk-404__button--secondary:hover,
.hk-404__button--secondary:focus-visible{
  background: #566371;
  color: #fff;
}

@media (max-width: 767px){
  .hk-404__hero-title{
    margin-bottom: 42px;
  }

  .hk-404__panel{
    padding: 64px 20px 72px;
  }

  .hk-404__text,
  .hk-404__cta-copy{
    font-size: 1rem;
  }

  .hk-404__button{
    width: 100%;
    min-width: 0;
  }
}
