/*
 * Ergänzungen zum Original-Theme: Formulare des phd5-Kontaktmoduls (JSON-Editor, Bootstrap-3-Markup)
 * im Look der Contao-Formulare (Platzhalter statt Labels, Felder halb/ganz breit, Button "submit").
 */
.contact-form-widget .je-object__title,
.contact-form-widget .je-object__controls,
.contact-form-widget .help-block:empty {
    display: none;
}
.contact-form-widget .well {
    background: none;
    border: 0;
    box-shadow: none;
    margin: 0;
    padding: 0 !important;
}
.contact-form-widget .well > div > div {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -3px;
}
.contact-form-widget .row {
    margin: 0;
    width: 100%;
    padding: 0 3px;
    box-sizing: border-box;
}
.contact-form-widget .row > [class*="col-"] {
    padding: 0;
}
/* Contao: Textfelder zweispaltig (b2), Nachricht und Auswahl ganze Breite */
.contact-form-widget .row.tina-half {
    width: 50%;
}
#footer .contact-form-widget .row.tina-half[data-field="telefon"] {
    width: 100%;
}
.contact-form-widget .form-group,
.contact-form-widget form > .form-group {
    margin: 0;
}
.contact-form-widget [data-schemapath] > div:empty {
    display: none;
}
.contact-form-widget label.tina-placeholder {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.contact-form-widget input[type="text"],
.contact-form-widget input[type="email"],
.contact-form-widget textarea,
.contact-form-widget select {
    width: 100%;
    box-sizing: border-box;
}
.contact-form-widget .checkbox label,
.contact-form-widget .form-group > label {
    font-weight: inherit;
}
.contact-form-widget .error-summary ul {
    margin-left: 1.2em;
}
@media (max-width: 767px) {
    .contact-form-widget .row.tina-half {
        width: 100%;
    }
}

/* Captcha (Kontaktmodul): Bild links, Eingabe rechts, Label nur für Screenreader */
.contact-form-widget form > .field-contactform-captcha {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 16px;
}
.contact-form-widget .field-contactform-captcha > label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.contact-form-widget .field-contactform-captcha img {
    height: 38px;
    width: auto;
    cursor: pointer;
}
.contact-form-widget .field-contactform-captcha input {
    flex: 1;
    width: auto;
    margin: 0;
}
.contact-form-widget .field-contactform-captcha .help-block {
    flex-basis: 100%;
    margin: 0;
}

/* Cookie-Hinweis (Godzilla "Cookie Button") im Look des Contao-Cookiebars */
#footer .cookie-consent-popup {
    display: none;
    box-sizing: border-box;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: .6em 1.2em;
    background-color: #4b4b4b;
    color: #fff;
    font-size: 1em;
    text-align: center;
    z-index: 1000;
    animation: none;
}
#footer .cookie-consent-popup.open {
    display: block;
    animation: none;
}
#footer .cookie-consent-popup .cookie-consent-top-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
#footer .cookie-consent-popup .cookie-consent-message {
    margin: 0 1.5em 0 0;
    color: #fff;
}
#footer .cookie-consent-popup .cookie-consent-text {
    margin-right: 1.5em;
}
#footer .cookie-consent-popup .cookie-consent-link {
    color: #fff;
    text-decoration: underline;
}
#footer .cookie-consent-popup .cookie-consent-link:hover {
    text-decoration: none;
}
#footer .cookie-consent-popup .cookie-consent-accept-all {
    margin: 0;
    padding: .6em 1.2em;
    border: none;
    border-radius: 0;
    background-color: #4ea55e;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    width: auto;
}
#footer .cookie-consent-popup .cookie-consent-accept-all:hover {
    background-color: #3e824a;
}
#footer .cookie-consent-popup .cookie-consent-controls-toggle,
#footer .cookie-consent-popup .cookie-consent-details-toggle,
#footer .cookie-consent-popup .cookie-consent-controls,
#footer .cookie-consent-popup .cookie-consent-details {
    display: none !important;
}
/* Button zum erneuten Öffnen: kleiner Link unter der Fußzeile */
#footer #cell-_cookie {
    clear: both;
    text-align: center;
    padding: 10px 0 0;
}
#footer .cookie-consent-toggle {
    background: none;
    border: 0;
    padding: 0;
    width: auto;
    color: #fff;
    font-size: .85em;
    text-decoration: underline;
    cursor: pointer;
}
