/* ==========================================================================
   Schlüsselheld — legal pages (Impressum + Datenschutz), prefix khl-
   Loaded after main.css and reuses its :root tokens.
   ========================================================================== */

/* body hook set by both legal pages; only visible on overscroll */
.page-legal { background: var(--paper); }

/* ---------- hero: blue band shared by all inner pages ---------- */
.khl-hero {
    position: relative; overflow: hidden;
    padding: 56px 0 60px;
    background: repeating-linear-gradient(135deg, var(--line-w2) 0 2px, transparent 2px 22px), var(--g-left), var(--blue);
}
.khl-hero::after {
    content: ""; position: absolute; right: -40px; bottom: -80px; width: 340px; height: 340px;
    background: url("/assets/icons/logo.svg") no-repeat center / contain;
    opacity: .08; pointer-events: none;
}
.khl-hero__in { position: relative; z-index: 1; }
.khl-crumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 26px;
    font: 500 14px/1.3 var(--f-body); letter-spacing: .05em; color: var(--mist);
}
.khl-crumb a { color: var(--mist); }
.khl-crumb a:hover { color: var(--orange); }
.khl-crumb__sep { color: var(--mist); }
.khl-crumb [aria-current] { color: var(--white); }
.khl-hero .kh-eyebrow { margin-bottom: 14px; }
.khl-hero__title { max-width: 900px; font-size: 49px; line-height: 1.1; letter-spacing: -.01em; color: var(--white); }
.khl-hero__lead { margin-top: 18px; max-width: 680px; font-size: 17px; line-height: 1.6; color: var(--white); }
.khl-hero__tags { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- shell: sticky TOC + one body column ---------- */
.khl-main { padding: 72px 0 var(--sec); background: var(--g-paper); }
/* exactly two grid children (TOC | body); without the body wrapper the
   sections would be auto-placed into the TOC column */
.khl-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.khl-body { min-width: 0; }

.khl-toc {
    position: sticky; top: 112px; min-width: 0;
    max-height: calc(100vh - 136px); overflow-y: auto;
    padding: 24px 22px 22px;
    background: var(--white); border-top: 3px solid var(--orange); border-radius: var(--r); box-shadow: var(--sh-1);
}
.khl-toc__label {
    display: block; margin-bottom: 10px;
    font: 500 14px/1.2 var(--f-body); letter-spacing: .139em; text-transform: uppercase; color: var(--blue);
}
.khl-toc ol { counter-reset: khl; }
.khl-toc li { counter-increment: khl; }
.khl-toc a {
    position: relative; display: block; padding: 9px 0 9px 32px;
    border-bottom: 1px dashed var(--line);
    font-size: 15px; line-height: 1.35; color: var(--ink);
}
.khl-toc li:last-child a { border-bottom: 0; }
.khl-toc a::before {
    content: counter(khl, decimal-leading-zero);
    position: absolute; left: 0; top: 10px;
    font: 600 14px/1.35 var(--f-head); color: var(--orange);
}
.khl-toc a:hover { color: var(--orange); }
.khl-toc__foot {
    margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line);
    font-size: 13px; line-height: 1.5; color: var(--muted);
}
.khl-toc__foot a {
    display: block; margin-top: 4px;
    font: 600 17px/1.3 var(--f-head); color: var(--blue); overflow-wrap: anywhere;
}
.khl-toc__foot a:hover { color: var(--orange); }

/* ---------- sections ---------- */
.khl-sec + .khl-sec { margin-top: 60px; }
.khl-sec > * + * { margin-top: 20px; }
.khl-sec__head { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; align-items: center; margin-bottom: 4px; }
.khl-sec__n {
    width: 52px; height: 52px; border: 2px solid var(--orange); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font: 600 19px/1 var(--f-head); color: var(--orange);
}
.khl-sec__title { font-size: 32px; line-height: 1.15; min-width: 0; }

/* ---------- cards ---------- */
.khl-card {
    position: relative; min-width: 0; padding: 32px 34px;
    background: var(--white); border-radius: var(--r); box-shadow: var(--sh-1);
}
.khl-card--accent { border-left: 3px solid var(--orange); }
.khl-card h3 { font-size: 22px; line-height: 1.25; margin-bottom: 14px; }
.khl-card p { font-size: 15px; line-height: 1.7; }
.khl-card p + p { margin-top: 12px; }
.khl-card p + .khl-facts, .khl-card p + .khl-list,
.khl-card .khl-facts + p, .khl-card .khl-list + p { margin-top: 20px; }
.khl-card a, .khl-stamp a { color: var(--blue); border-bottom: 1px solid var(--mist); transition: color var(--t), border-color var(--t); }
.khl-card a:hover, .khl-stamp a:hover { color: var(--orange); border-bottom-color: var(--orange); }

.khl-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

/* identity block: logo + name */
.khl-id { position: relative; min-height: 48px; padding-left: 64px; margin-bottom: 20px; }
.khl-id > img { position: absolute; left: 0; top: 50%; width: 48px; height: 48px; transform: translateY(-50%); }
.khl-id__name { display: block; font: 700 24px/1.15 var(--f-head); color: var(--ink); }
.khl-id__sub { display: block; margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--muted); }

/* definition rows */
.khl-facts > div {
    display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px;
    padding: 12px 0; border-bottom: 1px solid var(--line);
}
.khl-facts > div:first-child { padding-top: 0; }
.khl-facts > div:last-child { padding-bottom: 0; border-bottom: 0; }
.khl-facts--wide > div { grid-template-columns: 210px minmax(0, 1fr); }
.khl-facts dt { font-size: 14px; line-height: 1.55; letter-spacing: .03em; color: var(--muted); min-width: 0; }
.khl-facts dd { font-size: 15px; line-height: 1.6; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }

/* contact rows: absolutely positioned icon */
.khl-contact li {
    position: relative; padding: 12px 0 12px 38px; border-bottom: 1px dashed var(--line);
    font-size: 15px; line-height: 1.5; color: var(--ink); min-width: 0;
}
/* icon aligned with the small label on top of each row */
.khl-contact li > img { position: absolute; left: 0; top: 14px; width: 22px; height: 22px; }
.khl-contact li:first-child { padding-top: 0; }
.khl-contact li:first-child > img { top: 2px; }
.khl-contact li:last-child { border-bottom: 0; padding-bottom: 0; }
.khl-contact__k { display: block; margin-bottom: 2px; font-size: 13px; letter-spacing: .05em; color: var(--muted); }
.khl-contact a, .khl-contact span:not(.khl-contact__k) { display: block; overflow-wrap: anywhere; }
.khl-card .khl-contact a { border-bottom: 0; color: var(--ink); font: 600 17px/1.35 var(--f-head); }
.khl-card .khl-contact a:hover { color: var(--orange); }

/* check lists */
.khl-list li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.6; color: var(--ink); min-width: 0; }
.khl-list li + li { margin-top: 10px; }
.khl-list li > img { position: absolute; left: 0; top: 3px; width: 18px; height: 18px; }
.khl-list--two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 30px; }
.khl-list--two li + li { margin-top: 0; }

/* price flow: three steps */
.khl-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.khl-flow__step {
    position: relative; min-width: 0; padding: 28px 24px 26px;
    background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--r);
    transition: border-color var(--t), box-shadow var(--t);
}
.khl-flow__step:hover { border-top-color: var(--orange); box-shadow: var(--sh-1); }
.khl-flow__n { position: absolute; right: 20px; top: 14px; font: 600 46px/1 var(--f-head); color: var(--line); }
.khl-flow__step h3 { font-size: 21px; margin-bottom: 10px; padding-right: 44px; }
.khl-flow__step p { font-size: 14px; line-height: 1.65; }

/* blue note band: every text colour restated for the dark background */
.khl-note {
    position: relative; min-width: 0; padding: 32px 34px 32px 124px;
    border-radius: var(--r); color: var(--white);
    background: repeating-linear-gradient(135deg, var(--line-w2) 0 2px, transparent 2px 22px), var(--g-left), var(--blue);
}
.khl-note__ico { position: absolute; left: 34px; top: 32px; width: 66px; height: 66px; border-radius: 50%; background: var(--white); }
.khl-note__ico img { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; transform: translate(-50%, -50%); }
.khl-note h3 { font-size: 23px; line-height: 1.25; color: var(--white); margin-bottom: 12px; }
.khl-note p { font-size: 15px; line-height: 1.7; color: var(--white); }
.khl-note p + p { margin-top: 10px; }
.khl-note a { color: var(--white); border-bottom: 1px solid var(--orange); }
.khl-note a:hover { color: var(--orange); }

/* warning card with icon */
.khl-alert {
    position: relative; min-width: 0; padding: 30px 34px 30px 100px;
    background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: var(--r);
}
.khl-alert > img { position: absolute; left: 34px; top: 30px; width: 44px; height: 44px; }
.khl-alert h3 { font-size: 21px; margin-bottom: 10px; }
.khl-alert p { font-size: 15px; line-height: 1.7; }

/* data subject rights */
.khl-rights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.khl-right {
    min-width: 0; padding: 24px 24px 22px;
    background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: var(--r);
    transition: border-color var(--t), box-shadow var(--t);
}
.khl-right:hover { border-left-color: var(--orange); box-shadow: var(--sh-1); }
.khl-rights > .khl-right:last-child:nth-child(odd) { grid-column: 1 / -1; }
.khl-right__art { display: block; margin-bottom: 8px; font: 500 13px/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
.khl-right h3 { font-size: 20px; margin-bottom: 8px; }
.khl-right p { font-size: 14px; line-height: 1.6; }

/* closing stamp */
.khl-stamp {
    margin-top: 44px; padding-top: 18px; border-top: 1px dashed var(--line);
    font-size: 14px; line-height: 1.6; color: var(--muted);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
    .khl-grid { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
    .khl-toc { padding: 22px 18px 20px; }
    .khl-toc a { font-size: 14px; }
    .khl-sec__title { font-size: 30px; }
    .khl-facts--wide > div { grid-template-columns: 190px minmax(0, 1fr); }
    .khl-flow { gap: 16px; }
}

@media (max-width: 1024px) {
    .khl-hero { padding: 48px 0 52px; }
    .khl-hero::after { width: 260px; height: 260px; right: -40px; bottom: -70px; }
    .khl-hero__title { font-size: 36px; }
    .khl-hero__lead { font-size: 16px; }
    .khl-main { padding: 48px 0 var(--sec); }

    /* TOC turns into a compact chip list above the text */
    .khl-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .khl-toc { position: static; max-height: none; overflow: visible; padding: 20px 20px 18px; }
    .khl-toc ol { display: flex; flex-wrap: wrap; gap: 8px; }
    .khl-toc li { min-width: 0; }
    .khl-toc a, .khl-toc li:last-child a {
        display: inline-block; padding: 7px 14px 7px 12px;
        border: 1px solid var(--line); border-radius: var(--pill); background: var(--white);
        font-size: 14px;
    }
    .khl-toc a:hover { border-color: var(--orange); }
    .khl-toc a::before { position: static; margin-right: 6px; font-size: 13px; }
    .khl-toc__foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
    .khl-toc__foot a { display: inline; margin-top: 0; font-size: 16px; }

    .khl-sec + .khl-sec { margin-top: 52px; }
    .khl-sec__title { font-size: 28px; }
    /* two narrow contact cards: keep the long e-mail address on one line longer */
    .khl-card .khl-contact a { font-size: 16px; }
}

@media (max-width: 768px) {
    .khl-hero { padding: 40px 0 44px; }
    .khl-hero::after { display: none; }
    .khl-crumb { margin-bottom: 20px; }
    .khl-hero__tags { margin-top: 20px; }

    .khl-cards, .khl-flow, .khl-rights { grid-template-columns: minmax(0, 1fr); }
    .khl-rights > .khl-right:last-child:nth-child(odd) { grid-column: auto; }
    .khl-list--two { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .khl-card { padding: 26px 24px; }
    .khl-note { padding: 28px 24px 28px 110px; }
    .khl-note__ico { left: 24px; top: 28px; }
    .khl-alert { padding: 26px 24px 26px 90px; }
    .khl-alert > img { left: 24px; top: 26px; }
    .khl-facts > div, .khl-facts--wide > div { grid-template-columns: 150px minmax(0, 1fr); gap: 12px; }
    .khl-sec + .khl-sec { margin-top: 44px; }
    .khl-sec__title { font-size: 25px; }
}

@media (max-width: 480px) {
    .khl-hero { padding: 40px 0; }
    .khl-hero__title { font-size: 28px; }
    .khl-hero__lead { font-size: 15px; margin-top: 14px; }
    .khl-crumb { font-size: 13px; margin-bottom: 16px; }
    .khl-main { padding: 36px 0 var(--sec); }

    .khl-toc { padding: 16px 16px 14px; }
    .khl-toc ol { gap: 6px; }
    .khl-toc a, .khl-toc li:last-child a { padding: 6px 11px 6px 10px; font-size: 13px; }
    .khl-toc a::before { font-size: 12px; margin-right: 5px; }
    .khl-toc__foot { font-size: 12px; }
    .khl-toc__foot a { font-size: 15px; }

    .khl-sec + .khl-sec { margin-top: 38px; }
    .khl-sec > * + * { margin-top: 14px; }
    .khl-sec__head { grid-template-columns: 42px minmax(0, 1fr); gap: 14px; }
    .khl-sec__n { width: 42px; height: 42px; font-size: 16px; }
    .khl-sec__title { font-size: 22px; }

    .khl-card { padding: 22px 18px; }
    .khl-card h3 { font-size: 19px; margin-bottom: 10px; }
    .khl-card p, .khl-list li, .khl-note p, .khl-alert p { font-size: 14px; }
    .khl-id__name { font-size: 21px; }
    .khl-facts > div, .khl-facts--wide > div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 0; }
    .khl-facts > div:first-child { padding-top: 0; }
    .khl-facts > div:last-child { padding-bottom: 0; }
    .khl-facts dt { font-size: 13px; }
    .khl-card .khl-contact a { font-size: 16px; }

    .khl-flow__step { padding: 24px 20px 22px; }
    .khl-flow__n { font-size: 38px; }
    .khl-note { padding: 24px 18px; }
    .khl-note__ico { position: relative; left: auto; top: auto; display: block; width: 54px; height: 54px; margin-bottom: 14px; }
    .khl-note__ico img { width: 32px; height: 32px; }
    .khl-note h3 { font-size: 20px; }
    .khl-alert { padding: 22px 18px; }
    .khl-alert > img { position: static; width: 40px; height: 40px; margin-bottom: 12px; }
    .khl-alert h3 { font-size: 19px; }
    .khl-right { padding: 20px 18px; }
    .khl-right h3 { font-size: 18px; }
    .khl-stamp { margin-top: 34px; font-size: 13px; }
}

@media (max-width: 375px) {
    .khl-hero__title { font-size: 26px; }
    .khl-card { padding: 20px 16px; }
    .khl-note, .khl-alert { padding: 22px 16px; }
    .khl-id { padding-left: 56px; }
    .khl-id > img { width: 42px; height: 42px; }
    .khl-id__name { font-size: 20px; }
    .khl-sec__title { font-size: 21px; }
    .khl-toc a, .khl-toc li:last-child a { padding: 6px 10px 6px 9px; }
}
