/* Eftersyn.dk — testdesign. Placering: /assets/css/style-test.css */
:root {
    --page: #faf9f6; --surface: #fff; --text: #28322e;
    --muted: #5d6862; --accent: #305a48; --accent-hover: #234435;
    --line: #dde2dc; --soft: #f0f4ef; --error: #a72b2b;
}
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body { margin: 0; background: var(--page); color: var(--text); font: 16px/1.65 Arial, Helvetica, sans-serif; }
main, .eftersyn-header { width: min(100% - 48px, 960px); margin-inline: auto; }
h1, h2 { color: var(--text); line-height: 1.25; }
h1 { font-size: clamp(34px, 5vw, 52px); }
h2 { margin: 30px 0 12px; font-size: 21px; }
p { margin: 0 0 16px; }
ul, ol { padding-left: 24px; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
input, select, button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.small { font-size: 14px; line-height: 1.6; color: var(--muted); }
[id] { scroll-margin-top: 24px; }

/* Tekstlogo og diskret telefonknap. */
.eftersyn-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; padding-block: 25px; border-bottom: 1px solid var(--line); }
.eftersyn-logo { display: inline-block; color: var(--text); font-size: 27px; line-height: 1.2; font-weight: 700; letter-spacing: -1px; text-decoration: none; }
.eftersyn-logo span { font-weight: 400; color: var(--muted); }
.eftersyn-logo img { display: block; width: 220px; max-width: 100%; height: auto; }
.eftersyn-phone { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 16px; border: 1px solid var(--accent); border-radius: 6px; background: var(--surface); color: var(--accent); font-weight: 700; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.eftersyn-phone .phone-icon {
    display: inline-block;
    flex-shrink: 0;
    font-size: 20px;
    line-height: 1;
    -webkit-text-stroke: 0;
}

.eftersyn-phone:hover { background: var(--soft); text-decoration: none; }
/* Undersidernes eksisterende billedlogo, når de bruger denne CSS. */
.site-logo { display: block; width: min(100% - 48px, 960px); margin: 25px auto; }
.site-logo img { display: block; width: 220px; height: auto; }

/* Kort introduktion og én primær handling. */
.hero { padding: 56px 0 48px; }
.hero-area { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.hero h1 { margin: 0 0 23px; letter-spacing: -1.5px; font-weight: 700; }
.hero-intro { max-width: 570px; font-size: 18px; line-height: 1.65; margin-bottom: 26px; color: var(--muted); }
.hero-prices { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-bottom: 10px; }
.hero-prices p { margin: 0; font-size: 17px; }
.hero-terms { max-width: 550px; font-size: 13px; line-height: 1.6; color: var(--muted); margin-bottom: 26px; }
.hero-note { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.primary-button, .submit-button, .cta-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; max-width: 100%; padding: 13px 21px; border: 1px solid var(--accent); border-radius: 6px; color: #fff; background: var(--accent); font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.4; }
.primary-button:hover, .submit-button:hover, .cta-button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }

/* Formularfelter lidt større end originalen: 240 x 32 px. */
#bestilling { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 32px; max-width: 760px; }
.booking-heading { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 24px; }
.booking-heading h2 { font-size: 26px; margin: 0 0 8px; }
.booking-heading p { color: var(--muted); margin: 0; }
#bestilling > h2 { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 28px; font-size: 19px; }
#bestilling > h2:first-of-type { border: 0; padding-top: 0; margin-top: 0; }
.form-row { display: flex; flex-wrap: wrap; align-items: center; min-height: 28px; margin: 8px 0; }
.form-row > label:first-child { display: inline-block; width: 125px; flex: 0 0 125px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select { width: 240px; max-width: 100%; min-width: 0; height: 32px; padding: 4px 7px; border: 1px solid #aeb9b1; border-radius: 3px; color: var(--text); background: var(--surface); font-size: 16px; line-height: normal; }
.postcode-city { display: flex; align-items: center; width: 240px; max-width: 100%; gap: 6px; }
.postcode-city .postcode { width: 64px; flex: 0 0 64px; }
.postcode-city .city { width: 170px; flex: 1 1 170px; }
#areal { width: 150px; }
#dato_visning { width: 200px; padding-left: 27px; background: #fff url('/images/calendar.gif') no-repeat 7px center; cursor: pointer; }
#tidspunkt { width: 200px; }
#captcha { width: 140px; }
.check-line { display: block; margin: 8px 0; }
.check-line input[type="checkbox"] { vertical-align: middle; accent-color: var(--accent); }
.price-box { margin: 22px 0; padding: 20px; background: var(--soft); border-radius: 6px; }
.price-box strong { font-size: 21px; }
.price-box .small { display: inline-block; margin-top: 8px; }
.order-box { margin: 22px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.order-box p { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.message, .errors { max-width: 760px; margin: 24px 0; padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); }
.message p:last-child, .errors ul:last-child { margin-bottom: 0; }
.errors { border-color: #d8aaaa; background: #fff4f3; }
.errors strong { color: var(--error); }
#dato_visning.field-error { border-color: var(--error); background-color: #fff4f3; }
.field-error-text, #tjek_error { display: none; color: var(--error); font-size: 14px; }
#installationFields, #earlyStartRow { display: none; }
.captcha-row { margin-top: 20px; }
.captcha-row img { display: block; max-width: 180px; margin-left: 125px; }

/* Forklaringer kan åbnes uden ekstra JavaScript. */
.faq, .about { max-width: 760px; margin-top: 44px; }
.faq > h2, .about > h2 { font-size: 24px; }
.faq > p, .about > p { color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 18px 0; font-weight: 700; cursor: pointer; }
.faq-content { padding: 0 0 10px 18px; color: var(--muted); }
.faq-content p, .faq-content li { font-size: 15px; }
#cities { font-size: 13px; }

/* Eksisterende footer og øvrige klasser. */
.box { padding: 20px; margin: 24px 0; background: var(--soft); border-radius: 6px; }
.cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 24px; margin: 30px 0; background: var(--soft); }
.cta-box strong { display: block; }
.cta-box p { margin: 0; }
.error-page { padding-block: 30px; }
.error-links { display: flex; flex-wrap: wrap; gap: 16px; }
.button-link { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 5px; text-decoration: none; }
.site-footer { margin-top: 56px; padding: 36px 24px 20px; border-top: 1px solid var(--line); background: #edf0eb; color: var(--text); }
.footer-inner, .footer-bottom { width: 100%; max-width: 960px; margin-inline: auto; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-column strong { display: block; margin-bottom: 10px; font-size: 15px; }
.footer-column p { color: var(--muted); font-size: 14px; margin: 0; }
.footer-column nav { display: flex; flex-direction: column; gap: 7px; }
.footer-column a { font-size: 14px; text-decoration: none; }
.footer-column a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 28px; }
.footer-bottom p { font-size: 13px; color: var(--muted); margin: 0; }
.ui-datepicker { font-family: Arial, Helvetica, sans-serif; font-size: 14px; max-width: calc(100vw - 24px); }
.ui-datepicker .ui-datepicker-header { background: var(--soft); border-color: var(--line); }
.ui-datepicker .ui-state-active { border-color: var(--accent); background: var(--accent); color: #fff; }

@media (max-width: 640px) {
    main, .eftersyn-header { width: calc(100% - 36px); }
    .eftersyn-header { padding-block: 18px; gap: 8px 16px; }
    .eftersyn-logo img { width: 170px; }
    .eftersyn-logo { font-size: 25px; }
    .eftersyn-phone { font-size: 14px; padding: 9px 12px; }
    .site-logo { width: calc(100% - 36px); margin-block: 18px; }
    .hero { padding-block: 38px; }
    .hero h1 { letter-spacing: -1px; }
    .hero-intro { font-size: 16px; }
    .hero-prices { flex-direction: column; gap: 8px; }
    #bestilling { padding: 22px 18px; }
    .booking-heading h2 { font-size: 23px; }
    .form-row { display: block; margin: 10px 0; }
    .form-row > label:first-child { display: block; width: auto; margin-bottom: 3px; }
    #kundenavn, #kundeadresse, #kundetelefon, #kundemail,
    #installationnavn, #installationadresse, #installationtelefon,
    .postcode-city { width: 100%; }
    .postcode-city .postcode { width: 28%; flex: 0 0 28%; }
    .postcode-city .city { width: auto; flex: 1 1 auto; }
    .captcha-row img { margin-left: 0; }
    .price-box { padding: 16px; }
    .price-box strong { display: inline-block; font-size: 19px; }
    .footer-inner { grid-template-columns: 1fr; gap: 26px; }
}

.eftersyn-phone {
    background: #edf2ee;
    border-color: #c5d2c9;
    color: #305a48;
}

.eftersyn-phone:hover {
    background: #e2ebe5;
    border-color: #305a48;
}

.eftersyn-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
}

.eftersyn-logo .eftersyn-logo-name {
    color: #305a48;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
}

.eftersyn-logo .eftersyn-logo-name > span {
    font-weight: 400;
}

.eftersyn-logo .eftersyn-logo-subtitle {
    margin-top: 7px;
    color: #5c6860;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: normal;
}

.eftersyn-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: block;

    background-color: #faf9f6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.eftersyn-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    width: min(100% - 48px, 960px);
    margin: 0 auto;
    padding: 16px 0;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .eftersyn-header-inner {
        width: calc(100% - 36px);
        gap: 12px;
        padding: 12px 0;
    }
}

#bestilling,
#bestillingsstatus,
#bestillingsfejl {
    scroll-margin-top: 130px;
}