/* /kontakt/ (T/page-kontakt.php, docs/static-pages.md): the rules of the old stylesheets that reach its two sections (found
   in the browser), in the old order, without the Contact Form 7 stylesheet the portal loads on every page. Rules for the
   whole old page are limited to the main element with :where(.contact-page), which adds no weight. Old names:
   body.hn-kontakt → body.page-contact, .kt-* → .contact-*, .ca-card → .contact-card (.ca-list, .ca-item, .k, .v, .addr →
   .contact-card__*), .ca-owner → .contact-card--owner, .sub → .contact-form__sub. The form keeps its Contact Form 7 classes.
   Generated by a port script; keep the order of the rules when editing. */

/* ---------- css/pages.css: body ---------- */

body.page-plain {
    background: var(--bg);
}

body.page-contact {
    background: var(--paper);
}

body.page-generic {
    background: var(--bg);
}

/* ---------- style.min.css ---------- */

:where(.contact-page) ul {
    box-sizing:border-box;
}

/* ---------- style.css ---------- */

:where(.contact-page) .wpcf7-spinner {
    position: absolute;
    z-index: 10;
    margin: 10px auto;
    left: 0;
    right: 0;
}

:where(.contact-page) .wpcf7 form .wpcf7-response-output {
    position: relative;
    margin: 0 0 0 30px;
    padding: 20px 30px;
    width: 100%;
    background: #fff;
    box-sizing: border-box;
}

/* ---------- main.css ---------- */

:where(.contact-page) a:active,
:where(.contact-page) a:hover {
    outline: none;
}

:where(.contact-page) a {
    color: #e8132f;
    text-decoration: none;
    cursor: pointer;
}

:where(.contact-page) a:hover {
    color: #db0707;
    text-decoration: underline;
}

:where(.contact-page) b,
:where(.contact-page) strong {
    font-weight: bolder;
}

:where(.contact-page) iframe {
    vertical-align: middle;
}

:where(.contact-page) iframe {
    border: 0;
}

:where(.contact-page) address,
:where(.contact-page) p,
:where(.contact-page) ul {
    margin: 0 0 20px;
}

:where(.contact-page) *+address,
:where(.contact-page) *+p,
:where(.contact-page) *+ul {
    margin-top: 20px;
}

:where(.contact-page) h1,
:where(.contact-page) h2,
:where(.contact-page) h3 {
    margin: 0 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif;
    font-weight: 400;
    color: #333;
    text-transform: none;
}

:where(.contact-page) *+h1 {
    margin-top: 40px;
}

:where(.contact-page) h1 {
    font-size: 2.23125rem;
    line-height: 1.2;
}

:where(.contact-page) h2 {
    font-size: 1.7rem;
    line-height: 1.3;
}

:where(.contact-page) h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

@media (min-width: 960px) {
    :where(.contact-page) h1 {
        font-size: 2.625rem;
    }

    :where(.contact-page) h2 {
        font-size: 2rem;
    }

}

:where(.contact-page) ul {
    padding-left: 30px;
}

:where(.contact-page) address {
    font-style: normal;
}

:where(.contact-page) ::selection {
    background: #39f;
    color: #fff;
    text-shadow: none;
}

@media print {
    :where(.contact-page) *,
    :where(.contact-page) :after,
    :where(.contact-page) :before {
        background: transparent !important;
        color: #000 !important;
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    :where(.contact-page) a,
    :where(.contact-page) a:visited {
        text-decoration: underline;
    }

    :where(.contact-page) h2,
    :where(.contact-page) h3,
    :where(.contact-page) p {
        orphans: 3;
        widows: 3;
    }

    :where(.contact-page) h2,
    :where(.contact-page) h3 {
        page-break-after: avoid;
    }

}

:where(.contact-page) h1,
:where(.contact-page) h2,
:where(.contact-page) h3 {
    font-family: Poppins, sans-serif;
}

:where(.contact-page) p,
:where(.contact-page) span,
:where(.contact-page) strong {
    font-family: Raleway, sans-serif;
}

:where(.contact-page) h2,
:where(.contact-page) h3,
:where(.contact-page) p,
:where(.contact-page) span,
:where(.contact-page) strong {
    color: #000;
}

:where(.contact-page) input::-webkit-inner-spin-button,
:where(.contact-page) input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

:where(.contact-page) select {
    -webkit-appearance: none;
}

:where(.contact-page) a,
:where(.contact-page) a:hover {
    text-decoration: none;
}

:where(.contact-page) h1,
:where(.contact-page) h2 {
    display: inline-block;
}

:where(.contact-page) *:not(#wpadminbar *) {
    font-family: 'Google Sans', 'Manrope', sans-serif !important;
}

:where(.contact-page) h1:not(#wpadminbar *),
:where(.contact-page) h2:not(#wpadminbar *),
:where(.contact-page) h3:not(#wpadminbar *) {
    font-family: 'Google Sans', 'Sora', sans-serif !important;
}

:where(.contact-page) p,
:where(.contact-page) span,
:where(.contact-page) strong {
    font-style: normal;
    font-weight: 400;
    font-size: 1em;
    line-height: 1.5;
}

:where(.contact-page) h3 {
    font-size: 1.5em;
    margin-top: 0.95833em;
    margin-bottom: 0.375em;
    font-weight: 600;
}

:where(.contact-page) strong {
    font-weight: 600;
}

:where(.contact-page) #breadcrumbs {
    margin: 0 auto;
    max-width: var(--container);
    padding: 0 16px 17px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    display: block;
    font-size: 13px;
    width: 100%;
}

:where(.contact-page) #breadcrumbs span>span {
    color: #fd3543;
}

:where(.contact-page) #breadcrumbs span>span * {
    margin-right: 5px;
}

:where(.contact-page) #breadcrumbs span>span a,
:where(.contact-page) #breadcrumbs span>span strong {
    color: #000;
    font-weight: 400;
}

:where(.contact-page) #breadcrumbs span>span a:hover {
    color: #fd3543;
}

@media (min-width: 900px) {
    :where(.contact-page) #breadcrumbs {
        padding: 0 60px 17px;
    }

}

:where(.contact-page) h1 {
    padding: 20px 16px 7px;
    color: #000;
    font-size: 22px;
    display: block;
    max-width: var(--container);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0 auto;
    font-weight: 700;
    text-transform: uppercase;
}

@media (min-width: 900px) {
    :where(.contact-page) h1 {
        padding: 40px 60px 7px;
    }

}

@media (min-width: 450px) {
    :where(.contact-page) h1 {
        font-size: 30px;
    }

}

:where(.contact-page) .wpcf7-form {
    transition: .5s all;
}

/* ---------- pages.css ---------- */

body.page-contact .contact-head {
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 30px max(32px, calc((100% - var(--container)) / 2 + 32px)) 36px;
}

body.page-contact .contact-head h1 {
    max-width: none;
    margin: 0;
    padding: 0;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-align: left;
    text-transform: none;
}

body.page-contact #breadcrumbs {
    max-width: none;
    margin: 0 0 22px;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--muted);
    text-align: left;
}

body.page-contact .contact-head .contact-head__lead {
    margin: 14px 0 0;
    max-width: 640px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--muted);
}

body.page-contact #breadcrumbs a {
    color: var(--muted);
    font-weight: 600;
    transition: color 0.15s ease;
}

body.page-contact #breadcrumbs a:hover {
    color: var(--red);
}

body.page-contact #breadcrumbs .breadcrumbs__last,
body.page-contact #breadcrumbs strong {
    color: var(--ink);
    font-weight: 700;
}

body.page-contact .contact-section {
    max-width: var(--container);
    margin: 0 auto;
    box-sizing: border-box;
    padding: 40px 32px 88px;
}

body.page-contact .contact-head__lead {
    max-width: 640px;
    margin: 0 0 28px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
}

body.page-contact .contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

body.page-contact .contact-form {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 32px;
}

body.page-contact .contact-form h2 {
    display: block;
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0 0 6px;
}

body.page-contact .contact-form .contact-form__sub {
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0 0 24px;
}

body.page-contact .contact-form form.wpcf7-form {
    display: grid;
    gap: 18px;
}

body.page-contact .cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

body.page-contact .cf-field {
    display: grid;
    gap: 7px;
}

body.page-contact .cf-field label {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

body.page-contact .cf-field .wpcf7-form-control-wrap {
    display: block;
}

body.page-contact .cf-field input,
body.page-contact .cf-field select,
body.page-contact .cf-field textarea {
    width: 100%;
    box-sizing: border-box;
    height: 46px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    outline: none;
    transition: border-color 0.15s ease;
}

body.page-contact .cf-field textarea {
    height: auto;
    min-height: 140px;
    padding: 12px 14px;
    resize: vertical;
}

body.page-contact .cf-field input::placeholder,
body.page-contact .cf-field textarea::placeholder {
    color: var(--muted-2);
    font-weight: 500;
}

body.page-contact .cf-field input:focus,
body.page-contact .cf-field select:focus,
body.page-contact .cf-field textarea:focus {
    border-color: var(--ink);
}

body.page-contact .cf-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%230D0E11" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    padding-right: 40px;
    cursor: pointer;
}

body.page-contact .cf-consent .wpcf7-form-control-wrap {
    display: block;
}

body.page-contact .cf-consent .wpcf7-list-item {
    margin: 0;
}

body.page-contact .cf-consent .wpcf7-list-item label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
}

body.page-contact .cf-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--red);
    flex: none;
    cursor: pointer;
}

body.page-contact .cf-consent .wpcf7-list-item-label {
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.55;
    color: var(--muted);
}

body.page-contact .cf-consent a {
    color: var(--red);
    font-weight: 700;
    text-decoration: none;
}

body.page-contact .cf-consent a:hover {
    text-decoration: underline;
}

body.page-contact .contact-form input[type="submit"] {
    display: inline-block;
    height: 50px;
    padding: 0 32px;
    border: 0;
    border-radius: var(--radius);
    background: var(--red);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease;
}

body.page-contact .contact-form input[type="submit"]:hover {
    background: var(--ink);
}

body.page-contact .contact-form .wpcf7-response-output {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid rgba(232, 19, 47, 0.35);
    border-radius: var(--radius);
    background: var(--red-soft);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--red-dark);
}

body.page-contact .contact-aside {
    display: grid;
    gap: 20px;
}

body.page-contact .contact-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 26px 28px;
}

body.page-contact .contact-card h3 {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 18px;
}

body.page-contact .contact-card__list {
    display: grid;
    gap: 16px;
}

body.page-contact .contact-card__item {
    display: grid;
    gap: 3px;
}

body.page-contact .contact-card__item .contact-card__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

body.page-contact .contact-card__item a,
body.page-contact .contact-card__item .contact-card__value {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--ink);
    text-decoration: none;
}

body.page-contact .contact-card__item a:hover {
    color: var(--red);
}

body.page-contact .contact-card--owner p {
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.65;
    color: var(--muted);
    margin: 0 0 14px;
}

body.page-contact .contact-card--owner .contact-card__address {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.6;
    font-style: normal;
    color: var(--ink);
}

body.page-contact .contact-map {
    margin-top: 48px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    overflow: hidden;
}

body.page-contact .contact-map iframe {
    display: block;
    width: 100%;
    height: 380px;
    border: 0;
}

@media (max-width: 900px) {
    body.page-contact .contact-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    body.page-contact .cf-row {
        grid-template-columns: 1fr;
    }

    body.page-contact .contact-form {
        padding: 24px 20px;
    }

}

@media (max-width: 760px) {
    body.page-contact #breadcrumbs,
    body.page-contact .contact-section {
        padding-left: 20px;
        padding-right: 20px;
    }

}
