/*
Theme Name: Kool King Karl
Theme URI: https://koolkingkarl.de
Author: AuHuur Media
Description: Dunkles Full-Site-Editing-Theme für Veranstaltungen, Kultur und Neuigkeiten aus Aachen und der Euregio.
Version: 1.2.2
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: koolkingkarl
*/

:root {
  --kkk-yellow: #ffc451;
  --kkk-black: #050505;
  --kkk-gray: #151515;
  --kkk-gray-2: #222;
  --kkk-white: #fff;
  --kkk-muted: #b7b7b7;
  --kkk-radius: 1.25rem;
  --kkk-shadow: 0 20px 70px rgb(0 0 0 / 35%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
a { text-underline-offset: .2em; }
a:hover { color: var(--kkk-yellow); }
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--kkk-yellow);
  outline-offset: 3px;
}

.kkk-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgb(5 5 5 / 78%);
  backdrop-filter: blur(18px);
  transition: background .25s ease, border-color .25s ease;
}
.kkk-site-header.is-scrolled { background: rgb(5 5 5 / 96%); border-color: #2d2d2d; }
.kkk-header-inner { min-height: 5rem; }
.kkk-header-logo img { width: 3.5rem; height: 3.5rem; object-fit: contain; }
.kkk-brand-name { letter-spacing: -.04em; white-space: nowrap; }
.kkk-site-header .wp-block-navigation-item__content { text-decoration: none; font-weight: 700; }
.kkk-nav-cta > a {
  padding: .7rem 1rem !important;
  border: 1px solid var(--kkk-yellow);
  border-radius: 999px;
  color: var(--kkk-yellow) !important;
}

.kkk-venue-page { padding-block: clamp(3rem, 8vw, 7rem); }
.kkk-venue-hero { align-items: start; }
.kkk-venue-hero h1 { margin-top: .4rem; font-size: clamp(2.7rem, 7vw, 6.5rem); }
.kkk-venue-image img { border-radius: var(--kkk-radius); box-shadow: var(--kkk-shadow); }

.kkk-hero {
  position: relative;
  min-height: min(52rem, calc(100svh - 5rem));
  isolation: isolate;
  overflow: hidden;
  background-color: #2c1a00;
  background-image: linear-gradient(90deg, rgb(0 0 0 / 89%) 0%, rgb(0 0 0 / 60%) 48%, rgb(0 0 0 / 16%) 100%), url("/wp-content/themes/koolkingkarl-theme-1.2.2/assets/images/auhuur-golden-background.webp");
  background-size: cover;
  background-position: center;
}
.kkk-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  z-index: -1;
  background: linear-gradient(transparent, var(--kkk-black));
}
.kkk-hero-inner { min-height: inherit; position: relative; }
.kkk-eyebrow {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  color: var(--kkk-yellow);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.kkk-eyebrow::before { content: ""; width: 2.3rem; height: 2px; background: currentColor; }
.kkk-hero h1 { max-width: 13ch; font-size: clamp(3.2rem, 7vw, 7rem); line-height: .92; letter-spacing: -.065em; text-wrap: balance; }
.kkk-hero-copy { max-width: 39rem; color: #e7e7e7; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.kkk-hero-logo {
  position: absolute;
  right: clamp(-8rem, -2vw, 0rem);
  bottom: -5rem;
  width: min(48vw, 43rem);
  filter: drop-shadow(0 1.5rem 2.5rem rgb(0 0 0 / 60%));
  pointer-events: none;
}
.kkk-hero-logo img { width: 100%; height: auto; }
.wp-block-button.is-style-outline > .wp-block-button__link { border-width: 1px; }

.kkk-section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.kkk-section-title { max-width: 14ch; font-size: clamp(2.5rem, 5vw, 5rem); line-height: .98; letter-spacing: -.055em; }
.kkk-section-intro { max-width: 42rem; color: var(--kkk-muted); font-size: 1.1rem; }
.kkk-calendar-section { min-height: 100svh; background: var(--kkk-black); }
.kkk-local-band { border-block: 1px solid #2b2b2b; background: linear-gradient(120deg, #151515, #0a0a0a); }
.kkk-local-band strong { color: var(--kkk-yellow); }

.kkk-news-query .wp-block-post-template { gap: 1.5rem; }
.kkk-news-query .wp-block-post {
  overflow: hidden;
  border: 1px solid #292929;
  border-radius: var(--kkk-radius);
  background: var(--kkk-gray);
  transition: transform .2s ease, border-color .2s ease;
}
.kkk-news-query .wp-block-post:hover { transform: translateY(-4px); border-color: #5a4827; }
.kkk-news-query .wp-block-post-featured-image img { aspect-ratio: 16/10; object-fit: cover; }
.kkk-news-card-body { padding: 1.5rem; }
.kkk-news-query .wp-block-post-title a { text-decoration: none; }

.kkk-submit-cta {
  overflow: hidden;
  border: 1px solid #6b542b;
  border-radius: calc(var(--kkk-radius) * 1.4);
  background: radial-gradient(circle at 80% 20%, rgb(255 196 81 / 22%), transparent 35%), #151515;
  box-shadow: var(--kkk-shadow);
}
.kkk-site-footer { border-top: 1px solid #282828; color: var(--kkk-muted); }
.kkk-site-footer a { color: #e7e7e7; }

.kkk-content-shell { padding-block: clamp(3rem, 8vw, 7rem); }
.kkk-content-shell > * { max-width: 48rem; }
.kkk-content-shell > .alignwide { max-width: var(--wp--style--global--wide-size); }
.kkk-content-shell h1 { font-size: clamp(3rem, 7vw, 6rem); line-height: .95; letter-spacing: -.055em; }
.wp-block-post-featured-image img { border-radius: var(--kkk-radius); }
.wp-block-query-pagination { margin-top: 3rem; }

/* The Events Calendar free: keep native event pages visually consistent. */
.tribe-events,
#tribe-events-pg-template,
.tribe-common { color: var(--kkk-white); }
.tribe-events .tribe-events-l-container,
#tribe-events-pg-template { max-width: 1240px; }
.tribe-common :where(.tribe-common-c-btn, .tribe-common-c-btn-border),
.tribe-events :where(.tribe-events-c-search__button, .tribe-events-c-subscribe-dropdown__button-text) {
  border-color: var(--kkk-yellow) !important;
  background: var(--kkk-yellow) !important;
  color: var(--kkk-black) !important;
}
.tribe-events :where(.tribe-events-calendar-list__event-row, .tribe-events-calendar-month__day),
.tribe-events-single { border-color: #2d2d2d !important; }
.tribe-events-single-event-title { font-family: var(--wp--preset--font-family--display); }


@media (max-width: 900px) {
  .kkk-hero { min-height: 48rem; background-position: 42% center; }
  .kkk-hero-logo { width: min(70vw, 30rem); right: -7rem; opacity: .68; }
  .kkk-hero-content { position: relative; z-index: 2; }
}

@media (max-width: 680px) {
  .kkk-header-inner { min-height: 4.25rem; }
  .kkk-header-logo img { width: 2.8rem; height: 2.8rem; }
  .kkk-brand-name { font-size: 1rem !important; }
	:is(.kkk-site-header, header.wp-block-template-part) .wp-block-navigation__responsive-container-open,
	:is(.kkk-site-header, header.wp-block-template-part) .wp-block-navigation__responsive-container-close {
    color: var(--kkk-yellow);
  }
	:is(.kkk-site-header, header.wp-block-template-part) .wp-block-navigation__responsive-container-open svg,
	:is(.kkk-site-header, header.wp-block-template-part) .wp-block-navigation__responsive-container-close svg { fill: currentColor; }
  .kkk-site-header.has-open-menu { backdrop-filter: none; }
	.wp-block-navigation__responsive-container.is-menu-open.kkk-mobile-menu {
    position: fixed;
		top: var(--kkk-mobile-menu-top, 0px) !important;
		right: auto !important;
		bottom: auto !important;
		left: var(--kkk-mobile-menu-left, 0px) !important;
    z-index: 100000;
		box-sizing: border-box;
		width: var(--kkk-mobile-menu-width, 100vw) !important;
		height: var(--kkk-mobile-menu-height, 100vh) !important;
		height: var(--kkk-mobile-menu-height, 100dvh) !important;
		min-height: 0 !important;
		max-height: var(--kkk-mobile-menu-height, 100dvh) !important;
		display: block !important;
		overflow-x: hidden;
    overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
    padding: max(1.25rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
    background: var(--kkk-black) !important;
    color: var(--kkk-white) !important;
		color-scheme: dark;
  }
	:is(.kkk-site-header, header.wp-block-template-part) .wp-block-navigation__responsive-container.is-menu-open:not(.kkk-mobile-menu) {
		position: fixed !important;
		inset: 0 !important;
		box-sizing: border-box;
		width: 100vw !important;
		height: 100vh !important;
		height: 100dvh !important;
		min-height: 0 !important;
		max-height: 100dvh !important;
		overflow-y: auto;
		padding: max(1.25rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
		background: var(--kkk-black) !important;
		color: var(--kkk-white) !important;
		color-scheme: dark;
	}
	:is(.kkk-site-header, header.wp-block-template-part) .wp-block-navigation__responsive-container.is-menu-open:not(.kkk-mobile-menu) :where(.wp-block-navigation__responsive-dialog, .wp-block-navigation__responsive-container-content, .wp-block-navigation__submenu-container) {
		background: var(--kkk-black) !important;
		color: var(--kkk-white) !important;
	}
	:is(.kkk-site-header, header.wp-block-template-part) .wp-block-navigation__responsive-container.is-menu-open:not(.kkk-mobile-menu) :where(.wp-block-navigation-item, .wp-block-navigation-item__content) {
		color: var(--kkk-white) !important;
	}
	.wp-block-navigation__responsive-container.is-menu-open.kkk-mobile-menu :where(.wp-block-navigation__responsive-dialog, .wp-block-navigation__responsive-container-content, .wp-block-navigation__submenu-container) {
		min-height: 100%;
		background: var(--kkk-black) !important;
		color: var(--kkk-white) !important;
	}
	.wp-block-navigation__responsive-container.is-menu-open.kkk-mobile-menu .wp-block-navigation__responsive-container-content {
    display: flex;
    justify-content: center;
    padding-block: 4.5rem 2rem;
  }
	.wp-block-navigation__responsive-container.is-menu-open.kkk-mobile-menu .wp-block-navigation__container {
    width: 100%;
    gap: 1rem;
    align-items: stretch !important;
  }
	.wp-block-navigation__responsive-container.is-menu-open.kkk-mobile-menu .wp-block-navigation-item,
	.wp-block-navigation__responsive-container.is-menu-open.kkk-mobile-menu .wp-block-navigation-item__content {
    width: 100%;
    color: var(--kkk-white) !important;
  }
	.wp-block-navigation__responsive-container.is-menu-open.kkk-mobile-menu .wp-block-navigation-item__content {
    padding: .8rem 0;
    border-bottom: 1px solid #2d2d2d;
    font-size: clamp(1.5rem, 8vw, 2.25rem);
  }
	.wp-block-navigation__responsive-container.is-menu-open.kkk-mobile-menu :where(.wp-block-navigation__responsive-container-close, .wp-block-navigation__submenu-icon) {
		color: var(--kkk-yellow) !important;
	}
	.wp-block-navigation__responsive-container.is-menu-open.kkk-mobile-menu :where(.wp-block-navigation__responsive-container-close, .wp-block-navigation__submenu-icon) svg {
		fill: currentColor !important;
		stroke: currentColor !important;
	}
	.wp-block-navigation__responsive-container.is-menu-open.kkk-mobile-menu .kkk-nav-cta > a {
    width: fit-content;
    margin-top: .75rem;
    padding: .75rem 1.15rem !important;
    border-bottom-color: var(--kkk-yellow);
    color: var(--kkk-yellow) !important;
    font-size: 1.1rem;
  }
  .kkk-hero { min-height: calc(100svh - 4.25rem); background-image: linear-gradient(180deg, rgb(0 0 0 / 60%), rgb(0 0 0 / 92%)), url("/wp-content/themes/koolkingkarl-theme-1.2.2/assets/images/auhuur-golden-background.webp"); }
  .kkk-hero-logo { width: 25rem; right: -9rem; bottom: -2rem; opacity: .38; }
  .kkk-hero h1 { font-size: clamp(3.2rem, 16vw, 5.2rem); }
  .kkk-section { padding-block: 4.5rem; }
}

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