/* Termin page — section 1: hero + CF7 form */

.a4-termin-hero {
    padding-top: 40px;
    padding-bottom: 40px;
}

.a4-termin-hero__image {
    margin-bottom: 40px;
}

.a4-termin-hero__image img {
    display: block;
    width: 100%;
    height: auto;
}

.a4-termin-hero__content {
    margin-left: auto;
    margin-right: auto;
}

/* h1 — muted + orange accent */
.a4-termin-hero__title {
    margin: 0 0 40px;
    font-family: var(--a4-font-heading);
    font-size: 36px;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    text-align: left;
    color: #b4b5ba;
}

.a4-termin-hero__title-accent {
    color: #e74922;
}

@media (min-width: 960px) {
    .a4-termin-hero__title {
        font-size: 56px;
    }
}

/* One form box — border + padding only here */
.a4-termin-form-wrap {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 14px 8px;
    border: 1px solid #9c9c9c;
    background: #fff;
}

.a4-termin-form-wrap .wpcf7 {
    margin: 0;
}

/* Reset CF7 form in all states (avoids double border / submit flash) */
.a4-termin-form-wrap .wpcf7-form,
.a4-termin-form-wrap .wpcf7-form.init,
.a4-termin-form-wrap .wpcf7-form.resetting,
.a4-termin-form-wrap .wpcf7-form.submitting,
.a4-termin-form-wrap .wpcf7-form.invalid,
.a4-termin-form-wrap .wpcf7-form.sent,
.a4-termin-form-wrap .wpcf7-form.failed,
.a4-termin-form-wrap .wpcf7-form.spam,
.a4-termin-form-wrap .wpcf7-form.unaccepted,
.a4-termin-form-wrap .a4-termin-form {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.a4-termin-form-wrap label {
    display: block;
    width: 100%;
    margin: 0 0 20px;
    font-family: var(--a4-font-body);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
    color: #2d2e33;
}

/* Underline fields — like YOOtheme uk-input */
.a4-termin-form-wrap input[type="text"],
.a4-termin-form-wrap input[type="email"],
.a4-termin-form-wrap input[type="tel"],
.a4-termin-form-wrap select,
.a4-termin-form-wrap textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 5px 0 0;
    padding: 0 10px;
    border: 0;
    border-bottom: 1px solid #e5e5e7;
    border-radius: 0;
    background: #fff;
    color: #6c6d74;
    font-family: var(--a4-font-body);
    font-size: 17px;
    font-weight: 400;
    line-height: 40px;
    height: 40px;
    outline: 0;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .2s ease, color .2s ease;
}

.a4-termin-form-wrap textarea {
    height: auto;
    min-height: 120px;
    line-height: 1.4;
    padding-top: 6px;
    padding-bottom: 6px;
    resize: vertical;
}

.a4-termin-form-wrap select {
    background-image: linear-gradient(45deg, transparent 50%, #6c6d74 50%),
                      linear-gradient(135deg, #6c6d74 50%, transparent 50%);
    background-position: calc(100% - 14px) calc(50% - 2px), calc(100% - 9px) calc(50% - 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 28px;
}

.a4-termin-form-wrap input:focus,
.a4-termin-form-wrap select:focus,
.a4-termin-form-wrap textarea:focus {
    border-bottom-color: #303033;
    color: #6c6d74;
}

/* Error state — red underline + red tip */
.a4-termin-form-wrap .wpcf7-not-valid {
    border-bottom-color: #e74922 !important;
}

.a4-termin-form-wrap .wpcf7-not-valid-tip {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
    text-transform: none;
    color: #e74922;
}

.a4-termin-form-wrap .wpcf7-response-output {
    margin: 20px 0 0;
    padding: 12px 15px;
    border-radius: 0;
}

/* Submit — uk-button-primary */
.a4-termin-form-wrap input[type="submit"],
.a4-termin-form-wrap button[type="submit"] {
    display: inline-block;
    width: auto;
    height: auto;
    margin: 10px 0 0;
    padding: 0 20px;
    border: 5px solid transparent;
    border-radius: 10px;
    background: #e74922;
    color: #fff;
    font-family: var(--a4-font-body);
    font-size: 17px;
    font-weight: 500;
    line-height: 24px;
    text-transform: none;
    cursor: pointer;
    transition: .1s ease-in-out;
}

.a4-termin-form-wrap input[type="submit"]:hover,
.a4-termin-form-wrap button[type="submit"]:hover {
    background: #cc3713;
    border-color: #cc3713;
    color: #fff;
}

/* ==========================================================================
   Section 2: video
   ========================================================================== */

.a4-termin-video__inner {
    text-align: center;
}

.a4-termin .a4-termin-video.a4-section {
	
}

/* uk-heading-small + uk-text-primary */
.a4-termin-video__heading {
    font-family: var(--a4-font-body);
    font-size: 38.4px;
    font-weight: 400;
    line-height: 1.2;
    text-transform: none;
    color: #2d2e33;
}

@media (min-width: 960px) {
    .a4-termin-video__heading {
        font-size: 48px;
    }
}

/* uk-text-muted + uk-width-2xlarge (750px) */
.a4-termin-video__text {
    max-width: 750px;
    margin: 20px auto;
    font-family: var(--a4-font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    color: #b4b5ba;
}

.a4-termin-video__text p {
    margin: 0;
}

/* Video with soft bottom shadow (uk-box-shadow-bottom) */
.a4-termin-video__frame {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 100%;
    margin-top: 20px;
    vertical-align: middle;
    z-index: 0;
}

.a4-termin-video__frame::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    z-index: -1;
    height: 30px;
    border-radius: 100%;
    background: #444;
    filter: blur(20px);
}

.a4-termin-video__ratio {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.a4-termin-video__ratio iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media (max-width: 767px) {
	.a4-termin .a4-termin-video.a4-section {
		padding-top: 0;
		padding-bottom: 0;
	}
}

/* ==========================================================================
   Section 3: two columns (uk-section-large)
   ========================================================================== */

.a4-termin-cols {
    padding-top: 40px;
    padding-bottom: 40px;
    background: #fff;
}

@media (min-width: 960px) {
    .a4-termin-cols {
        padding-top: 140px;
        padding-bottom: 140px;
    }
}

.a4-termin-cols__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 960px) {
    .a4-termin-cols__grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

/* h4 — Open Sans 30px / 500 */
.a4-termin-cols__heading {
    margin: 0 0 20px;
    font-family: var(--a4-font-body);
    font-size: 30px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: none;
    color: #2d2e33;
}

.a4-termin-cols__text {
    font-family: var(--a4-font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    color: #6c6d74;
}

.a4-termin-cols__text p {
    margin: 0 0 20px;
}

.a4-termin-cols__text p:last-child {
    margin-bottom: 0;
}

.a4-termin-cols__text strong {
    color: #6C6D74;
    font-weight: 700;
}

/* ==========================================================================
   Section 4: trust badges (uk-section-muted + uk-section-small)
   ========================================================================== */

.a4-termin-trust {
    padding-top: 40px;
    padding-bottom: 40px;
    background: #f7f7f7;
}

.a4-termin-trust__heading {
    margin: 0 0 20px;
    font-family: var(--a4-font-heading);
    font-size: 28px;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    color: #adadad;
    text-align: left;
}

@media (min-width: 960px) {
    .a4-termin-trust__heading {
        font-size: 28px;
    }
}

.a4-termin-trust__text {
    margin: 0 0 30px;
    font-family: var(--a4-font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    color: #6c6d74;
}

.a4-termin-trust__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px 30px;
}

.a4-termin-trust__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 140px;
    max-width: 180px;
}

.a4-termin-trust__badge img {
    display: block;
    width: auto;
    max-width: 150px;
    height: auto;
    margin: 0 auto;
}

/* Jameda "Note 1,2" badge */
.a4-termin-trust__badge--jameda {
    flex: 0 0 auto;
}

.a4-jameda-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90px;
    text-decoration: none;
    text-align: center;
}

.a4-jameda-badge:hover {
    text-decoration: none;
}

.a4-jameda-badge__label {
    display: block;
    margin-bottom: 8px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    line-height: 12px;
    color: #6c6d74;
}

.a4-jameda-badge__note {
    display: block;
    width: 70px;
    padding: 4px 0 6px;
    border-radius: 4px;
    border: 1px solid #77b41e;
    background: #84ca1e;
    background: linear-gradient(to bottom, #8bd324 0%, #7cc118 100%);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.2;
    color: #fff;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.25);
}

.a4-jameda-badge__score {
    display: block;
    font-size: 26px;
    line-height: 28px;
    font-weight: 700;
    color: #fff;
}

@media (min-width: 960px) {
    .a4-termin-trust__badges {
        justify-content: space-between;
        gap: 20px;
    }

    .a4-termin-trust__badge {
        flex: 1 1 0;
        max-width: none;
    }
}
