/* ==========================================================================
   Schlüsselheld — reviews.css (Bewertungen)
   Loads after main.css and reuses its tokens. Prefix: khr-
   The review form keeps its shared jqr_ hooks; they are only styled here.
   ========================================================================== */

body.page-reviews { background: var(--white); }

/* ---------- inner hero ---------- */
.khr-hero {
    background:
        repeating-linear-gradient(135deg, var(--line-w2) 0 2px, transparent 2px 22px),
        var(--g-left),
        var(--blue);
    padding: 56px 0 60px;
    color: var(--white);
}
.khr-hero__grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    gap: 64px; align-items: center;
}
.khr-hero__txt { min-width: 0; }
.khr-crumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
    margin-bottom: 26px;
    font: 500 14px/1.4 var(--f-body); letter-spacing: .06em;
    color: var(--mist);
}
.khr-crumb a { color: var(--mist); }
.khr-crumb a:hover { color: var(--orange); }
.khr-crumb__sep { color: var(--mist); }
.khr-crumb__now { color: var(--white); }
.khr-hero .kh-eyebrow { margin-bottom: 14px; }
.khr-hero__title {
    max-width: 760px;
    font-size: var(--fs-h2); font-weight: 600; line-height: 1.1; letter-spacing: -.01em;
    color: var(--white);
}
.khr-hero__lead { margin-top: 22px; max-width: 640px; font-size: 17px; line-height: 1.55; color: var(--white); }

/* rating pill: white so the orange stars stay readable on blue */
.khr-score {
    display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
    margin-top: 28px; padding: 11px 22px;
    background: var(--white); border-radius: var(--pill); box-shadow: var(--sh-2);
}
.khr-score__stars { color: var(--orange); font-size: 17px; line-height: 1; letter-spacing: .14em; }
.khr-score__txt { font: 500 16px/1.2 var(--f-body); letter-spacing: .04em; color: var(--ink); }
.khr-score__txt strong { font: 600 21px/1 var(--f-head); color: var(--ink); }

/* stats card (numbers come from reviews-data) */
.khr-stats {
    min-width: 0; padding: 28px 32px 8px;
    background: var(--white); border-radius: var(--r); box-shadow: var(--sh-3);
    border-top: 3px solid var(--orange);
}
.khr-stats__cap {
    font: 500 14px/1.2 var(--f-body); letter-spacing: .139em; text-transform: uppercase;
    color: var(--blue); margin-bottom: 6px;
}
.khr-stats__list li {
    display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center;
    padding: 18px 0; min-width: 0;
}
.khr-stats__list li + li { border-top: 1px dashed var(--line); }
.khr-stats__n { font: 600 52px/1 var(--f-head); color: var(--orange); }
.khr-stats__l { font: 600 19px/1.25 var(--f-head); color: var(--ink); min-width: 0; }

/* ---------- review list ---------- */
.khr-list { background: var(--g-paper); }
.khr-list__head {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px; align-items: end; margin-bottom: 48px;
}
.khr-list__head > div { min-width: 0; }
.khr-list__head .kh-eyebrow { margin-bottom: 16px; }
.khr-list__head > p { min-width: 0; font-size: var(--fs-body); line-height: 1.7; }

.khr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.khr-card {
    position: relative; display: flex; flex-direction: column; min-width: 0;
    padding: 34px 30px 26px;
    background: var(--white); border-radius: var(--r); box-shadow: var(--sh-1);
    border-bottom: 3px solid var(--blue);
    transition: box-shadow var(--t), border-color var(--t);
}
.khr-card:hover { box-shadow: var(--sh-3); border-bottom-color: var(--orange); }
.khr-card__quote { position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; opacity: .18; }
.khr-card__stars {
    display: block; margin-bottom: 18px; padding-right: 60px;
    color: var(--orange); font-size: 19px; line-height: 1; letter-spacing: .15em;
}
.khr-card__text { flex: 1 1 auto; margin-bottom: 22px; font-size: 15px; line-height: 1.7; color: var(--text); }
.khr-card__svc { align-self: flex-start; max-width: 100%; margin-bottom: 20px; }
.khr-card__foot {
    position: relative; min-height: 66px;
    padding: 18px 0 0 64px; border-top: 1px dashed var(--line);
}
.khr-card__ava {
    position: absolute; left: 0; top: 18px;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--blue); color: var(--white);
    font: 600 20px/48px var(--f-head); text-align: center;
}
.khr-card__who { display: flex; flex-direction: column; justify-content: center; min-height: 48px; min-width: 0; }
.khr-card__name { display: block; font: 500 15px/1.35 var(--f-body); letter-spacing: .05em; color: var(--ink); overflow-wrap: anywhere; }
.khr-card__date { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }

/* ---------- pagination ---------- */
.khr-pag {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 12px; margin-top: 50px;
}
.khr-pag__btn {
    display: inline-flex; align-items: center; gap: 10px;
    height: 46px; padding: 0 22px;
    border-radius: var(--r); background: var(--orange); color: var(--white);
    font: 500 15px/1 var(--f-body); letter-spacing: .063em;
    transition: background-color var(--t);
}
.khr-pag__btn:hover { background: var(--text); color: var(--white); }
.khr-pag__btn img { width: 16px; height: 16px; flex: 0 0 auto; }
.khr-pag__btn--prev img { transform: rotate(180deg); }
.khr-pag__nums { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.khr-pag__num,
.khr-pag__dots {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 46px; height: 46px; padding: 0 10px; border-radius: var(--r);
    font: 600 18px/1 var(--f-head);
}
.khr-pag__num {
    border: 1px solid var(--line); background: var(--white); color: var(--ink);
    transition: border-color var(--t), color var(--t);
}
a.khr-pag__num:hover { border-color: var(--orange); color: var(--orange); }
.khr-pag__num--active { background: var(--blue); border-color: var(--blue); color: var(--white); }
.khr-pag__dots { color: var(--muted); }

/* ---------- review form ---------- */
.khr-form {
    background-color: var(--paper);
    background-image: repeating-linear-gradient(135deg, var(--white) 0 6px, var(--line) 6px 7px);
}
.khr-form__card {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
    gap: 70px; align-items: start;
    padding: 70px;
    background: var(--white); border-radius: var(--r); box-shadow: var(--sh-3);
}
.khr-form__intro { min-width: 0; }
.khr-form__intro .kh-eyebrow { margin-bottom: 16px; }
.khr-form__intro .kh-bar { margin-bottom: 26px; }
.khr-form__intro > p:not(.kh-eyebrow) { font-size: var(--fs-body); line-height: 1.7; }
.khr-tips__t { margin: 30px 0 16px; font-size: 22px; color: var(--ink); }
.khr-tips { display: grid; gap: 12px; }
.khr-tips li { position: relative; padding-left: 34px; font-size: 15px; line-height: 1.6; color: var(--ink); min-width: 0; }
.khr-tips img { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; }
.khr-form__intro > p.khr-form__note {
    margin-top: 26px; padding-top: 18px; border-top: 1px dashed var(--line);
    font-size: 14px; line-height: 1.6; color: var(--muted);
}

.khr-form__panel {
    min-width: 0; padding: 38px 36px 40px;
    background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--orange);
    border-radius: var(--r);
}
.khr-form__title { font-size: var(--fs-h3); margin-bottom: 22px; color: var(--ink); }

/* shared form markup — style it, never rename it */
.khr-form__form input[type="text"],
.khr-form__form textarea {
    display: block; width: 100%; min-width: 0; margin-bottom: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line); border-radius: var(--r); background-color: var(--white);
    font: 400 15px/1.45 var(--f-body); color: var(--ink);
    transition: border-color var(--t);
}
.khr-form__form textarea { resize: vertical; min-height: 140px; }
.khr-form__form input::placeholder,
.khr-form__form textarea::placeholder { color: var(--muted); }
.khr-form__form input:focus,
.khr-form__form textarea:focus { outline: none; border-color: var(--blue); }

.khr-rate { display: block; margin: 4px 0 16px; }
.khr-rate__t {
    display: block; margin-bottom: 10px;
    font: 500 14px/1.3 var(--f-body); letter-spacing: .067em; color: var(--ink);
}
.jqr_star-rating { display: flex; flex-wrap: wrap; gap: 8px; font-size: 26px; line-height: 1; cursor: pointer; }
.jqr_star-rating i { transition: transform var(--t); }
.jqr_star-rating i:hover { transform: scale(1.12); }
.jqr_star-rating .text-warning { color: var(--orange); }

.khr-form__form .text-danger { color: var(--orange); }
.khr-form__form .small { font-size: 13px; line-height: 1.4; }
.khr-form__form .mt-1 { margin-top: 4px; }
.khr-form__form .jqr_error-message { margin: -8px 0 14px; }

.khr-form__form #jqr_submit {
    width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    margin-top: 6px; padding: 16px 24px;
    border: 0; border-radius: var(--r); background: var(--orange); color: var(--white);
    font: 500 16px/1 var(--f-body); letter-spacing: .063em;
    cursor: pointer; transition: background-color var(--t);
}
.khr-form__form #jqr_submit:hover { background: var(--text); }
.khr-form__form #jqr_submit:disabled { opacity: .7; cursor: wait; }

/* ---------- handler toast + success modal (created by review-handler.vto) ---------- */
body .jqr_notification-toast {
    top: 104px; right: 20px; max-width: 360px;
    padding: 16px 46px 16px 18px;
    border-radius: var(--r); border-left: 4px solid var(--orange);
    background: var(--blue); color: var(--white); box-shadow: var(--sh-2);
    font: 400 15px/1.5 var(--f-body);
    transform: translateX(calc(100% + 40px));
}
body .jqr_notification-toast.jqr_show { transform: translateX(0); }
body .jqr_notification-toast.jqr_error { background: var(--ink); border-left-color: var(--orange); }
body .jqr_notification-toast .jqr_toast-close { color: var(--white); top: 10px; right: 14px; }
body .jqr_notification-toast .jqr_toast-close:hover { color: var(--orange); }

/* light palette veil; the handler already adds a backdrop blur */
body .jqr_success-modal { background: var(--veil); }
body .jqr_success-modal-content {
    width: calc(100% - 32px); max-width: 440px; margin: 16px;
    padding: 44px 36px 36px;
    border-radius: var(--r); border-top: 4px solid var(--orange);
    box-shadow: var(--sh-3); font-family: var(--f-body);
}
body .jqr_success-icon {
    width: 76px; height: 76px; margin-bottom: 22px;
    background: var(--orange); box-shadow: none; font-size: 34px; color: var(--white);
}
body .jqr_success-title {
    background: none; -webkit-background-clip: border-box; background-clip: border-box;
    -webkit-text-fill-color: currentColor; color: var(--ink);
    font: 600 30px/1.2 var(--f-head);
}
body .jqr_success-message { color: var(--text); font-size: 15px; }
body .jqr_success-button {
    padding: 15px 30px; border-radius: var(--r);
    background: var(--orange); color: var(--white); box-shadow: none;
    font: 500 16px/1 var(--f-body); letter-spacing: .063em;
}
body .jqr_success-button:hover { background: var(--text); box-shadow: none; transform: none; }
body .jqr_loading-spinner { border-color: var(--line-w); border-top-color: var(--white); }

/* ---------- CTA ---------- */
.khr-cta { position: relative; padding: 96px 0; background: var(--blue); overflow: hidden; }
.khr-cta__bg { position: absolute; inset: 0; overflow: hidden; }
.khr-cta__bg > img { width: 100%; height: 100%; object-fit: cover; object-position: 20% 35%; }
.khr-cta__bg::after {
    content: ""; position: absolute; inset: 0;
    /* solid blue behind the text on the right, tinted photo on the left */
    background: linear-gradient(270deg, var(--blue) 0%, var(--blue) 42%, transparent 100%), var(--g-left);
}
.khr-cta__in { position: relative; z-index: 1; display: flex; justify-content: flex-end; }
.khr-cta__box { width: 50%; max-width: 600px; min-width: 0; }
.khr-cta__box .kh-h2 { margin-bottom: 20px; }
.khr-cta__box > p:not(.kh-eyebrow) { margin-bottom: 32px; font-size: var(--fs-body); line-height: 1.65; color: var(--white); }
.khr-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
.khr-cta__phone {
    display: inline-flex; align-items: center; gap: 16px; min-width: 0;
    font: 600 30px/1.1 var(--f-head); color: var(--white);
}
.khr-cta__phone:hover { color: var(--orange); }
.khr-cta__ico { position: relative; width: 56px; height: 56px; flex: 0 0 auto; border: 2px solid var(--orange); border-radius: 50%; }
.khr-cta__ico img { position: absolute; top: 50%; left: 50%; width: 28px; height: 28px; transform: translate(-50%, -50%); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
    .khr-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 370px); gap: 48px; }
    .khr-stats__n { font-size: 46px; }
    .khr-list__head { gap: 48px; }
    .khr-card { padding: 30px 26px 24px; }
    .khr-form__card { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 50px; padding: 56px; }
    .khr-cta__box { width: 58%; }
}

@media (max-width: 1024px) {
    .khr-hero { padding: 48px 0 52px; }
    .khr-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .khr-stats { max-width: 720px; padding: 24px 28px; }
    .khr-stats__cap { text-align: center; margin-bottom: 14px; }
    .khr-stats__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .khr-stats__list li { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 6px 14px; text-align: center; }
    .khr-stats__list li + li { border-top: 0; border-left: 1px dashed var(--line); }
    .khr-stats__n { font-size: 44px; }
    .khr-stats__l { font-size: 17px; }

    .khr-list__head { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 40px; }
    .khr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .khr-form__card { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 44px 40px; }
    .khr-form__panel { max-width: 640px; }

    /* photo becomes a strip above the text, fading into the blue band */
    .khr-cta { padding: 0 0 64px; }
    .khr-cta__bg { position: relative; inset: auto; height: 250px; }
    .khr-cta__bg > img { object-position: 35% 25%; }
    .khr-cta__bg::after { background: linear-gradient(180deg, transparent 40%, var(--blue) 100%); }
    .khr-cta__in { justify-content: flex-start; }
    .khr-cta__box { width: 100%; max-width: 640px; }
    .khr-cta__phone { font-size: 27px; }

    body .jqr_notification-toast { top: 88px; }
}

@media (max-width: 768px) {
    .khr-hero { padding: 40px 0 44px; }
    .khr-crumb { margin-bottom: 20px; }
    .khr-hero__lead { margin-top: 18px; font-size: 16px; }
    .khr-score { margin-top: 24px; padding: 10px 18px; }
    .khr-stats { padding: 22px 16px; }
    .khr-stats__list li { padding: 6px 10px; }
    .khr-stats__n { font-size: 38px; }
    .khr-stats__l { font-size: 15px; }

    .khr-card { padding: 28px 22px 22px; }
    .khr-card__quote { top: 20px; right: 20px; width: 38px; height: 38px; }
    .khr-pag { margin-top: 40px; }

    .khr-form__card { padding: 34px 24px; gap: 34px; }
    .khr-form__panel { padding: 28px 22px 30px; }
    .khr-tips__t { margin-top: 24px; font-size: 20px; }

    .khr-cta { padding: 0 0 56px; }
    .khr-cta__bg { height: 210px; }
    .khr-cta__phone { font-size: 25px; }
}

@media (max-width: 640px) {
    .khr-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

@media (max-width: 480px) {
    .khr-hero { padding: 40px 0; }
    .khr-crumb { font-size: 13px; }
    .khr-hero__lead { font-size: 15px; }
    .khr-score { gap: 4px 10px; padding: 9px 16px; }
    .khr-score__stars { font-size: 15px; }
    .khr-score__txt { font-size: 14px; }
    .khr-score__txt strong { font-size: 18px; }

    /* stats return to stacked rows on phones */
    .khr-stats { padding: 20px 20px 6px; }
    .khr-stats__cap { text-align: left; margin-bottom: 4px; font-size: 13px; }
    .khr-stats__list { display: block; }
    .khr-stats__list li { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 14px 0; text-align: left; }
    .khr-stats__list li + li { border-left: 0; border-top: 1px dashed var(--line); }
    .khr-stats__n { font-size: 36px; }
    .khr-stats__l { font-size: 16px; }

    .khr-list__head { margin-bottom: 30px; }
    .khr-card { padding: 26px 18px 20px; }
    .khr-card__stars { font-size: 17px; }
    .khr-card__text { font-size: 14px; }
    .khr-card__foot { padding-left: 58px; }
    .khr-card__ava { width: 44px; height: 44px; font-size: 18px; line-height: 44px; }
    .khr-pag { gap: 8px; margin-top: 32px; }
    .khr-pag__btn { padding: 0 15px; }
    .khr-pag__btn span { display: none; }
    .khr-pag__num, .khr-pag__dots { min-width: 42px; height: 42px; font-size: 17px; }
    .khr-pag__nums { gap: 6px; }

    .khr-form__card { padding: 26px 16px; gap: 28px; }
    .khr-form__panel { padding: 24px 16px 26px; }
    .khr-tips li { font-size: 14px; }
    .jqr_star-rating { font-size: 24px; }

    .khr-cta { padding: 0 0 48px; }
    .khr-cta__bg { height: 180px; }
    .khr-cta__box > p:not(.kh-eyebrow) { margin-bottom: 26px; }
    .khr-cta__actions { gap: 16px; }
    .khr-cta__phone { font-size: 23px; gap: 12px; }
    .khr-cta__ico { width: 46px; height: 46px; }
    .khr-cta__ico img { width: 23px; height: 23px; }
    .khr-cta .kh-btn { width: 100%; }

    body .jqr_notification-toast {
        top: 78px; left: 12px; right: 12px; max-width: none;
        transform: translateX(calc(100% + 24px));
    }
    body .jqr_success-modal-content { padding: 36px 22px 28px; }
    body .jqr_success-title { font-size: 26px; }
}

@media (max-width: 375px) {
    .khr-score__txt { font-size: 13px; }
    .khr-stats__list li { grid-template-columns: 64px minmax(0, 1fr); }
    .khr-stats__n { font-size: 32px; }
    .khr-stats__l { font-size: 15px; }
    .khr-card { padding: 24px 16px 18px; }
    .khr-card__quote { width: 32px; height: 32px; top: 18px; right: 16px; }
    .khr-pag__btn { padding: 0 12px; }
    .khr-pag__num, .khr-pag__dots { min-width: 38px; height: 40px; padding: 0 6px; }
    .khr-form__card { padding: 22px 12px; }
    .khr-form__panel { padding: 22px 12px 24px; }
    .khr-form__form input[type="text"],
    .khr-form__form textarea { padding-left: 12px; }
    .jqr_star-rating { gap: 6px; }
    .khr-cta__bg { height: 160px; }
    .khr-cta__phone { font-size: 21px; }
}
