/*
Theme Name:  Responsive Child
Template:    responsive
Version:     1.0
Description: Child theme for Freiburger Ballschule
*/

/* =============================================
   GLOBAL FARB-FIX
   Setzt Markenfarben für Nav-Links und verhindert
   dass der Standard-Blauwert (#0066CC) erscheint.
   Ergänzend zum Customizer-Setting.
   ============================================= */

.main-navigation .menu > li > a,
.main-navigation .menu > li > .menu-link {
    color: #333333 !important;
}

.main-navigation .menu li > a:hover,
.main-navigation .menu > li:hover > a {
    color: #E09714 !important;
}

/* =============================================
   LEGAL PAGE TEMPLATE
   ============================================= */

.legal-page-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 30px 70px;
}

/* Fallback: falls jemand noch .legal-content-wrap nutzt */
.legal-content-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 30px 70px;
}

.legal-page-content h2,
.legal-content-wrap h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1d2d44;
    margin: 2.2em 0 0.6em;
    padding-bottom: 0.3em;
    border-bottom: 2px solid #e8ecf0;
}

.legal-page-content h3,
.legal-content-wrap h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #333;
    margin: 1.6em 0 0.4em;
}

.legal-page-content p,
.legal-content-wrap p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #444;
    margin-bottom: 1em;
}

.legal-page-content a,
.legal-content-wrap a {
    color: #1d2d44;
    text-decoration: underline;
}

.legal-page-content a:hover,
.legal-content-wrap a:hover {
    color: #e07b00;
}

.legal-page-content strong,
.legal-content-wrap strong {
    color: #222;
}

.legal-address {
    background: #f4f6f8;
    border-left: 4px solid #1d2d44;
    padding: 18px 22px;
    margin-bottom: 2em;
    border-radius: 0 4px 4px 0;
}

.legal-address p {
    margin: 0;
    line-height: 1.7;
}

/* =============================================
   ANMELDESEITE – Intro
   ============================================= */

.anmeldung-intro {
    text-align: center;
    padding: 40px 24px 28px;
    max-width: 620px;
    margin: 0 auto;
}

.anmeldung-badge {
    display: inline-block;
    background: rgba(224,151,20,0.12);
    color: #b06a00;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.anmeldung-headline {
    font-size: clamp(1.5rem, 3.2vw, 2.1rem);
    font-weight: 800;
    font-style: normal !important;
    color: #1d2d44;
    margin: 0 0 14px;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.anmeldung-subline {
    font-size: 0.97rem;
    line-height: 1.7;
    color: #666;
    margin: 0 auto 24px;
    max-width: 500px;
}

.anmeldung-trust {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.anmeldung-trust-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.83rem;
    font-weight: 600;
    color: #999;
}

.anmeldung-trust-icon {
    font-size: 1rem;
}

/* =============================================
   ANMELDEFORMULAR – Card Wrapper
   ============================================= */

.wpcf7 {
    background: #e8e5de;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 2px 8px rgba(0,0,0,0.05),
        0 8px 32px rgba(0,0,0,0.09);
    max-width: 780px;
    margin: 0 auto 48px;
    padding: 7px;
}

/* Inneres Form: Sections als Cards gestapelt */
.wpcf7 > form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Kontakt-Formular-Reset (nutzt andere Klassen, braucht kein Card-Layout) */
.kontakt-form-card .wpcf7 > form {
    display: block;
    gap: unset;
}

/* =============================================
   SECTIONS
   ============================================= */

.cf7-section {
    background: #ffffff;
    border-radius: 13px;
    padding: 14px 18px;
    border: none;
    box-shadow: none;
    margin-bottom: 0;
}

/* CF7/WP fügt automatisch <p> und <br> zwischen Block-Elementen ein.
   Diese werden zu Flex-Items und erzeugen riesige Phantom-Abstände.

   form/section/row-Ebene: immer leerer Junk → komplett ausblenden.
   cf7-field-Ebene: CF7 wickelt das echte Feld in <p> → sichtbar lassen,
   aber Browser-Default-Margin (1em oben + unten) auf 0 zwingen. */

.wpcf7 form > br,
.wpcf7 form > p,
.cf7-section > br,
.cf7-section > p,
.cf7-row > br,
.cf7-row > p {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

/* Das <p> das das eigentliche Feld enthält: sichtbar lassen,
   aber 1em Browser-Margin oben/unten auf 0 zwingen */
.cf7-field > p {
    margin: 0 !important;
    padding: 0 !important;
}

/* Das leere zweite <p> (WP-Leerzeile nach dem Feld): weg damit */
.cf7-field > p:empty,
.cf7-checkbox-group > p:empty,
.cf7-radio-group > p:empty {
    display: none !important;
    height: 0 !important;
}

/* Abschluss – dezenter Footer-Bereich */
.cf7-section--last {
    background: #f5f2ec;
    border-radius: 13px;
    border: none;
    padding: 12px 18px 16px;
}

/* Section Title */
.cf7-section-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: #1d2d44;
    margin: 0 0 10px;
    padding-bottom: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cf7-section--last .cf7-section-title {
    color: #aaa;
    font-size: 0.68rem;
}

.cf7-section-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: linear-gradient(135deg, #E09714 0%, #f5b244 100%);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 2px 6px rgba(224,151,20,0.28);
}

.cf7-section--last .cf7-section-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    font-size: 0.7rem;
    background: #ede9e2;
    box-shadow: none;
}

/* =============================================
   ROWS & FIELDS
   ============================================= */

.cf7-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.cf7-row:last-child {
    margin-bottom: 0;
}

/* Camp-Auswahl: Dropdown + Preis nebeneinander, gleiche Höhe */
.cf7-row--camp {
    align-items: stretch;
    flex-wrap: nowrap;
}

.cf7-field {
    flex: 1;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cf7-field.cf7-full  { flex: 0 0 100%; min-width: unset; }
.cf7-field.cf7-small { flex: 0 0 80px;  min-width: unset; }
.cf7-field.cf7-grow  { flex: 2; min-width: 180px; }

/* Camp-Preis-Box – streckt sich auf volle Höhe der Zeile */
.cf7-camp-price-box {
    background: linear-gradient(160deg, #243d5c 0%, #1d2d44 100%);
    border-radius: 10px;
    padding: 10px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    min-width: 115px;
    text-align: center;
}

.cf7-camp-price-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
}

.cf7-camp-price-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1;
}

/* CF7 umschließt alle Controls in inline <span> – als Block setzen damit kein
   Baseline-Versatz und kein phantom line-height-Abstand entsteht */
.cf7-field .wpcf7-form-control-wrap,
.cf7-checkbox-group .wpcf7-form-control-wrap,
.cf7-checkbox-group .wpcf7-checkbox {
    display: block;
    margin: 0;
    padding: 0;
    line-height: 0; /* eliminiert phantom-Abstand über/unter inline-Spans im Flex-Container */
}

/* line-height im eigentlichen Inhalt wiederherstellen */
.cf7-checkbox-group .wpcf7-list-item,
.cf7-field .wpcf7-form-control-wrap input,
.cf7-field .wpcf7-form-control-wrap select,
.cf7-field .wpcf7-form-control-wrap textarea {
    line-height: normal;
}

/* Labels */
.cf7-field label,
.wpcf7 .cf7-field label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0;
}

.cf7-required {
    color: #E09714;
}

.cf7-hint {
    font-size: 0.8rem;
    color: #bbb;
    margin: -2px 0 4px;
}

/* =============================================
   INPUTS / SELECTS / TEXTAREA
   ============================================= */

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #e8e4dc;
    border-radius: 10px;
    font-size: 0.93rem;
    color: #1a1a1a;
    background: #fdfcfa;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
    outline: none;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
}

.wpcf7 input[type="text"]:hover,
.wpcf7 input[type="email"]:hover,
.wpcf7 input[type="tel"]:hover,
.wpcf7 input[type="date"]:hover,
.wpcf7 select:hover,
.wpcf7 textarea:hover {
    border-color: #d4b97a;
    background: #fff;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="date"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    border-color: #E09714;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(224,151,20,0.12);
}

.wpcf7 input[type="text"]::placeholder,
.wpcf7 input[type="email"]::placeholder,
.wpcf7 input[type="tel"]::placeholder,
.wpcf7 textarea::placeholder {
    color: #ccc;
}

.wpcf7 textarea {
    min-height: 72px;
    resize: vertical;
    line-height: 1.6;
}

.wpcf7 select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    padding-right: 42px;
    cursor: pointer;
}

.wpcf7 input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.4;
    cursor: pointer;
}

/* =============================================
   RADIO – PILL STYLE
   ============================================= */

/* wpcf7-form-control-wrap ist inline – als Block setzen, line-height 0 */
.cf7-radio-group .wpcf7-form-control-wrap {
    display: block;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.cf7-radio-group .wpcf7-radio {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    align-items: center;
    line-height: normal; /* wiederherstellen */
}

.cf7-radio-group .wpcf7-list-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border: 1.5px solid #e8e4dc;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 500;
    color: #666;
    background: #fdfcfa;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
    white-space: nowrap;
    user-select: none;
    position: relative;
    margin: 0;
}

.cf7-radio-group .wpcf7-list-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}

.cf7-radio-group .wpcf7-list-item:has(input[type="radio"]:checked) {
    background: #E09714;
    border-color: #E09714;
    color: #fff;
    box-shadow: 0 2px 10px rgba(224,151,20,0.35);
}

.cf7-radio-group .wpcf7-list-item:hover:not(:has(input:checked)) {
    border-color: #E09714;
    color: #E09714;
    background: rgba(224,151,20,0.06);
}

/* Abschluss – kleinere Pills */
.cf7-section--last .cf7-radio-group .wpcf7-list-item {
    padding: 6px 14px;
    font-size: 0.82rem;
    background: #f5f3ef;
    border-color: #e8e4dc;
    color: #777;
}

.cf7-section--last .cf7-radio-group .wpcf7-list-item:has(input:checked) {
    background: #E09714;
    border-color: #E09714;
    color: #fff;
    box-shadow: 0 2px 8px rgba(224,151,20,0.3);
}

.cf7-section--last .cf7-radio-group .wpcf7-list-item:hover:not(:has(input:checked)) {
    border-color: #E09714;
    color: #E09714;
    background: rgba(224,151,20,0.06);
}

/* =============================================
   CHECKBOXES – CARD STYLE
   ============================================= */

.cf7-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cf7-checkbox-group .wpcf7-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border: 1.5px solid #e8e4dc;
    border-radius: 10px;
    cursor: pointer;
    background: #fdfcfa;
    transition: background 0.15s, border-color 0.15s, border-left-width 0.1s;
    font-size: 0.9rem;
    color: #555;
    margin: 0;
}

.cf7-checkbox-group .wpcf7-list-item:hover {
    border-color: #E09714;
    background: rgba(224,151,20,0.04);
}

.cf7-checkbox-group .wpcf7-list-item:has(input:checked) {
    border-color: #E09714;
    border-left: 3px solid #E09714;
    background: rgba(224,151,20,0.05);
    color: #1a1a1a;
    font-weight: 500;
}

.cf7-checkbox-group input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #E09714;
    cursor: pointer;
    flex-shrink: 0;
}

/* =============================================
   ACCEPTANCE (AGB)
   ============================================= */

.cf7-acceptance {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(224,151,20,0.06);
    border: 1.5px solid rgba(224,151,20,0.22);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 0.88rem;
    color: #555;
    line-height: 1.6;
}

.cf7-acceptance .wpcf7-list-item {
    margin: 0;
    flex-shrink: 0;
}

.cf7-acceptance input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #E09714;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.cf7-acceptance a {
    color: #b06a00;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cf7-acceptance a:hover {
    color: #E09714;
}

/* =============================================
   SUBMIT
   ============================================= */

.cf7-submit-row {
    margin-top: 24px;
    text-align: center;
}

.wpcf7 input[type="submit"] {
    background: linear-gradient(135deg, #E09714 0%, #f5b244 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 48px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
    box-shadow: 0 4px 16px rgba(224,151,20,0.4);
    width: 100%;
    max-width: none;
    font-family: inherit;
}

.wpcf7 input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(224,151,20,0.5);
    filter: brightness(1.05);
}

.wpcf7 input[type="submit"]:active {
    transform: translateY(0);
    filter: brightness(0.97);
}

/* =============================================
   VALIDATION
   ============================================= */

.wpcf7-not-valid-tip {
    color: #d04040;
    font-size: 0.74rem;
    margin-top: 4px;
    display: block;
    font-weight: 500;
}

.wpcf7 input.wpcf7-not-valid,
.wpcf7 select.wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid {
    border-color: #d04040;
    background: #fff9f9;
}

.wpcf7-response-output {
    margin: 4px 0 0;
    padding: 13px 18px;
    border-radius: 10px;
    font-size: 0.88rem;
    border: none !important;
    font-weight: 500;
}

.wpcf7-mail-sent-ok {
    background: rgba(224,151,20,0.1);
    color: #8a5800;
}

.wpcf7-mail-sent-ng,
.wpcf7-aborted {
    background: #fef2f2;
    color: #c0392b;
}

/* =============================================
   FOOTER-BEREICH – Newsletter + AGB + Preis
   ============================================= */

/* Newsletter-Zeile */
.cf7-footer-newsletter {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.cf7-footer-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #999;
    white-space: nowrap;
}

/* Submit-Bereich: nur noch Button (Preis ist jetzt in Camp-Auswahl) */
.cf7-submit-area {
    margin-top: 12px;
}

/* CF7 Lade-Spinner nicht anzeigen */
.cf7-submit-area .wpcf7-spinner {
    display: none;
}

.cf7-submit-area input[type="submit"] {
    width: 100%;
    max-width: none;
}

/* =============================================
   MOBILE
   ============================================= */

/* WP-Seitentitel (z.B. "Anmeldung") auf Mobile verkleinern */
@media (max-width: 1024px) {
    .entry-title,
    .page-title,
    .entry-header h1,
    h1.page-title {
        font-size: clamp(1.4rem, 5vw, 2rem) !important;
        line-height: 1.2 !important;
    }
    .anmeldung-headline {
        font-size: clamp(1.3rem, 5.5vw, 1.7rem) !important;
    }
    /* Form: weniger Außenabstand auf Tablet */
    .wpcf7 {
        margin-bottom: 32px;
    }
}

@media (max-width: 640px) {
    /* --- Seitentitel noch kompakter auf Phone --- */
    .entry-title,
    .page-title,
    .entry-header h1,
    h1.page-title {
        font-size: clamp(1.3rem, 6vw, 1.8rem) !important;
    }
    .anmeldung-headline {
        font-size: clamp(1.2rem, 6.5vw, 1.6rem) !important;
    }

    /* --- Anmeldungs-Intro --- */
    .anmeldung-intro {
        padding: 20px 16px 16px;
    }
    .anmeldung-trust {
        gap: 12px;
    }

    /* --- CF7 Formular-Wrapper --- */
    .wpcf7 {
        border-radius: 16px;
        padding: 4px;
        margin-bottom: 24px;
    }
    .wpcf7 > form {
        gap: 3px;
    }

    /* --- Sections (Cards) --- */
    .cf7-section {
        padding: 8px 12px;
        border-radius: 10px;
    }
    .cf7-section--last {
        padding: 8px 12px 10px;
        border-radius: 10px;
    }
    .cf7-section-title {
        margin-bottom: 6px;
        font-size: 0.65rem;
    }

    /* --- Rows & Fields --- */
    .cf7-row {
        flex-direction: column;
        gap: 6px;
        margin-bottom: 4px;
    }
    .cf7-row--camp {
        flex-direction: row;
        align-items: stretch;
        flex-wrap: nowrap;
    }
    .cf7-field {
        gap: 3px;
    }
    .cf7-field label {
        font-size: 0.72rem;
    }
    .cf7-field input,
    .cf7-field select,
    .cf7-field textarea {
        padding: 7px 10px !important;
        font-size: 0.9rem !important;
    }
    .cf7-field.cf7-small {
        flex: 0 0 auto;
        width: 100%;
    }

    /* --- Camp-Preisbox --- */
    .cf7-camp-price-box {
        min-width: 80px;
        padding: 6px 8px;
    }
    .cf7-camp-price-value {
        font-size: 1.2rem;
    }

    /* --- Checkboxes & Radios --- */
    .cf7-radio-group .wpcf7-radio {
        gap: 5px;
    }
    .cf7-checkbox-group .wpcf7-list-item-label {
        font-size: 0.85rem;
    }

    /* --- Footer-Section --- */
    .cf7-footer-newsletter {
        gap: 8px;
    }
    .wpcf7-response-output {
        margin: 4px 0 0;
    }
}

/* =============================================
   ÜBER UNS – Seite
   ============================================= */

/* Intro */
.ubs-intro {
    margin-bottom: 44px;
    padding-bottom: 40px;
    border-bottom: 1px solid #f0ede7;
}

.ubs-badge {
    display: inline-block;
    background: rgba(224,151,20,0.12);
    color: #b06a00;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.ubs-headline {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    color: #1d2d44;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin: 0 0 18px;
    border: none;
    padding: 0;
}

.ubs-lead {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #555;
    margin: 0;
}

/* Kennzahlen */
.ubs-stats {
    display: flex;
    gap: 0;
    margin: 0 0 52px;
    border: 1.5px solid #e8e4dc;
    border-radius: 14px;
    overflow: hidden;
}

.ubs-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
    text-align: center;
    border-right: 1.5px solid #e8e4dc;
}

.ubs-stat:last-child {
    border-right: none;
}

.ubs-stat-nr {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #E09714;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 6px;
}

.ubs-stat-label {
    display: block;
    font-size: 0.73rem;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

/* Section-Titel */
.ubs-section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1d2d44;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0ede7;
    letter-spacing: -0.01em;
}

/* Ziele-Grid */
.ubs-ziele {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 52px;
}

.ubs-ziel {
    background: #fdfcfa;
    border: 1.5px solid #e8e4dc;
    border-radius: 14px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.ubs-ziel:hover {
    border-color: #E09714;
    box-shadow: 0 4px 16px rgba(224,151,20,0.1);
}

.ubs-ziel-nr {
    font-size: 2rem;
    font-weight: 900;
    color: #E09714;
    opacity: 0.35;
    line-height: 1;
    letter-spacing: -0.04em;
}

.ubs-ziel p {
    font-size: 0.93rem;
    line-height: 1.65;
    color: #444;
    margin: 0;
}

/* Zitate */
.ubs-quote {
    position: relative;
    margin: 0 0 24px;
    padding: 22px 24px 22px 28px;
    background: #faf8f5;
    border-left: 4px solid #E09714;
    border-radius: 0 12px 12px 0;
}

.ubs-quote p {
    font-size: 0.97rem;
    line-height: 1.8;
    color: #444;
    font-style: italic;
    margin: 0 0 10px;
}

.ubs-quote cite {
    font-size: 0.75rem;
    font-weight: 700;
    color: #E09714;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-style: normal;
}

/* Wissenschafts-Box */
.ubs-wiss {
    background: #1d2d44;
    border-radius: 14px;
    padding: 28px 30px;
    margin-top: 44px;
}

.ubs-wiss-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 14px;
    border: none;
    padding: 0;
}

.ubs-wiss p {
    font-size: 0.93rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
}

.ubs-wiss-link {
    display: inline-block;
    margin-top: 8px;
    color: #f2ae3d !important;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: color 0.15s;
}

.ubs-wiss-link:hover {
    color: #fff !important;
}

/* Mobile */
@media (max-width: 600px) {
    .ubs-stats {
        flex-direction: column;
    }
    .ubs-stat {
        border-right: none;
        border-bottom: 1.5px solid #e8e4dc;
        padding: 20px;
    }
    .ubs-stat:last-child {
        border-bottom: none;
    }
    .ubs-ziele {
        grid-template-columns: 1fr;
    }
    .ubs-wiss {
        padding: 22px 20px;
    }
}

/* =============================================
   MAIN FOOTER – Dark Navy
   ============================================= */

#footer,
#footer.site-footer {
    background: #1d2d44;
    border-top: 3px solid #E09714;
    box-shadow: none;
}

/* Alle Footer-Reihen transparent lassen */
#footer .rspv-site-primary-footer-wrap,
#footer .rspv-site-above-footer-wrap,
#footer .rspv-site-below-footer-wrap {
    background: transparent;
}

/* Text im Footer */
#footer,
#footer p,
#footer span,
#footer div,
#footer li {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    line-height: 1.8;
}

/* Footer-Links */
#footer a,
#footer-menu a,
.footer-navigation a,
#footer .footer-navigation ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.18s;
}

#footer a:hover,
#footer-menu a:hover,
.footer-navigation a:hover,
#footer .footer-navigation ul li a:hover {
    color: #f2ae3d;
    text-decoration: none;
}

/* Footer-Navigation: Punkte/Trennzeichen heller */
#footer .footer-navigation ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

#footer .footer-navigation ul li::before {
    content: none;
}

#footer .footer-navigation ul li + li::before {
    content: '·';
    color: rgba(255, 255, 255, 0.25);
    margin: 0 10px;
}

/* Trennlinie zwischen Inhalt und Nav */
#footer .footer-widget-area {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
    margin-top: 4px;
}

/* Padding anpassen */
#footer .rspv-site-primary-footer-wrap .container {
    padding-top: 32px;
    padding-bottom: 32px;
}

#footer .rspv-site-below-footer-wrap .container {
    padding-top: 0;
    padding-bottom: 24px;
}

/* =============================================
   KONTAKT-SEITE
   ============================================= */

.kontakt-intro {
    text-align: center;
    padding: 56px 24px 48px;
    max-width: 640px;
    margin: 0 auto;
}

.kontakt-badge {
    display: inline-block;
    background: rgba(224,151,20,0.12);
    color: #b06a00;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.kontakt-headline {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    color: #1d2d44;
    margin: 0 0 16px;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.kontakt-subline {
    font-size: 1rem;
    line-height: 1.75;
    color: #666;
    margin: 0;
}

.kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 1.65fr;
    gap: 24px;
    max-width: 960px;
    margin: 0 auto 72px;
    padding: 0 24px;
    align-items: start;
}

/* --- Info Card --- */
.kontakt-info-card {
    background: #1d2d44;
    border-radius: 20px;
    padding: 36px 30px;
    color: rgba(255,255,255,0.85);
}

.kontakt-info-label {
    font-size: 0.67rem;
    font-weight: 700;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 24px;
}

.kontakt-info-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 28px;
    line-height: 1.4;
}

.kontakt-info-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 16px;
    font-size: 0.88rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.65);
}

.kontakt-info-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: rgba(255,255,255,0.07);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.kontakt-info-item a {
    color: #f2ae3d;
    text-decoration: none;
    transition: color 0.15s;
}

.kontakt-info-item a:hover {
    color: #fff;
}

.kontakt-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 24px 0;
}

.kontakt-response-note {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

/* --- Form Card --- */
.kontakt-form-card {
    background: #fff;
    border: 1.5px solid #e8e4dc;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.06);
}

.kontakt-form-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1d2d44;
    margin: 0 0 28px;
}

/* CF7 reset inside form card */
.kontakt-form-card .wpcf7 {
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
    margin: 0;
    padding: 0;
}

.kontakt-cf7-row {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
}

.kontakt-cf7-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kontakt-cf7-field label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0;
}

.kontakt-form-card .wpcf7 input[type="text"],
.kontakt-form-card .wpcf7 input[type="email"],
.kontakt-form-card .wpcf7 input[type="tel"],
.kontakt-form-card .wpcf7 textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e8e4dc;
    border-radius: 10px;
    font-size: 0.93rem;
    color: #1a1a1a;
    background: #fdfcfa;
    transition: border-color 0.18s, box-shadow 0.18s;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.kontakt-form-card .wpcf7 input[type="text"]:focus,
.kontakt-form-card .wpcf7 input[type="email"]:focus,
.kontakt-form-card .wpcf7 input[type="tel"]:focus,
.kontakt-form-card .wpcf7 textarea:focus {
    border-color: #E09714;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(224,151,20,0.12);
}

.kontakt-form-card .wpcf7 input::placeholder,
.kontakt-form-card .wpcf7 textarea::placeholder {
    color: #ccc;
}

.kontakt-form-card .wpcf7 textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.kontakt-newsletter-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
    padding: 14px 16px;
    background: #faf8f5;
    border-radius: 10px;
    border: 1.5px solid #f0ede7;
    font-size: 0.84rem;
    color: #777;
    line-height: 1.5;
}

.kontakt-newsletter-row .wpcf7-list-item {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.kontakt-newsletter-row input[type="checkbox"] {
    width: 17px;
    height: 17px;
    min-width: 17px;
    accent-color: #E09714;
    cursor: pointer;
    margin-top: 2px;
}

.kontakt-newsletter-row .wpcf7-list-item-label {
    cursor: pointer;
}

.kontakt-form-card .wpcf7 input[type="submit"] {
    background: linear-gradient(135deg, #E09714 0%, #f5b244 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 15px 36px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
    box-shadow: 0 4px 16px rgba(224,151,20,0.4);
    width: 100%;
    font-family: inherit;
    letter-spacing: 0.01em;
}

.kontakt-form-card .wpcf7 input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(224,151,20,0.5);
    filter: brightness(1.05);
}

.kontakt-form-card .wpcf7-response-output {
    margin: 12px 0 0;
    border-radius: 10px;
    font-size: 0.88rem;
    border: none !important;
    font-weight: 500;
    padding: 13px 18px;
}

@media (max-width: 700px) {
    .kontakt-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }
    .kontakt-cf7-row {
        flex-direction: column;
        gap: 12px;
    }
    .kontakt-form-card {
        padding: 24px 18px;
    }
    .kontakt-info-card {
        padding: 28px 22px;
    }
    .kontakt-intro {
        padding: 40px 20px 36px;
    }
}

/* =============================================
   SCHNUPPERTAG-SEITE
   ============================================= */

/* Teaser-Banner auf Anmeldungsseite */
.schnuppertag-teaser {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 960px;
    margin: -8px auto 40px;
    padding: 16px 22px;
    background: rgba(224,151,20,0.08);
    border: 1.5px solid rgba(224,151,20,0.3);
    border-radius: 14px;
    text-decoration: none;
    color: #1d2d44;
    transition: background 0.18s, border-color 0.18s, transform 0.15s;
}

.schnuppertag-teaser:hover {
    background: rgba(224,151,20,0.15);
    border-color: #E09714;
    transform: translateY(-1px);
    color: #1d2d44;
    text-decoration: none;
}

.schnuppertag-teaser-icon {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.schnuppertag-teaser-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #444;
}

.schnuppertag-teaser-text strong {
    display: block;
    font-size: 0.95rem;
    color: #1d2d44;
    margin-bottom: 2px;
}

.schnuppertag-teaser-arrow {
    font-size: 1.1rem;
    color: #E09714;
    font-weight: 700;
    flex-shrink: 0;
    transition: transform 0.15s;
}

.schnuppertag-teaser:hover .schnuppertag-teaser-arrow {
    transform: translateX(4px);
}

@media (max-width: 760px) {
    .schnuppertag-teaser {
        margin-left: 16px;
        margin-right: 16px;
        max-width: none;
    }
}

/* Info-Box auf Schnuppertag-Seite */
.schnuppertag-info-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 960px;
    margin: 0 auto 48px;
    padding: 0 24px;
}

.schnuppertag-info-item {
    background: #fff;
    border: 1.5px solid #e8e4dc;
    border-radius: 16px;
    padding: 24px 22px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.schnuppertag-info-icon {
    font-size: 1.5rem;
    line-height: 1;
    min-width: 28px;
}

.schnuppertag-info-item strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1d2d44;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.schnuppertag-info-item div {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.55;
}

@media (max-width: 760px) {
    .schnuppertag-info-box {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }
}


/* ============================================================
   DESKTOP HEADER – Hintergrundfarbe fix (weiß statt orange)
   ============================================================ */
@media (min-width: 1025px) {
    #header,
    .header-main,
    #header .header-main {
        background: #fff !important;
        background-color: #fff !important;
    }
    /* Landing-Page: kein Extra-Abstand über dem Hero */
    body.home,
    body.page-template-default {
        padding-top: 0 !important;
    }
}


/* ============================================================
   MOBILE HEADER  (Apple-style, sichtbar ≤ 1024 px)
   ============================================================ */

/* Desktop: mobile Elemente versteckt */
.mobile-header,
.mobile-nav-backdrop,
.mobile-nav {
    display: none;
}

@media (max-width: 1024px) {

    /* --- Responsive-Theme-Header ausblenden --- */
    #header,
    .site-header {
        display: none !important;
    }

    /* --- Seite nach unten schieben (fixed header = 56 px) --- */
    body {
        padding-top: 56px !important;
    }
    body.admin-bar {
        padding-top: calc(56px + 32px) !important;
    }

    /* --- Mobile Header Bar --- */
    .mobile-header {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 56px;
        z-index: 9999;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        background: rgba(255, 255, 255, 0.88);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }
    body.admin-bar .mobile-header {
        top: 32px;
    }

    /* --- Logo --- */
    .mobile-logo .custom-logo-link {
        display: block;
        line-height: 0;
    }
    .mobile-logo .custom-logo {
        height: 32px;
        width: auto;
    }
    .mobile-logo-text {
        font-size: 0.95rem;
        font-weight: 700;
        color: #1d2d44;
        text-decoration: none;
    }

    /* --- CTA-Buttons & Burger --- */
    .mobile-header-actions {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .mobile-cta {
        font-size: 0.75rem;
        font-weight: 600;
        padding: 6px 13px;
        border-radius: 20px;
        text-decoration: none;
        white-space: nowrap;
        line-height: 1;
        transition: opacity 0.15s;
    }
    .mobile-cta:hover { opacity: 0.82; }
    .mobile-cta--ghost   { color: #1d2d44; background: transparent; }
    .mobile-cta--primary { color: #fff;    background: #E09714; }

    /* --- Hamburger --- */
    .mobile-burger {
        background: none;
        border: none;
        padding: 6px;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 32px;
        align-items: center;
    }
    .mobile-burger span {
        display: block;
        height: 2px;
        width: 22px;
        background: #1d2d44;
        border-radius: 2px;
        transition: transform 0.2s, opacity 0.2s;
    }

    /* --- Backdrop --- */
    .mobile-nav-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 10000;
        transition: opacity 0.25s;
        opacity: 0;
    }
    .mobile-nav-backdrop.is-visible {
        display: block;
        opacity: 1;
    }

    /* --- Side-Nav Drawer --- */
    .mobile-nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(300px, 85vw);
        z-index: 10001;
        background: #fff;
        padding: 28px 28px 44px;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -4px 0 32px rgba(0, 0, 0, 0.13);
    }
    .mobile-nav.is-open {
        transform: translateX(0);
    }

    /* Close-Button */
    .mobile-nav-close {
        align-self: flex-end;
        background: none;
        border: none;
        font-size: 1.2rem;
        color: #888;
        cursor: pointer;
        padding: 4px 8px;
        margin-bottom: 28px;
        line-height: 1;
    }

    /* Nav-Links */
    .mobile-nav-list {
        list-style: none;
        margin: 0;
        padding: 0;
        flex: 1;
    }
    .mobile-nav-list li {
        border-bottom: 1px solid #f0ede7;
    }
    .mobile-nav-list a {
        display: block;
        padding: 16px 0;
        font-size: 1.1rem;
        font-weight: 600;
        color: #1d2d44;
        text-decoration: none;
    }
    .mobile-nav-list a:hover {
        color: #E09714;
    }

    /* Anmelden-Button im Side-Nav */
    .mobile-nav-anmelden {
        display: block;
        margin-top: 32px;
        background: #E09714;
        color: #fff;
        text-align: center;
        padding: 14px;
        border-radius: 12px;
        font-weight: 700;
        font-size: 1rem;
        text-decoration: none;
    }

    /* Body-Scroll sperren wenn Nav offen */
    body.mobile-nav-open {
        overflow: hidden;
    }
}

/* Admin-Bar < 600 px: 46 px hoch (WP bricht hier von 32 auf 46 px um) */
@media (max-width: 600px) {
    body.admin-bar {
        padding-top: calc(56px + 46px) !important;
    }
    body.admin-bar .mobile-header {
        top: 46px;
    }
    body.admin-bar .mobile-nav {
        top: 46px;
    }
}


/* ============================================================
   ELEMENTOR LANDING PAGE – Mobile-Korrekturen
   ============================================================ */

@media (max-width: 1024px) {

    /* Hero-Überschrift: Desktop-Schriftgröße auf Mobile reduzieren */
    .elementor-widget-heading h1.elementor-heading-title,
    .elementor-widget-heading .elementor-heading-title.elementor-size-xxl {
        font-size: clamp(1.8rem, 9vw, 3.2rem) !important;
        line-height: 1.12 !important;
        hyphens: none !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }

    /* Section-Überschriften (H2) */
    .elementor-widget-heading h2.elementor-heading-title,
    .elementor-widget-heading .elementor-heading-title.elementor-size-xl,
    .elementor-widget-heading .elementor-heading-title.elementor-size-large {
        font-size: clamp(1.4rem, 5.5vw, 2rem) !important;
        line-height: 1.2 !important;
    }

    /* --- Section-Padding (Tablet/iPad) --- */
    .elementor-section.elementor-top-section {
        padding-top: 32px !important;
        padding-bottom: 32px !important;
    }
    .elementor-section.elementor-inner-section {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }
    /* Erste Section: Platz für den fixed Mobile Header */
    .elementor-section.elementor-top-section:first-of-type {
        padding-top: 56px !important;
    }

    /* --- Elementor-Container (3.x) --- */
    .e-con {
        padding-top: 32px !important;
        padding-bottom: 32px !important;
    }
    .e-con:first-child {
        padding-top: 56px !important;
    }

    /* --- Spacer-Widgets stark reduzieren --- */
    .elementor-widget-spacer .elementor-spacer-inner {
        height: 20px !important;
    }

    /* --- Abstand zwischen Widget-Elementen innerhalb einer Spalte --- */
    .elementor-widget-wrap > .elementor-element {
        margin-bottom: 8px !important;
    }

    /* --- Spalten-Innenabstand --- */
    .elementor-column > .elementor-widget-wrap {
        padding: 12px !important;
    }

    /* Spaltenabstand in Reihen */
    .elementor-section .elementor-row {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {

    /* Phone: Schriften nochmals etwas kleiner */
    .elementor-widget-heading h1.elementor-heading-title,
    .elementor-widget-heading .elementor-heading-title.elementor-size-xxl {
        font-size: clamp(1.6rem, 9vw, 2.4rem) !important;
        hyphens: none !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }

    /* --- Section-Padding (Phone) --- */
    .elementor-section.elementor-top-section {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }
    .elementor-section.elementor-top-section:first-of-type {
        padding-top: 56px !important;
    }
    .elementor-section.elementor-inner-section {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    /* --- Elementor-Container (3.x) --- */
    .e-con {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }
    .e-con:first-child {
        padding-top: 56px !important;
    }

    /* --- Spacer-Widgets auf Phone fast unsichtbar --- */
    .elementor-widget-spacer .elementor-spacer-inner {
        height: 12px !important;
    }

    /* --- Spalten-Innenabstand --- */
    .elementor-column > .elementor-widget-wrap {
        padding: 8px !important;
    }
}
