/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/*
 * Color Palette — MarketTrend (Reihenfolge wie im Customizer)
 * ─────────────────────────────────────────────
 * C1   #2F6BED   Accent
 * C2   #1E4FC4   Accent Hover / Accent auf getönten Flächen
 * C3   #4B5563   Body Text
 * C4   #1C2430   Headings, Footer-Fläche
 * C5   #E3E6EC   Border
 * C6   #EEF1F5   Sektionsfläche grau
 * C7   #EAF0FE   Akzentfläche hell
 * C8   #FFFFFF   White
 * C9   #0B1220   Navy (Hero, Trust)
 * C10  #141C2C   Navy erhöht (Karte auf dunkler Fläche)
 * C11  #A8B2C1   Text auf dunkler Fläche
 * C12  #6A95F7   Accent auf dunkler Fläche
 * C13  #178A4C   Grün (positive Werte)
 *
 * Kontrastregel: C1 besteht nur auf Weiß. Auf C6 und C7 immer C2 verwenden.
 */

/*
 * Klassen — wohin sie gehören
 * ─────────────────────────────────────────────
 * mt-section-dark   Section    dunkler Abschnitt. Fläche über mt-tone-* wählen.
 *   + mt-tone-navy    Navy mit Verlauf — Hero, Trust. Gilt auch ohne Modifier.
 *   + mt-tone-ink     C4 flach — Footer und ruhige Zwischenabschnitte.
 * mt-card           Container  Feature-, Schritt-, Trust-Karte
 * mt-mono           Container  Briefing-Block, Kandidatenliste
 * mt-step-num       Absatz     Ziffer 01/02/03 in der Methodik
 * mt-icon           Iconbox    getönte Fläche hinter dem Icon
 * mt-badge          Text       „Derzeit nur auf Einladung"
 * mt-eyebrow        Text       Kleintext über einer Überschrift
 * mt-disclaimer     Absatz     Pflichthinweis im Trust-Abschnitt
 * mt-btn-secondary  Button     zweitrangige Aktion
 * mt-divider        Trenner    ausblendende Linie
 *
 * mt-card, mt-mono, mt-badge und die Buttons passen sich selbst an, sobald
 * sie in einer mt-section-dark liegen — egal welcher Ton. Nichts extra setzen.
 */

:root {
    /* Layout */
    --gs-row-column-padding: 0;
    --theme-content-spacing: 1em;

    /* Contact Form 7 */
    --uidesign-color-accent-halo: rgba(47, 107, 237, 0.22);

    /* Components */
    --radius-card: 13px;
    --radius-input: 8px;
    --shadow-card: 0 1px 2px rgba(16, 20, 27, 0.04), 0 6px 16px -6px rgba(16, 20, 27, 0.08);
    --shadow-card-dark: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -8px rgba(0, 0, 0, 0.45);
    --shadow-button: 0 1px 2px rgba(11, 18, 32, 0.18), 0 8px 20px -8px rgba(47, 107, 237, 0.55);

    /* Grün auf dunkler Fläche. C13 (#178A4C) ist dort zu dunkel. */
    --mt-green-on-dark: #3FD07E;
}

/* Footer-Fließtext, Menüs und Copyright */
#footer.ct-footer [data-row] .ct-widget > *:not(.widget-title),
#footer.ct-footer .ct-footer-copyright {
    --theme-font-size: 14px;
    font-size: 14px;
}

/* Eyebrow über Abschnittsüberschriften */
.mt-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--theme-palette-color-1);
    margin-bottom: 14px;
}

/* Karte — hell. Dunkle Variante weiter unten unter mt-section-dark. */
.mt-card {
    background-color: var(--theme-palette-color-8);
    border: 1px solid var(--theme-palette-color-5);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

/* Monospace: Symbole, Zahlen, Datumsangaben */
.mt-mono {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-variant-numeric: tabular-nums;
    font-size: 13px;
    background-color: var(--theme-palette-color-6);
    border: 1px solid var(--theme-palette-color-5);
    border-radius: 8px;
    padding: 12px 14px;
}

/* Schrittziffer 01/02/03 — muss inline bleiben, sonst wird der Chip zum Vollbreitenbalken */
.mt-step-num {
    display: inline-block;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-variant-numeric: tabular-nums;
    color: var(--theme-palette-color-2);
    background-color: var(--theme-palette-color-7);
    border-radius: 7px;
    padding: 5px 9px;
    margin-bottom: 18px;
}

/* Icon in getönter Fläche */
.mt-icon {
    border-radius: 10px;
}

/* Plakette „nur auf Einladung" */
.mt-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--theme-palette-color-2);
    background-color: var(--theme-palette-color-7);
    border: 1px solid #CDDCFB;
    border-radius: 9999px;
    padding: 6px 14px;
    margin-bottom: 22px;
}

/* ── Dunkle Abschnitte ────────────────────────────────────────
   mt-section-dark regelt Text und alles, was darin liegt.
   Die Fläche kommt aus einem mt-tone-*. Ohne Modifier: Navy.   */
.mt-section-dark {
    background-color: var(--theme-palette-color-9);
    background-image:
        radial-gradient(ellipse 90% 70% at 88% -10%, rgba(47, 107, 237, 0.20), transparent 60%),
        radial-gradient(ellipse 60% 50% at 72% 6%, rgba(106, 149, 247, 0.10), transparent 55%),
        linear-gradient(205deg, #121D31 0%, var(--theme-palette-color-9) 58%);
    color: var(--theme-palette-color-11);
}

/* Flach in C4. Der Verlauf muss aktiv zurückgenommen werden,
   sonst liegt er weiter über der Fläche. */
.mt-section-dark.mt-tone-ink {
    background-color: var(--theme-palette-color-4);
    background-image: none;
}

.mt-section-dark h1,
.mt-section-dark h2,
.mt-section-dark h3,
.mt-section-dark h4,
.mt-section-dark h5 {
    color: #F7F9FC;
}

.mt-section-dark a:not(.wp-element-button) {
    color: var(--theme-palette-color-12);
}

.mt-section-dark .mt-badge {
    color: #C8D0DC;
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}

.mt-section-dark .mt-card {
    background-color: var(--theme-palette-color-10);
    border-color: rgba(255, 255, 255, 0.11);
    box-shadow: var(--shadow-card-dark);
}

.mt-section-dark .mt-mono {
    background-color: #0E1524;
    border-color: rgba(255, 255, 255, 0.08);
    color: #F2F5FA;
}

/* Auf C4 liegt die Karte höher als der Grund, nicht tiefer. */
.mt-section-dark.mt-tone-ink .mt-card {
    background-color: #26303E;
    border-color: rgba(255, 255, 255, 0.09);
}

.mt-section-dark.mt-tone-ink .mt-mono {
    background-color: #161E29;
}

/* ── Buttons ──────────────────────────────────────────────── */
.wp-element-button {
    font-size: 16px;
    font-weight: 600;
    padding: 13px 26px;
    border-radius: 10px;
    box-shadow: var(--shadow-button);
    transition: box-shadow .18s ease, transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.wp-element-button:hover {
    box-shadow: 0 2px 4px rgba(11, 18, 32, 0.2), 0 12px 26px -8px rgba(47, 107, 237, 0.62);
    transform: translateY(-1px);
}

/* Zweitrangig: Anmelden. Auf hellem und dunklem Grund brauchbar. */
.mt-btn-secondary .wp-element-button,
a.mt-btn-secondary {
    background-color: transparent;
    color: var(--theme-palette-color-1);
    border: 1px solid var(--theme-palette-color-5);
    box-shadow: none;
}

.mt-btn-secondary .wp-element-button:hover,
a.mt-btn-secondary:hover {
    background-color: var(--theme-palette-color-7);
    border-color: var(--theme-palette-color-1);
    /* Blocksy setzt beim Hover eine eigene Textfarbe — ohne diese
       Zeile bleibt die Schrift weiß und verschwindet auf C7.     */
    color: var(--theme-palette-color-2);
    box-shadow: 0 1px 2px rgba(16, 20, 27, 0.05), 0 8px 18px -8px rgba(47, 107, 237, 0.3);
    transform: translateY(-1px);
}

.mt-section-dark .mt-btn-secondary .wp-element-button,
.mt-section-dark a.mt-btn-secondary {
    color: #E8EDF6;
    border-color: rgba(255, 255, 255, 0.22);
}

.mt-section-dark .mt-btn-secondary .wp-element-button:hover,
.mt-section-dark a.mt-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.4);
    color: #FFFFFF;
    box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.5);
}

/* ── Briefing-Kasten ──────────────────────────────────────────
   Als HTML-Block einfügen, nicht aus Greenshift-Blöcken bauen.
   Die mt-brief__* Detailregeln liegen in einer eigenen Datei.   */
.mt-brief {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 26px 28px;
    font-variant-numeric: tabular-nums;
}

/* Pflichthinweis, abgesetzt */
.mt-disclaimer {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-left: 3px solid var(--theme-palette-color-12);
    border-radius: 11px;
    padding: 18px 20px;
    color: #DFE5EE;
    font-size: 14px;
    line-height: 1.6;
}

/* Trenner, an den Enden ausblendend */
.mt-divider {
    width: 100%;
    max-width: none;
    height: 1px !important;
    margin: 0;
    border: 0 !important;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--theme-palette-color-5) 12%,
        var(--theme-palette-color-5) 88%,
        transparent 100%
    );
}

/*
.mt-divider {
    width: 100%;
    max-width: none;
    height: 1px !important;
    margin: 0;
    border: none !important;
    background: var(--theme-palette-color-4);
    opacity: 0.15; 
}*/

.mt-section-dark .mt-divider {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.14) 12%,
        rgba(255, 255, 255, 0.14) 88%,
        transparent 100%
    );
}

/* Widgets */
h3.widget-title {
    text-transform: uppercase;
}

/* ── Contact Form 7 ───────────────────────────────────────────
   Fehler in Rot, nicht in C2 — C2 ist Accent-Hover und würde
   als Fehlermeldung nicht gelesen.                             */
.entry-content .wpcf7-list-item-label {
    font-size: inherit;
    font-weight: var(--theme-font-weight);
}

.entry-content .wpcf7 input[type="text"],
.entry-content .wpcf7 input[type="email"],
.entry-content .wpcf7 textarea {
    background: var(--theme-palette-color-8);
    border: 1px solid var(--theme-palette-color-5);
    border-radius: var(--radius-input);
    padding: 12px 14px;
    color: var(--theme-palette-color-4);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.entry-content .wpcf7 input[type="text"]:hover,
.entry-content .wpcf7 input[type="email"]:hover,
.entry-content .wpcf7 textarea:hover {
    border-color: var(--theme-palette-color-1);
}

.entry-content .wpcf7 input[type="text"]:focus,
.entry-content .wpcf7 input[type="email"]:focus,
.entry-content .wpcf7 textarea:focus {
    outline: none;
    border-color: var(--theme-palette-color-1);
    box-shadow: 0 0 0 3px var(--uidesign-color-accent-halo);
}

.entry-content .wpcf7 input[type="text"].wpcf7-not-valid,
.entry-content .wpcf7 input[type="email"].wpcf7-not-valid,
.entry-content .wpcf7 textarea.wpcf7-not-valid {
    border-color: #C0392B;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.18);
}

.entry-content .wpcf7 ::placeholder {
    color: var(--theme-palette-color-3);
}

.entry-content .wpcf7 .wpcf7-list-item label {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.entry-content  .wpcf7 label {
	font-size: 16px;
}

.entry-content .wpcf7 .wpcf7-list-item input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--theme-palette-color-1);
    cursor: pointer;
}

.entry-content .wpcf7 input[type="submit"] {
    background: var(--theme-palette-color-1);
    border: none;
    border-radius: 10px;
    padding: 13px 26px;
    font-size: 16px;
    font-weight: 600;
    color: var(--theme-palette-color-8);
    cursor: pointer;
    box-shadow: var(--shadow-button);
    transition: background 0.2s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.entry-content .wpcf7 input[type="submit"]:hover {
    background: var(--theme-palette-color-2);
    box-shadow: 0 2px 4px rgba(11, 18, 32, 0.2), 0 12px 26px -8px rgba(47, 107, 237, 0.62);
    transform: translateY(-1px);
}

.entry-content .wpcf7 input[type="submit"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--uidesign-color-accent-halo);
}

.entry-content .wpcf7 .wpcf7-spinner {
    position: relative;
    top: 8px;
    background-color: var(--theme-palette-color-3);
}

.entry-content .wpcf7-not-valid-tip {
    color: #C0392B;
    font-style: normal !important;
    font-weight: 400;
    display: block;
    margin-top: 4px;
	font-size: 14px;
}

.entry-content .wpcf7-response-output {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    margin-top: 12px !important;
    color: var(--theme-palette-color-3) !important;
    font-weight: 500;
}

.entry-content .wpcf7 form.sent p,
.entry-content .wpcf7 form.sent .wpcf7-turnstile {
    opacity: 0;
    max-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    transition:
        opacity 0.6s ease,
        max-height 0.6s ease,
        margin 0.6s ease,
        padding 0.6s ease;
}

/* Formular auf dunklem Grund */
.mt-section-dark .wpcf7 input[type="text"],
.mt-section-dark .wpcf7 input[type="email"],
.mt-section-dark .wpcf7 textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.16);
    color: #F2F5FA;
}

.mt-section-dark .wpcf7 ::placeholder {
    color: var(--theme-palette-color-11);
}

.mt-section-dark .wpcf7 input[type="text"]:hover,
.mt-section-dark .wpcf7 input[type="email"]:hover,
.mt-section-dark .wpcf7 textarea:hover,
.mt-section-dark .wpcf7 input[type="text"]:focus,
.mt-section-dark .wpcf7 input[type="email"]:focus,
.mt-section-dark .wpcf7 textarea:focus {
    border-color: var(--theme-palette-color-12);
}

.mt-section-dark .wpcf7-response-output {
    color: var(--theme-palette-color-11) !important;
}
