/* Salesforce Form */

.a4-termin-form-wrap {
	border: 0;
	padding: 0;
	background-color: transparent;
}

.a4-termin-form-wrap .salesforce-form {
	padding: 28px;
}

.salesforce-form form {
	margin: 0;
}

.salesforce-form__field-group--title,
.salesforce-form label:not(.salesforce-form__additional-acceptance-checkbox-label):not(.salesforce-form__select-label) {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	border: 0;
	padding: 0;
	white-space: nowrap;
	clip: rect(0 0 0 0);
	clip-path: inset(100%);
	overflow: hidden;
}

.salesforce-form .salesforce-form__select-label {
	display: block;
	margin: 0 0 4px;
	color: #222222;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.salesforce-form__field-group {
	margin: 0 0 12px;
}

.salesforce-form__name {
	display: flex;
	gap: 12px;
}

.salesforce-form__name input {
	flex: 1;
	min-width: 0;
}

.salesforce-form__field-group-select-wrap {
	position: relative;
}

.salesforce-form__field-group-select-wrap::before {
	content: none !important;
	display: none !important;
	background: none !important;
}

.salesforce-form__field-group-select-wrap::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 18px;
	width: 8px;
	height: 8px;
	border-right: 1px solid #222222;
	border-bottom: 1px solid #222222;
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}

.salesforce-form input,
.salesforce-form textarea,
.salesforce-form select {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	border: 1px solid transparent;
	border-radius: 4px;
	background-color: #f4f4f4;
	color: #222222;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.salesforce-form input,
.salesforce-form select {
	min-height: 64px;
	padding: 0 16px;
}

.salesforce-form textarea {
	min-height: 130px;
	padding: 20px 16px;
	resize: vertical;
}

.salesforce-form select {
	padding-right: 48px;
	background-color: #d9d9d9;
	background-image: none !important;
	cursor: pointer;
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
}

.salesforce-form select::-ms-expand {
	display: none !important;
}

.salesforce-form input::placeholder,
.salesforce-form textarea::placeholder {
	color: #b9b9b9;
	opacity: 1;
}

.salesforce-form input:hover,
.salesforce-form input:focus,
.salesforce-form textarea:hover,
.salesforce-form textarea:focus,
.salesforce-form select:hover,
.salesforce-form select:focus,
salesforce-form input[type="text"]:hover,
.salesforce-form input[type="text"]:focus,
.salesforce-form input[type="email"]:hover,
.salesforce-form input[type="email"]:focus,
.salesforce-form input[type="tel"]:hover,
.salesforce-form input[type="tel"]:focus {
	outline: none;
	border-color: #ff911c;
	background-color: #f2f2f2;
}

/* Privacy checkbox */

.salesforce-form .salesforce-form__additional-acceptance-checkbox {
	position: relative;
	display: flex;
	align-items: flex-start;
	margin: 22px 0 24px;
	cursor: pointer;
}

.salesforce-form .salesforce-form__additional-acceptance-checkbox input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.salesforce-form .salesforce-form__additional-acceptance-checkbox label {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 32px;
	margin: 0;
	padding-left: 42px;
	color: #555555 !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	cursor: pointer;
}

.salesforce-form .salesforce-form__additional-acceptance-checkbox label::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 32px;
	height: 32px;
	box-sizing: border-box;
	border: 1px solid #adadad;
	border-radius: 8px;
	background-color: #ffffff;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.salesforce-form .salesforce-form__additional-acceptance-checkbox input:checked + label::before {
	border-color: #e74922;
	background-color: #e74922;
}

.salesforce-form .salesforce-form__additional-acceptance-checkbox input:checked + label::after {
	content: "";
	position: absolute;
	top: 8px;
	left: 11px;
	width: 8px;
	height: 13px;
	border-right: 2px solid #ffffff;
	border-bottom: 2px solid #ffffff;
	transform: rotate(45deg);
}

/* Submit */

.salesforce-form input[type="submit"].salesforce-form__submit {
	display: inline-block !important;
	width: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	height: auto !important;
	margin: 0 !important;
	padding: 16px 24px !important;
	border: 0 !important;
	border-radius: 10px !important;
	background-color: #e74922 !important;
	color: #ffffff !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	line-height: 1.3 !important;
	transform: none !important;
	scale: 1 !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: background-color 0.2s ease !important;
}

.salesforce-form input[type="submit"].salesforce-form__submit:hover,
.salesforce-form input[type="submit"].salesforce-form__submit:focus,
.salesforce-form input[type="submit"].salesforce-form__submit:active {
	width: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	height: auto !important;
	margin: 0 !important;
	padding: 16px 24px !important;
	border: 0 !important;
	border-radius: 10px !important;
	background-color: #CC3713 !important;
	color: #ffffff !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	line-height: 1.3 !important;
	transform: none !important;
	scale: 1 !important;
	box-shadow: none !important;
}

@media (max-width: 1024px) {

	.salesforce-form__name {
		flex-direction: column;
	}

}

@media (max-width: 767px) {

	.a4-termin-form-wrap .salesforce-form {
		padding: 20px;
	}

}

.salesforce-form input[type="text"]:hover,
.salesforce-form input[type="tel"]:hover,
.salesforce-form input[type="email"]:hover {
	border-color: #ff911c !important;
	background-color: #f2f2f2 !important;
}

.salesforce-form input[type="text"]:focus,
.salesforce-form input[type="tel"]:focus,
.salesforce-form input[type="email"]:focus {
	outline: none !important;
	border-color: #ff911c !important;
	background-color: #f2f2f2 !important;
}








/* Container */

.a4-container {
    max-width: var(--a4-container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 640px) {
    .a4-container {
        padding-left: var(--a4-container-padding);
        padding-right: var(--a4-container-padding);
    }
}

/* Section spacing */

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

.a4-section--large {
    padding-top: 70px;
    padding-bottom: 70px;
}

.a4-section--small {
    padding-top: 25px;
    padding-bottom: 25px;
}

.a4-section--muted {
    background-color: var(--a4-color-bg-muted);
}

/* Buttons */

.a4-button {
    display: inline-block;
    box-sizing: border-box;
    padding: 0 20px;
    font-family: var(--a4-font-body);
    font-size: 17px;
    font-weight: 500;
    line-height: 24px;
    text-align: center;
    text-decoration: none;
    border-radius: var(--a4-radius-button);
    border: 5px solid transparent;
    cursor: pointer;
    transition: .15s ease-in-out;
    transition-property: color, background-color, border-color;
}

.a4-button:hover {
    text-decoration: none;
}

.a4-button--primary {
    background-color: var(--a4-color-primary);
    color: #fff;
}

.a4-button--primary:hover {
    background-color: var(--a4-color-primary-hover);
    color: #fff;
}


/* ==========================================================================
   Reusable: CTA Termin (title + button)
   ========================================================================== */

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

h1.a4-cta-termin__title {
    margin: 0;
    font-family: var(--a4-font-heading);
    font-size: 28px;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    color: #adadad;
}

.a4-cta-termin__actions {
    margin-top: 40px;
}

.a4-cta-termin .a4-button--with-icon {
    font-size: 17px;
}

@media (max-width: 375px) {
	.a4-button,
    .a4-cta-termin .a4-button--with-icon {
        font-size: 16px;
    }
	
	h1.a4-cta-termin__title {
		font-size: 23px;
	}
}


/* ==========================================================================
   Reusable: trust / excellence logos
   ========================================================================== */

.a4-trust {
    padding-top: 40px;
    padding-bottom: 40px;
    background: #f7f7f7;
    color: #6c6d74;
    font-family: var(--a4-font-body);
    font-size: 18px;
}

.a4-trust__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

@media (min-width: 640px) {
    .a4-trust__grid {
        grid-template-columns: 1fr 1fr;
    }

    .a4-trust__logos {
        grid-column: 1 / -1;
    }
}

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

    .a4-trust__logos {
        grid-column: auto;
        justify-content: space-evenly;
    }
}

.a4-trust__heading {
    margin: 0;
    font-family: var(--a4-font-body);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: none;
    color: #b4b5ba;
}

.a4-trust__seal {
    display: flex;
    align-items: center;
    justify-content: center;
}

.a4-trust__seal img {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
}

.a4-trust__logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px 40px;
}

.a4-trust__logos img {
    display: block;
    width: auto;
    max-width: 120px;
    height: auto;
}


















/* ==========================================================================
   Header
   ========================================================================== */

.a4-header {
    position: relative;
    z-index: 100;
    background: #fff;
}

.a4-header__bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    padding-bottom: 15px;
    background: #fff;
    border: 0;
    box-shadow: none;
}

.a4-header__logo img {
    width: 220px;
    height: auto;
}

.a4-nav {
    display: none;
}

.a4-nav__list {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.a4-nav__list a {
    font-family: var(--a4-font-body);
    font-weight: 500;
    color: var(--a4-color-heading);
    text-decoration: none;
}

.a4-nav__list a:hover {
    color: var(--a4-color-primary);
    text-decoration: none;
}

.a4-nav__list .a4-nav__cta > a {
    padding: 8px 20px;
    border-radius: var(--a4-radius-button);
    background: var(--a4-color-primary);
    color: #fff !important;
}

.a4-nav__list .a4-nav__cta > a:hover {
    background: var(--a4-color-primary-hover);
    color: #fff !important;
}

/* Burger / close icon */
.a4-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--a4-color-heading);
}

.a4-nav-toggle__box {
    position: relative;
    display: block;
    width: 24px;
    height: 16px;
}

.a4-nav-toggle__line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    transition: transform .25s ease, opacity .2s ease, top .25s ease;
}

.a4-nav-toggle__line:nth-child(1) { top: 0; }
.a4-nav-toggle__line:nth-child(2) { top: 7px; }
.a4-nav-toggle__line:nth-child(3) { top: 14px; }

.a4-nav-toggle[aria-expanded="true"] .a4-nav-toggle__line:nth-child(1) {
    top: 7px;
    transform: rotate(45deg);
}

.a4-nav-toggle[aria-expanded="true"] .a4-nav-toggle__line:nth-child(2) {
    opacity: 0;
}

.a4-nav-toggle[aria-expanded="true"] .a4-nav-toggle__line:nth-child(3) {
    top: 7px;
    transform: rotate(-45deg);
}

/* Mobile dropbar — slides out from under the header bar */
.a4-mobile-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 1;
    background: #fff;
    overflow: hidden;
    max-height: 0;
    border: 0;
    transition: max-height .3s ease;
}

.a4-mobile-menu.is-open {
    max-height: calc(100vh - 70px);
}

.a4-mobile-menu__panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 15px 40px;
    min-height: calc(100vh - 70px);
    box-sizing: border-box;
}

.a4-mobile-menu__logo {
    display: inline-block;
    margin-bottom: 28px;
}

.a4-mobile-menu__logo img {
    width: 220px;
    height: auto;
    margin: 0 auto;
}

.a4-mobile-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.a4-mobile-menu__list li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.a4-mobile-menu__list a {
    display: block;
    width: 100%;
    padding: 8px 0;
    text-align: center;
    font-family: var(--a4-font-body);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0;
    color: #6c6d74;
    text-decoration: none;
}

.a4-mobile-menu__list a:hover {
    color: var(--a4-color-heading);
    text-decoration: none;
}

/* Termin CTA — assign CSS class "a4-nav__cta" to that menu item in WP */
.a4-mobile-menu__list .a4-nav__cta {
    margin-top: 18px;
    width: 100%;
}

.a4-mobile-menu__list .a4-nav__cta > a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 0;
    border-radius: 10px;
    background: #e74922;
    color: #6c6d74 !important;
    font-family: var(--a4-font-body);
    font-size: 17px;
    font-weight: 500;
    line-height: 24px;
    text-transform: none;
    text-align: center;
}

.a4-mobile-menu__list .a4-nav__cta > a:hover {
    background: var(--a4-color-primary-hover);
    color: #fff !important;
}

body.a4-menu-open {
    overflow: hidden;
}

/* Active menu item — same color as hover */
.a4-nav__list .current-menu-item > a,
.a4-nav__list .current_page_item > a,
.a4-nav__list .current-menu-ancestor > a,
.a4-nav__list .current-menu-parent > a {
    color: var(--a4-color-primary);
}

.a4-mobile-menu__list .current-menu-item > a,
.a4-mobile-menu__list .current_page_item > a,
.a4-mobile-menu__list .current-menu-ancestor > a,
.a4-mobile-menu__list .current-menu-parent > a {
    color: var(--a4-color-primary);
}

/* Keep Termin CTA white on orange when active */
.a4-nav__list .a4-nav__cta.current-menu-item > a,
.a4-nav__list .a4-nav__cta.current_page_item > a,
.a4-mobile-menu__list .a4-nav__cta.current-menu-item > a,
.a4-mobile-menu__list .a4-nav__cta.current_page_item > a {
    color: #fff !important;
}

@media (min-width: 960px) {
    .a4-nav { display: block; }
    .a4-nav-toggle { display: none; }
    .a4-mobile-menu { display: none !important; }
}


/* Fixed header on Termin + Zygoma + Angstpatienten + Vollnarkose + All-on-4 */
body.page-template-template-termin-php .a4-header,
body.page-template-template-zygoma-php .a4-header,
body.page-template-template-angstpatienten-php .a4-header,
body.page-template-template-vollnarkose-php .a4-header,
body.page-template-template-all-on-4-php .a4-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 200;
    background: #fff;
}

body.page-template-template-termin-php .a4-termin,
body.page-template-template-zygoma-php .a4-zygoma,
body.page-template-template-angstpatienten-php .a4-angst,
body.page-template-template-vollnarkose-php .a4-vn,
body.page-template-template-all-on-4-php .a4-allon4 {
    padding-top: 90px;
}

body.page-template-template-zygoma-php .a4-zygoma-hero,
body.page-template-template-angstpatienten-php .a4-angst-hero,
body.page-template-template-vollnarkose-php .a4-vn-hero,
body.page-template-template-all-on-4-php .a4-allon4-hero {
    height: calc(100vh - 90px);
    min-height: calc(100vh - 90px);
}

@media (max-width: 959px) {
    body.page-template-template-zygoma-php .a4-zygoma-hero,
    body.page-template-template-angstpatienten-php .a4-angst-hero,
    body.page-template-template-vollnarkose-php .a4-vn-hero,
    body.page-template-template-all-on-4-php .a4-allon4-hero {
        min-height: 600px;
        height: auto;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.a4-footer {
    background: #fff;
    padding-top: 140px;
    padding-bottom: 140px;
}

.a4-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
}

@media (min-width: 960px) {
    .a4-footer__grid {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
    }
}

.a4-footer__logo img {
    margin: 0 auto;
    width: 180px;
}

.a4-footer h5 {
    margin-bottom: 15px;
}

.a4-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.a4-footer__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    justify-content: center;
}

@media (min-width: 960px) {
    .a4-footer__list li { justify-content: flex-start; }
}

.a4-footer__list svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--a4-color-primary);
}

.a4-footer__legal {
    margin-top: 15px;
}

.a4-footer__legal a {
    color: var(--a4-color-heading);
}

.a4-footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    border-top: 1px solid var(--a4-color-border);
}

@media (max-width: 959px) {
    .a4-footer {
		padding-top: 40px;
		padding-bottom: 40px;
	}
}



/* ==========================================================================
   Forms (Contact Form 7)
   ========================================================================== */

.a4-form .wpcf7-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.a4-form .wpcf7-form p {
    width: 100%;
    margin: 0 0 10px 0;
}

.a4-form label {
    display: block;
    width: 100%;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--a4-color-heading);
}

.a4-form input[type="text"],
.a4-form input[type="tel"],
.a4-form input[type="email"],
.a4-form select,
.a4-form textarea {
    width: 100%;
    background-color: rgb(239, 239, 239);
    padding: 15px;
    border: 0;
    border-radius: 6px;
    font-size: 17px;
    font-family: var(--a4-font-body);
}

.a4-form textarea {
    height: 150px;
}

.a4-form input[type="submit"] {
    width: 100%;
    background-color: var(--a4-color-primary);
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    padding: 14px;
    border: 0;
    border-radius: var(--a4-radius-button);
    cursor: pointer;
}

.a4-form input[type="submit"]:hover {
    background-color: var(--a4-color-primary-hover);
}

.a4-text-primary {
    color: var(--a4-color-primary);
}

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

/* ==========================================================================
   Contact page (Termin)
   ========================================================================== */

.a4-hero-image img {
    width: 100%;
    height: auto;
}

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

@media (min-width: 960px) {
    .a4-two-col {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

.a4-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    box-shadow: 0 20px 40px rgba(0,0,0,.15);
}

.a4-video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

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

.a4-badges img {
    max-width: 150px;
    width: auto;
}

/* Thank You Page */

.a4-thank-you {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 65vh;
	padding: 100px 20px;
	text-align: center;
}

.a4-thank-you__inner {
	width: 100%;
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.a4-thank-you h1 {
	margin: 0 0 24px;
	font-size: 72px;
	font-weight: 900;
	line-height: 1.1;
	text-transform: uppercase;
}

.a4-thank-you p {
	margin: 0 0 40px;
	font-size: 32px;
	line-height: 1.3;
}

/* Thank You Page Button */
.a4-thank-you__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 24px;
	min-height: 58px;
	line-height: 1;
	text-align: center;
}

/* Thank You Page Mobile */

@media (max-width: 767px) {

	.a4-thank-you {
		min-height: 50vh;
		padding: 70px 20px;
	}

	.a4-thank-you h1 {
		font-size: 48px;
	}

	.a4-thank-you p {
		font-size: 24px;
	}

}