/* ===================================================================
 * helpers.css
 * Forms, Contacts, Empty media, kleine Hilfsklassen.
 * BEM-Stil: <block>--<element>.
 * =================================================================== */

/* -------------------------------------------------------------------
 * 1. Lead form
 * ----------------------------------------------------------------- */
.lead-form {
    background: var(--paper-pure);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    padding: 1.75rem;
    display: grid;
    gap: 1rem;
    max-width: 540px;
}

.lead-form--title {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
}

.lead-form--note {
    color: var(--ink-soft);
    font-size: 0.95rem;
    margin: 0 0 0.4rem;
}

.lead-form--field {
    display: grid;
    gap: 0.3rem;
}

.lead-form--field label {
    font-size: 0.84rem;
    color: var(--ink-soft);
    font-weight: 500;
}

.lead-form--field input,
.lead-form--field textarea {
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 0.9rem;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--r-sm);
    font: inherit;
    color: var(--ink);
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.lead-form--field textarea {
    min-height: 120px;
    resize: vertical;
}

.lead-form--field input:focus,
.lead-form--field textarea:focus {
    background: var(--paper-pure);
    border-color: var(--primary);
}

.lead-form--field input:invalid:not(:placeholder-shown) {
    border-color: var(--accent);
}

.lead-form--consent {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.86rem;
    color: var(--ink-soft);
    line-height: 1.4;
}

.lead-form--consent input {
    margin-top: 0.18rem;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.lead-form--status {
    min-height: 1.2rem;
    font-size: 0.88rem;
}

.lead-form--status.is-ok {
    color: #1f7a3d;
}

.lead-form--status.is-err {
    color: var(--accent);
}

/* -------------------------------------------------------------------
 * 2. Contacts grid
 * ----------------------------------------------------------------- */
.contacts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contacts--card {
    background: var(--paper-pure);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    padding: 1.5rem;
}

.contacts--label {
    font-size: 0.74rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 0.4rem;
}

.contacts--value {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--ink);
    margin: 0 0 0.4rem;
}

.contacts--value a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px dashed var(--rule);
}

.contacts--value a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.contacts--note {
    color: var(--ink-soft);
    font-size: 0.9rem;
    margin: 0;
}

/* -------------------------------------------------------------------
 * 3. Cookie tray (data-bar)
 * ----------------------------------------------------------------- */
.data-bar {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    left: 1.25rem;
    z-index: 100;
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--r-md);
    padding: 1.1rem 1.25rem;
    box-shadow: var(--shadow-lift);
    max-width: 480px;
    margin-left: auto;
}

.data-bar[hidden] {
    display: none;
}

.data-bar--text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 0.85rem;
}

.data-bar--text a {
    color: var(--paper-pure);
    text-decoration: underline;
}

.data-bar--row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.data-bar--btn {
    flex: 1;
    min-width: 130px;
    padding: 0.65rem 0.9rem;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    font-size: 0.92rem;
    font-weight: 600;
    min-height: 44px;
}

.data-bar--accept {
    background: var(--accent);
    color: var(--paper-pure);
}

.data-bar--accept:hover {
    background: var(--accent-soft-shadow);
}

.data-bar--reject {
    background: transparent;
    color: var(--paper);
    border-color: #43526a;
}

.data-bar--reject:hover {
    background: #1f2f44;
}

/* -------------------------------------------------------------------
 * 4. Legal pages
 * ----------------------------------------------------------------- */
.legal {
    padding: 2.5rem 0 4rem;
}

.legal h2 {
    margin-top: 2rem;
    font-size: 1.4rem;
}

.legal h3 {
    margin-top: 1.4rem;
    font-size: 1.1rem;
}

.legal p,
.legal li {
    color: var(--ink-soft);
    font-size: 0.97rem;
}

/* -------------------------------------------------------------------
 * 5. 404
 * ----------------------------------------------------------------- */
.notfound {
    text-align: center;
    padding: 5rem 1.5rem;
}

.notfound--code {
    font-family: var(--font-display);
    font-size: clamp(4rem, 14vw, 7.5rem);
    color: var(--primary);
    line-height: 1;
    margin: 0 0 0.5rem;
}

.notfound--lead {
    color: var(--ink-soft);
    margin: 0 auto 2rem;
    max-width: 50ch;
}

/* TODO: prueefen ob das auf iPhone SE noch passt und nicht ueber den Header rutscht */

/* -------------------------------------------------------------------
 * 6. Tablet+
 * ----------------------------------------------------------------- */
@media (min-width: 768px) {
    .contacts {
        grid-template-columns: repeat(3, 1fr);
    }

    .data-bar {
        right: 1.5rem;
        bottom: 1.5rem;
        left: auto;
        width: 420px;
    }
}

@media (min-width: 1200px) {
    .data-bar {
        right: 2rem;
        bottom: 2rem;
    }
}
