/* =========================
   Highlight
========================= */


/* Falls noch nicht vorhanden: lokale Schrift einbinden */
@font-face {
  font-family: "Bilda";
  src: url("/wp-content/uploads/bilda-regular-webfont.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

/* Highlight Effekt + H1 Schrift erzwingen */
.highlight-animate {
  display: inline;
  padding: 0.08em 0.28em;
  border-radius: 0;

  font-family: "Bilda", sans-serif !important;
  font-weight: inherit;
  font-style: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-transform: inherit;

  background-image: linear-gradient(
    0deg,
    #d0ff00,
    #d0ff00
  );
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: left center;

  transition: background-size 0.8s ease 0.2s, color 0.3s ease;
}

/* Aktiv-Zustand */
.highlight-animate.active {
  background-size: 100% 100%;
  color: #233527;
}


/* =========================
   Highlight andersum
========================= */

.highlight-animate-invert {
  display: inline;
  padding: 0.08em 0.28em;
  border-radius: 0;

  font-family: "Bilda", sans-serif !important;
  font-weight: inherit;
  font-style: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-transform: inherit;

  /* dunkler Hintergrund fährt rein */
  background-image: linear-gradient(
    0deg,
    #121f17,
    #121f17
  );
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: left center;

  color: inherit;

  transition: background-size 0.8s ease 0.2s, color 0.3s ease;
}

.highlight-animate-invert.active {
  background-size: 100% 100%;
  color: #d0ff00;
}



/* =========================
   Highlight Navigation
========================= */

.menu-highlight {
  display: inline-block;        /* ← wichtig */
  width: fit-content;           /* ← verhindert volle Breite */
  
  padding: 0.08em 0.28em;

  font-family: "Bilda", sans-serif;

  background-image: linear-gradient(0deg, #d0ff00, #d0ff00);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: left center;

  transition: background-size 0.8s ease 0.2s, color 0.3s ease;
}

.menu-highlight:hover {
  background-size: 100% 100%;
  color: #233527;
}

/* =========================
Navigation Anordnung
========================= */

.main-navigation {
  display: flex;
  flex-direction: column; /* ← sorgt für untereinander */
  gap: 0.5rem; /* Abstand zwischen Links */
}

.main-navigation a {
  display: inline-block; /* wichtig für dein Highlight */
}





/* =========================
   SVG Animation
========================= */

.hero-scroll-draw {
  position: relative;
  height: 250vh;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.hero-content {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.hero-title {
  position: relative;
  display: inline-block;
  margin: 0;
  line-height: 1;
  text-align: center;
  font-size: 12rem;
  font-weight: 800;
  isolation: isolate;
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
}

.line-svg {
  position: absolute;
  top: -55%;
  left: -38%;
  width: 180%;
  height: 240%;
  overflow: visible;
  pointer-events: none;
  z-index: -1;
}

#linePath {
  fill: none;
  visibility: hidden;
}

.hero-meta {
  position: absolute;
  bottom: 38px;
  z-index: 5;
  font-size: 0.9rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-meta-left {
  left: 40px;
}

.hero-meta-right {
  right: 40px;
  text-align: right;
}

/* MOBILE */
@media (max-width: 767px) {
  .hero-scroll-draw,
  .hero-scroll-draw .l-section-h,
  .hero-scroll-draw .g-cols,
  .hero-scroll-draw .wpb_row,
  .hero-scroll-draw .vc_row,
  .hero-scroll-draw .vc_column_container,
  .hero-scroll-draw .vc_column-inner,
  .hero-scroll-draw .wpb_wrapper {
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
    overflow: visible !important;
    transform: none !important;
  }

  .hero-scroll-draw {
    height: calc(100vh + 100px) !important;
  }

  .hero-sticky {
    height: 100vh !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
  }

  .hero-content {
    padding: 0 2vw !important;
    transform: translateY(-4vh) !important;
    overflow: visible !important;
  }

  .hero-title {
    font-size: 4.5rem !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.05em;
  }

  .line-svg {
    top: -85% !important;
    left: -65% !important;
    width: 260% !important;
    height: 320% !important;
  }

  #linePath {
    stroke-width: 7 !important;
  }

  .hero-meta {
    left: 50%;
    right: auto;
    bottom: 24px;
    transform: translateX(-50%);
    text-align: center;
    font-size: 0.72rem;
    line-height: 1.3;
    width: calc(100% - 32px);
    white-space: normal;
  }

  .hero-meta-right {
    display: none;
  }
}

.hero-title-desktop {
  display: inline;
}

.hero-title-mobile {
  display: none;
}







/* =========================
   SNAP SECTIONS (FULLSCREEN)
========================= */


/* HERO bleibt frei scrollbar */
.hero-scroll-draw {
  position: relative;
  height: 250vh;
}

/* Snap-Sections */
.snap-row {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  overflow: hidden;
}

.snap-row .l-section-h {
  min-height: inherit;
  display: flex;
  align-items: center;
  width: 100%;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.snap-row .g-cols,
.snap-row .wpb_row,
.snap-row .vc_row {
  width: 100%;
  margin: 0 !important;
}

.snap-row .vc_column_container {
  display: flex;
  align-items: center;
}

.snap-row .vc_column-inner {
  width: 100%;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.snap-row .wpb_wrapper {
  width: 100%;
}

/* Rechte Navigation */
.snap-nav {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.snap-nav.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.snap-nav button {
  position: relative;
  display: block;
  width: 56px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.snap-nav button::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 28px;
  height: 2px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.35);
  transition: width 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}

.snap-nav button.is-active::before {
  width: 56px;
  background: rgba(255, 255, 255, 0.95);
}

@media (max-width: 767px) {
  .snap-nav {
    right: 14px;
    gap: 14px;
  }

  .snap-nav button {
    width: 42px;
    height: 14px;
  }

  .snap-nav button::before {
    width: 20px;
  }

  .snap-nav button.is-active::before {
    width: 42px;
  }
}

/* =========================
   Filter Portfolio
========================= */


/* ===== CUSTOM PORTFOLIO FILTER ===== */

/* Layout + kompakter Abstand */
.custom-filter .w-filter-item.type_checkbox .w-filter-item-values {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px 20px !important;
  align-items: center !important;
}

/* Optional: Titel & Reset ausblenden */
.custom-filter .w-filter-item-title,
.custom-filter .w-filter-item-reset {
  display: none !important;
}

/* Kompakte Pill-Buttons */
.custom-filter .w-filter-item.type_checkbox .w-filter-item-value {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-height: auto !important;
  padding: 8px 16px !important;

  border: 2px solid #233527 !important; /* dickere Kontur */
  border-radius: 999px !important;
  background: #fefff7 !important;
  color: #233527 !important;

  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
}

/* Hover */
.custom-filter .w-filter-item.type_checkbox .w-filter-item-value:hover {
  background: #233527 !important;
  color: #fefff7 !important;
  border-color: #233527 !important;
}

/* Aktiv */
.custom-filter .w-filter-item.type_checkbox .w-filter-item-value.active,
.custom-filter .w-filter-item.type_checkbox .w-filter-item-value.selected,
.custom-filter .w-filter-item.type_checkbox .w-filter-item-value[aria-checked="true"] {
  background: #233527 !important;
  color: #fefff7 !important;
  border-color: #233527 !important;
}

/* Punkte / Pseudo-Elemente entfernen */
.custom-filter .w-filter-item.type_checkbox .w-filter-item-value::before,
.custom-filter .w-filter-item.type_checkbox .w-filter-item-value::after {
  display: none !important;
  content: none !important;
}

/* Nur den Kreis treffen */
.custom-filter .w-filter-item.type_checkbox .w-filter-item-value span:first-child {
  background: #fefff7 !important;
}


/* =========================
   Maus-Zeiger
========================= */

@media (hover: hover) and (pointer: fine) {
  html.custom-cursor,
  html.custom-cursor body,
  html.custom-cursor a,
  html.custom-cursor button,
  html.custom-cursor .w-btn,
  html.custom-cursor [role="button"] {
    cursor: none !important;
  }

  .ball-cursor {
    position: fixed;
    left: 0;
    top: 0;
    width: 10px;
    height: 10px;
    background: #d0ff00;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000000;
    transform: translate(-50%, -50%);
    opacity: 0;
    will-change: left, top, transform, background;
  }

  .ball-cursor.dark-variant {
    background: #233527;
  }

  .dackel-cursor {
    position: fixed;
    left: 0;
    top: 0;
    width: 72px;
    height: 72px;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    opacity: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    will-change: transform, left, top, background-image, width, height;
  }

  .ball-cursor.is-visible,
  .dackel-cursor.is-visible {
    opacity: 1;
  }

  .ball-cursor.is-clicking {
    transform: translate(-50%, -50%) scale(0.75);
  }
}




/* =========================
   Markierung bei Kopieren
========================= */

/* Marker bleibt wie bei dir */
::selection {
  background: #d0ff00;
  color: #000;
}

::-moz-selection {
  background: #d0ff00;
  color: #000;
}

/* Copy Hint */
.copy-hint {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #d0ff00;
  color: #121f17;
  font-family: "Bilda", sans-serif;
  font-size: 10pt;
  padding: 0.25em 0.6em;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* sichtbar */
.copy-hint.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}







/* =========================
   Welleneffekt Schampus
========================= */

@font-face {
  font-family: "Bilda";
  src: url("/wp-content/uploads/bilda-regular-webfont.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

.schampus-section {
  --bg: #121f17;
  --fill: #d0ff00;
  --text-dark: #233527;
  --progress: 0;
  --wave-offset: 0px;
  --wave-scale-x: 1;
  --wave-scale-y: 1;

  position: relative;
  height: 240vh;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.schampus-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.schampus-stage {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.schampus-text {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92vw, 1200px);
  transform: translate(-50%, -50%);
  text-align: center;
  text-wrap: balance;
  pointer-events: none;

  font-family: "Bilda", sans-serif !important;
  font-size: clamp(2.5rem, 5.4vw, 5.2rem);
  font-weight: 400;
  font-style: normal;
  line-height: 0.92;
  letter-spacing: 0 !important;
  word-spacing: 0 !important;

  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  text-stroke: 0 !important;
  filter: none !important;
  box-shadow: none !important;

  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1, "clig" 1;
  font-synthesis: none;
  text-rendering: geometricPrecision;

  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.schampus-text,
.schampus-text span {
  letter-spacing: 0 !important;
  word-spacing: 0 !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  filter: none !important;
}

.schampus-text-base {
  z-index: 2;
  color: #ffffff;
  opacity: calc(1 - (var(--progress) * 1.45));
  transform: translate(-50%, calc(-50% - (var(--progress) * 10px)));
}

.schampus-liquid {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--progress) * 100%);
  z-index: 3;
  pointer-events: none;
  overflow: visible;
  will-change: height;
}

.schampus-fill {
  position: absolute;
  inset: 0;
  background: var(--fill);
}

.schampus-wave-svg {
  position: absolute;
  left: -2%;
  width: 104%;
  height: 180px;
  top: -140px;
  overflow: visible;
  display: block;
  transform: translateY(var(--wave-offset)) scaleX(var(--wave-scale-x)) scaleY(var(--wave-scale-y));
  will-change: transform;
}

.schampus-wave-path {
  fill: var(--fill);
}

.schampus-reveal-window {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  clip-path: inset(calc((1 - var(--progress)) * 100%) 0 0 0);
}

.schampus-text-reveal {
  color: var(--text-dark);
}

.schampus-text-reveal span {
  display: inline-block;
}

.schampus-br-mobile {
  display: none;
}

@media (max-width: 767px) {
  .schampus-section,
  .schampus-section .l-section-h,
  .schampus-section .g-cols,
  .schampus-section .wpb_row,
  .schampus-section .vc_row,
  .schampus-section .vc_column_container,
  .schampus-section .vc_column-inner,
  .schampus-section .wpb_wrapper {
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
    overflow: visible !important;
    transform: none !important;
  }

  .schampus-section {
    height: 112vh !important;
  }

  .schampus-text {
    width: calc(100% - 22px);
    font-size: clamp(2rem, 10vw, 3.4rem);
    line-height: 0.94;
    top: 44%;
  }

  .schampus-liquid {
    height: calc(var(--progress) * 104%);
  }

  .schampus-wave-svg {
    height: 150px;
    top: -84px;
    left: -6%;
    width: 112%;
  }

  .schampus-br-mobile {
    display: inline;
  }
}






/* =========================
   Accordeon
========================= */


@font-face {
  font-family: "Bilda";
  src: url("https://kleint-design.de/wp-content/uploads/bilda-regular-webfont.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

.kd-accordion-wrap {
  width: 100%;
  margin: 0;
  padding: 0;
}

.kd-accordion-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  justify-content: center;
  overflow-anchor: none;
}

.kd-acc-item {
  --text-color: #233527;
  position: relative;
  background: var(--panel-bg);
  border-radius: 18px;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  flex: 1 1 calc(25% - 9px);
  max-width: calc(25% - 9px);
  transition:
    flex-basis 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    max-width 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    min-height 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.34s ease,
    box-shadow 0.42s ease;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

.kd-acc-item:hover {
  transform: translateY(-4px);
}

.kd-acc-trigger {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  width: 100%;
  padding: 24px 22px 22px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 auto;
  min-height: 320px;
  color: var(--text-color);
}

.kd-acc-top {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 34px;
  flex: 0 0 auto;
}

.kd-acc-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
}

.kd-acc-trigger-inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-height: 0;
}

.kd-acc-meta {
  font-size: 17px;
  line-height: 1;
  color: #233527;
  margin-bottom: 10px;
  font-family: inherit;
}

.kd-acc-title {
  position: relative;
  margin: 0;
  width: 100%;
  color: #233527;
  font-family: "Bilda", sans-serif !important;
  font-size: 22px;
  line-height: 0.98;
  min-height: 2.05em;
  padding-right: 30px;
}

.kd-acc-title span:first-child {
  display: block;
  width: 100%;
  max-width: 11ch;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  text-wrap: initial;
  transition: none; /* FIX: kein verzögertes Nachziehen mehr */
}

.kd-acc-item.is-open .kd-acc-title span:first-child {
  max-width: 100%;
}

.kd-acc-arrow {
  position: absolute;
  right: 0;
  bottom: 0;
  display: inline-block;
  font-family: inherit;
  font-size: 24px;
  line-height: 1;
  color: #233527;
  opacity: 0;
  transform: translate(-6px, 6px) rotate(-45deg);
  transition:
    opacity 0.28s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.kd-acc-trigger:hover .kd-acc-arrow {
  opacity: 1;
  transform: translate(0, 0) rotate(-45deg);
}

.kd-acc-item.is-open .kd-acc-arrow {
  opacity: 0;
  transform: translate(-6px, 6px) rotate(-45deg);
}

.kd-acc-panel {
  display: block;
  max-height: 0;
  overflow: hidden;
  padding: 0 22px;
  opacity: 0;
  transition:
    max-height 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.34s ease,
    padding 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.kd-acc-line {
  width: 100%;
  height: 2px;
  background: #233527;
  margin: 18px 0 16px;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.kd-acc-text {
  max-width: 30ch;
  color: #233527;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(14px);
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  transition:
    opacity 0.4s ease 0.12s,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

.kd-acc-item.is-open {
  min-height: 430px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.kd-acc-item.is-open .kd-acc-panel {
  max-height: 280px;
  padding: 0 22px 22px;
  opacity: 1;
}

.kd-acc-item.is-open .kd-acc-line {
  transform: scaleX(1);
}

.kd-acc-item.is-open .kd-acc-text {
  opacity: 1;
  transform: translateY(0);
}

/* Desktop + MacBook + iPad quer: 4 */
@media (min-width: 768px) {
  .kd-acc-item {
    flex: 1 1 calc(25% - 9px);
    max-width: calc(25% - 9px);
  }

  .kd-acc-item.is-open {
    flex: 1.55 1 calc(40% - 9px);
    max-width: calc(40% - 9px);
    min-height: 410px;
  }

  .kd-acc-item:not(.is-open) {
    flex: 1 1 calc(20% - 9px);
    max-width: calc(20% - 9px);
  }
}

/* iPad hoch: 2 */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .kd-acc-item {
    min-height: 280px;
    flex: 1 1 calc(50% - 6px);
    max-width: calc(50% - 6px);
  }

  .kd-acc-trigger {
    min-height: 280px;
    padding: 22px 20px 20px;
  }

  .kd-acc-icon {
    width: 68px;
    height: 68px;
  }

  .kd-acc-top {
    margin-bottom: 26px;
  }

  .kd-acc-meta {
    font-size: 16px;
  }

  .kd-acc-title {
    font-size: 20px;
    min-height: 2.05em;
  }

  .kd-acc-title span:first-child {
    max-width: 12ch;
  }

  .kd-acc-item.is-open {
    min-height: 390px;
    flex: 1 1 100%;
    max-width: 100%;
  }

  .kd-acc-item:not(.is-open) {
    flex: 1 1 calc(50% - 6px);
    max-width: calc(50% - 6px);
  }
}

/* Mobile: 1 */
@media (max-width: 767px) {
  .kd-accordion-grid {
    gap: 10px;
  }

  .kd-acc-item {
    min-height: 170px;
    border-radius: 16px;
    flex: 1 1 100%;
    max-width: 100%;
  }

  .kd-acc-trigger {
    min-height: 170px;
    padding: 18px 18px 16px;
  }

  .kd-acc-top {
    margin-bottom: 20px;
  }

  .kd-acc-icon {
    width: 52px;
    height: 52px;
  }

  .kd-acc-meta {
    font-size: 15px;
    margin-bottom: 8px;
  }

  .kd-acc-title {
    font-size: 20px;
    min-height: 2.05em;
    padding-right: 28px;
  }

  .kd-acc-title span:first-child {
    max-width: 100%;
  }

  .kd-acc-arrow {
    font-size: 21px;
  }

  .kd-acc-panel {
    padding: 0 18px;
  }

  .kd-acc-line {
    margin: 14px 0 12px;
  }

  .kd-acc-text {
    max-width: none;
    font-size: 13px;
    line-height: 1.42;
  }

  .kd-acc-item.is-open {
    min-height: 255px;
  }

  .kd-acc-item.is-open .kd-acc-panel {
    max-height: 210px;
    padding: 0 18px 18px;
  }
}



/* =========================
   DACKELN SPIEL
========================= */


@font-face {
  font-family: "Bilda";
  src: url("https://kleint-design.de/wp-content/uploads/bilda-regular-webfont.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

.kd-dackel-game {
  width: 100%;
  height: 300px;
  background: #d0ff00;
  border-radius: 22px;
  overflow: hidden;
  margin-top: 60px;
  position: relative;
}

#kd-dackel-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.kd-dackel-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 56px;
  text-align: center;
  color: #233527;
}

.kd-dackel-overlay[hidden] {
  display: none;
}

.kd-dackel-title {
  font-family: "Bilda", sans-serif;
  font-size: 34px;
  line-height: 1;
  max-width: 90%;
}

.kd-dackel-sub {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.3;
  max-width: 90%;
}

.kd-dackel-button {
  margin-top: 20px;
  background: #233527;
  color: #d0ff00;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-family: "Bilda", sans-serif;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .kd-dackel-game {
    height: 270px;
    border-radius: 20px;
  }
}

@media (max-width: 767px) {
  .kd-dackel-game {
    height: 220px;
    margin-top: 40px;
    border-radius: 16px;
  }

  .kd-dackel-overlay {
    padding-top: 40px;
  }

  .kd-dackel-title {
    font-size: 26px;
  }

  .kd-dackel-sub {
    font-size: 13px;
    width: calc(100% - 32px);
  }

  .kd-dackel-button {
    font-size: 16px;
    padding: 11px 18px 10px;
  }
}






/* =========================
   WALD JOBS
========================= */

@font-face {
  font-family: "Bilda";
  src: url("/wp-content/uploads/bilda-regular-webfont.woff2") format("woff2");
}

.wald-section {
  --bg: #233527;
  --bar: #37573e;
  --accent: #d0ff00;

  --progress: 0;
  --forest-shift-a: 0px;
  --forest-shift-b: 0px;
  --focus-scale-x: 1;
  --focus-scale-y: 1;
  --focus-x: 0px;

  position: relative;
  height: 240vh;
}

.wald-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.wald-stage {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg);
}

/* TEXT */
.wald-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 1200px);
  text-align: center;
  z-index: 8;

  font-family: "Bilda", sans-serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 0.95;
}

.wald-text-base {
  color: #fff;
  opacity: calc(1 - (var(--progress) * 1.5));
}

.wald-reveal-window {
  position: absolute;
  inset: 0;
  z-index: 10;
  clip-path: inset(0 calc((1 - var(--progress)) * 100%) 0 0);
}

.wald-text-reveal {
  color: #233527;
}

/* BARS */
.wald-bars-wrap {
  position: absolute;
  inset: 0;
}

.wald-layer {
  position: absolute;
  inset: 0;
}

.wald-back {
  opacity: 0.4;
  transform: translateX(var(--forest-shift-b));
}

.wald-front {
  transform: translateX(var(--forest-shift-a));
}

.wald-bar {
  position: absolute;
  top: -10%;
  bottom: -10%;
  background: var(--bar);
  border-radius: 999px;
}

/* schmalere Balken */
.bar-a { left: -6%; width: 7%; }
.bar-b { left: 12%; width: 6%; }
.bar-c { left: 28%; width: 7%; }
.bar-d { left: 46%; width: 6%; }
.bar-e { left: 62%; width: 7%; }
.bar-f { left: 80%; width: 6%; }

.bar-g     { left: 2%;  width: 7%; }
.bar-h     { left: 20%; width: 6%; }
.bar-i     { left: 38%; width: 7%; }
.bar-focus { left: 54%; width: 7%; }
.bar-j     { left: 70%; width: 6%; }
.bar-k     { left: 86%; width: 7%; }

/* Fokus */
.bar-focus {
  background: var(--accent);
  transform:
    translateX(var(--focus-x))
    scaleX(var(--focus-scale-x))
    scaleY(var(--focus-scale-y));
  transform-origin: center;
}

.wald-focus-fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0;
  z-index: 7;
}

/* MOBILE */
@media (max-width: 767px) {
  .wald-section {
    height: calc(100vh + 6px);
  }

  .wald-bar {
    top: -20%;
    bottom: -20%;
  }

  /* weniger Balken */
  .bar-a,
  .bar-b,
  .bar-c,
  .bar-d,
  .bar-e,
  .bar-f,
  .bar-g,
  .bar-h,
  .bar-i,
  .bar-j,
  .bar-k {
    display: none;
  }

  .wald-back .bar-a { display: block; left: -40%; width: 22%; }
  .wald-back .bar-e { display: block; left: 40%;  width: 24%; }

  .wald-front .bar-g     { display: block; left: -20%; width: 20%; }
  .wald-front .bar-focus { display: block; left: 30%;  width: 22%; }
  .wald-front .bar-k     { display: block; left: 80%;  width: 20%; }
}




/* =========================
   Phone Social Media
========================= */


.phone-scroll-driven {
  --img-overscan: 0px;
  --img-shift-x: 0px;
  position: relative;
  overflow: clip;
}

.phone-scroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.phone-scroll-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.phone-scroll-phone {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  height: min(78vh, 760px);
  aspect-ratio: 1000 / 2032;
}

.phone-scroll-frame {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 3;
  pointer-events: none;
  user-select: none;
}

/* MacBook-Stand bleibt */
.phone-scroll-screen-guide {
  position: absolute;
  left: 50.6%;
  bottom: calc(1.2% - 5px);
  transform: translateX(-50%);
  width: calc(74% + 52px);
  aspect-ratio: 999 / 1249;
  z-index: 1;
  pointer-events: none;
}

.phone-scroll-track {
  position: absolute;
  left: 0;
  top: 0;
  height: 0;
  display: flex;
  align-items: flex-end;
  will-change: transform;
  z-index: 1;
}

.phone-scroll-item {
  flex: 0 0 auto;
  margin-right: 96px;
  overflow: hidden;
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 42px;
  position: relative;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.phone-scroll-item img {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: calc(100% + var(--img-overscan));
  object-fit: cover;
  transform: translateX(calc(-50% + var(--img-shift-x)));
  transform-origin: center center;
  backface-visibility: hidden;
}

/* großer Desktop – nicht MacBook */
@media (min-width: 1440px) {
  .phone-scroll-driven {
    --img-overscan: 24px;
    --img-shift-x: -3px;
  }

  .phone-scroll-phone {
    height: min(76vh, 780px);
  }

  .phone-scroll-screen-guide {
    left: calc(50.58% - 1px);
    width: calc(74% + 54px);
    bottom: calc(1.2% - 1px); /* 4px mehr Abstand unten */
  }
}

/* iPad / Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
  .phone-scroll-driven {
    --img-overscan: 24px;
    --img-shift-x: -3px;
  }

  .phone-scroll-phone {
    height: min(76vh, 700px);
  }

  .phone-scroll-screen-guide {
    left: 50.75%;
    bottom: calc(1.2% - 3px); /* vorher -7px */
    width: calc(74% + 54px);
  }

  .phone-scroll-item {
    margin-right: 76px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .phone-scroll-driven,
  .phone-scroll-driven .l-section-h,
  .phone-scroll-driven .g-cols,
  .phone-scroll-driven .wpb_row,
  .phone-scroll-driven .vc_row,
  .phone-scroll-driven .vc_column_container,
  .phone-scroll-driven .vc_column-inner,
  .phone-scroll-driven .wpb_wrapper {
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
  }

  .phone-scroll-driven {
    --img-overscan: 28px;
    --img-shift-x: -3px;
  }

  .phone-scroll-phone {
    height: min(76vh, 680px);
  }

  .phone-scroll-screen-guide {
    left: 50.9%;
    bottom: calc(1.2% - 4px); /* vorher -8px */
    width: calc(74% + 56px);
  }

  .phone-scroll-item {
    margin-right: 64px;
  }

  .phone-scroll-track .phone-scroll-item:nth-child(n + 4) {
    display: none;
  }
}




/* =========================
   Strich vertikal
========================= */



.text-with-line {
  --line-progress: 0%;
  position: relative;
  padding-left: 20px;
}

.text-with-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: #233527;
  opacity: 0.2;
  border-radius: 999px;
}

.text-with-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: var(--line-progress);
  background-color: #233527;
  border-radius: 999px;
  transition: height 0.08s linear;
}




/* =========================
   Farbkarten
========================= */



.color-card-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 50vw;
  margin: 0 auto;
}

.color-card {
  position: relative;
  flex: 1 1 0;
  aspect-ratio: 2 / 3;
  background: var(--card-color);
  color: var(--text-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.color-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.color-card-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.color-card-name,
.color-card-code {
  font-size: 12px;
}

/* Mobile: 2-spaltig */
@media (max-width: 767px) {
  .color-card-row {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 12px;
  }

  .color-card {
    aspect-ratio: 3 / 4;
  }

  .color-card-label {
    left: 12px;
    bottom: 12px;
  }

  .color-card-name,
  .color-card-code {
    font-size: 13px;
  }
}


/* =========================
   Accordeon Portfolio
========================= */

@font-face {
  font-family: "Bilda";
  src: url("https://kleint-design.de/wp-content/uploads/bilda-regular-webfont.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

.pa-accordion-wrap {
  width: 100%;
  margin: 0;
  padding: 0;
}

.pa-accordion-grid {
  display: flex;
  gap: 12px;
  align-items: stretch;
  justify-content: center;
  overflow-anchor: none;
}

.pa-acc-item {
  position: relative;
  background: var(--panel-bg, #f3f0ec);
  color: var(--text-color, #233527);
  border-radius: 18px;
  overflow: hidden;
  min-height: 360px;
  flex: 0 0 92px;
  max-width: 92px;
  transition:
    flex-basis 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    max-width 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    min-height 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.34s ease,
    box-shadow 0.42s ease;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

.pa-acc-item:hover {
  transform: translateY(-4px);
}

.pa-acc-item.is-open {
  flex: 1 1 420px;
  max-width: 420px;
  min-height: 360px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.pa-acc-trigger {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  width: 100%;
  min-height: 360px;
  padding: 18px 18px 18px 16px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: stretch;
  gap: 18px;
}

.pa-acc-side {
  position: relative;
  width: 52px;
  min-width: 52px;
}

.pa-acc-number {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  line-height: 1;
  color: inherit;
}

.pa-acc-vertical {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: "Bilda", sans-serif !important;
  font-size: 22px;
  line-height: 0.95;
  letter-spacing: 0;
  color: inherit;
  text-align: left;
  white-space: nowrap;
}

.pa-acc-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.pa-acc-arrow {
  display: inline-block;
  font-family: inherit;
  font-size: 18px;
  line-height: 1;
  color: inherit;
  opacity: 0;
  transform: translate(-4px, 4px) rotate(-45deg);
  transition:
    opacity 0.28s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.pa-acc-trigger:hover .pa-acc-arrow {
  opacity: 0.55;
  transform: translate(0, 0) rotate(-45deg);
}

.pa-acc-item.is-open .pa-acc-arrow {
  opacity: 0.45;
  transform: translate(0, 0) rotate(-45deg);
}

.pa-acc-panel {
  max-height: 0;
  overflow: hidden;
  padding: 0 18px 0 86px;
  opacity: 0;
  transition:
    max-height 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.34s ease,
    padding 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.pa-acc-item.is-open .pa-acc-panel {
  max-height: 220px;
  padding: 0 18px 18px 86px;
  opacity: 1;
}

.pa-acc-line {
  width: 100%;
  height: 2px;
  background: currentColor;
  margin: 14px 0 16px;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.pa-acc-item.is-open .pa-acc-line {
  transform: scaleX(1);
}

.pa-acc-text {
  max-width: 28ch;
  font-size: 15px;
  line-height: 1.5;
  color: inherit;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.4s ease 0.12s,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

.pa-acc-item.is-open .pa-acc-text {
  opacity: 1;
  transform: translateY(0);
}

/* Große Screens */
@media (min-width: 1280px) {
  .pa-acc-item.is-open {
    flex: 1 1 460px;
    max-width: 460px;
  }
}

/* Tablet quer / kleiner Desktop */
@media (min-width: 768px) and (max-width: 1279px) {
  .pa-accordion-grid {
    gap: 10px;
  }

  .pa-acc-item {
    flex: 0 0 78px;
    max-width: 78px;
    min-height: 320px;
  }

  .pa-acc-item.is-open {
    flex: 1 1 340px;
    max-width: 340px;
    min-height: 320px;
  }

  .pa-acc-trigger {
    min-height: 320px;
    padding: 16px 16px 16px 14px;
    gap: 14px;
  }

  .pa-acc-side {
    width: 44px;
    min-width: 44px;
  }

  .pa-acc-number {
    top: 16px;
    font-size: 13px;
  }

  .pa-acc-vertical {
    bottom: 26px;
    font-size: 19px;
  }

  .pa-acc-panel,
  .pa-acc-item.is-open .pa-acc-panel {
    padding-left: 74px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .pa-accordion-grid {
    flex-direction: column;
    gap: 10px;
  }

  .pa-acc-item,
  .pa-acc-item.is-open {
    flex: 1 1 100%;
    max-width: 100%;
    min-height: auto;
  }

  .pa-acc-trigger {
    min-height: 120px;
    padding: 16px 16px 14px;
    gap: 14px;
    align-items: center;
  }

  .pa-acc-side {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    position: static;
  }

  .pa-acc-number {
    position: static;
    transform: none;
    font-size: 13px;
  }

  .pa-acc-vertical {
    position: static;
    transform: none;
    writing-mode: initial;
    font-size: 24px;
    line-height: 1;
    white-space: normal;
    text-align: left;
  }

  .pa-acc-main {
    flex: 0 0 auto;
    min-width: auto;
    align-items: center;
    justify-content: flex-end;
  }

  .pa-acc-arrow {
    font-size: 17px;
  }

  .pa-acc-panel {
    padding: 0 16px 0 16px;
  }

  .pa-acc-item.is-open .pa-acc-panel {
    max-height: 220px;
    padding: 0 16px 16px 16px;
  }

  .pa-acc-line {
    margin: 12px 0 12px;
  }

  .pa-acc-text {
    max-width: none;
    font-size: 13px;
    line-height: 1.42;
  }
}

/* =========================
   ALLE VIDEOS außer Startseite
========================= */


.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* füllt den Bereich wie ein Hintergrundbild */
  display: block;      /* verhindert kleine Lücken unter dem Element */
}

/* =========================
   Überschriften Blog
========================= */

.single-post .w-post-elm.post_content h1,
.single-post .w-post-elm.post_content h2,
.single-post .w-post-elm.post_content h3,
.single-post .w-post-elm.post_content h4,
.single-post .w-post-elm.post_content h5,
.single-post .w-post-elm.post_content h6 {
  line-height: 1.2;
}

.single-post .w-post-elm.post_content h1 {
  font-size: 32px !important;
}

.single-post .w-post-elm.post_content h2 {
  font-size: 26px !important;
}

.single-post .w-post-elm.post_content h3 {
  font-size: 22px !important;
}

.single-post .w-post-elm.post_content h4 {
  font-size: 19px !important;
}

.single-post .w-post-elm.post_content h5 {
  font-size: 17px !important;
}

.single-post .w-post-elm.post_content h6 {
  font-size: 15px !important;
}


/* =========================
   Karten Blog
========================= */


@font-face {
  font-family: "Bilda";
  src: url("https://kleint-design.de/wp-content/uploads/bilda-regular-webfont.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

.kd-cards-wrap {
  width: 100%;
  margin: 0;
  padding: 0;
}

.kd-cards-carousel-wrap {
  position: relative;
  overflow: hidden;
  padding-top: 60px;
}

/* NAV */
.kd-carousel-nav {
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  z-index: 10;
  pointer-events: none;
}

.kd-carousel-arrow {
  position: absolute;
  top: 0;
  pointer-events: all;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: #233527;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}

.kd-carousel-prev {
  left: 10px;
}

.kd-carousel-next {
  right: 10px;
}

/* CAROUSEL */
.kd-cards-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.kd-cards-carousel::-webkit-scrollbar {
  display: none;
}

/* CARD DESIGN */
.kd-card {
  flex: 0 0 calc((100% - 24px) / 3);
  scroll-snap-align: start;
  position: relative;
  background: var(--panel-bg);
  color: var(--text-color, #233527);
  border-radius: 18px;
  overflow: hidden;
  min-height: 430px;
  box-shadow: none;
  transition: transform 0.34s ease;
}

.kd-card:hover {
  transform: translateY(-4px);
}

.kd-card-inner {
  min-height: 430px;
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
}

.kd-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 34px;
  flex: 0 0 auto;
}

.kd-card-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
}

.kd-card-bottom {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-height: 0;
}

.kd-card-meta {
  font-size: 17px;
  line-height: 1;
  color: inherit;
  margin-bottom: 10px;
  font-family: inherit;
}

.kd-card-title {
  margin: 0;
  color: inherit;
  font-family: "Bilda", sans-serif !important;
  font-size: 22px;
  line-height: 0.98;
  max-width: 11ch;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.kd-card-line {
  width: 100%;
  height: 2px;
  background: currentColor;
  margin: 18px 0 16px;
}

.kd-card-text {
  max-width: 30ch;
  color: inherit;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

/* TABLET */
@media (max-width: 1024px) {
  .kd-card {
    flex: 0 0 calc((100% - 12px) / 2);
    min-height: 390px;
  }

  .kd-card-inner {
    min-height: 390px;
    padding: 22px 20px 20px;
  }

  .kd-card-top {
    margin-bottom: 26px;
  }

  .kd-card-icon {
    width: 68px;
    height: 68px;
  }

  .kd-card-meta {
    font-size: 16px;
  }

  .kd-card-title {
    font-size: 20px;
    max-width: 12ch;
  }
}

/* MOBILE */
@media (max-width: 767px) {
  .kd-cards-carousel-wrap {
    padding-top: 0;
  }

  .kd-card {
    flex: 0 0 85%;
    min-height: auto;
    border-radius: 16px;
  }

  .kd-card-inner {
    min-height: auto;
    padding: 18px 18px 18px;
  }

  .kd-card-top {
    margin-bottom: 20px;
  }

  .kd-card-icon {
    width: 52px;
    height: 52px;
  }

  .kd-card-meta {
    font-size: 15px;
    margin-bottom: 8px;
  }

  .kd-card-title {
    font-size: 20px;
    max-width: 100%;
  }

  .kd-card-line {
    margin: 14px 0 12px;
  }

  .kd-card-text {
    max-width: none;
    font-size: 13px;
    line-height: 1.42;
  }

  .kd-carousel-nav {
    display: none;
  }
}


/* =========================
  Button Blog-Beiträge
========================= */


.kd-btn-fix {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}

.kd-btn-fix .w-btn {
  display: inline-flex !important; /* statt flex */
  align-items: center !important;
  width: auto !important;          /* wichtig */
}

.kd-btn-fix .w-btn-label {
  line-height: 1 !important;
}



/* =========================
  Bilder Reihe
========================= */


.kd-image-row {
  width: 100%;
}

.kd-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Quadrat */
.kd-image-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
}

.kd-image-item img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tablet */
@media (max-width: 1024px) {
  .kd-image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 767px) {
  .kd-image-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================
  Einfaches Akkordeon 
========================= */


.kd-classic-accordion-wrap {
  width: 100%;
}

/* Container */
.kd-classic-accordion {
  border-top: none; /* cleaner look */
}

/* Items */
.kd-classic-item {
  border-bottom: 1px solid rgba(35, 53, 39, 0.45); /* dunkler */
}

/* Trigger */
.kd-classic-trigger {
  appearance: none;
  border: none;
  background: transparent;
  width: 100%;
  cursor: pointer;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  text-align: left;
  color: #233527;

  padding: 12px 0 20px; /* weniger oben */
}

/* Titel (echtes h5) */
.kd-classic-title {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  font-weight: normal;
}

/* Icon rechts */
.kd-classic-icon {
  flex: 0 0 auto;
  margin-left: 24px;
  font-size: 24px;
  line-height: 1;
  transition: transform 0.25s ease;
}

/* Rotation */
.kd-classic-item.is-open .kd-classic-icon {
  transform: rotate(45deg);
}

/* Panel */
.kd-classic-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease;
}

.kd-classic-item.is-open .kd-classic-panel {
  max-height: 400px;
  opacity: 1;
}

/* Text */
.kd-classic-text {
  padding-bottom: 20px;
  max-width: 65ch;
  font-size: 15px;
  line-height: 1.6;
  color: #233527;

  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.3s ease 0.08s,
    transform 0.35s ease 0.08s;
}

.kd-classic-item.is-open .kd-classic-text {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet */
@media (max-width: 1024px) {
  .kd-classic-title {
    font-size: 24px;
  }

  .kd-classic-text {
    font-size: 14px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .kd-classic-trigger {
    padding: 10px 0 18px;
  }

  .kd-classic-title {
    font-size: 20px;
  }

  .kd-classic-icon {
    font-size: 20px;
  }

  .kd-classic-text {
    font-size: 13px;
    line-height: 1.5;
  }
}





/* =========================
  Schriftgrößen in Datenschutz & Impressum 
========================= */



.page-id-3,
.page-id-5188 {
  --text-max-width: 720px;
  --text-color: #222;
}

/* Content */
.page-id-3 .entry-content,
.page-id-5188 .entry-content {
  max-width: var(--text-max-width);
  margin: 0 auto;
  padding: 40px 20px;
  color: var(--text-color);

  /* Basis */
  font-size: 16px;
  line-height: 1.6;
}

/* RESET (gegen dein Design-System) */
.page-id-3 .entry-content *,
.page-id-5188 .entry-content * {
  font-size: inherit;
  line-height: inherit;
  letter-spacing: normal;
}

/* Headings */
.page-id-3 h1,
.page-id-5188 h1 {
  font-size: 28px;
  margin-bottom: 20px;
}

.page-id-3 h2,
.page-id-5188 h2 {
  font-size: 22px;
  margin-top: 30px;
  margin-bottom: 10px;
}

.page-id-3 h3,
.page-id-5188 h3 {
  font-size: 18px;
  margin-top: 20px;
}

/* h4 FIX */
.page-id-3 h4,
.page-id-5188 h4 {
  font-size: 16px;
  line-height: 1.5;
  margin-top: 16px;
  margin-bottom: 6px;
  font-weight: 600;
}

/* Text */
.page-id-3 p,
.page-id-5188 p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Listen */
.page-id-3 ul,
.page-id-5188 ul,
.page-id-3 ol,
.page-id-5188 ol {
  font-size: 16px;
  line-height: 1.6;
  margin: 10px 0 16px;
  padding-left: 18px;
}

/* Links – NUR im Content */
.page-id-3 .entry-content a,
.page-id-5188 .entry-content a {
  text-decoration: underline;
}

/* =========================
   Mobile Optimierung
   ========================= */

@media (max-width: 768px) {

  .page-id-3 .entry-content,
  .page-id-5188 .entry-content {
    font-size: 15px;
    padding: 30px 16px;
  }

  .page-id-3 h1,
  .page-id-5188 h1 {
    font-size: 24px;
  }

  .page-id-3 h2,
  .page-id-5188 h2 {
    font-size: 20px;
  }

  .page-id-3 h3,
  .page-id-5188 h3 {
    font-size: 17px;
  }

  .page-id-3 h4,
  .page-id-5188 h4 {
    font-size: 15px;
  }
}