/* Owned by the /k:port-identical agent step: fixes on top of the original's CSS (linked after the page bundle).
   url() relative to this file (a/<host>/...), never root-absolute. Every rule names its reason. */

/* D1 fonts: the export loads Archivo (wdth 62..125, wght 300..900) and Geist Mono 400/500 from
   Google Fonts (css2?family=Archivo:wdth,wght@62..125,300..900&family=Geist+Mono:wght@400;500).
   The same files, fetched once from fonts.gstatic.com (Archivo v25, Geist Mono v6), self-hosted:
   the latin and latin-ext subsets with Google's unicode ranges and its rules (Geist Mono: one
   variable file under both weights, as Google serves it). */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/geist-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/geist-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/geist-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/geist-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* D2 hover states: the export's style-hover values reached the bundle as .scp0 to .scp3 (:hover);
   the controls get the same look on keyboard focus (contract rule 6). Values verbatim from the
   export: "Demo anfragen" background:#E00000;color:#fff, "Funktionen ansehen"
   border-color:rgba(230,244,255,0.5);color:#fff, the feature navigation color:#141012. */
a.scp0:focus-visible { background: #e00000 !important; color: #fff !important; }
a.scp1:focus-visible { border-color: rgba(230, 244, 255, 0.5) !important; color: #fff !important; }
a.scp3:focus-visible { color: #141012 !important; }

/* D10/D11 the legal pages and the 404 in the original's frame (src/ident/local/LegalFrame.astro):
   the template's containers give up their own box; the text stands on the light ground of
   section 02 ("Was ist Kuvo?": background #EDEDF0, column max-width 1180px, 24px gutter), below
   the fixed navigation with the hero's 180px top padding and section 02's 120px bottom padding.
   The type is the original's: h1 as the h2 of section 02 (clamp(34px,3.9vw,56px), line-height 1,
   letter-spacing -0.045em, weight 800, #141012), the lead as its first paragraph (20px/1.55
   #2A2527), h2 as "Für wen?" (28px, -0.03em, weight 750, #141012, its rule above with 22px),
   h3 as the action cards' titles (19px, weight 700, -0.025em), the text as its second paragraph
   (17px/1.6 #5E5A5C, strong #141012 weight 650, the paragraph widths of the original up to
   640px), links in the kicker red #C00010 (hover #FF0000 as the original's a:hover), table
   heads in the kicker's type (Geist Mono 12px, 0.08em, uppercase). The column is at least one
   screen high, so the footer strip of section 07 (#0B0607, 60px padding) follows below it. */
main.ident-legal,
main.notfound {
  display: block;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}
.kl-sec {
  background: #ededf0;
  padding: 180px 24px 120px;
  min-height: 100svh;
}
.kl-col {
  max-width: 1180px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.6;
  color: #5e5a5c;
}
.kl-sec .kl-col h1 {
  margin: 0 0 22px;
  font-size: clamp(34px, 3.9vw, 56px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 800;
  color: #141012;
  text-wrap: balance;
  hyphens: manual;
  overflow-wrap: break-word;
}
.kl-sec .kl-col .lead {
  margin: 0 0 56px;
  max-width: 640px;
  font-size: 20px;
  line-height: 1.55;
  color: #2a2527;
}
.kl-sec .kl-col h2 {
  margin: 56px 0 16px;
  padding-top: 22px;
  border-top: 1px solid rgba(20, 16, 18, 0.12);
  font-size: 28px;
  line-height: normal;
  letter-spacing: -0.03em;
  font-weight: 750;
  color: #141012;
}
.kl-sec .kl-col h3 {
  margin: 28px 0 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #141012;
}
.kl-sec .kl-col :is(p, address, ul, ol) {
  margin: 0 0 16px;
  max-width: 640px;
  font-style: normal;
}
.kl-sec .kl-col :is(ul, ol) {
  padding-left: 1.2em;
}
.kl-sec .kl-col li + li {
  margin-top: 6px;
}
.kl-sec .kl-col strong {
  color: #141012;
  font-weight: 650;
}
.kl-sec .kl-col a {
  color: #c00010;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.kl-sec .kl-col a:hover,
.kl-sec .kl-col a:focus-visible {
  color: #ff0000;
}
.kl-sec .kl-col code {
  font-family: 'Geist Mono', monospace;
  font-size: 0.9em;
}
.kl-sec .kl-col table {
  font-size: 15px;
  line-height: 1.5;
  border-collapse: collapse;
}
.kl-sec .kl-col th {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c00010;
  text-align: left;
}
.kl-foot {
  background: #0b0607;
  color: #e6f4ff;
  padding: 60px 24px;
}
.kl-foot-col {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

/* D21 phone breaks (contract rule 5; the original's own, measured by accept.mjs's phone check
   after D1's fonts, _ident/accept-iter). Each rule only for the widths where the word does not fit
   its box; stacking keeps the original's order and look. */
/* Posteingang rows (grid 96px | text | action): the text column is 53px at 430 ("Beschwerdefrist"
   101px), 13px at 390, 0px at 320; the action cell moves under the text in the second column. */
@media (max-width: 480px) {
  [data-dc-tpl='187'], [data-dc-tpl='193'], [data-dc-tpl='199'], [data-dc-tpl='205'] {
    grid-template-columns: 96px minmax(0, 1fr) !important;
  }
  :is([data-dc-tpl='187'], [data-dc-tpl='193'], [data-dc-tpl='199'], [data-dc-tpl='205']) > :nth-child(3) {
    grid-column: 2;
    justify-self: start;
  }
}
/* KI-Protokoll rows (grid 72px | 120px | text): the text column is 70px at 390 ("Antwortentwurf"
   95px), 0px at 320, and the page 367px wide at 360 and 320; the text moves under the kind in the
   second column. */
@media (max-width: 419px) {
  [data-dc-tpl='342'] {
    grid-template-columns: 72px minmax(0, 1fr) !important;
  }
  [data-dc-tpl='342'] > :nth-child(3) {
    grid-column: 2;
  }
}
/* the hero card's four counters (repeat(4), cells of (100vw - 146px) / 4 with 12px padding): the
   content box is 37px at 390 ("Dringend" 45px at 11px, 8 % under the 75 % floor of a shrink);
   from 370 to 429px the cells get the side padding the word needs (6.5px at 390, the "Dringend"
   cell's 1px border counted, 1px to spare); below 370px that padding falls under 4px, and at 360
   "Später" and at 320 "12" (27px at 24px in 22px) break as well: two rows of two. */
@media (min-width: 370px) and (max-width: 429px) {
  [data-dc-tpl='61'] > div {
    padding-left: calc(((100vw - 146px) / 4 - 48px) / 2) !important;
    padding-right: calc(((100vw - 146px) / 4 - 48px) / 2) !important;
  }
}
@media (max-width: 369px) {
  [data-dc-tpl='61'] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
/* Klienten counters (repeat(3)): 39px content box at 320 ("Aufgaben" 52px, "128" 49px at 28px);
   one column. */
@media (max-width: 355px) {
  [data-dc-tpl='307'] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
/* "100 % datenschutzkonform" (24px): "datenschutzkonform" 224px in a 210px box at 320; the size
   that fits with 5px to spare, 21.9px (91 %). */
@media (max-width: 336px) {
  [data-dc-tpl='122'] {
    font-size: 21.9px !important;
  }
}
/* "Die Funktionen" (clamp(56px, 9vw, 128px)): "Funktionen" 294px at 56px in a 272px column at 320;
   the size that fits the column with 5px to spare (50.9px at 320, 91 %). */
@media (max-width: 346px) {
  [data-dc-tpl='147'] {
    font-size: calc((100vw - 53px) * 56 / 294) !important;
  }
}
/* D26 "Beratung." (clamp(84px, 18vw, 280px), 84px below 467px): its box is 400.7px at 84px (394px
   glyphs and the 0.04em side padding). Its column is 100vw - 48px: it grows past the column at
   430 (6px) and the section cuts it at 390 (2px, as in the original) and at 320 (37px). From 454px
   down the word takes the size that fits its column with 5px to spare, (100vw - 53px) * 84 / 400.7
   (79px at 430, 70.6px at 390, 84 % and more); where that size would fall under 75 % (63px, below
   354px) it stays at 63px and its own row (the flex row around it) reaches out to 305.7px, the
   word's box at 63px with 5px to spare, by equal negative side margins (-16.9px at 320), so the
   word fits the screen inside the section's padding. The photo below overlaps the word by the
   same share as in the original: its margin-top -70px scales with the word's size. */
@media (min-width: 354px) and (max-width: 453px) {
  [data-dc-tpl='139'] {
    font-size: calc((100vw - 53px) * 84 / 400.7) !important;
  }
  [data-dc-tpl='140'] {
    margin-top: calc((100vw - 53px) * -70 / 400.7) !important;
  }
}
@media (max-width: 353px) {
  [data-dc-tpl='139'] {
    font-size: 63px !important;
  }
  [data-dc-tpl='138'] {
    margin-left: calc((100vw - 48px - 305.7px) / 2) !important;
    margin-right: calc((100vw - 48px - 305.7px) / 2) !important;
    width: auto !important;
    align-self: stretch;
  }
  [data-dc-tpl='140'] {
    margin-top: -52.5px !important;
  }
}
/* D27 the action "Frist 24.12. übernehmen" of the first Posteingang row (nowrap, 148px) under the
   text in the second column (D21): the column is 100vw - 202px, the card cuts the action 9px at 320;
   below 334px (cut, plus 5px) it spans both columns of its row, under the badge and the text. */
@media (max-width: 333px) {
  [data-dc-tpl='187'] > :nth-child(3) {
    grid-column: 1 / -1;
  }
}
/* D21 "Die KI bereitet vor, Sie entscheiden." (clamp(48px, 7.2vw, 104px)): "entscheiden." 292px at 48px
   in a 272px box at 320; the size that fits with 5px to spare (43.9px at 320, 91 %). */
@media (max-width: 344px) {
  [data-dc-tpl='352'] {
    font-size: calc((100vw - 53px) * 48 / 292) !important;
  }
}
/* D24 the navigation pill (home and the legal frame) on narrow phones, measured unscaled
   (_ident/measure/port-fix, capture at 320 and 356): logo 102px, link column 80.1px ("Datenschutz"),
   button 97.3px ("anfragen" 57.3px plus 40px padding) and two 16px gaps need 311.4px; the pill's
   content box is 254px at 320 (the button 57px past it, "anfragen" 4px past at 320 in accept's word
   check) and 290px at 356. Below 383px the pill's parts are scaled together by
   s = (100vw - 39px) / 343.4 (0.818 at 320, 0.923 at 356, 1 at 382.4), the size at which
   311.4 s plus 5px fits the content box 100vw - 34px - 32 s: logo height, link and button type,
   paddings and gaps, the original's proportions unchanged (contract rule 5, scaled). */
@media (max-width: 382px) {
  [data-dc-tpl='7'] {
    padding: calc((100vw - 39px) * 10 / 343.4) calc((100vw - 39px) * 10 / 343.4) calc((100vw - 39px) * 10 / 343.4) calc((100vw - 39px) * 22 / 343.4) !important;
    gap: calc((100vw - 39px) * 16 / 343.4) !important;
  }
  [data-dc-tpl='9'] {
    height: calc((100vw - 39px) * 28 / 343.4) !important;
  }
  [data-dc-tpl='10'] {
    font-size: calc((100vw - 39px) * 14 / 343.4) !important;
    gap: calc((100vw - 39px) * 28 / 343.4) !important;
  }
  [data-dc-tpl='16'] {
    padding: calc((100vw - 39px) * 11 / 343.4) calc((100vw - 39px) * 20 / 343.4) !important;
    font-size: calc((100vw - 39px) * 14 / 343.4) !important;
    gap: calc((100vw - 39px) * 8 / 343.4) !important;
  }
}
/* D11 the legal text below the navigation on phones: the pill's links wrap into a column there
   and its bottom stands at 236px at 390 (accept-iter legal shot), so the text starts 280px down
   from 560px width down (the hero of the original lets the pill cover its first line there). */
@media (max-width: 560px) {
  .kl-sec {
    padding-top: 280px;
  }
}
/* D12 the Kuvo marks in the Bildnachweis are light: their thumbnails on the hero's dark ground */
.kl-sec .kl-col table.bildnachweis img.on-dark {
  background: #0b0607;
  padding: 6px;
}
/* D25 the Bildnachweis table on phones (_ident/measure/port-fix): its columns need 355.7px at least
   (image 96px = 72px picture and 2 x 12px padding, "Verwendung" 105.6px, "Urheber / ©" 81.1px,
   "Quelle" 73px), wider than the 342px column at 390 (the last column ran under the scroll edge);
   below 404px the picture column is 40px with 6px cell padding, the cells' type 13px and the
   heads 10px, about 251px at 320 in a 272px column, so the table fits without scrolling. */
@media (max-width: 403px) {
  .kl-sec .kl-col table.bildnachweis {
    font-size: 13px;
  }
  .kl-sec .kl-col table.bildnachweis :is(th, td) {
    padding: 6px;
  }
  .kl-sec .kl-col table.bildnachweis th {
    font-size: 10px;
  }
  .kl-sec .kl-col table.bildnachweis img {
    width: 40px;
    max-width: 40px;
  }
  .kl-sec .kl-col table.bildnachweis img.on-dark {
    padding: 4px;
  }
}
/* D12 the KainoAttribution word mark on the Impressum draws in its own colour: the legal links'
   red (.kl-sec .kl-col a) is not for it */
.kl-sec .kl-col .kaino-attribution__logo {
  color: inherit;
  text-decoration: none;
}
