/*
 Theme Name: JK Theme Child 
 Theme URI: juergen-koenen.co.uk
 Description: Child theme for jk-default-theme
 Author: Jürgen Koenen
 Template: jk-default-theme
 Version: 1.0
*/

/* Child theme custom CSS goes here */

/* ----------- Libelle ----------------- */

/* Libelle: immer im Viewport verankert */
#dragonfly {
  position: fixed;
  width: 360px;
  pointer-events: none;
  z-index: 9999;
  transform-origin: center;
  rotate: 3deg;
  animation: dragonflyFlight 8s forwards;
}

/* Fluganimation im Viewport-Koordinatensystem */
@keyframes dragonflyFlight {
  0% {
    transform: translate(0, 0) rotate(10deg);
  }

  25% {
    transform: translate(
      calc(0.005 * var(--deltaX)),
      var(--deltaY)
    ) rotate(20deg);
  }

  55% {
    transform: translate(
      calc(0.1 * var(--deltaX)),
      var(--deltaY)
    ) rotate(30deg);
  }

  85% {
    transform: translate(
      calc(0.6 * var(--deltaX)),
      var(--deltaY)
    ) rotate(80deg);
  }

  100% {
    transform: translate(
      var(--deltaX),
      var(--deltaY2)
    ) rotate(10deg);
  }
}

/* Nach der Landung: gleiche Position, nur Idle-Animation */
#dragonfly.landed {
  position: fixed;
  /* gleiche Transform wie bei 100% – keine Sprünge */
  transform: translate(var(--deltaX), var(--deltaY2)) !important;
  width: 360px;
  rotate: 5deg;
  animation: dragonflyIdle 3s ease-in-out infinite;
}

/* Idle: leichtes Schweben um die Endposition herum */
@keyframes dragonflyIdle {
  0%   { transform: translate(var(--deltaX), var(--deltaY2)); }
  50%  { transform: translate(var(--deltaX), calc(var(--deltaY2) - 6px)); }
  100% { transform: translate(var(--deltaX), var(--deltaY2)); }
}





/* ------------------------------------------------------------- */

.header-wrapper {
    max-width: 1260px;
}

.site-branding, .branding-text {width:100%;
                                color:black;}

.site-content {
    background-color: #f9f8e5;
   position:relative;
   min-height:58vh!important;
}
.site-branding .branding-text {
    padding-right: 13%;
}
.header-wrapper, .site-content {
    background-color: #f9f8e5;
}

.logo{padding:20px 10px;}


.sub-menu li {
    text-align: left;
    min-width:250px;
}


.menu a:hover {
    background: #006600;
    color: white;
}

nav.menu {
  margin:0 0 10px 0;
}

.hero-fit-cover img {
    max-height: var(--featured-max-height);
}



/* ------------------------- */

.hero-featured-image {
    max-width: 1280px;
    margin:auto;
}

.menu a {
    border-radius: 0; 
}





/* Blog */ 
/* Container: Abstand zwischen den Kacheln */
.wp-block-latest-posts__list.is-grid li {
    background: #f9f9f9; /* sanfte Hintergrundfarbe */
    border: 1px solid #e3e3e3; /* feiner Rahmen */
    border-radius: 10px; /* abgerundete Ecken */
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* professioneller Schatten */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-width:350px;
}

.wp-block-latest-posts__list.is-grid li a:hover{
    background: transparent;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Hover-Effekt */
.wp-block-latest-posts__list.is-grid li:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Featured Image */
.wp-block-latest-posts__featured-image img {
    border-radius: 6px;
    margin-bottom: 12px;
}

/* Titel größer und fett */
.wp-block-latest-posts__post-title {
    font-size: 1.25rem; /* größer */
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

/* Datum dezenter */
.wp-block-latest-posts__post-date {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 10px;
    display: block;
}

/* Excerpt kleiner und ruhiger */
.wp-block-latest-posts__post-excerpt {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

/* Read More Link */
.wp-block-latest-posts__read-more {
    font-weight: 600;
    color: #0066cc;
}

/* formatted columns */
.col_formatted {
  background: #eee!important;
  padding:10px;
  border:#ccc 1px solid;
  border-radius:10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}


.wp-block-quote {
    font-style: italic;
    color: grey;
    font-weight:600;
}

.home #libelle-random {
    display: none !important;
}


.jk-contact-form button[type="submit"] {
    background: linear-gradient(135deg, var(--inner-bg, grey), #eee);
    color:#333;
}

.jk-ts-module button,
#jk-booking-form button,
.jk-contact-form button {
    display: inline-block;
    padding: 12px 38px!important;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--inner-bg, grey), #eee);
    color: #333;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.jk-ts-module button a,
#jk-booking-form button a{
     
}

/* Hover */
.jk-ts-module button:hover,
#jk-booking-form button:hover,
.jk-contact-submit button  {
    background: linear-gradient(135deg, var(--inner-bg, grey), #eee);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

/* Active (Klick) */
.jk-ts-module button:active,
#jk-booking-form button:active,
.jk-contact-submit button  {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0,0,0,0.18);
}

/* Focus (Accessibility) */
.jk-ts-module button:focus,
#jk-booking-form button:focus,
.jk-contact-submit button {
    outline: 3px solid  var(--inner-bg, #93c5fd);
    outline-offset: 3px;
}


.entry-meta{
  background:#ddd;
  color:333;
  padding:2px 10px!important;
  text-align:center;
  max-width:300px;
  margin:auto;
  border-radius:5px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.18);
  font-size: 0.7em;
}

.entry-meta p {
  margin:0;
}

/* --- floating nav --- */
/* Container */
#jk-floating-nav {
    position: fixed;
    bottom: 5%;
    right: -300px; /* eingefahren */
    width: 300px;
    z-index: 99999;
    transition: right 0.3s ease;
}

/* ausgeklappt */
#jk-floating-nav.expanded {
    right: 0;
}

/* Toggle Button */
#jk-floating-nav .jk-nav-toggle {
    position: absolute;
    left: -40px;
    top: 0;
    width: 40px;
    height: 40px;
    background: #d35400;
    color: #fff;
    font-size: 24px;
    line-height: 40px;
    text-align: center;
    border-radius: 6px 0 0 6px;
    cursor: pointer;
}

/* Floating Menü Container */
/* Floating Menü Container */
#jk-floating-nav {
    position: fixed;
    bottom: 5%;
    right: -300px; /* eingefahren */
    width: 300px;
    z-index: 99999;
    transition: right 0.3s ease;
}

/* ausgeklappt */
#jk-floating-nav.expanded {
    right: 0;
}

/* Toggle Button */
#jk-floating-nav .jk-nav-toggle {
    position: absolute;
    left: -40px;
    top: 0;
    width: 40px;
    height: 40px;
    background: #d35400;
    color: #fff;
    font-size: 24px;
    line-height: 40px;
    text-align: center;
    border-radius: 6px 0 0 6px;
    cursor: pointer;
}

/* Menü */
#jk-floating-nav ul {
    list-style: none;
    margin: 0;
    padding: 15px;
    background: rgba(255,255,255,0.95);
    border-radius: 10px 0 0 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid #ddd;
}

#jk-floating-nav li {
    margin-bottom: 10px;
}

#jk-floating-nav a {
    color: #d35400;
    font-weight: 600;
    text-decoration: none;
}

#jk-floating-nav a:hover {
    text-decoration: underline;
}

.page-layout img[src$=".jpg"],
.page-layout img[src$=".jpeg"] {
    box-shadow: 0 0 12px rgba(0,0,0,0.25);
    border-radius: 6px;
}


li.menu-item{
   box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.payment-box{
    max-width:700px; margin:auto; padding:30px;border:1px solid #ddd;border-radius:8px;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    #site-content {
        max-width: 100% !important;
        padding-left: 10px;
        padding-right: 10px;
        box-sizing: border-box;
    }
    .site-branding.layout-inline {
    gap: 0;
}

.sub-menu a {
    color: #333;
    background-color: transparent;
    border-bottom: 0px #333 solid;
}

}

.menu-toggle {
    right: 10px;
    top: 34px;
}


.hide {
    display:none;
}

footer.site-footer a {
    color: #333;
    text-decoration: none;
    padding:5px;
}

footer.site-footer a:hover {
    color: #fff;
    text-decoration: none;
    background:#333;
    
}

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