img.mandala-start {
    position: absolute;
    right: -7%;
    bottom: -30%;
    width: 31%;
    z-index: -1;
    opacity: .7;
}
img.mandala-start-single {
    position: fixed;
    bottom: -15%;
    left: -5%;
    width: 21%;
    z-index: -1;
    opacity: 1;
}
img.front-page-featured-image.wp-post-image {
    float: right;
    width: 50%;
}
.front-page-content-wrapper {
    width: 960px;
    padding: 180px 0 0 100px;
}

.kauf-hinweis {
    padding: 120px 100px;
}

section#kurs-nav {
    width: 18%;
    position: fixed;
    left: 0;
    background: #f2f2f2;
    padding: 30px;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    
    /* Wichtig für die korrekte Höhenberechnung inklusive Padding */
    box-sizing: border-box; 

    /* JETZT MIT ABSTAND OBEN: */
    top: 120px;                         /* Dein gewünschter Abstand nach oben */
    max-height: calc(100vh - 140px);    /* Zieht den Abstand von der Gesamthöhe ab */
    overflow-y: auto;                  /* Aktiviert das Scrollen im Element */
    transition: transform 0.3s ease;
    z-index: 10;
}

.kurs-ablauf-hinweis {
    font-size: 12px;
    position: absolute;
        top: 10px;
    right: 20px;
    font-weight: 700;
}
div.ablauf-hinweis {
    background: #f2f2f2;
    padding: 20px;
    border-radius: 15px;
}
#kurs-nav-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 220;
    border: none;
    background: #87be0e;
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#kurs-nav-toggle:hover {
    background: #76a80d;
}

#kurs-nav-toggle .nav-icon {
    display: block;
        width: 50px;
    height: 24px;
    color: #ffffff;
}

#kurs-nav-toggle .nav-icon rect,
#kurs-nav-toggle .nav-icon path,
#kurs-nav-toggle .nav-icon line {
    fill: currentColor;
    stroke: currentColor;
}

#kurs-nav-toggle .nav-icon-close {
    display: none;
}

#kurs-nav-toggle.open .nav-icon-list {
    display: none;
}

#kurs-nav-toggle.open .nav-icon-close {
    display: block;
}

#kurs-nav-toggle.open  {
    opacity: 0.95;
            left: 82%;

}
#kurs-nav-overlay {
    display: none;
}
div#kurs-wrapper section#kurs-nav ul li {
    font-size: 16px;
    line-height: 120%;
    list-style: none;
    padding: 5px 0px 5px 0;
	cursor: pointer;
}
li.kap-el_nav span{
    font-weight: 600 !important;
}

div#kurs-wrapper section#kurs-nav ul li ul li:hover{font-weight: 600 !important;}


section#kurs-content {
    padding-left: 20%;
}


div#kurs-wrapper {
    padding-top: 120px;
}



#lektion-content {
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(0px);
}

#lektion-content.laden {
    opacity: 0;
    transform: translateY(10px);
}

#lektion-content.sichtbar {
    opacity: 1;
    transform: translateY(0px);
}



@media screen and (max-width: 1340px) {


        section#kurs-content {
        padding-left: 33%;
    }


section#kurs-nav {
    width: 32%;}
section#kurs-content {
    padding-left: 32%;
}

.front-page-content-wrapper {
    width: 100%;
    padding: 160px 30px 0 80px;
}

}
button#kurs-nav-toggle {
    display: none;
}

@media screen and (max-width: 768px) {
    section#kurs-nav {
    padding: 80px 30px 30px;
}

    .front-page-content-wrapper {
        width: 100%;
        padding: 100px 30px;
    }

    #kurs-nav-toggle {
              display: block !important;
        opacity: 1;
        visibility: visible;
        top: 86px;
        left: 0;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
    }
    
    section#kurs-content {
        padding-left: 0;
    
    padding-top: 30px;
}
    section#kurs-nav {
        width: min(320px, 85%);
        z-index: 210;
        left: 0;
        top: 0;
        height: 100vh;
        max-height: none;
        border-radius: 0;
        transform: translateX(-100%);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    }

    section#kurs-nav.nav-open {
        transform: translateX(0);
    }

    #kurs-nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.32);
        z-index: 200;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    #kurs-nav-overlay.visible {
        opacity: 1;
        pointer-events: auto;
    }
}

#fortschritt-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
}

#fortschritt-kreis {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

#fortschritt-kreis svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.kreis-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 3;
}

.kreis-fg {
    fill: none;
    stroke: #87be0e; /* deine Akzentfarbe */
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 0.5s ease;
}

#fortschritt-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: 600;
}

#fortschritt-zahlen {
    font-size: 13px;
    line-height: 1.4;
}

#erledigt-count {
    font-weight: 700;
    font-size: 18px;
}

/* ── Erledigt-Markierung in der Nav ── */
#kurs-nav li[data-lek].erledigt::after {
    content: '✓';
    margin-left: 6px;
    color: #87be0e;
    font-weight: 700;
}

/* ── Lektion Footer mit Navigation + Abhaken ── */
#lektion-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    gap: 12px;
	    clear: both;
            padding-right: 30px;
}

.lek-nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s;

    color: #000;
}

.lek-nav-btn:hover { background: #f5f5f5; }
.lek-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }

#abhaken-btn {
    display: inline-block;
    width: 260px;
    padding: 12px 0;
    background-color: #87be0e;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
	border: none;
}

#abhaken-btn.erledigt {
    background: #87be0e;
    color: #fff;
}


img.kursliste-headbild {
    width: 50%;
    float: right;
}



.termine-liste-wrapper.con, .hinweis-box {
    width: 50%;
    padding: 180px 100px;
    margin: 0;
    float: left;
}




@media screen and (max-width: 1340px) {
.kapitel-overview {
    padding: 0 30px;
}

.termine-liste-wrapper.con, .hinweis-box {
    width: 50%;
    margin: 0;
    float: left;
}
section.single-headbild {
    position: absolute;
    top: 0;
    right: 0;
}
    .termine-liste-wrapper.con, .hinweis-box {
        width: 71%;
        margin: 0;
        float: left;
    }
}

@media screen and (max-width: 768px) {
    .termine-liste-wrapper.con, .hinweis-box {
        width: 100%;
        padding: 120px 30px 30px 30px;
        margin: 0;
        float: left;
    }
    #lektion-footer {
    padding-left: 30px;
    padding-right: 30px;
}
img.front-page-featured-image.wp-post-image {
    float: right;
    width: 60%;
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
}
}





/*nav pfeile*/

#kurs-nav .lek-liste {
    display: none;
    overflow: hidden;
}

#kurs-nav .kap-el_nav.offen .lek-liste {
    display: block;
}

#kurs-nav .kap-el_nav > span {
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
}
span.kap-pfeil {
    float: right;
}

#kurs-nav .kap-pfeil {
    transition: transform 0.3s ease;
    display: inline-block;
}

#kurs-nav .kap-el_nav.offen .kap-pfeil {
    transform: rotate(180deg);
}

/* Wrapper oben rechts positionieren */
section.single-headbild {
    position: fixed;
    top: 0;
    right: 17%;
    width: auto;
    height: 100%;
    z-index: -1;
}

/* Bild füllt den Wrapper sauber aus */
section.single-headbild img {
  display: block;
  height: 100%;
  width: auto;
}

/* Verlaufs-Overlay von links (weiß) nach rechts (transparent) */
section.single-headbild::after {
  content: "";
  position: absolute;
  inset: 0;
  
  /* Verlauf von Weiß zu Transparent */
  background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 40%);
  
  pointer-events: none;
}
section.single-headbild::before {
  content: "";
  position: absolute;
  inset: 0;
  
  /* Verlauf von Weiß zu Transparent */
  background: linear-gradient(to left, #ffffff 0%, rgba(255, 255, 255, 0) 40%);
  
  pointer-events: none;
}

img.logo-bw {
    position: fixed;
    bottom: -72px;
    left: -30px;
    width: 22%;
    z-index: -1;
}
input#wp-submit {
    border-radius: 4px !important;
}

@media screen and (max-width: 1340px) {

section.single-headbild {
    right:0;
}
section.single-headbild::before {
  display:none;
}
}
@media screen and (max-width: 768px) {

.post-type-archive section.single-headbild {
    padding-top: 0;
}
section.single-headbild img {
    display: block;
    height: auto;
    width: 100%;
}
img.logo-bw {
    margin: 0 auto;
    width: 75%;
    padding: 30px;
    float: none;
    overflow: hidden;
    clear: both;
    display: block;
}
section.single-headbild {
    float: right;
    width: 100%;
            position: static;
}
.single-kurse img.kursliste-headbild, .page-login img.kursliste-headbild {
    position: static;
    top: 0;
    right: 0;
    width: 100%;
    z-index: -1;
    clear: both;
    overflow: hidden;
}
.page-id-327 div#content {
    padding: 100px 30px;
}

.post-type-archive-kurse .termine-liste-wrapper.con {
    padding-top: 120px;
}

section.single-headbild::after {display: none;}
section.single-headbild {
    padding-top: 30px;
}



img.logo-bw {
    position: static;
    bottom: -72px;
    left: -30px;
    width: 72%;
    z-index: -1;
}


}



.kurs-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Verhältnis */
    height: 0;
    overflow: hidden;
}

.kurs-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
h2.lektion-titel {
    padding-bottom: 20px;
}

/*\\\\\\\\\\\\\\\\\\\\\PAGING NAVIGATION//////////////////*/	
	
.paging-navigation .wp-paginate .current{
		background:#aed544;
	}
.wp-pagenavi > span, .wp-pagenavi > a {
    width: 36px !important;
    height: 30px !important;
    padding-top: 10px !important;
    text-align: center;
    display: block;
    float: left;
}
.wp-pagenavi > span.pages {
    width: auto !important;
    border: none;
}

/*\\\\\\\\\\\\\\\\\\\\ LIGHTBOX ////////////////////*/
html > body > #swipebox-overlay {
background-color: #f2f2f2 !important; 
}

body #swipebox-action{
text-shadow:none;
background-color: #2fba2d;
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #2fba2d), color-stop(100%, #2fba2d));
background-image: -webkit-linear-gradient(#2fba2d, #2fba2d);
background-image: -moz-linear-gradient(#2fba2d, #2fba2d);
background-image: -o-linear-gradient(#2fba2d, #2fba2d);
background-image: linear-gradient(#2fba2d, #2fba2d);
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=95);
opacity: 1;
}
body #swipebox-caption {
text-shadow:none;
background-color: #f2f2f2;
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #f2f2f2), color-stop(100%, #f2f2f2));
background-image: -webkit-linear-gradient(#f2f2f2, #f2f2f2);
background-image: -moz-linear-gradient(#f2f2f2, #f2f2f2);
background-image: -o-linear-gradient(#f2f2f2, #f2f2f2);
background-image: linear-gradient(#f2f2f2, #f2f2f2);
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=95);
opacity: 1;
}	

#swipebox-bottom-bar, #swipebox-top-bar {
    text-shadow: 1px 1px 1px #2fba2d !important;
    background: #2fba2d !important;
    opacity: .95;
}
div#swipebox-top-bar {
    display: block !important;
}
 #swipebox-overlay {
  background-color: rgba(0,0,0,0.7) !important;

}
div#swipebox-action {
  background-color: #ff7800;
  background-image: none;
}
div#swipebox-caption {
  background-image: none;
  background: #ff7800;
  font-size: 20px;
  font-weight: 400;
  font-family: inherit;
}














/* ==========================================
   Modal Overlay Styling
   ========================================== */
.kurs-modal {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, top 1s ease;
}

.kurs-modal.is-open {
    top: 0;
    opacity: 1;
    visibility: visible;
}

.kurs-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
}

.kurs-modal-container {
    position: relative;
    background: #ffffff;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 35px 30px;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.kurs-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

.modal-intro {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.modal-hinweis-text {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 20px 0;
    color: #555;
}

/* ==========================================
   Formular Layout innerhalb des Modals
   ========================================== */
#kurs-anfrage-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

/* Name & Vorname nebeneinander */
#kurs-anfrage-form .field-row.name-row {
    display: flex;
    gap: 15px;
    width: 100%;
}

#kurs-anfrage-form .field-row.name-row > div {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Volle Breite für alle übrigen Felder */
#kurs-anfrage-form .field-full {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Breitenkorrektur für Inputs & Textareas */
#kurs-anfrage-form input[type="text"],
#kurs-anfrage-form input[type="email"],
#kurs-anfrage-form textarea {
    width: 100%;
    box-sizing: border-box;
}

/* Checkbox-Gruppen (Jede in eigener Zeile) */
.checkbox-group {
    width: 100%;
    margin-top: 5px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    width: 100%;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

/* Mobile Responsiveness */
@media (max-width: 500px) {
    #kurs-anfrage-form .field-row.name-row {
        flex-direction: column;
        gap: 15px;
    }
}

/* ==========================================
   Status Messages
   ========================================== */
.form-message {
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: none;
    font-size: 0.9rem;
}

.form-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* ==========================================
   Formular Layout innerhalb des Modals
   ========================================== */
.kurs-modal-container #kurs-anfrage-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    width: 100% !important;
}

/* Name & Vorname gezielt nebeneinander zwingen */
.kurs-modal-container #kurs-anfrage-form .field-row.name-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px !important;
    width: 100% !important;
}

.kurs-modal-container #kurs-anfrage-form .field-row.name-row > div {
    flex: 1 1 50% !important;
    width: 50% !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Volle Breite für alle übrigen Elemente & Container */
.kurs-modal-container #kurs-anfrage-form .field-full,
.kurs-modal-container #kurs-anfrage-form .checkbox-group {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    clear: both !important;
}

/* Inputs, Textareas & Labels auf volle Breite */
.kurs-modal-container #kurs-anfrage-form input[type="text"],
.kurs-modal-container #kurs-anfrage-form input[type="email"],
.kurs-modal-container #kurs-anfrage-form textarea {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Checkbox-Zeilen */
.kurs-modal-container #kurs-anfrage-form .checkbox-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 10px !important;
    font-size: 0.9rem;
    cursor: pointer;
    width: 100% !important;
}

.kurs-modal-container #kurs-anfrage-form .checkbox-label input[type="checkbox"] {
    margin-top: 3px !important;
    flex-shrink: 0 !important;
    width: auto !important;
}

/* Mobile Responsiveness (unter 600px wieder untereinander) */
@media (max-width: 600px) {
    .kurs-modal-container #kurs-anfrage-form .field-row.name-row {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .kurs-modal-container #kurs-anfrage-form .field-row.name-row > div {
        width: 100% !important;
    }
}


.kurs-preis h2 {
    margin-top: 0;
    padding-top: 0;
}
.kurse_logged-out-text p:last-child{margin-bottom:0;}
.kurse_logged-out-text {margin-top:50px;}
/* Kurs Fortschrittsbalken in der Liste */
.kurs-progress-wrapper {
    margin-top: 10px;
    width: 100%;
}

.kurs-progress-bar {
    width: 100%;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.kurs-progress-fill {
    height: 100%;
    background-color: #87be0e; /* Schönes Grün */
    transition: width 0.3s ease-in-out;
}

.kurs-progress-text {
        font-size: 14px;
    color: #666;
    display: block;
    line-height: 120%;
}

.kurs-progress-text small {
    color: #888;
    margin-left: 3px;
}