/*
 Theme Name:   GeneratePress Child
 Template:     generatepress
 Text Domain:  generatepress-child
 Version:      1.0
*/



/* html { scroll-behavior: auto !important; } */
html { scroll-behavior: smooth; }

.gb-container[id],
section[id],
div[id] {
  scroll-margin-top: 160px;
}

/* Sticky Footer Layout (GeneratePress) */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#page {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.site-content {
  flex: 1;
}


/* Inaktive Dots hellgrau */
.gb-carousel-dot {
    background: #d1d5db;
	  height: 10px;
	  width: 10px;
	  transform: scale(1) !important;
}
/* Aktive Dots blau */
.gb-carousel-dot.is-active {
    background: #0080AB !important;
	  height: 10px;
	  width: 10px;
	  border: 2px solid #d1d5db;
	  transform: scale(1) !important;
}

.sticky-bottom {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    background: #fff;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
}

/* Footer-Push (verhindert Overlap) */
body:not(.admin-bar) .site-footer {
    padding-bottom: 60px; 
}
.admin-bar .site-footer {
    padding-bottom: 100px; 
}

.current-lang {
    font-size: 1.35rem;          /* deutlich größer */
    font-weight: 600;
    text-decoration: none;
    color: var(--accent-dark);
    line-height: 1;
}

.current-lang:hover {
    color: var(--contrast);
    text-decoration: none;
}


body.search .site-main {
    padding: 80px 20px;
}


body.search .site-main .entry-title a {
    color: var(--accent-2-dark);
}

.site-footer a {
    color: white !important;
}


/* Back to Top Button rund */
.generate-back-to-top {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    
    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    
    transition: all 0.2s ease;

    bottom: 30px;
}

/* Icon im Back-to-Top Button anpassen */
.generate-back-to-top i,
.generate-back-to-top svg {
    font-size: 28px;      /* größer */
    line-height: 1;
    transform: translateY(-4px); /* minimal nach oben schieben */
}
.generate-back-to-top svg {
    stroke-width: 3 !important;
}


/* Hover-Effekt */
.generate-back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

.generate-back-to-top {
    background: #fff !important;      /* oder deine Brand-Farbe */
    color: var(--accent-dark) !important;
    backdrop-filter: blur(8px);
}

@media (max-width: 767px) {
    .generate-back-to-top {
        bottom: 60px;
    }
}


.animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }
.delay-4 { transition-delay: 0.8s; }
.delay-5 { transition-delay: 1s; }


.carousel-wrapper {
    position: relative;
}

/* Gemeinsame Pfeil-Styles */
.carousel-wrapper .carousel-arrow-left,
.carousel-wrapper .carousel-arrow-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
}

/* Links */
.carousel-wrapper .carousel-arrow-left {
    left: 0rem;
}

/* Rechts */
.carousel-wrapper .carousel-arrow-right {
    right: 0rem;
}

/* Dots */
.carousel-wrapper .carousel-dots {
    position: absolute;
    bottom: 1rem;
    right: 0rem;
    z-index: 20;
}

/* Inaktive Dots hellgrau */
.carousel-wrapper .gb-carousel-dot {
    background: #d1d5db;
	  height: 10px;
	  width: 10px;
	  transform: scale(1) !important;
}
/* Aktive Dots blau */
.carousel-wrapper .gb-carousel-dot.is-active {
    background: var(--contrast) !important;
	  height: 10px;
	  width: 10px;
	  border: 2px solid #d1d5db;
	  transform: scale(1) !important;
}



.wpforms-page-indicator-page-progress {
    background-color: var(--accent-2-dark) !important; /* deine Wunschfarbe */
}
.wpforms-page-indicator-page-progress-wrap {
    background-color: white !important;
}




.hero-fade {
    position: relative;
}

@media (min-width: 769px) {
    .hero-fade::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 200px;
        background: linear-gradient(
            to bottom,
            rgba(255,255,255,0) 0%,
            rgba(255,255,255,0.6) 40%,
            rgba(255,255,255,0.8) 60%,
            rgba(255,255,255,1) 90%,
            rgba(255,255,255,1) 100%
        );
        pointer-events: none;
    }
}






.dzl-filter{
  margin: 0;
}

.dzl-filter__pill{
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  padding: 8px 10px; /* kleiner */
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
}

.dzl-filter__input{
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  width: 100%;
  font-size: 15px; /* vorher 18px */
  padding: 10px 14px;
}

.dzl-filter__submit{
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 18px; /* kleiner */
  font-size: 15px;
  font-weight: 400;
  background: var(--accent-2);
  color: #111;
  box-shadow: 0 4px 10px rgba(0,0,0,.10);
}

.dzl-filter__pill--select{
  padding-right: 60px; /* angepasst */
}

.dzl-filter__select{
  appearance: none;
  border: 0;
  outline: 0;
  background: transparent !important;
  width: 100%;
  font-size: 15px;
  padding: 16px;
  cursor: pointer;
}

/* Fokus */
.dzl-filter__input:focus {
  outline: none;
  box-shadow: none;
  background: transparent !important;
}

.dzl-filter__chevron{
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;   /* vorher 54px */
  height: 42px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: var(--accent-2);
  box-shadow: 0 4px 10px rgba(0,0,0,.10);
}

.dzl-filter__chevron::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid #111;
  border-bottom: 2px solid #111;
  transform: translate(-50%, -60%) rotate(45deg);
}

.dzl-filter__submit:hover,
.dzl-filter__chevron:hover {
    background: var(--accent-2) !important;
    filter: brightness(1.05);
    color: var(--contrast) !important;
}

.dzl-filter__chevron {
    pointer-events: all;
}

.dzl-filter__chevron::before {
    pointer-events: none;
}

.dzl-filter__pill--select {
    position: relative;
}

.dzl-filter__select {
    appearance: none;
    border: 0;
    outline: 0;
    background: transparent !important;
    font-size: 15px;
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0; /* unsichtbar aber klickbar */
}

.dzl-filter__select-label {
    flex: 1;
    font-size: 15px;
    padding: 10px 14px;
    padding-right: 60px; /* Platz für den Chevron */
    pointer-events: none;
}

.dzl-filter__chevron {
    pointer-events: none; /* Klicks durchlassen */
    z-index: 1;
}


ul.custom-list {
  list-style: disc;
  font-size: 14px;
  margin-left: 0;
  padding-left: 1em;
}

ul.custom-list li {
  padding-left: 0em;   /* Feintuning Textabstand */
  margin-bottom: 1em;
}

.gb-site-header-757c6fce {
    /* z-index: 100000 !important; */
    box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.05) !important;
}
.gb-site-header-757c6fce.gb-is-sticky {
    /* z-index: 100000 !important; */
    box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.05) !important;
}

div.wpforms-container-full .wpforms-form .wpforms-page-indicator {
    margin-bottom: 1em !important;
}


p {
    font-family: var(--gb-typography-font-family-body);

    line-height: 1.6;
    margin-bottom: 16px;

    font-size: 14px;
}

.wp-block-paragraph:empty {
  display: none;
}

.hero-carousel-wrapper {
  position: relative !important;
}

.hero-carousel-dots-container {
  position: absolute !important;
  bottom: 24px;
  right: 20px;
  z-index: 10;
  width: 100px;
}

.cta-container .cta-item:not(:last-child) {
  border-right: 2px solid var(--contrast);;
  
}



/* Formularfelder */
.tnp-field input[type="text"],
.tnp-field input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  box-sizing: border-box;
  background: #fff;
}

/* Optional: Fokus-Zustand */
.tnp-field input[type="text"]:focus,
.tnp-field input[type="email"]:focus {
  outline: none;
  border-color: var(--accent-2) !important;
  box-shadow: 0 0 0 3px rgba(242, 140, 0, 0.15);
}

/* Button */
.tnp-submit {

    align-items: center;
    background-color: var(--accent-2) !important;
    color: var(--contrast) !important;
    cursor: pointer;
    display: inline-flex;
    justify-self: start;
    text-decoration: none;
    border-radius: 50px !important;
    padding: 0.75rem 1.5rem !important;

}


.dzl-news-loop:has(.gb-text:only-child) .gb-query-loop-pagination,
.dzl-events-loop:has(.gb-text:only-child) .gb-query-loop-pagination {
    display: none;
}





/* Suchergebnisse */

.dzl-search-result {
    border-bottom: 1px solid var(--base-2);
    margin-bottom: 0;
    padding: 40px 0;
    list-style: none;
}

.dzl-search-result:last-child {
    border-bottom: none;
}

.dzl-search-result__inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dzl-search-result__type {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--base-2);
    color: var(--contrast);
    width: fit-content;
    margin-bottom: 12px;
}

.dzl-search-result__type--news {
    background: var(--accent);
    color: var(--contrast);
}

.dzl-search-result__type--events {
    background: var(--accent-2);
    color: var(--contrast);
}

.dzl-search-result__type--page {
    background: var(--base-2);
    color: var(--contrast);
}

.dzl-search-result__title {
    font-size: 1.25rem;
    margin: 0;
}

.dzl-search-result__title a {
    color: var(--contrast);
    text-decoration: none;
}

.dzl-search-result__title a:hover {
    color: var(--accent-dark);
}

.dzl-search-result__excerpt {
    font-size: 14px;
    color: var(--contrast);
    margin: 0;
    line-height: 1.6;
}

.dzl-search-result__link {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-2-dark);
    text-decoration: underline;
    width: fit-content;
}

.dzl-search-result__link:hover {
    text-decoration: underline;
}

body.search .nav-links {
    margin-top: 60px;
    text-align: center;
}

.search .prev.page-numbers span,
.search .next.page-numbers span {
    display: none;
}

.search .page-header .page-title {
    color: var(--contrast);
    font-size: 30px;
    font-weight: 400;
    /* letter-spacing: 2px; */
}




/* Desktop */
.breadcrumb-titel {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 800px;
}

/* Tablet */
@media (max-width: 1024px) {
    .breadcrumb-titel {
        max-width: 600px;
    }s
}

/* Mobil */
@media (max-width: 767px) {
    .breadcrumb-titel {
        max-width: 300px;
    }
}



.tnp-lists {
    background: var(--base-2);
    border-radius: 10px;
    padding: 12px 16px !important;
    display: flex;
    flex-wrap: wrap;
    /* justify-content: space-between; */
    column-gap: 40px;
    row-gap: 10px;
    margin-bottom: 24px !important;
    margin-top: 24px !important;
}

.tnp-lists label {
  margin-bottom: 0px !important;
}

.tnp-lists::before {
    display: block;
    width: 100%;
    font-size: 0.9em;
    margin-bottom: 8px;
}

@media (max-width: 767px) {
    .tnp-lists {
        flex-direction: column;
    }
}

.tnp-field-list {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 5px !important;
}

body.lang-de .tnp-lists::before {
    content: "Ich möchte folgende(n) Newsletter erhalten:";
}

body.lang-en .tnp-lists::before {
    content: "I would like to receive the following newsletter(s):";
}


.wp-block-social-links {
  margin-bottom: 0px;
}

.cta-social {
    display: none !important;
}

.cta-hidden {
    display: none !important;
}

.cta-social:not(.cta-hidden) {
    display: flex !important;
}

.cta-default,
.cta-social {
    transition: opacity 0.2s ease;
}

.cta-container {
    transition: max-width 0.3s ease;
    max-width: 600px; /* aktuelle Breite der Pille */
}

.cta-container.cta-social-active {
    max-width: 300px; /* Breite im Social-Zustand */
}


@media (max-width: 600px) {
    .wpforms-field-name .wpforms-field-row {
        flex-direction: column;
    }
    .wpforms-field-name .wpforms-field-row .wpforms-one-half {
        width: 100% !important;
        max-width: 100% !important;
    }
    .wpforms-field-name .wpforms-field-row .wpforms-one-half + .wpforms-one-half {
        margin-top: 30px;
        padding: 0 !important;
    }

    .wpforms-field-name .wpforms-field-row .wpforms-one-half.wpforms-first {
        padding-right: 0 !important;
    }
}

/* Fehlermeldung unter dem Feld */
.wpforms-error {
    color: var(--contrast) !important; /* Textfarbe */
}

.mailcheck-suggestion {
    color: var(--contrast) !important;
}

/* Roter Rand am Feld selbst */
.wpforms-field input.wpforms-error,
.wpforms-field select.wpforms-error,
.wpforms-field textarea.wpforms-error {
    border-color: var(--contrast) !important;
}

.wpforms-container-full input[type=checkbox]:checked:after {
    border-left-color: var(--contrast) !important;
    border-bottom-color: var(--contrast) !important;
}

a[href^="mailto"] {
    white-space: normal !important;
}

.tnp-field.tnp-field-button {
    margin-top:40px;
}

#gb-overlay-3597, #gb-overlay-3615{
    top: 120px;
}
#gb-overlay-1092, #gb-overlay-1088{
    top: 120px;
}

h2.gb-text-adf066f9 span.asl_single_highlighted,
h2.gb-text-adf066f9 span.asl_single_highlighted_exact {
    margin: 0 0.2em;
}

h2.gb-text-adf066f9 {
    flex-wrap: wrap;
    align-items: baseline;
    row-gap: 0;
}

h2.gb-text-633e77f0 span.asl_single_highlighted,
h2.gb-text-633e77f0 span.asl_single_highlighted_exact {
    margin: 0 0.2em;
}

h2.gb-text-633e77f0 {
    flex-wrap: wrap;
    align-items: baseline;
    row-gap: 0;
}

h2.gb-text-bbddaff3 span.asl_single_highlighted,
h2.gb-text-bbddaff3 span.asl_single_highlighted_exact {
    margin: 0 0.2em;
}

h2.gb-text-bbddaff3 {
    flex-wrap: wrap;
    align-items: baseline;
    row-gap: 0;
}

h2.gb-text-417cb3e3 span.asl_single_highlighted,
h2.gb-text-417cb3e3 span.asl_single_highlighted_exact {
    margin: 0 0.2em;
}

h2.gb-text-417cb3e3 {
    flex-wrap: wrap;
    align-items: baseline;
    row-gap: 0;
}

.dzl-content-img-slider .slick-prev,
.dzl-content-img-slider .slick-next {
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
}

@media (max-width: 768px) {
    h1 { font-size: 7vw !important; }
    h2 { font-size: 6vw !important; }
    h3 { font-size: 5vw !important; }
    h4 { font-size: 4.5vw !important; }
    h5 { font-size: 4vw !important; }
}

.dzl-datenschutz h1 { margin-top: 3rem !important; font-weight: 600 !important; }
.dzl-datenschutz h2 { margin-top: 2.5rem !important; font-weight: 600 !important; }
.dzl-datenschutz h3 { margin-top: 2rem !important; font-weight: 600 !important; }
.dzl-datenschutz h4 { margin-top: 1.75rem !important; font-weight: 600 !important; }
.dzl-datenschutz h5 { margin-top: 1.5rem !important; font-weight: 600 !important; }


.dzl_language:has(p:empty),
.dzl_period:has(p:empty),
.dzl_location:has(p:empty),
.dzl_target_group:has(p:empty) {
    display: none !important;
}

ol, ul {
    margin: 0 0 1.5em 1.25em;
}
li {
    margin: 0 0 0.5em 0;
}


.dzl-breadcrump-diseaseareas {
    white-space: nowrap;
}


.post-4071 .dzl_post_date,
.post-4073 .dzl_post_date {
    display: none !important;
}


.gb-carousel-autoheight,
.gb-carousel-items {
    overflow: hidden !important;
}