/* V100 (Sprint 16, EN): the contact page OPEN_DIRECT_CHANNEL — /contact/ and
   the ten permalinks /contact/<slug>/ (markup: src/lib/contact.php). Values
   reproduce the draft's inline styles (design-handoffs/16-sprint16-2026-10-19,
   "Website - Contact - Sprint 16 Entwurf"). Every uppercase string is literal
   in the source (no text-transform). base.css styles every h1 as the centred
   lowercase brand row — .ct-title resets it (the .press-title precedent). */

.ct-main { text-align: left; padding: 60px 0 40px; }
.ct-page { max-width: 860px; margin: 0 auto; line-height: 1.7; color: #1a1a1a; font-size: 1.05rem; }
.ct-title {
    display: block; font-family: var(--font-code); color: #a26538; font-weight: 700;
    font-size: clamp(1.3rem, 3.5vw, 1.7rem); line-height: 1.3; margin: 0 0 20px;
    text-align: left; text-transform: none; letter-spacing: normal; text-wrap: balance;
}
.ct-title-sub { font-weight: 400; color: #2F7A86; }
.ct-intro { font-size: 1.15rem; margin: 0 0 16px; color: #254a4b; text-wrap: pretty; }
.ct-step {
    font-family: var(--font-code); font-size: 1.05rem; font-weight: 700; color: #254a4b; letter-spacing: 0.03em;
    border-bottom: 1px solid rgba(53, 134, 145, 0.2); padding-bottom: 8px; margin: 44px 0 16px; text-align: left;
}

/* step 01: the two card groups (routed first), every card a link to its permalink */
.ct-groups { display: flex; flex-direction: column; gap: 40px; }
.ct-group-label {
    margin: 0 0 10px; font-family: var(--font-code); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; color: #666666;
}
.ct-cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.ct-card {
    display: flex; flex-direction: column; gap: 4px; text-align: left; background: #fdfdfc;
    border: 1px solid rgba(53, 134, 145, 0.2); border-radius: 6px; padding: 12px 14px; color: #1a1a1a; text-decoration: none;
}
.ct-card:hover, .ct-card:focus-visible { border-color: #2F7A86; color: #1a1a1a; text-decoration: none; }
.ct-card-head { display: flex; justify-content: space-between; gap: 4px 10px; align-items: baseline; flex-wrap: wrap; }
.ct-card-label, .ct-current-label { font-family: var(--font-code); font-size: 0.85rem; font-weight: 700; color: #254a4b; letter-spacing: 0.03em; }
.ct-card-route { font-family: var(--font-code); font-size: 0.75rem; color: #2F7A86; }
.ct-card-desc { font-size: 0.95rem; line-height: 1.5; color: #475569; text-wrap: pretty; }

/* step 01 on a permalink: one row (label + the permalink of a form channel + CHANGE CHANNEL) */
.ct-current {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px;
    background: rgba(53, 134, 145, 0.06); border: 1px solid #2F7A86; box-shadow: inset 0 0 0 1px #2F7A86;
    border-radius: 6px; padding: 12px 14px;
}
.ct-current-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ct-current-link { font-family: var(--font-code); font-size: 0.75rem; color: #475569; overflow-wrap: anywhere; }
.ct-change { font-family: var(--font-code); font-size: 0.8rem; font-weight: 700; color: #2F7A86; text-decoration: none; }
.ct-change:hover, .ct-change:focus-visible { color: #254a4b; }

/* step 02 */
.ct-overview { margin: 0; font-size: 0.95rem; color: #475569; }
.ct-routed {
    background: #fdfdfc; border: 1px solid rgba(53, 134, 145, 0.2); border-radius: 6px; padding: 20px 22px;
    display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
}
.ct-routed p { margin: 0; text-wrap: pretty; }
.ct-routed .ct-routed-head { font-family: var(--font-code); font-size: 0.9rem; font-weight: 700; color: #254a4b; }
.ct-routed .ct-routed-note { font-size: 0.9rem; color: #475569; }
.ct-route-btn {
    display: inline-block; font-family: var(--font-code); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em;
    color: #ffffff; background: #254a4b; border: none; border-radius: 4px; padding: 12px 20px; text-decoration: none;
}
.ct-route-btn:hover, .ct-route-btn:focus-visible { background: #2F7A86; color: #ffffff; text-decoration: none; }

.ct-form {
    background: #fdfdfc; border: 1px solid rgba(53, 134, 145, 0.2); border-radius: 6px; padding: 20px 22px;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 20px;
}
.ct-req-note { grid-column: 1 / -1; margin: 0; font-size: 0.9rem; color: #475569; }
.ct-banner {
    grid-column: 1 / -1; background: #fdf6f0; border: 1px solid rgba(162, 101, 56, 0.45); border-left: 4px solid #a26538;
    border-radius: 4px; padding: 12px 16px; display: flex; flex-direction: column; gap: 4px;
}
.ct-banner p { margin: 0; font-family: var(--font-code); font-size: 0.85rem; font-weight: 700; color: #7a3f17; overflow-wrap: anywhere; }
.ct-field label {
    display: block; font-family: var(--font-code); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
    color: #254a4b; margin: 0 0 6px;
}
/* 16px inputs: no iOS focus zoom */
.ct-field input, .ct-field select, .ct-field textarea {
    width: 100%; box-sizing: border-box; font-family: var(--font-header); font-size: 1rem; color: #1a1a1a; background: #ffffff;
    border: 1px solid rgba(53, 134, 145, 0.35); border-radius: 4px; padding: 10px 12px; margin: 0;
}
.ct-field textarea { resize: vertical; line-height: 1.55; }
/* a field the check refused (server or contact.js): the draft's orange mark */
.ct-field [aria-invalid="true"] { border-color: #a26538; box-shadow: 0 0 0 1px #a26538; }
.ct-field--wide, .ct-consent, .ct-submit { grid-column: 1 / -1; }
.ct-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; line-height: 1.55; color: #1a1a1a; }
.ct-consent input { margin-top: 4px; accent-color: #2F7A86; }
.ct-consent--invalid { color: #7a3f17; }
.ct-page .ct-consent a { color: #2F7A86; }
.ct-submit button {
    font-family: var(--font-code); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; color: #ffffff;
    background: #254a4b; border: none; border-radius: 4px; padding: 12px 20px; cursor: pointer;
}
.ct-submit button:hover, .ct-submit button:focus-visible { background: #2F7A86; }
.ct-sent {
    background: #fdfdfc; border: 1px solid rgba(53, 134, 145, 0.2); border-left: 4px solid #2F7A86; border-radius: 6px; padding: 18px 22px;
}
.ct-sent p { margin: 6px 0 0; font-size: 1rem; }
.ct-sent .ct-sent-head { margin: 0; font-family: var(--font-code); font-size: 0.9rem; font-weight: 700; color: #254a4b; }

/* the 404 */
.ct-crumb { margin: 0 0 18px; font-family: var(--font-code); font-size: 0.8rem; font-weight: 700; }
.ct-page .ct-crumb a { color: #2F7A86; text-decoration: none; }
.ct-crumb-sep { color: #666666; font-weight: 400; }
.ct-crumb-here { color: #a26538; }

@media (max-width: 640px) {
    .ct-cards, .ct-form { grid-template-columns: minmax(0, 1fr); }
}

/* House rule: every element with a CSS display keeps [hidden] working */
.ct-title[hidden], .ct-groups[hidden], .ct-cards[hidden], .ct-card[hidden], .ct-card-head[hidden], .ct-current[hidden],
.ct-current-text[hidden], .ct-routed[hidden], .ct-route-btn[hidden], .ct-form[hidden], .ct-banner[hidden],
.ct-field label[hidden], .ct-consent[hidden] { display: none; }
