/*
 * Header button "Anfrage senden" and the additions on contact.php.
 * Builds on the variables and classes of main.css.
 */

/* --- Header button ---------------------------------------------------------
 * Visible from 1140px. Narrower, the header has no room for it next to logo,
 * menu and flags (tested on the live header: below about 1130px it squeezed
 * the logo), so there the "Kontakt" menu entry stays, on phones inside the
 * burger menu. navigation.php gives that entry the class nav-item-contact.
 */
.header-cta {
    display: none;
    align-items: center;
    flex-shrink: 0;
    margin: 0 var(--spacing-md) 0 var(--spacing-sm);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    background-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.header-cta:hover,
.header-cta:focus-visible {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.header-cta:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

@media (min-width: 1140px) {
    .header-cta {
        display: inline-flex;
    }

    .nav-item-contact {
        display: none;
    }
}

/* --- contact.php ------------------------------------------------------------ */

/* main.css keeps .contact-layout at two columns on every width, which pushed
   the info column off the screen on phones: stack the columns there. */
@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--spacing-xl);
    }
}

/* main.css styles .form-group input and textarea only; same look for the dropdown. */
.form-group select {
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-white);
    color: var(--color-text);
    font-family: inherit;
    font-size: var(--font-size-base);
    transition: border-color var(--transition-base);
}

.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* Send button with the response-time note beside it, wraps on phones. */
.contact-submit-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-sm) var(--spacing-md);
}

.contact-response-time {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
}

/* Contact person at the top of the info column. */
.contact-person {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    background-color: var(--color-bg-light);
}

.contact-person .contact-person-name {
    color: var(--color-text);
    font-weight: 600;
}
