/* Bestellstrecke — Darstellung im Erscheinungsbild von mikas.at. */

.cfh {
    --cfh-primary: #079bb5;
    --cfh-primary-dark: #067d92;
    --cfh-primary-soft: #e6f5f8;
    --cfh-accent: #e04b00;
    --cfh-accent-dark: #c34200;
    --cfh-ink: #1d2b31;
    --cfh-muted: #5b6b72;
    --cfh-bg: #f5f8f9;
    --cfh-line: #dde5e8;
    --cfh-ok: #1f9d55;
    --cfh-ok-soft: #e8f6ee;
    --cfh-bad: #d23c3c;
    --cfh-bad-soft: #fdeeee;
    --cfh-warn-soft: #fff7e8;
    --cfh-radius: 12px;
    --cfh-radius-input: 10px;
    --cfh-shadow: 0 1px 3px rgba(29, 43, 49, 0.06), 0 8px 24px rgba(29, 43, 49, 0.07);
    --cfh-focus: 0 0 0 3px rgba(7, 155, 181, 0.25);

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: var(--cfh-ink);
    font-size: 16px;
    line-height: 1.6;
}

/* Luft zum Seitenkopf und zum Fuß, damit die Strecke nicht an Divi-Abschnitten klebt. */
#cfh-app { margin: 32px auto 64px; }

.cfh *,
.cfh *::before,
.cfh *::after { box-sizing: border-box; }

/* Themes setzen `display` auf section, div und form; `hidden` muss trotzdem verbergen. */
.cfh [hidden] { display: none !important; }

/* Divi rückt Listen im Textmodul mit Zähler und negativem Einzug ein. */
.cfh ol,
.cfh ul { padding-left: 0; }

.cfh ol > li,
.cfh ul > li {
    list-style: none !important;
    text-indent: 0 !important;
}

.cfh h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--cfh-ink);
    letter-spacing: -0.02em;
    margin: 0 0 20px;
}

.cfh h3 { color: var(--cfh-ink); }

.cfh a:focus-visible,
.cfh button:focus-visible,
.cfh input:focus-visible,
.cfh select:focus-visible,
.cfh textarea:focus-visible {
    outline: none;
    box-shadow: var(--cfh-focus);
}

/* --- Schrittleiste --- */

.cfh-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0 0 36px;
    padding: 0;
}

.cfh-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 160px;
    margin: 0;
    padding: 12px 16px !important;
    background: var(--cfh-bg);
    border: 1px solid transparent;
    border-radius: var(--cfh-radius);
    color: var(--cfh-muted);
    font-size: 15px;
    font-weight: 600;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.cfh-steps li::before,
.cfh-steps li::marker { content: none; }

.cfh-steps li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--cfh-line);
    color: var(--cfh-muted);
    font-size: 14px;
    font-weight: 700;
    transition: all 0.25s;
}

.cfh-steps li.is-active {
    background: var(--cfh-primary-soft);
    border-color: #bfe4ec;
    color: var(--cfh-primary-dark);
}

.cfh-steps li.is-active span {
    background: var(--cfh-primary);
    border-color: var(--cfh-primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(7, 155, 181, 0.15);
}

/* --- Knöpfe --- */

.cfh-btn {
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    min-height: 48px;
    padding: 12px 28px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.cfh-btn-primary {
    background: var(--cfh-primary);
    color: #fff !important;
    box-shadow: 0 2px 10px rgba(7, 155, 181, 0.28);
}

.cfh-btn-primary:hover {
    background: var(--cfh-primary-dark);
    box-shadow: 0 4px 14px rgba(7, 155, 181, 0.35);
}

/* Zweitknopf: gleiche Form und Größe wie der Hauptknopf, nur als Umriss. */
.cfh-btn-ghost {
    background: #fff;
    border-color: var(--cfh-primary);
    color: var(--cfh-primary-dark) !important;
}

.cfh-btn-ghost:hover {
    background: var(--cfh-primary-soft);
    border-color: var(--cfh-primary-dark);
}

.cfh-btn[disabled] { opacity: 0.55; cursor: default; }

.cfh-link {
    background: none;
    border: 0;
    padding: 0;
    color: var(--cfh-primary-dark);
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}

/* --- Schritt 1: Domainsuche --- */

.cfh-search {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 16px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--cfh-line);
    border-radius: var(--cfh-radius);
    box-shadow: var(--cfh-shadow);
}

.cfh-search input[type="text"] { flex: 1 1 200px; }

/* Divi nimmt Textfeldern im Textmodul den Innenabstand. */
.cfh .cfh-search input[type="text"],
.cfh .cfh-field input,
.cfh .cfh-field textarea { padding-left: 16px !important; padding-right: 16px !important; }
.cfh-search select { flex: 1 1 180px; cursor: pointer; }

.cfh-search input,
.cfh-search select {
    font-family: inherit;
    font-size: 16px;
    min-height: 48px;
    padding: 10px 16px;
    border: 1px solid var(--cfh-line);
    border-radius: var(--cfh-radius-input);
    color: var(--cfh-ink);
    background: #fff;
    outline: none;
    margin: 0;
}

.cfh-search input:focus,
.cfh-search select:focus { border-color: var(--cfh-primary); box-shadow: var(--cfh-focus); }

.cfh-result { margin: 0; }

.cfh-result-box {
    padding: 24px;
    border-radius: var(--cfh-radius);
    margin: 8px 0 16px;
}

.cfh-result-box.is-free { background: var(--cfh-ok-soft); border: 1px solid #bfe5cd; }
.cfh-result-box.is-taken { background: var(--cfh-bad-soft); border: 1px solid #f3c9c9; }
.cfh-result-box h3 { margin: 0 0 8px; font-size: 20px; }
.cfh-result-box.is-free h3 { color: var(--cfh-ok); }
.cfh-result-box.is-taken h3 { color: var(--cfh-bad); }
.cfh-result-box p { margin: 0 0 12px; }
.cfh-result-box .cfh-btn { margin: 8px 0 4px; }
.cfh-source { font-size: 13px; color: var(--cfh-muted); margin: 8px 0 0 !important; }

.cfh-bundle {
    display: inline-block;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #bfe5cd;
    border-radius: 999px;
    color: var(--cfh-ok);
    font-size: 15px;
    font-weight: 600;
}

/* --- Schritt 2 und 3: Pakete und Zusatzleistungen --- */

.cfh-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 0 0 8px;
}

.cfh-card {
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    background: #fff;
    border: 1px solid var(--cfh-line);
    border-radius: var(--cfh-radius);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.cfh-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--cfh-shadow);
    border-color: var(--cfh-primary);
}

.cfh-card h3 { margin: 0 0 4px; font-size: 19px; font-weight: 700; }

/* Wie die Preisboxen der übrigen Seiten: Betrag 30 px fett, Zusatz 14 px, beides in #333. */
.cfh-card-price {
    margin: 12px 0 16px;
    color: #333;
    line-height: 1.3;
}

.cfh-card-price strong { display: block; font-size: 30px; font-weight: 700; color: #333; }
.cfh-card-price span,
.cfh-card-price small { font-size: 14px; font-weight: 400; color: #333; }
.cfh-card-price small { margin-left: 4px; }
.cfh-card-price .cfh-card-gross { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--cfh-muted); }
.cfh-chosen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 24px; padding: 12px 16px; border: 1px solid #079bb5; border-radius: 8px; background: #f0f9fb; font-weight: 600; }
.cfh-chosen span::before { content: '✓'; margin-right: 8px; color: #079bb5; }
.cfh-zusatz { margin: 24px 0 32px; border: 1px solid var(--cfh-line); border-radius: 8px; background: #fff; }
.cfh-zusatz > summary { padding: 14px 18px; font-weight: 600; color: var(--cfh-primary-dark); cursor: pointer; }
.cfh-zusatz[open] > summary { border-bottom: 1px solid var(--cfh-line); }
.cfh-zusatz > .cfh-tabs, .cfh-zusatz > .cfh-tabpanel { margin-left: 18px; margin-right: 18px; }
.cfh-zusatz > .cfh-tabs { margin-top: 18px; }
.cfh-zusatz > .cfh-tabpanel { margin-bottom: 18px; }
.cfh-domainwahl { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.cfh-domainwahl label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; border: 1px solid #d5e3e7; border-radius: 8px; background: #fff; cursor: pointer; }
.cfh-domainwahl label:has(input:checked) { border-color: #079bb5; background: #f0f9fb; font-weight: 600; }
.cfh-domainwahl input { margin: 0; accent-color: #079bb5; }
@media (max-width: 600px) { .cfh-domainwahl label { flex: 1 1 100%; } }

.cfh-card .cfh-btn { width: 100%; margin-top: auto; }

.cfh-card.is-selected {
    border-color: var(--cfh-primary);
    box-shadow: 0 0 0 3px rgba(7, 155, 181, 0.18);
}

.cfh-select.is-selected,
.cfh-select.is-selected:hover {
    background: var(--cfh-primary-dark);
    border-color: var(--cfh-primary-dark);
    color: #fff !important;
}

.cfh-select.is-selected::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    color: var(--cfh-primary-dark);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.cfh-intro {
    margin: 0 0 32px !important;
    font-size: 17px;
    color: var(--cfh-muted);
}
.cfh-card-text { color: var(--cfh-muted); font-size: 15px; margin: 0 0 20px; }

.cfh-features {
    list-style: none !important;
    text-align: left;
    margin: 0 0 24px !important;
    padding: 0 !important;
}

.cfh-features li {
    position: relative;
    margin: 0 0 12px;
    padding: 0 0 0 28px !important;
    font-size: 15px;
    color: var(--cfh-ink);
    list-style: none;
}

.cfh-features li::before {
    content: '✓';
    position: absolute;
    left: 2px;
    top: 0;
    color: var(--cfh-accent);
    font-size: 16px;
    font-weight: 700;
    line-height: inherit;
}

.cfh-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 28px;
}

.cfh-tab {
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    min-height: 48px;
    padding: 10px 24px;
    border-radius: 999px;
    border: 1px solid var(--cfh-line);
    background: #fff;
    color: var(--cfh-muted);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.cfh-tab:hover {
    border-color: var(--cfh-primary);
    color: var(--cfh-primary-dark);
    background: var(--cfh-primary-soft);
}

.cfh-tab.is-active {
    background: var(--cfh-primary);
    border-color: var(--cfh-primary);
    color: #fff;
    box-shadow: 0 2px 10px rgba(7, 155, 181, 0.28);
}

.cfh-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding: 28px 0;
    border-top: 1px solid var(--cfh-line);
}

/* --- Schritt 4: Bestellung --- */

.cfh-checkout {
    padding: 32px 28px 40px;
    background: #fff;
    border: 1px solid var(--cfh-line);
    border-radius: var(--cfh-radius);
    box-shadow: var(--cfh-shadow);
}

.cfh-checkout h2 { text-align: left; }
.cfh-checkout h3 { font-size: 22px; font-weight: 700; margin: 32px 0 16px; }

.cfh-checkout-head {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--cfh-line);
}


.cfh-row { display: flex; flex-wrap: wrap; gap: 16px; }
.cfh-field { flex: 1 1 220px; display: block; margin: 0 0 16px; }
.cfh-field-wide { flex-basis: 100%; }
.cfh-field-small { flex: 0 1 140px; }
.cfh-field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--cfh-muted); }

.cfh-field input,
.cfh-field select,
.cfh-field textarea {
    width: 100%;
    font-family: inherit;
    font-size: 16px;
    min-height: 48px;
    padding: 10px 16px;
    margin: 0;
    border: 1px solid var(--cfh-line);
    border-radius: var(--cfh-radius-input);
    color: var(--cfh-ink);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cfh-field textarea { min-height: 110px; resize: vertical; }
.cfh-field input::placeholder,
.cfh-field textarea::placeholder { color: #93a3aa; }

.cfh-field input:focus,
.cfh-field select:focus,
.cfh-field textarea:focus { outline: none; border-color: var(--cfh-primary); box-shadow: var(--cfh-focus); }

.cfh-coupon { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.cfh-coupon .cfh-field { flex: 1 1 200px; }
.cfh-coupon .cfh-btn { margin-bottom: 16px; }

.cfh-hint { font-size: 15px; color: var(--cfh-muted); margin: 0 0 16px; }
.cfh-hint:empty { display: none; }
.cfh-error { color: var(--cfh-bad); font-weight: 600; }

p.cfh-error {
    background: var(--cfh-bad-soft);
    border: 1px solid #f3c9c9;
    padding: 14px 18px;
    border-radius: var(--cfh-radius-input);
}

.cfh-notice {
    background: var(--cfh-primary-soft);
    border-left: 4px solid var(--cfh-primary);
    padding: 14px 18px;
    border-radius: var(--cfh-radius-input);
    font-size: 15px;
}

#cfh-paypal-hint {
    background: var(--cfh-warn-soft);
    border-left: 4px solid #e8a13c;
    padding: 14px 18px;
    border-radius: var(--cfh-radius-input);
}

#cfh-bank-hint {
    background: var(--cfh-primary-soft);
    border-left: 4px solid var(--cfh-primary);
    padding: 14px 18px;
    border-radius: var(--cfh-radius-input);
}

#cfh-stripe-box {
    background: var(--cfh-bg);
    border: 1px solid var(--cfh-line);
    border-radius: var(--cfh-radius-input);
    padding: 20px;
    margin: 0 0 16px;
}

.cfh-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 16px 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--cfh-muted);
    cursor: pointer;
}

.cfh-check input {
    width: 22px;
    height: 22px;
    margin: 1px 0 0;
    flex: 0 0 auto;
    accent-color: var(--cfh-primary);
    cursor: pointer;
}

.cfh-check a { color: var(--cfh-primary-dark); text-decoration: underline; }

.cfh-payments { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 28px; }

.cfh-payment {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 180px;
    min-height: 56px;
    padding: 12px 18px;
    background: #fff;
    border: 1px solid var(--cfh-line);
    border-radius: var(--cfh-radius-input);
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.cfh-payment input {
    width: 20px;
    height: 20px;
    margin: 0;
    flex: 0 0 auto;
    accent-color: var(--cfh-primary);
}

.cfh-payment:hover { border-color: var(--cfh-primary); background: var(--cfh-primary-soft); }

.cfh-payment:has(input:checked) {
    border-color: var(--cfh-primary);
    background: var(--cfh-primary-soft);
    box-shadow: 0 0 0 3px rgba(7, 155, 181, 0.15);
}

.cfh-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    padding: 16px 20px;
    background: var(--cfh-primary-soft);
    border: 1px solid #bfe4ec;
    border-left: 4px solid var(--cfh-primary);
    border-radius: var(--cfh-radius-input);
    font-size: 17px;
}

.cfh-total span { color: var(--cfh-primary-dark); font-weight: 600; }
.cfh-total strong { font-size: 1.5em; font-weight: 800; color: var(--cfh-primary-dark); letter-spacing: -0.02em; }

/* Der eine orange Knopf der ganzen Strecke. */
.cfh-btn-submit {
    display: flex;
    width: auto;
    margin: 40px auto 0;
    padding: 16px 48px;
    background: var(--cfh-accent);
    color: #fff !important;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(224, 75, 0, 0.32);
}

.cfh-btn-submit:hover {
    background: var(--cfh-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(224, 75, 0, 0.38);
}

.cfh-btn-submit:disabled { background: var(--cfh-muted); box-shadow: none; transform: none; cursor: wait; }

/* --- Warenkorb --- */

.cfh-summary {
    background: #fff;
    border: 1px solid var(--cfh-line);
    border-radius: var(--cfh-radius);
    padding: 4px 16px;
}

.cfh-summary { margin-bottom: 24px; }
.cfh-cart-list { list-style: none; margin: 0; padding: 0; }

.cfh-cart-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 14px 0 !important;
    border-bottom: 1px solid var(--cfh-line);
    font-size: 16px;
    list-style: none;
}

.cfh-cart-list li:last-child { border-bottom: 0; }

.cfh-standort { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 0; font-size: 14px; color: var(--cfh-muted); }
.cfh-standort select { min-height: 36px; padding: 4px 10px; font: inherit; color: var(--cfh-ink); border: 1px solid var(--cfh-line); border-radius: var(--cfh-radius-input); background: #fff; }
.cfh-standort-hinweis { display: block; margin-top: 6px; font-size: 13px; color: var(--cfh-muted); }
.cfh-standort-hinweis:empty { display: none; }

.cfh-remove {
    border: 0;
    background: none;
    color: var(--cfh-muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s, transform 0.2s;
}

.cfh-remove:hover { color: var(--cfh-bad); transform: scale(1.2); }

/* --- Preisliste --- */

.cfh-pricetable { overflow-x: auto; }

.cfh-price-filter {
    width: 100%;
    max-width: 360px;
    min-height: 48px;
    margin: 0 0 16px;
    padding: 10px 16px;
    font-family: inherit;
    font-size: 16px;
    border: 1px solid var(--cfh-line);
    border-radius: var(--cfh-radius-input);
}

.cfh-price-filter:focus { outline: none; border-color: var(--cfh-primary); box-shadow: var(--cfh-focus); }

.cfh-pricetable table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--cfh-line);
    border-radius: var(--cfh-radius);
    overflow: hidden;
    font-size: 16px;
    margin: 0;
}

.cfh-pricetable th {
    background: var(--cfh-bg);
    color: var(--cfh-muted);
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--cfh-line);
}

.cfh-pricetable td { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--cfh-line); vertical-align: middle; }
.cfh-pricetable tbody tr:hover { background: #fafcfd; }
.cfh-pricetable .cfh-right { text-align: right; }
.cfh-pricetable .cfh-btn { min-height: 40px; padding: 6px 20px; font-size: 15px; }
.cfh-price-more { display: flex; justify-content: center; margin: 20px 0 8px; }

/* --- Danke- und Abbruchseite --- */

.cfh-result-page {
    max-width: 620px;
    margin: 48px auto;
    padding: 56px 40px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--cfh-line);
    border-radius: var(--cfh-radius);
    box-shadow: var(--cfh-shadow);
}

.cfh-result-page h2 { font-size: 30px; margin: 0 0 16px; }
.cfh-result-page p { color: var(--cfh-muted); margin: 0 0 16px; }

.cfh-facts {
    display: grid;
    grid-template-columns: minmax(140px, auto) 1fr;
    gap: 8px 20px;
    margin: 24px 0 0;
    padding: 20px;
    text-align: left;
    background: var(--cfh-bg);
    border-radius: var(--cfh-radius-input);
}

.cfh-facts dt { color: var(--cfh-muted); font-size: 14px; }
.cfh-facts dd { margin: 0; font-weight: 600; }

.cfh-empty {
    border: 1px dashed var(--cfh-line);
    border-radius: var(--cfh-radius);
    padding: 24px;
    text-align: center;
    color: var(--cfh-muted);
}

/* Die Preisliste nimmt die Breite der Zeile, in der sie steht; das Suchfeld bleibt schmal und mittig. */
.cfh.cfh-pricetable { max-width: none; padding: 0; }

.cfh-searchbox { margin-top: 40px; }
.cfh-searchbox .cfh-search { margin: 0; }

@media (max-width: 768px) {
    .cfh h2 { font-size: 23px; }
    .cfh-steps li { flex-basis: calc(50% - 5px); font-size: 14px; }
    .cfh-checkout { padding: 24px 16px 32px; }
    #cfh-app { margin: 24px auto 48px; }
    .cfh-search input,
    .cfh-search select,
    .cfh-search button { flex-basis: 100%; }
    .cfh-payment { flex-basis: 100%; }
    .cfh-total { flex-direction: column; align-items: flex-start; gap: 8px; }
    .cfh-actions { flex-direction: column; }
    .cfh-actions .cfh-btn,
    .cfh-btn-submit { width: 100%; }
    .cfh-result-page { padding: 36px 20px; margin: 24px auto; }
    .cfh-result-page h2 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .cfh * { animation: none !important; transition: none !important; }
    .cfh-card:hover,
    .cfh-btn-submit:hover { transform: none; }
}
