/* Haupt-Grid für beide Formulare */
.formular_container {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    position: relative; /* Bezugspunkt für absolute Positionierung */
}

/* Spalte 1: Kategorien */
.kategorie_container {
    grid-column: 1;
}

/* Spalte 2: Beschreibung */
.beschreibung_container {
    grid-column: 2;
}


/* Wenn Beschreibung geöffnet ist, Ort-Formular nach unten verschieben */
#kursbeschreibung_details:target ~ 
#kursbeschreibung_details[style*="display: block"]  {
    position: relative; /* Zurück zum Fluss */
    top: auto;
    left: auto;
    margin-top: calc(100% + 20px); /* Verschiebt es unter die Beschreibung */
}

/* Responsive: Handy untereinander */
@media (max-width: 768px) {
    .formular_container {
        grid-template-columns: 100%;
        gap: 30px;
    }
    .kategorie_container,
    .beschreibung_container,
    #veranstaltungsort {
        grid-column: 1;
        position: static; /* Zurück zum normalen Fluss */
    }
}


.kurse_uebersicht {
    display: block;
    padding: 10px;
    margin: 5px 0;
    background-color: hsla(0,0%,100%,0.44);
    text-align: center;
    min-width: 170px;
    vertical-align: middle;
    padding-top: 1em;
    padding-bottom: 1em;
    width: 100%;
    float: left;
    font-family: titling-gothic-fb-extended, sans-serif;
    font-style: normal;
    font-weight: 100;
    font-size: 14px;
}
input[type="radio"]:checked + .kurse_uebersicht {
    background-color: hsla(0,0%,100%,0.84);
    color: #D4272A;
}

/* Stil für den Kontaktdaten-Button */
#kontakt_auswahl {
    margin-bottom: 20px;
}
#abweichende_kontaktdaten {
    display: none; /* Verstecke die Checkbox */
}

#abweichende_kontaktdaten + .kontaktdaten_label {
    display: inline-block;
    padding: 10px 20px;
    background-color: hsla(0, 0%, 100%, 0.44);
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    width: 100%;
    max-width: 200px;
    box-sizing: border-box;
    position: relative;
    font-family: titling-gothic-fb-extended, sans-serif;
    font-style: normal;
    font-weight: 100;
    
    color: rgba(255, 255, 255, 1.00);
    margin-top: 20px;
}

#abweichende_kontaktdaten:checked + .kontaktdaten_label {
    background-color: hsla(0, 0%, 100%, 0.84);
    color: #D4272A;
}

#abweichende_kontaktdaten + .kontaktdaten_label:hover {
    background-color: hsla(0, 0%, 100%, 0.57);
    color: #D4272A;
}

.datum-field { margin-bottom: 10px; }
.datum-field input { margin-right: 10px; }
.remove_datum { background: #ff4444; color: white; border: none; padding: 5px 10px; cursor: pointer; }
.remove_datum:hover { background: #cc0000; }
textarea.beschreibung { width: 100%; height: 150px; resize: vertical; }
.input100 { width: 100%; padding: 8px; }
button[type="submit"] { background: #4CAF50; color: white; padding: 10px 20px; border: none; cursor: pointer; }
button[type="submit"]:hover { background: #45a049; }
.musisch, .sport, .weitere { margin-bottom: 15px; }

/* Anpassung des Dozentenbereichs */
.dozenten-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

.dozent {
     display: flex;
  justify-content: space-between;
    align-items: center;
    width: 80%; /* Zwei Spalten nebeneinander */
    margin-bottom: 10px;
    margin-left: 20px;
    box-sizing: border-box;
}

.dozent input[type="checkbox"] {
    margin-right: 5px; /* Reduzierter Abstand zwischen Checkbox und Dozentenname */
    vertical-align: middle;
}

.dozent label {
    margin: 0;
    display: inline-flex;
    align-items: center;
    flex-grow: 1;
	width: 200px;
}

.dozent .show-contact {
    display: flex;
    align-items: center;
    margin-left: 20px; /* Abstand zwischen Dozentenname und Kontaktdaten-Checkbox */
}

.dozent .show-contact input[type="checkbox"] {
    margin-right: 5px; /* Reduzierter Abstand zwischen Kontaktdaten-Checkbox und Label */
    vertical-align: middle;
}

.dozent .show-contact label {
    margin: 0;
    display: inline-flex;
    align-items: center;
}

/* Adressauswahl */
p[for="adresse"] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

p[for="adresse"] select[name="adresse"] {
    width: 48%; /* Passt zur Breite der Dozenten-Spalten */
    margin-right: 4%;
}

p[for="adresse"] input[type="checkbox"] {
    margin-right: 5px; /* Reduzierter Abstand zwischen Adress-Checkbox und Label */
}

#sub_unterkategorien_container { margin-top: 20px; }
#preis_einheit_container { display: none; }
#kurs_start_container { margin-top: 10px; }
#abrechnung_container { margin-top: 5px; }

.kategorie-option {
    margin: 10px 0;
    padding: 5px;
}
.kategorie-option label {
    margin-left: 5px;
}
#unterkategorien_container, #sub_unterkategorien_container, #zeitraum_unterkategorien_container {
    margin-top: 20px;
}

.wochentag input[name="wochentage"]{
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 0;
}

.wochentage-container .wochentag input[type="checkbox"] {
    margin: 0 5px 0 0 !important;
    vertical-align: middle !important;
    line-height: normal !important;
}
.wochentage-container .wochentag {
    display: flex;
    width: 150px;
   /* justify-content: space-between; */
    margin-right: 15px;
    margin-bottom: 10px;
}

.wochentage-container .wochentag label {
    line-height: normal;
    width: 20px;
    margin: 0;
    display: inline-flex;
    align-items: center;
}
.wochentage-container {
    display: flex;
    flex-wrap: wrap;
	align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    width: 50%;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

#begruessung {
    text-align: center;
    width: 45%;
    min-width: 280px;
    max-width: 640px;
    height: auto;
    padding-top: 35px;
    padding-bottom: 30px;
    margin: 0 auto 40px auto;
    position: relative;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    #begruessung {
        width: 92%;
        min-width: 0;
        max-width: none;
    }
}

#status_sortiert{
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	clear: both;
	float: none;
}
#status_sortiert label{
	margin-bottom: 10px;
}
#moderatorlink {
    background-color: rgba(255,255,255,0.30);
    float: right;
    width: 35%;
    min-width: 427px;
    padding-top: 30px;
    padding-bottom: 30px;
    text-align: center;
    margin-bottom: 40px;
    margin-right: auto;
    margin-left: 14%;
    position: relative;
}

#moderatorlink a {
    text-decoration: none;
}

#moderatorlink:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

/* Anpassungen für Schwangerschaftsoptionen */
.kurs_form_content {
    margin-left: 7%;
    margin-right: 7%;
    width: 86%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

#vdschwanger:checked ~ .a4 {
    background-color: hsla(0,0%,100%,0.84);
    color: #D4272A;
}

#idschwanger:checked ~ .a5 {
    background-color: hsla(0,0%,100%,0.84);
    color: #D4272A;
}

#ndschwanger:checked ~ .a6 {
    background-color: hsla(0,0%,100%,0.84);
    color: #D4272A;
}

input[type="radio"] {
    display: none !important;
}
.schwanger_bis_kurs input[type="radio"] {
    display: none !important;
}
.kurse_uebersicht {
    display: block;
    padding: 10px;
    margin: 5px 0;
    background-color: #f0f0f0;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    pointer-events: auto;
}

input[type="radio"]:checked + .kurse_uebersicht {
    background-color: hsla(0,0%,100%,0.84);
    color: #D4272A;
}

.kurse_uebersicht{
    height: 24px;
    background-color: hsla(0,0%,100%,0.44);
    text-align: center;
    min-width: 170px;
    vertical-align: middle;
    padding-top: 1em;
    padding-bottom: 1em;
    width: 100%;
    float: left;
    font-family: titling-gothic-fb-extended,sans-serif;
    font-style: normal;
    font-weight: 100;
    font-size: 14px;
}

.form_container2{
    width: 35%;
    min-width: 427px;
    position: relative;
    z-index: 92;
    height: auto;
    margin-bottom: 33px;
    margin-right: 29px;
    box-shadow: 0px 0px;
    float: left;
}

.form_container3{
    width: 15%;
    min-width: 427px;
    position: relative;
    z-index: 92;
    height: auto;
    float: right;
    margin-bottom: 33px;
    margin-right: 29px;
    box-shadow: 0px 0px;
    border-left-width: thin;
}

/* Suche */
input{
    outline-color: none;
}

.input30{
    width: 100%;
    float: left;
    padding-top: 2%;
    padding-bottom: 2%;
    background-color: rgba(255,255,255,0.00);
    margin-right: 0%;
    margin-left: 0%;
    border-left: none;
    border-right: none;
    border-bottom: thin dotted rgba(255,255,255,1.00);
    border-top: none;
    display: inline-block;
    font-family: titling-gothic-fb-extended,sans-serif;
    font-style: normal;
    font-weight: 100;
    font-size: 16px;
    color: rgba(255,255,255,1.00);
    outline: none;
}
.input100{
    width: 100%;
    float: left;
    background-color: rgba(255,255,255,0.00);
    margin-top: 10px;
    margin-right: 0%;
    margin-left: 0%;
    margin-bottom: 11px;
    padding-top: 2%;
    padding-bottom: 2%;
    border-left: none;
    border-right: none;
    border-bottom: thin dotted rgba(255,255,255,1.00);
    border-top: none;
    display: inline-block;
    font-family: titling-gothic-fb-extended,sans-serif;
    font-style: normal;
    font-weight: 100;
    font-size: 16px;
    color: rgba(255,255,255,1.00);
    outline: none;
}

#aktiv_pass{
    margin-top: 12px;
    width: 100%;
}
.aktivpass-container{
	margin-top: 23px;
}
.aktivpass_checkbox {
    width: 10px;
    height: 10px;
    margin: 0;
    vertical-align: middle;
    visibility: hidden;
}

.aktivpass_label {
    display: inline-block;
    padding: 10px 20px;
    background-color: hsla(0,0%,100%,0.44);
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    width: 100%;
    max-width: 200px;
    box-sizing: border-box;
    position: relative;
}

.aktivpass_checkbox:checked + .aktivpass_label {
    background-color: hsla(0,0%,100%,0.84);
    color: #D4272A;
}

.aktivpass_label:hover {
    color: #D4272A;
}

.aktivpass_checkbox:checked + .aktivpass_label:hover {
    color: #D4272A;
}

#geb{
    margin-top: 12px;
    width: 100%;
}
#in{}
#vor{
    width: 100%;
}
#nach{}

/* Registrieren Formular */
#kurs{
    display: none;
    float: left;
}

#extra{
    display: none;
    margin-bottom: 60px;
    float: left;
    width: 100%;
}

.kategorie{
    margin-top: 8px;
}
#ort_neu{
    background: rgba(255,255,255,0.3);
    width: 90%;
}

.kurs_wahl{
    background: rgba(255,255,255,0.3);
    width: 100%;
}

#kursgr{
    width: 100%;
    height: 44px;
}
input[name="kurs"]{
    position: absolute;
    visibility: hidden;
}

input:focus{
    outline: none;
    border-left: none;
    border-right: none;
    border-bottom: thin dotted rgba(255,255,255,1.00);
    border-top: none;
}

#schwanger2 input[name="age_von"]{
    position: absolute;
    visibility: hidden;
}

button{
    width: 100%;
    margin-top: 0;
    margin-bottom: 23px;
    padding-top: 2%;
    padding-bottom: 2%;
    border: none rgba(0,0,0,0.00);
    float: left;
    font-family: titling-gothic-fb-extended,sans-serif;
    font-style: normal;
    font-weight: 100;
    font-size: 16px;
    color: rgba(255,255,255,1.00);
    display: inline-block;
    outline: none;
    background-color: hsla(0,0%,100%,0.44);
}

.button{
    height: 40px;
    background-color: hsla(0,0%,100%,0.44);
    padding-right: 1em;
    padding-left: 1em;
    text-align: center;
    margin-left: 2%;
    min-width: 170px;
    vertical-align: middle;
    padding-top: 1em;
    margin-bottom: 10px;
}

button:focus {
    outline: none;
}

button:hover{
    background-color: hsla(0,0%,100%,0.57);
}

#extra label{
    text-transform: uppercase;
    margin-top: 0;
    margin-right: 10%;
    margin-bottom: 10px;
    font-size: 10px;
}
.box2 label{
    text-transform: uppercase;
    margin-top: 0;
    margin-right: 10%;
    margin-bottom: 10px;
    font-size: 10px;
}

input#barrierefrei{
    text-transform: uppercase;
    margin-top: 0;
    margin-right: 10%;
    margin-bottom: 10px;
    font-size: 10px;
    float: left;
}

/* Form Container */
.form_container {
    width: 100%;
    min-width: 427px;
    position: relative;
    z-index: 92;
    height: auto;
    margin-bottom: 33px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.form_container form input{
    margin-top: 0;
    margin-right: 0%;
    margin-left: 0%;
    margin-bottom: 23px;
    padding-top: 2%;
    padding-bottom: 2%;
    border-left: none;
    border-right: none;
    border-top: none;
    border-bottom: thin dotted rgba(255,255,255,1.00);
    float: left;
    display: inline-block;
    font-family: titling-gothic-fb-extended,sans-serif;
    font-style: normal;
    font-weight: 100;
    font-size: 16px;
    color: rgba(255,255,255,1.00);
    background-color: rgba(255,255,255,0.00);
}

/* Kursformular */
.form_container label{
    font-size: 10px;
    margin-top: 0;
   
}

.form_container .name{
    width: 40%;
    float: left;
    margin-left: 6%;
}

.form_container input #vorname{
    width: 40%;
    float: left;
}

.form_container input .pzl{
    width: 40%;
    float: left;
}

.form_container input #nachname{
    width: 40%;
    float: left;
}

.form_container a{
   /* margin-left: 10%;*/
    margin-bottom: 68%;
    margin-right: 10%;
    position: relative;
}

.form_container #senden{
    background: rgba(255,255,255,0.3);
    display: inline-block;
    padding-top: 2%;
    padding-bottom: 2%;
    cursor: pointer;
    color: #ffffff;
    font-family: titling-gothic-fb-extended,sans-serif;
    font-style: normal;
    font-weight: 100;
    font-size: 16px;
    position: relative;
    width: 100%;
    margin-top: 0;
    float: left;
}

.form_container #senden:hover{
    background: rgba(255,255,255,0.60);
    border-left: none;
    border-right: none;
    border-top: none;
}

.form_container #zuruecksetzen{
    background: rgba(0,0,0,0.0);
    color: #fff;
    font-family: titling-gothic-fb-extended,sans-serif;
    font-style: normal;
    font-weight: 100;
    font-size: 10px;
    padding: 0 0 0 0;
    text-transform: uppercase;
    margin: 0 10% 10% 10%;
    width: 80%;
    text-align: left;
    text-decoration: underline;
    position: relative;
    border-bottom-style: none;
}

/* Form2 Container */
.form2_container{
    width: 42%;
    min-width: 400px;
    position: relative;
    z-index: 92;
    height: auto;
    float: right;
    margin-bottom: 67px;
    box-sizing: border-box;
}

.form2_container form input{
    width: 98%;
    margin-top: 0;
    margin-right: 0%;
    margin-left: 0%;
    margin-bottom: 23px;
    padding-top: 2%;
    padding-bottom: 2%;
    border-left: none;
    border-right: none;
    border-top: none;
    border-bottom: thin dotted rgba(255,255,255,1.00);
    float: left;
    display: inline-block;
    font-family: titling-gothic-fb-extended,sans-serif;
    font-style: normal;
    font-weight: 100;
    font-size: 16px;
    color: rgba(255,255,255,1.00);
    background-color: rgba(255,255,255,0.00);
}

.form2_container label{
    text-transform: uppercase;
    font-size: 10px;
    margin-top: 0;
    
}

.form2_container form input:focus{
    outline: none;
    color: rgba(252,252,252,1.00);
}

.form2_container .name{
    width: 40%;
    float: left;
    margin-left: 6%;
}

.form2_container input #vorname{
    width: 40%;
    float: left;
}

.form2_container input .pzl{
    width: 40%;
    float: left;
}

.form2_container input #nachname{
    width: 40%;
    float: left;
}

.form2_container a{
    margin-left: 10%;
    margin-bottom: 68%;
    margin-right: 10%;
    position: relative;
}

.form2_container #senden{
    background: rgba(255,255,255,0.3);
    border-style: hidden;
    display: inline-block;
    padding-top: 2%;
    padding-bottom: 2%;
    cursor: pointer;
    color: #ffffff;
    font-family: titling-gothic-fb-extended,sans-serif;
    font-style: normal;
    font-weight: 100;
    font-size: 16px;
    position: relative;
    width: 90%;
    margin-top: 0;
    float: left;
}

.form2_container #senden:hover{
    background: rgba(255,255,255,0.60);
}

.form2_container #zuruecksetzen{
    background: rgba(0,0,0,0.0);
    color: #fff;
    font-family: titling-gothic-fb-extended,sans-serif;
    font-style: normal;
    font-weight: 100;
    font-size: 10px;
    padding: 0 0 0 0;
    text-transform: uppercase;
    margin: 0 10% 10% 10%;
    width: 80%;
    text-align: left;
    text-decoration: underline;
    position: relative;
    border-bottom-style: none;
}

h3{
    font-weight: 200;
    margin-bottom: 10px;
    margin-top: 40px;
    font-size: 1.2em;
}

#unterkategorien_container h3 {
    margin-top: 60px;
}
#kursbeschreibung_details h3 {
    font-weight: 200;
    margin-right: 10%;
    margin-bottom: 10px;
    margin-top: 20px;
    font-size: 1.2em;
    position: relative;
    z-index: 1;
    clear: both;
}
#kursbeschreibung_details {
    position: relative;
    z-index: 10;
}

/* Select Wrapper */
.select-wrapper {
    outline: none;
}

select::-ms-expand {
  display: none;
}
select {
    width: 100%;
    height: 45px;
    padding-left: 10px;
    background-color: rgba(255,255,255,0.3);
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    box-shadow: 2px 2px 5px 1px rgba(0,0,0,0.3);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    appearance: none;
    border: none;
}

select:focus::-ms-value {
  background-color: transparent;
}

select option {
  color: #666;
}

.altersangabe {
    float: left;
    width: 100%;
    height: auto;
    min-height: 50px;
    display: block;
    margin-bottom: 53px;
    overflow: visible;
}

.altersangabe-nach-wochen,
.altersangabe-nach-monate {
    margin-bottom: 28px;
}

.altersangabe-nach-wochen > p:first-child,
.altersangabe-nach-monate > p:first-child {
    clear: both;
    width: 100%;
    margin: 0 0 12px 0;
}
.box {
    float: left;
    width: 45%;
}

.box2 {
    float: left;
    width: 100%;
    margin-bottom: 54px;
}
.box_platzhalt {
    float: left;
    height: 39px;
    width: 10%;
}
.box input[type="checkbox"] {
    margin-right: 10px;
}
.box_barrierefrei label {
    font-size: 10px;
    float: none;
    margin: 0 10px 10px 0;
    color: rgba(255,255,255,1.00);
    width: 45%;
    background-color: rgba(255,255,255,0.34);
    padding: 10px 20px;
}
.box_barrierefrei label:hover {
    font-size: 10px;
    float: none;
    margin: 0 10px 10px 0;
    color: rgba(215,21,24,1.00);
    width: 45%;
    background-color: rgba(255,255,255,0.34);
    padding: 10px 20px;
}
.box_barrierefrei input[type="checkbox"] {
    display: none;
}
.box_barrierefrei label {
    cursor: pointer;
}

@media (max-width: 768px) {
    .form_container {
        flex-direction: column;
    }
    .form2_container {
        width: 100%;
    }
}

#baby2 {
    display: none;
    float: left;
}
#schwanger2 {
    display: none;
    float: left;
}

.schwanger_bis_kurs{
    margin-bottom: 40%;
    position: relative;
    z-index: 20;
    height: auto;
    width: 100%;
}

.schwanger_bis_kurs .kurse_uebersicht {
    display: block;
    padding-bottom: 10px;
    padding-top: 10px;
    margin: 5px 0;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    pointer-events: auto;
    position: relative;
    z-index: 21;
    width: 100%;
    box-sizing: border-box;
}

#zeitraum_auswahl {
    display: none;
    position: relative;
    z-index: 10;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

#zeitraum_unterkategorien_container {
    margin-top: 10px;
    z-index: 5;
}

.schwanger_bis_kurs label{
    margin-bottom: 10px;
    width: 100%;
    min-width: 400px;
    position: relative;
    height: auto;
    float: right;
}

.schwanger_bis_kurs label:hover{
    background-color: hsla(0,0%,100%,0.44);
    color: #D4272A;
}

.kategorie-option{
    margin-bottom: 40%;
    position: relative;
    z-index: 20;
    height: auto;
    width: 100%;
    max-width: 400px;
}

.kategorie-option .kurse_uebersicht {
    display: block;
    padding-bottom: 10px;
    padding-top: 10px;
    margin: 5px 0;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    pointer-events: auto;
    position: relative;
    z-index: 21;
    width: 100%;
    box-sizing: border-box;
}

.kategorie-option label{
    margin-bottom: 10px;
    width: 100%;
    min-width: 400px;
    position: relative;
    height: auto;
    float: right;
}

.kategorie-option:hover{
    background-color: hsla(0,0%,100%,0.44);
    color: #D4272A;
}

.kategorie-option input[type="radio"] {
    display: none !important;
}
/* Kursdauer: Zahl + Einheit in einer Zeile */
.kursdauer-row .kursdauer-fields {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}
.kursdauer-row .kursdauer-fields .input30 {
    width: 30%;
    float: none;
    flex: 0 0 30%;
}
.kursdauer-row .kursdauer-fields select {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
}
