/*
Theme Name:     Kadence Child Theme (Kadence)
Theme URI:      https://bytegold.com
Template:       kadence
Author:         Bytegold
Author URI:     https://bytegold.com
Description:    Bytegold Theme based on Kadence WP Theme
Version:        1.0.1
*/


body.home .zh-row-logo-effect > div > div:nth-child(2):after {
  z-index: 1;
  content: "";
  background-image: url("/wp-content/uploads/2026/06/Favicon_Zellhoff.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  bottom: -100px;
  right: -150px;
  width: 650px;
  height: 650px;
}

.flexi-font .kt-blocks-info-box-number {
  font-size: min(90px, 5vw) !important;
}
.flexi-font .kt-blocks-info-box-title {
  font-size: min(22px, 1.8vw) !important;
}
.flexi-font .kt-blocks-info-box-text {
  font-size: min(20px, 1.6vw) !important;
}

/** custom diamond list icon top padding **/
.kb-svg-icon-kb-custom-502 svg {
  margin-top: 6px;
}


/* Horizontal centring for the side by side layout.

   Measured from assets/circles-horizontal.png at 2048x716, the circle centres
   sit at 17.432% / 49.951% / 82.520% of the graphic width, not at the 16.667%
   / 50% / 83.333% where three equal columns put theirs. The row's side padding
   pulls the columns the other way, and the two effects very nearly cancel: what
   is left is the outer content sitting a few pixels towards the middle of the
   page. With C for the grid content width and p for the edge padding, the
   residual is 0.65136p - 0.007653C on the left and its mirror on the right,
   which is about 6px at 1290 and about 8.5px at 1024, because p is fixed while
   the circle offset scales.

   Written as a percentage of the column's own width so it tracks C, and with p
   left as the Kadence variable so it follows the theme's edge padding. */
@media screen and (min-width: 768px) {

	/* Pin the graphic to the row width. Left on contain it stays width limited
	   only while the text is long enough to keep the row tall, and shortening a
	   text would silently switch it to height limited, shrinking the circles and
	   throwing the alignment out. */
	.flexi-font {
		background-size: 100% auto !important;
	}

	.flexi-font > .kt-row-column-wrap > .wp-block-kadence-column:nth-child(1) > .kt-inside-inner-col {
		transform: translateX(calc(2.296% - 0.65136 * var(--global-content-edge-padding, 1.5rem)));
	}
	.flexi-font > .kt-row-column-wrap > .wp-block-kadence-column:nth-child(3) > .kt-inside-inner-col {
		transform: translateX(calc(0.6504 * var(--global-content-edge-padding, 1.5rem) - 2.44%));
	}
}
/* Aimed at Windows display scaling, but it matches every retina screen too,
   phones and Macs included. Kept because the current desktop and tablet look
   depends on it. The stacked layout further down overrides it. */
@media screen and (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
  .flexi-font .wp-block-kadence-infobox {
    max-width: 220px;
  }
}

/* Stacked layout below Kadence's mobile breakpoint.

   The three circles are a background graphic, so the content has to be pinned
   to the geometry of that graphic instead of to the column grid. Measured from
   assets/circles-vertical.png at 716x2048:

     aspect ratio      716 / 2048
     circle diameter   0.99721 of the container width
     ring thickness    0.06564 of the container width
     inner diameter    0.86592 of the container width
     circle centres    17.432% / 49.951% / 82.520% of the container height

   Three equal grid rows put their centres at 16.667% / 50% / 83.333%, so the
   outer two are nudged towards the middle to land on the real circle centres.
   Offsets are given in cqw: 0.00765 and 0.00814 of the height, and the height
   is 2.86034 times the width.

   Type and spacing are expressed in cqw against the container, so they scale
   with the circles and the content cannot grow out of the ring at any width.
   The limit on the content block is the chord rather than the inscribed
   square, so width and height together only have to satisfy w2 + h2 < d2. */
@media screen and (max-width: 767px) {

	/* the graphic moves off the full width row and onto the grid, so that it
	   lines up with the three cells instead of with the window */
	.flexi-font {
		background-image: none !important;
		padding-block: var(--global-kb-spacing-lg, 3rem);
		padding-inline: 1rem;
	}

	.flexi-font > .kt-row-column-wrap {
		container-type: inline-size;
		aspect-ratio: 716 / 2048;
		max-width: 420px;
		margin-inline: auto;
		grid-template-columns: minmax(0, 1fr) !important;
		grid-auto-rows: minmax(0, 1fr) !important;
		gap: 0 !important;
		padding: 0 !important;
		background-image: url("assets/circles-vertical.png");
		background-repeat: no-repeat;
		background-size: 100% 100%;
	}

	/* fill the cell, so the content centres against the circle rather than
	   against its own height */
	.flexi-font > .kt-row-column-wrap > .wp-block-kadence-column {
		display: flex !important;
		flex-direction: column !important;
		align-self: stretch !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	.flexi-font .kt-inside-inner-col {
		flex: 1 1 auto !important;
		display: flex !important;
		flex-direction: column !important;
		justify-content: center !important;
		align-items: center !important;
		gap: 0 !important;
		padding: 0 !important;
	}

	/* the outer circles do not sit on the grid thirds */
	.flexi-font > .kt-row-column-wrap > .wp-block-kadence-column:nth-child(1) > .kt-inside-inner-col {
		transform: translateY(2.188cqw);
	}
	.flexi-font > .kt-row-column-wrap > .wp-block-kadence-column:nth-child(3) > .kt-inside-inner-col {
		transform: translateY(-2.328cqw);
	}

	.flexi-font .wp-block-kadence-infobox {
		max-width: none !important;
		width: 100% !important;
		margin: 0 !important;
	}

	.flexi-font .kt-blocks-info-box-link-wrap {
		max-width: 60cqw !important;
		margin-inline: auto !important;
		padding: 0 !important;
		background: none !important;
		border: 0 !important;
		text-align: center !important;
	}

	.flexi-font .kt-blocks-info-box-media-container,
	.flexi-font .kt-blocks-info-box-media {
		margin: 0 !important;
		padding: 0 !important;
		overflow: visible !important;
	}

	.flexi-font .kt-blocks-info-box-number {
		font-size: 19.92cqw !important;
		line-height: 1 !important;
		font-weight: 900 !important;
		margin: 0 !important;
	}

	.flexi-font .kt-infobox-textcontent h3.kt-blocks-info-box-title {
		font-size: 4.85cqw !important;
		line-height: 1.15 !important;
		font-weight: 700 !important;
		margin: 1.73cqw 0 0 !important;
	}

	.flexi-font .kt-blocks-info-box-text {
		font-size: 4.42cqw !important;
		line-height: 1.45 !important;
		font-weight: 200 !important;
		margin: 1.4cqw 0 0 !important;
	}
}

.full-height-image-slider .kt-image-overlay-wrap,
.full-height-image-slider .kt-block-intrisic,
.full-height-image-slider .kt-image-overlay-wrap img {
  height: 100%;
  min-height: 100%;
  max-width: auto;
  width: auto;
}

.table-format {
  position: relative;
  z-index: 1;
}

.table-format tbody tr th, .table-format tbody tr td {
  width: auto;
  max-width: 300px;
}
.table-format tbody tr th:nth-child(1) {
	background: var(--global-palette5);
}
.table-format tbody tr td:nth-child(1) {
	font-weight: 400;
	position: relative;
}
.table-format tbody tr td:nth-child(1):after {
	position: absolute;
	content: "";
	width: 1px;
	height: 100%;
	top: 0;
	right: 0;
	background: var(--global-palette6);
}
.table-format tbody tr:nth-child(even) td:nth-child(1) {
	background: var(--global-palette9);
}
.table-format tbody tr:nth-child(odd) td:nth-child(1) {
  background: color-mix(in srgb, var(--global-palette1) 30%, var(--global-palette9));
}
.table-format tbody tr td:not(:first-child):not(:nth-child(2)) {
	border-left: 1px solid var(--global-palette6);
}

@media screen and (max-width: 768px) { 
	.table-format tbody tr > :nth-child(1) {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
		max-width: 40vw !important;
	}
}

.table-format.table-transparent {
	overflow: hidden;
}
.table-format.table-transparent tbody tr:nth-child(even) td:nth-child(1) {
  background: initial;
}
.table-format.table-transparent tbody tr:nth-child(odd) td:nth-child(1) {
  background: initial;
}



.kb-advanced-form input[type=text],
.kb-advanced-form input[type=email],
.kb-advanced-form textarea {
  border-radius: 0.75rem !important;
}

.kb-advanced-form .kb-adv-form-required {
  color: var(--global-palette9) !important;
}

/** Startseite testimonials carousel (Kadence slider 2_ec37af-00) **/
/* Kadence clips each slide (overflow hidden on .kb-advanced-slide-inner) and Splide clips the
   track, which cut the card shadow off and left it showing only in the rounded corners. */
.kb-advanced-slider-2_ec37af-00 .kb-advanced-slide-inner {
  overflow: visible;
}
.kb-advanced-slider-2_ec37af-00 .splide__track {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  margin-top: -1.5rem;
  margin-bottom: -1.5rem;
}
/* Phones: arrows centered below the cards instead of on top of them. */
@media screen and (max-width: 767px) {
  .kb-advanced-slider-2_ec37af-00 .splide {
    display: flex;
    flex-direction: column;
  }
  .kb-advanced-slider-2_ec37af-00 .splide__arrows {
    order: 1;
    position: static;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
  }
  /* All cards as tall as the longest testimonial, so the arrows sit right below every card. */
  .kb-advanced-slider-2_ec37af-00 .kb-advanced-slide,
  .kb-advanced-slider-2_ec37af-00 .kb-advanced-slide-inner,
  .kb-advanced-slider-2_ec37af-00 .kb-advanced-slide-inner > .wp-block-kadence-column,
  .kb-advanced-slider-2_ec37af-00 .kb-advanced-slide-inner > .wp-block-kadence-column > .kt-inside-inner-col {
    height: 100%;
  }
  .kb-advanced-slider-2_ec37af-00 .kb-advanced-slide-inner-wrap {
    height: 100%;
    align-items: stretch;
  }
  .kb-advanced-slider-2_ec37af-00 .splide__arrows .splide__arrow {
    position: static;
    transform: none;
    margin: 0;
  }
}

/** Header: compact desktop header between Kadence's mobile breakpoint (1024px) and 1300px **/
/* Logo, menu and button scale smoothly from compact at 1025px to the full Customizer sizes at
   1300px (logo 200 to 300px, menu 16 to 18px, button 17 to 20px), so there is no jump. */
/* In this range the full-size logo, menu and button did not fit in one row: the menu wrapped
   to a second line below the header and the button label broke in two. */
#main-header .header-button {
  white-space: nowrap;
}
@media screen and (min-width: 1025px) and (max-width: 1299px) {
  #main-header .site-branding a.brand img {
    max-width: clamp(200px, calc(200px + (100vw - 1025px) * 0.3636), 300px);
  }
  #main-header .main-navigation .primary-menu-container > ul {
    flex-wrap: nowrap;
  }
  #main-header .main-navigation .primary-menu-container > ul > li.menu-item > a {
    font-size: clamp(16px, calc(16px + (100vw - 1025px) * 0.00727), 18px);
    padding-left: clamp(0.4em, calc(0.4em + (100vw - 1025px) * 0.0131), 0.6em);
    padding-right: clamp(0.4em, calc(0.4em + (100vw - 1025px) * 0.0131), 0.6em);
  }
  #main-header .header-button {
    font-size: clamp(17px, calc(17px + (100vw - 1025px) * 0.01091), 20px);
  }
}

/** Info boxes with the icon above the text on tablet (row class zh-tablet-icon-top) **/
/* Kadence keeps the icon's right margin from the desktop "icon left" layout when the tablet
   layout puts it on top, which pushes the icon 10px left of center. */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .zh-tablet-icon-top .kt-blocks-info-box-media {
    margin-right: 0 !important;
  }
}
