/*
Theme Name: jk-default-theme
Author: Jürgen Koenen
Description: A flexible starter theme with customizable header layouts.
Version: 1.0
*/

:root {
  --body-font: sans-serif;
  --heading-font: sans-serif;
}
/* Fonts */
@font-face {
  font-family: 'Comico';
  src: url('/wp-content/themes/jk-default-theme/assets/Fonts/Comico/Comico-Regular.woff2') format('woff2'),
       url('/wp-content/themes/jk-default-theme/assets/Fonts/Comico/Comico-Regular.woff') format('woff'),
       url('/wp-content/themes/jk-default-theme/assets/Fonts/Comico/Comico-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'DancingScript';
  src: url('/wp-content/themes/jk-default-theme/assets/Fonts/DancingScript/DancingScript-Regular.woff2') format('woff2'),
       url('/wp-content/themes/jk-default-theme/assets/Fonts/DancingScript/DancingScript-Regular.woff') format('woff'),
       url('/wp-content/themes/jk-default-theme/assets/Fonts/DancingScript/DancingScript-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Kalam';
  src: url('/wp-content/themes/jk-default-theme/assets/Fonts/Kalam/Kalam-Bold.woff2') format('woff2'),
       url('/wp-content/themes/jk-default-theme/assets/Fonts/Kalam/Kalam-Bold.woff') format('woff'),
       url('/wp-content/themes/jk-default-theme/assets/Fonts/Kalam/Kalam-Bold.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'PublicSans';
  src: url('/wp-content/themes/jk-default-theme/assets/Fonts/PublicSans/PublicSans-Regular.woff2') format('woff2'),
       url('/wp-content/themes/jk-default-theme/assets/Fonts/PublicSans/PublicSans-Regular.woff') format('woff'),
       url('/wp-content/themes/jk-default-theme/assets/Fonts/PublicSans/PublicSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Satoshi';
  src: url('/wp-content/themes/jk-default-theme/assets/Fonts/Satoshi/Satoshi-Regular.woff2') format('woff2'),
       url('/wp-content/themes/jk-default-theme/assets/Fonts/Satoshi/Satoshi-Regular.woff') format('woff'),
       url('/wp-content/themes/jk-default-theme/assets/Fonts/Satoshi/Satoshi-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Synonym';
  src: url('/wp-content/themes/jk-default-theme/assets/Fonts/Synonym/Synonym-Regular.woff2') format('woff2'),
       url('/wp-content/themes/jk-default-theme/assets/Fonts/Synonym/Synonym-Regular.woff') format('woff'),
       url('/wp-content/themes/jk-default-theme/assets/Fonts/Synonym/Synonym-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Supreme';
  src: url('/wp-content/themes/jk-default-theme/assets/Fonts/Supreme/Supreme-Regular.woff2') format('woff2'),
       url('/wp-content/themes/jk-default-theme/assets/Fonts/Supreme/Supreme-Regular.woff') format('woff'),
       url('/wp-content/themes/jk-default-theme/assets/Fonts/Supreme/Supreme-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Ranade';
  src: url('/wp-content/themes/jk-default-theme/assets/Fonts/Ranade/Ranade-Regular.woff2') format('woff2'),
       url('/wp-content/themes/jk-default-theme/assets/Fonts/Ranade/Ranade-Regular.woff') format('woff'),
       url('/wp-content/themes/jk-default-theme/assets/Fonts/Ranade/Ranade-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

/* ------------------------------------- */
body,p {
  font-family: var(--body-font);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
}

.container a {color:#333;
   text-decoration: none;
   font-weight:bold;
  }

.container a:hover {
  border-bottom:solid 2px #333;
  transition: opacity 0.3sec;
}

.site-content{
    background-color: rgba(255,255,255,0.92);
    padding: 20px 30px;
    border-right: 1px solid #ddd;
    border-left: 1px solid #ddd;
}

.site-content a {
    color: var(--content-link-color, #333);
    text-decoration:none;
    padding:5px;
}

.site-content a:hover {
    background: #ddd;
}


html, body {
  height: 100%;
  margin: 0;
}

.site-wrapper {
 /* display: flex;
  flex-direction: column;*/
  min-height: 100vh;
}

.site-content {
  flex: 1;
}

/* Top Bar */
.jk-topbar {
  background-color: var(--topbar-bg);  
  color: #fff;
  padding: 10px 20px;
  font-size: 14px;
}

.jk-topbar-items {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  justify-content: flex-end; /* Aligns items to the right */
}

.jk-topbar-items li {
  position: relative;
  padding-right: 15px;
  margin-right: 15px;
}

.jk-topbar-items li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 16px;
  width: 1px;
  background-color: #eee; /* Adjust color to match your theme */
}


.jk-topbar-items li a {
  display: flex;
  align-items: center; /* Vertically centers icon and text */
  gap: 6px;             /* Space between icon and text */
  color: var(--topbar-link-color);
  text-decoration: none;
}


.jk-topbar-items i {
  margin-right: 5px;
}

.jk-topbar-items a:hover {
  opacity: 0.8;
}



/* Base layout */
body {
  margin: 0;
  font-family: sans-serif;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;

}

.site-branding .site-description {
  font-size:1.5rem;
}


.site-title {
  margin: 0;
  font-size: 1.5rem;
}

.site-header{  
  background: var(--inner-bg);
}

.header-wrapper {
  display: flex;
  align-items: center;
  padding: 20px 20px 10px;
}

.layout-logo-left {
  gap: 30px;
}

.layout-logo-right {
  flex-direction: row-reverse;
  gap: 30px;
}

.layout-logo-center {
  flex-direction: column;
  text-align: center;
}

.layout-logo-center .logo img {
  padding-bottom: 15px;;
}

.logo img {
  max-height: 100px;
  height: auto;
  width: auto;
}

.menu-search {
  margin-left: auto;
}



/* menu */
/* Reset list styles */
.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.menu li {
  position: relative;
}

.menu a {
  background: var(--outer-bg);
  border-radius:10px;
  text-decoration: none;
  color: var(--menu-link-color);
  padding: 5px 15px;
  display: block;
  transition: background 0.3s ease;
}

menu a:hover {
  opacity: 0.8;
}


/* Submenu styling */
.menu ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  flex-direction: column;
  background: transparent;
  z-index: 1000;
  min-width: 180px;
  gap: 3px;
}

.menu ul ul li {
  width: 100%;
  list-style: none;
}

.menu li:hover > ul {
  display: flex;
}

.menu ul ul {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.menu li:hover > ul {
  opacity: 1;
  pointer-events: auto;
}



.sub-menu {
  display: none;
  transition: all 0.3s ease;
} 

.menu li:hover .sub-menu{
  padding:3px 0 0 1rem;
}

#mobile-menu ul.sub-menu{
  background: rgba(0,0,0,0,0.9)!important;
  margin: 1rem 0 0 0;
}
.sub-menu a{
  color:#333;
  background-color: #eee;
  border-bottom: 1px #333 solid;
}

.submenu-open + .sub-menu {
  display: block;
  padding:3px 0 0 2rem;
}

.sub-menu li {
    border-bottom: 0 solid #ddd!important;
    list-style: none;
}





@media (max-width: 768px) {
  .sub-menu {
    display: none;
  }

  .submenu-open + .sub-menu {
    display: block;
  }
}



.menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  position:absolute;
  right:20px;
}

/* Mobile menu on desktop*/

.mobile-menu-jk {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 450px;
  height: 100vh;
  background-color: var(--outer-bg);
  color: #333;
  /*transition: right 0.3s ease;*/
  overflow-y: auto;
  z-index:3000;
  box-shadow: -3px 5px #eee;
  opacity:100%;
    -webkit-animation: fadeInFromNone 0.7 ease-out;
    -moz-animation: fadeInFromNone 0.7s ease-out;
    -o-animation: fadeInFromNone 0.7s ease-out;
    animation: fadeInFromNone 0.7s ease-out;
}

@-webkit-keyframes fadeInFromNone {
    0% {
        display: none;
        opacity: 0;
        right:-100%;
    }

    1% {
        display: block;
        opacity: 0;
    }

    100% {
        display: block;
        opacity: 1;
        right:0;
    }
}

.mobile-menu-jk-wrapper{
  padding:1rem 1rem 0 1.5rem;
  margin-top: 10%;
}
.menu-close {
  border-radius: 50%;
  width:30px;
  height:30px;
  border: solid 1px #555;
  padding:7px;
  color:#555;
  position:absolute;
  right:20px;
  top:60px;
  z-index:4000;
}

.pos{
  position:relative;
  width:100%;
}

.mobile-menu-jk.open {
  right: 0;
}

.mobile-menu-jk {
  display: none;
}

.mobile-menu-jk.open {
  display: block;
}


#menu-main {
  padding:5px;
}


.mobile-menu-items {
  list-style: none;
}

.mobile-menu-items li {
  padding: 1rem 0;
  border-bottom: 1px solid #ddd;
  text-align: left;
  background: rgba(0,0,0,0.06);
}

.mobile-menu-items li:hover {
  background: rgba(0,0,0,0.1);
}

.mobile-menu-items li {
  position: relative;
 /* padding-left: 1.5em;*/
}

.mobile-menu-items li::before {
  content: "\f0a9"; /* Font Awesome icon code (e.g. check-circle) */
  font-family: "Font Awesome 6 Free";
  font-weight: 900; /* Required for solid icons */
  position: absolute;
  font-size: 1.5em;
  left: -10px;
  top: 10px;
  color: var(--menu-link-color, #fff); /* Customize icon color */
}


.mobile-menu-items a {
  text-decoration: none;
  color: var(--menu-link-color);
  margin-left: 1.5em;
}

#mobile-menu .sub-menu li::before {
  content: "\f0a9"; 
  font-size: 1.1rem; /* Adjust size here */
   color: var(--menu-link-color, #fff); /* Optional: arrow color */
  position: absolute;
  left: -8px;
  top: 15px;
}

#mobile-menu .sub-menu li {
  border-top: 1px solid #fff;
}

#mobile-menu .sub-menu li li::before {
  content: "\f0a9"; 
  font-size: 0.8rem; /* Adjust size here */
  color: var(--menu-link-color, #fff); /* Optional: arrow color */
  position: absolute;
  left: -5px;
  top: 20px;
}


/* Responsive toggle */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
  body nav.menu {
    display: block;
  }
  body .mobile-menu {
    display: none !important;
  }

  /* If mobile menu is forced on desktop */
body.show-mobile-menu-desktop nav.menu {
  display: none;
}

body.show-mobile-menu-desktop .mobile-menu {
  display: block;
}
}

@media (max-width: 768px) {
  .menu, .jk-topbar {
    display: none !important;
  }
  .mobile-menu-jk {
  top: 0;
  }
  .logo img {max-height:60px;}

  .site-branding .site-description {
  font-size:0.9rem;
  }
.container {
  padding: 0 20px;
}

}

@media (min-width:451px) {
  .phone-only {
    display: none;
  }
  .no-phone {
    display: block;
  }
}

@media (max-width:450px) {
  .phone-only {
    display: block;
  }
  .no-phone {
    display: none;
  }
}

/* Optional: show mobile menu on desktop if enabled */
body.show-mobile-menu-desktop .menu-toggle {
  display: block;
}

body.show-mobile-menu-desktop .mobile-menu {
  display: none;
}

body.show-mobile-menu-desktop .mobile-menu.active {
  display: flex;
}


/* Search form inline */
.menu-search .search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-field {
  margin-top:2px;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.search-submit {
  margin-top:2px;
  padding: 6px 10px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.layout-logo-right li.menu-search {
  position: absolute!important;
  left:20px;}

.layout-logo-left li.menu-search {
  position: absolute!important;
  right:20px;}

  .ajax-search {
  position: relative;
  width: 100%;
  max-width: 300px;
}

#ajax-search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#ajax-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding:5px;
  background: #ddd;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 5px;
  max-height: 300px;
  min-height:100px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  font-size: 80%;
  color: #000;
}

#ajax-search-results ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#ajax-search-results li {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

#ajax-search-results li a {
  text-decoration: none;
  color: #333;
}

#ajax-search-results li:hover {
  background: #f0f0f0;
}


  @media (max-width: 768px) {
  .menu-search {
    display: none;
  }
}

/* content */
.wp-block-button__link { 
    background-color: var(--topbar-bg, #333);
    color: var(--topbar-link-color,#fff)!important;
}



  /* footer */
  footer.site-footer {
  background-color: var(--footer-bg); /* or #222 for slightly lighter */
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
}



footer.site-footer a {
  color: #fff;
  text-decoration: underline;
}

footer.site-footer a:hover {
  color: #ccc;
}

.footer-legal-links {
  margin-bottom: 2rem;
  text-align: center;
}

.footer-links-headline {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #666;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links-list a {
  text-decoration: none;
  color: #999;
  font-size: 0.9rem;
}

.footer-links-list a:hover {
  color: #333;
}

.footer-legal-links h4.footer-links-headline {
  color:#fff;
}

#scrollToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: none;
  background: lightblue;
  color: #fff;
  border: none;
  border-radius: 100%;
  padding: 0.75rem 1.2rem;
  font-size: 1.5rem;
  font-weight:900;
  cursor: pointer;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

#scrollToTop:hover {
  background: #555;
}



/* video section */
.intro-video-section {
  width: 100%;
  background: #000;
  padding: 0;
  border-bottom: solid 1px #cccccc;
  border-top: solid 1px #cccccc;
}

.video-wrapper {
  max-width: 1920px;
  margin: 0 auto;
  max-height: 550px;
  height: 550px; /* optional: force height */
  overflow: hidden;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Alignment classes */
.video-align-top video{
  object-position: top center;
}

.video-align-center video{
  object-position: center center;
}

.video-align-bottom video{
  object-position: bottom center;
}


.youtube-embed {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.youtube-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


@keyframes h2SlideFadeLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

body.h2-animated h2.animate-in {
  opacity: 0;
  animation: h2SlideFadeLeft 1s ease-out forwards;
}

.outer-wrapper {
  background-color: var(--outer-bg, #000);
}

.inner-wrapper {
  max-width: 1920px;
  margin: 0 auto;
  background-color: var(--inner-bg, #fff);
}

.site-branding.layout-inline {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-branding.layout-stacked {
  text-align: center;
  display: block;
}

.site-branding .branding-text {
  font-size: 1rem;
  line-height: 1.4;
}

.site-branding .site-description {
  font-weight: 700;
}


.page-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.page-layout.sidebar-right {
    grid-template-columns: 1fr var(--sidebar-width);
}

.page-layout.sidebar-left {
    grid-template-columns: var(--sidebar-width) 1fr;
}

.page-layout.sidebar-both {
    grid-template-columns: var(--sidebar-width) 1fr var(--sidebar-width);
}

.sidebar {
    background: #f7f7f7;
    padding: 1.5rem;
}

.content-area {
    min-width: 0;
}


.main-content {
  width: 70%;
}

.intro-slider-section {
    width: 100%;
    overflow: hidden;
}

.slider-wrapper {
    width: 100%;
    position: relative;
}

.intro-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro-slider.align-left img {
    object-position: left center;
}

.intro-slider.align-center img {
    object-position: center center;
}

.intro-slider.align-right img {
    object-position: right center;
}

.intro-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Mobile padding fix */
@media (max-width: 768px) {
    .page-layout {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}


.list-item {
    margin-bottom: 2rem;
}

.list-inner {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: var(--inner-bg, #fff);
    border: 1px solid var(--outer-bg, #333);
    border-radius: 10px;
    padding: 1.5rem;
}

/* Bildgrößen */
.list-thumb img {
    width: 260px;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Standard: Bild links */
.list-inner.image-left .list-thumb {
    order: 0;
}
.list-inner.image-left .list-content {
    order: 1;
}

/* Alternierend: Bild rechts */
.list-inner.image-right .list-thumb {
    order: 1;
}
.list-inner.image-right .list-content {
    order: 0;
}

/* Titel */
.list-content h2 {
    margin: 0 0 0.5rem;
    font-size: 1.4rem;
}

/* Excerpt */
.list-excerpt {
    margin: 0;
    color: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .list-inner {
        flex-direction: column;
        text-align: center;
    }

    .list-thumb img {
        width: 100%;
        max-width: 400px;
    }
}



/* GRID WRAPPER */
.blog-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(var(--grid-columns), 1fr);
    margin-bottom: 2rem;
}

/* GRID ITEM BASE */
.blog-grid .grid-item {
    position: relative;
    background: #eee;
    border: 1px solid var(--outer-bg, #333);
    border-radius: 10px;
    padding: 1rem;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* HOVER EFFECT */
.blog-grid .grid-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* IMAGE */
.blog-grid .grid-item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

/* TITLE */
.blog-grid .grid-item h2 {
    font-size: 1.1rem;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* EXCERPT OVERLAY */
.grid-excerpt {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 10px;
    z-index: 123;
}

/* SHOW EXCERPT ON HOVER */
.grid-item:hover .grid-excerpt {
    opacity: 1;
    transform: translateY(0);
}

/* featured image */

.hero-featured-image {
    width: 100%;
    max-height: var(--featured-max-height);
    overflow: hidden;
    margin-bottom: 0;
    border-radius: 10px;
}

/* COVER: füllt den Bereich, kann beschnitten werden */
.hero-fit-cover {
    display: block;
}

.hero-fit-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* CONTAIN: komplettes Bild sichtbar, zentriert */
.hero-fit-contain {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000; /* oder var(--outer-bg) o.ä. */
}

.hero-fit-contain img {
    max-height: var(--featured-max-height);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
