/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/





/**
 * Formulare-Styles: Anmeldeformular + Kontaktformular
 * Verbundcurriculum Psychosomatische Medizin und Psychotherapie Mitteldeutschland
 * Farben: Indigo-Blau-System
 * Schriften: Manrope + Source Sans 3
 *
 * Wichtig: Alle Selektoren sind über .kontaktformular-wrapper gescoped,
 * damit das CSS andere Formulare auf der Website nicht beeinflusst.
 */

/* =============================================================================
   WRAPPER (greift bei beiden Formularen über die gemeinsame Klasse)
   ============================================================================= */
.kontaktformular-wrapper {
    width: 100%;
    box-sizing: border-box;
    font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1C2E5B;
}

/* Desktop: 5% Abstand zu beiden Seiten */
@media (min-width: 992px) {
    .kontaktformular-wrapper {
        padding-left: 5%;
        padding-right: 5%;
    }
}

/* Tablet: 8% Abstand zu beiden Seiten */
@media (min-width: 768px) and (max-width: 991px) {
    .kontaktformular-wrapper {
        padding-left: 8%;
        padding-right: 8%;
    }
}

/* Smartphone: 5% Abstand zu beiden Seiten */
@media (max-width: 767px) {
    .kontaktformular-wrapper {
        padding-left: 5%;
        padding-right: 5%;
    }
}

/* =============================================================================
   FORMULAR-CONTAINER (definiert auch den Container Query-Kontext)
   ============================================================================= */
.kontaktformular-wrapper .kontaktformular-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #EEF2FF;
    border: 1px solid rgba(127, 139, 194, 0.35);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(28, 46, 91, 0.06);
    container-type: inline-size;
    container-name: kontaktform;
}

@media (max-width: 767px) {
    .kontaktformular-wrapper .kontaktformular-form {
        padding: 20px;
    }
}

/* =============================================================================
   FORM-ROWS (Flexbox-Layout, passt sich an Container-Breite an)
   ============================================================================= */
.kontaktformular-wrapper .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.kontaktformular-wrapper .form-group {
    margin-bottom: 20px;
}

/* Innerhalb einer .form-row: Standard untereinander */
.kontaktformular-wrapper .form-row .form-group {
    flex: 1 1 100%;
    margin-bottom: 0;
}

/* Bei ausreichender Container-Breite: nebeneinander */
@container kontaktform (min-width: 500px) {
    .kontaktformular-wrapper .form-row .form-group-small {
        flex: 0 1 150px;
    }
    .kontaktformular-wrapper .form-row .form-group-large {
        flex: 1 1 200px;
    }
}

/* Fallback für Browser ohne Container-Query-Support */
@supports not (container-type: inline-size) {
    @media (min-width: 768px) {
        .kontaktformular-wrapper .form-row .form-group-small {
            flex: 0 1 150px;
        }
        .kontaktformular-wrapper .form-row .form-group-large {
            flex: 1 1 200px;
        }
    }
}

/* =============================================================================
   LABELS (gescoped, damit andere Formulare nicht beeinflusst werden)
   ============================================================================= */
.kontaktformular-wrapper label {
    display: block;
    margin-bottom: 8px;
    color: #1C2E5B;
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
}

.kontaktformular-wrapper .required {
    color: #E8746F;
}

/* =============================================================================
   INPUT-FELDER (alle gescoped)
   ============================================================================= */
.kontaktformular-wrapper input[type="text"],
.kontaktformular-wrapper input[type="email"],
.kontaktformular-wrapper input[type="tel"],
.kontaktformular-wrapper select,
.kontaktformular-wrapper textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    line-height: 1.45;
    border: 2px solid rgba(127, 139, 194, 0.45);
    border-radius: 4px;
    background: #FFFFFF;
    color: #1C2E5B;
    font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    box-sizing: border-box;
}

/* Einheitliche Höhe für Select-Felder */
.kontaktformular-wrapper select[name="anrede"],
.kontaktformular-wrapper select[name="titel"] {
    height: 50px;
    line-height: 50px;
    padding: 0 15px;
    box-sizing: border-box;
    font-size: 16px;
}

.kontaktformular-wrapper textarea {
    resize: vertical;
    min-height: 120px;
}

.kontaktformular-wrapper input:focus,
.kontaktformular-wrapper select:focus,
.kontaktformular-wrapper textarea:focus {
    outline: none;
    border-color: #3F4F9A;
    box-shadow: 0 0 0 3px rgba(63, 79, 154, 0.16);
    background-color: #FFFFFF;
}

/* =============================================================================
   CHECKBOXEN
   ============================================================================= */
.kontaktformular-wrapper .checkbox-group,
.kontaktformular-wrapper .checkbox-label {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: normal;
    color: #1C2E5B;
    line-height: 1.5;
}

.kontaktformular-wrapper .checkbox-group input[type="checkbox"],
.kontaktformular-wrapper .checkbox-label input[type="checkbox"] {
    margin: 3px 12px 0 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #3F4F9A;
}

.kontaktformular-wrapper .checkbox-label a {
    color: #3F4F9A;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

.kontaktformular-wrapper .checkbox-label a:hover {
    color: #1C2E5B;
}

/* =============================================================================
   SUBMIT-BUTTON
   ============================================================================= */
.kontaktformular-wrapper .submit-button {
    width: 100%;
    padding: 16px 32px;
    background: #E8746F;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.kontaktformular-wrapper .submit-button:hover {
    background: #D96560;
    box-shadow: 0 8px 20px rgba(232, 116, 111, 0.25);
}

.kontaktformular-wrapper .submit-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 116, 111, 0.28);
}

.kontaktformular-wrapper .submit-button:active {
    transform: translateY(1px);
}

.kontaktformular-wrapper .submit-button:disabled {
    background: #C8CCDE;
    color: #FFFFFF;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* =============================================================================
   FORMULAR-MELDUNGEN (Erfolg / Fehler)
   ============================================================================= */
.kontaktformular-wrapper .form-message {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
    font-weight: 600;
    line-height: 1.45;
}

.kontaktformular-wrapper .form-message.success {
    background: #EEF2FF;
    color: #1C2E5B;
    border: 1px solid #7F8BC2;
}

.kontaktformular-wrapper .form-message.error {
    background: #FDECEB;
    color: #8F3531;
    border: 1px solid #E8746F;
}

/* =============================================================================
   HONEYPOT (Schutz gegen aggressive Theme-Styles, die das Feld sichtbar machen)
   ============================================================================= */
.kontaktformular-wrapper .kontaktformular-honeypot,
.kontaktformular-wrapper .kontaktformular-honeypot input,
.kontaktformular-wrapper .kontaktformular-honeypot label {
    position: absolute !important;
    left: -5000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
