/* ============================================
   Grundlayout Formular
============================================ */
.epromoink-form {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    max-width: 50rem;
    margin: 0 auto;
    position: relative; /* Wichtig für Z-Index-Stacking */
    z-index: 1;
 
}

/* Einspaltige Felder */
.epromoink-form .full-width {
    flex: 1 1 100%;
}

/* Zweispaltige Felder */
.epromoink-form .half-width {
    flex: 1 1 calc(50% - 0.5rem);
}

/* Inputs, Textareas, Selects */
.epromoink-form input[type="text"],
.epromoink-form input[type="email"],
.epromoink-form input[type="tel"],
.epromoink-form textarea,
.epromoink-form select {
    width: 100%;
    padding: 1.25rem 0.75rem 0.25rem 0.75rem; 
    font-size: 1.2rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

/* Fokuszustand */
.epromoink-form input:focus,
.epromoink-form textarea:focus,
.epromoink-form select:focus {
    border-color: #0073aa;
    outline: none;
}

/* Floating Labels */
.epromoink-form .form-group {
    position: relative;
    width: 100%;
    margin-bottom: .125rem;
}

.epromoink-form label {
    position: absolute;
    top: 1.4rem;
    left: 0.75rem;
    font-size: 0.75rem;
    color: #666;
    background-color: transparent;
    padding: 0 0.25rem;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 2;
}

.epromoink-form input:focus + label,
.epromoink-form input:not(:placeholder-shown) + label,
.epromoink-form textarea:focus + label,
.epromoink-form textarea:not(:placeholder-shown) + label,
.epromoink-form select:focus + label,
.epromoink-form select:not([value=""]) + label {
    top: -0.5rem;
    font-size: 0.625rem;
    color: #0073aa;
}

/* Buttons */
.epromoink-form button,
.epromoink-form input[type="submit"] {
    background-color: #999;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

.epromoink-form button:hover,
.epromoink-form input[type="submit"]:hover {
    background-color: #000;
}

/* ============================================
   Radios als klickbare Bilder
============================================ */

/* Container */
.radio-wrap {
    position: relative;
    padding-top: 1.5rem; 
    max-width: 50rem;
    margin: 0 auto 1rem auto;
    z-index: 1; /* Unter Checkbox */
}

/* Gruppen-Label oben links */
.radio-wrap .radio-label {
    position: absolute;
    top: 0;
    left: 0.75rem;
    font-size: 0.75rem;
    color: #666;
    pointer-events: none;
    background-color: transparent;
    padding: 0 0.25rem;
    transition: all 0.2s ease;
    z-index: 2;
}

/* Radio-Container */
.radio-wrap .radio-items {
    display: flex !important;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
}

/* Verstecke die echten Radios */
.radio-wrap .radio-items input[type="radio"] {
    display: none;
}

/* Label als Bild anzeigen */
.radio-wrap .radio-items .wpcf7-list-item label {
    display: inline-block;
    cursor: pointer !important;
    border: 1px solid #999;
    border-radius: .5rem;
    overflow: hidden;
    transition: all 0.2s ease;
    width: 9rem;
    height: 9rem;
    background-size: cover;
    background-position: center;
    box-shadow: 3px 3px 8px rgba(0,0,0,.05);
    transform-origin: center center;
}

/* Hover-Effekt */
.radio-wrap .radio-items .wpcf7-list-item label:hover {
    transform: scale(1.03);
    border-color: #666;
}

/* Markiertes Bild hervorheben */
.radio-wrap .radio-items .wpcf7-list-item label:has(input[type="radio"]:checked) {
    border-color: #000;
    box-shadow: 0 0 12px rgba(0,0,0,0.9);
    transform: scale(1.05);
}

/* Label-Text innerhalb der Radio-Bilder ausblenden */
.radio-wrap .radio-items .wpcf7-list-item label span {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Responsive: kleinere Buttons auf kleinen Screens */
@media (max-width: 36rem) {
    .radio-wrap .radio-items .wpcf7-list-item label {
        width: 5rem;
        height: 5rem;
    }
}

/* ============================================
   Datenschutz-Akzeptanzfeld (fix + layout)
============================================ */

.datenschutz-wrap {
    display: block;
    width: 100%;
    max-width: 50rem;
    margin: .5rem auto 0 auto;
    line-height: 1.5;
    font-size: 0.9rem;
    color: #444;
    position: relative;
    z-index: 10; /* über Radios */
}

/* Contact Form 7 Wrapper */
.datenschutz-wrap .wpcf7-form-control-wrap {
    display: table  !important;
    width: 100% !important;
	
}

/* Checkbox */
.datenschutz-wrap input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.2);
    pointer-events: auto !important;
    position: relative;
    z-index: 11; /* Priorität für Klick */
}

/* Links */
.datenschutz-wrap a {
    color: #0073aa;
    text-decoration: underline;
}

.datenschutz-wrap a:hover {
    color: #000;
    text-decoration: none;
}

/* ============================================
   Responsive Layout
============================================ */
@media (max-width: 48rem) {
    .epromoink-form .half-width {
        flex: 1 1 100%;
    }
}

@media (max-width: 30rem) {
    .epromoink-form {
        gap: 0.5rem;
    }

    .epromoink-form input,
    .epromoink-form textarea,
    .epromoink-form select {
        font-size: 0.875rem;
        padding: 0.75rem 0.625rem 0.25rem 0.625rem;
    }

    .epromoink-form button,
    .epromoink-form input[type="submit"] {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* ---------------------------------
   Typografie
---------------------------------- */
.epromoink-form h1, .epromoink-form h2, .epromoink-form  h3, .epromoink-form h4, .epromoink-form  h5 {
    font-weight: 900 !important;
	font-size: 1.2rem !important;
	text-align:left !important;
	line-height: 1.4rem;
}

.epromoink-form p
{
 
margin:0; 
line-height: 1.2rem; 
border:1px red solid;
}

.wpcf7-list-item {
    margin: 0 1.5rem 0 0 !important;
}


