/* 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 400..900), Libre Caslon Text (400, 700,
   400 italic) and IBM Plex Mono (400, 500) from Google Fonts
   (css2?family=Archivo:wdth,wght@62..125,400..900&family=Libre+Caslon+Text:ital,wght@0,400;0,700;1,400&family=IBM+Plex+Mono:wght@400;500).
   The same files, fetched once from fonts.gstatic.com (Archivo v25, Libre Caslon Text v5, IBM Plex
   Mono v23), self-hosted with Google's @font-face rules: the latin and latin-ext subsets with their
   unicode ranges, Archivo one variable file with font-stretch 62% 125%. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/archivo-400-900-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: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/archivo-400-900-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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-400-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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-400-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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-500-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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-500-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: 'Libre Caslon Text';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/libre-caslon-text-italic-400-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: 'Libre Caslon Text';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/libre-caslon-text-italic-400-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: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/libre-caslon-text-400-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: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/libre-caslon-text-400-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: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/libre-caslon-text-700-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: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/libre-caslon-text-700-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 .scp5 (:hover);
   the controls get the same look on keyboard focus (contract rule 6), with the template's focus
   ring. Values verbatim from the export: nav items color #f2c230 (scp0); "Zeitreise starten" and
   "Ganze Geschichte" background #f1eee7 (scp1); "Preise & Zeiten" border-color and color #f2c230
   (scp2); the ink buttons background #f2c230, color #131210 (scp3); the slope drawing
   border-color #f2c230 (scp4); "Anfahrt & Kontakt" background #f1eee7, color #131210 (scp5); the
   text links of the export's a:hover color #f2c230. */
.scp0:focus-visible { color: rgb(242, 194, 48) !important; }
.scp1:focus-visible { background: rgb(241, 238, 231) !important; }
.scp2:focus-visible { border-color: rgb(242, 194, 48) !important; color: rgb(242, 194, 48) !important; }
.scp3:focus-visible { background: rgb(242, 194, 48) !important; color: rgb(19, 18, 16) !important; }
.scp4:focus-visible { border-color: rgb(242, 194, 48) !important; }
.scp5:focus-visible { background: rgb(241, 238, 231) !important; color: rgb(19, 18, 16) !important; }
a:not([class]):focus-visible { color: #f2c230; }
/* D2 the links whose inline style is the export's expanded `all: unset` (outline: unset, outline-
   offset: unset: the word mark of every page and the legal frame, the four album prints on home)
   lose the template's :where(:focus-visible) ring to that inline style; the ring again. */
a[data-ident-link]:focus-visible {
  outline: 2px solid var(--color-accent) !important;
  outline-offset: 2px !important;
}

/* D3 photos in black and white: the export sets image-slot{filter:grayscale(1) contrast(1.1)} on
   every image slot (its readme: "Fotos immer S/W"); prerender flattened the slots into
   div[data-ident-slot], so the rule follows them there. */
[data-ident-slot='image-slot'] {
  filter: grayscale(1) contrast(1.1);
}

/* D6 reduced motion: the export's own motion (the T-bars on the rope, keyframes tbar 18s linear
   infinite; the status dot, keyframes blink 2s infinite; the chronicle's opacity .4s and the
   progress bar's height .3s transitions) stops for a visitor who asks for reduced motion. */
@media (prefers-reduced-motion: reduce) {
  [style*='tbar'],
  [style*='blink'] {
    animation: none !important;
  }
  [data-screen-label='Start – Zeitreise'] article,
  [data-screen-label='Geschichte – Chronik'] article,
  [data-screen-label='Start – Zeitreise'] [style*='transition'],
  [data-screen-label='Geschichte – Chronik'] [style*='transition'] {
    transition: none !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 (position static: the footer stands right below
   the Shell's root div, absolute at top: 100%); the header is fixed at the top, its hidden copy
   holds its height. The legal text on the paper ground #f1eee7 in ink #131210, set like the
   original's content sections ("Kontakt – Inhalt": max-width 1360px, padding clamp(56px,7vw,96px)
   clamp(20px,4vw,48px)): h1 as the section heading "Pistenplan" (Archivo, font-stretch 62%, 900,
   uppercase, clamp(48px,6vw,88px), line-height .94), h2 as the subheads of "Ein Lift, eine Piste"
   (Archivo 70 %, 800, uppercase, 26px) under their 2px ink rule with 20px above the text, h3 the
   same at 19px, the lead as the page heads' paragraph (19px/1.6), the text as the tariff note
   (Libre Caslon Text 18px/1.6, at most 34em as the page heads' paragraph), links with the 3px
   yellow line of the contact links (border-bottom 3px solid #f2c230 as a text decoration) and the
   export's a:hover colour, table heads in the tariff table's mono label (IBM Plex Mono 11px,
   0.16em, uppercase) with its 2px and 1px ink rules. */
main.ident-legal,
main.notfound {
  display: block;
  position: static;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}
.lf-spacer {
  visibility: hidden;
  position: relative !important;
}
.lf-foot {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
}
.lf-sec {
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) clamp(20px, 4vw, 48px);
  color: #131210;
  font-size: 18px;
  line-height: 1.6;
}
.lf-sec .lf-col h1 {
  margin: 0 0 28px;
  font-family: Archivo, sans-serif;
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
  /* "Datenschutzerklärung" (9.8831 x the size, heading-fit) fits the column with 5px to spare: below 520px the size the column holds */
  font-size: min(clamp(48px, 6vw, 88px), calc((100vw - 2 * clamp(20px, 4vw, 48px) - 5px) / 9.8831));
  line-height: 0.94;
  --fuge: inline-block;
}
.lf-sec .lf-col .lead {
  margin: 0 0 56px;
  max-width: 34em;
  font-size: 19px;
  line-height: 1.6;
  color: #131210;
}
.lf-sec .lf-col h2 {
  margin: 56px 0 16px;
  padding-top: 20px;
  border-top: 2px solid #131210;
  font-family: Archivo, sans-serif;
  font-stretch: 70%;
  font-weight: 800;
  text-transform: uppercase;
  /* "Unternehmensgegenstand" (11.9946 x the size, heading-fit) fits the column with 5px to spare: below 357px the size the column holds */
  font-size: min(26px, calc((100vw - 2 * clamp(20px, 4vw, 48px) - 5px) / 11.9946));
  line-height: 1.1;
}
.lf-sec .lf-col h3 {
  margin: 32px 0 10px;
  font-family: Archivo, sans-serif;
  font-stretch: 70%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 19px;
  line-height: 1.1;
}
.lf-sec .lf-col :is(p, address, ul, ol) {
  margin: 0 0 16px;
  max-width: 34em;
  font-style: normal;
}
.lf-sec .lf-col :is(ul, ol) {
  padding-left: 1.2em;
}
.lf-sec .lf-col li + li {
  margin-top: 6px;
}
.lf-sec .lf-col strong {
  font-weight: 700;
}
.lf-sec .lf-col a {
  color: inherit;
  text-decoration: underline 3px #f2c230;
  text-underline-offset: 0.2em;
}
.lf-sec .lf-col a:hover,
.lf-sec .lf-col a:focus-visible {
  color: #f2c230;
}
.lf-sec .lf-col code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9em;
}
.lf-sec .lf-col table {
  font-size: 17px;
  line-height: 1.5;
  border-collapse: collapse;
  border-top: 2px solid #131210;
}
.lf-sec .lf-col :is(th, td) {
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid #131210;
  text-align: left;
  vertical-align: top;
}
.lf-sec .lf-col th {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom-width: 2px;
}
.lf-sec .lf-col .kaino-attribution__logo {
  color: inherit;
  text-decoration: none;
}

/* D24 phone breaks of the original (contract rule 5), measured after D1's fonts by accept.mjs's
   phone check (_ident/accept-iter) and src/ident/heading-fit.mjs; each rule only for the widths
   where the word does not fit its box, the size the word needs with 5px to spare. */
/* Home, "Heute offen": "offen" is 112px at 48px (2.333 x the size); its cell's content box is
   50vw - 71px (109px at 360, 89px at 320); it breaks below 376px. The size that fits:
   (50vw - 76px) x 48 / 112 (44.6px at 360, 36px at 320, 75 % of 48px). */
@media (max-width: 375px) {
  [data-dc-tpl='126'] {
    font-size: calc((50vw - 76px) * 48 / 112) !important;
  }
}
/* /preise/ h1 "Liftkarten" (clamp(64px,10vw,160px), 64px on phones): 4.541 x the size, its column
   100vw - 40px; it breaks below 336px. The size that fits: (100vw - 45px) / 4.541 (60.6px at 320,
   94.6 %). */
@media (max-width: 335px) {
  h1[data-dc-tpl='324'] {
    font-size: calc((100vw - 45px) / 4.541) !important;
  }
}
/* /galerie/ h1 "Fotoalbum": 4.5681 x the size; it breaks below 338px. The size that fits:
   (100vw - 45px) / 4.5681 (60.2px at 320, 94 %). */
@media (max-width: 337px) {
  h1[data-dc-tpl='376'] {
    font-size: calc((100vw - 45px) / 4.5681) !important;
  }
}
/* /preise/ tariff head "Erwachsene" (IBM Plex Mono 11px, 0.16em): 84px, in its column
   (100vw - 72px) / 3.4 (the 1.4fr | 1fr | 1fr grid with two 16px gaps: 72.9px at 320); it breaks
   below 358px. The size that fits with 5px to spare: ((100vw - 72px) / 3.4 - 5px) x 11 / 84
   (8.9px at 320, 81 %); its 0.16em letter spacing shrinks with it. */
@media (max-width: 357px) {
  [data-dc-tpl='365'] {
    font-size: calc(((100vw - 72px) / 3.4 - 5px) * 11 / 84) !important;
  }
}

/* D26 Home hero h1 "Der Mahdlift." (its first line a white-space: nowrap span; clamp(76px,11vw,168px),
   76px on phones): the span is 415px wide at 76px, 5.4605 x the size (_ident/measure/port-fit-spec,
   home row 14); the hero's column is 100vw - 40px below 500px, so the root div's overflow-x clip cuts
   the line from 460px down (the original's own break: 25px at 430, 45px at 390, 115px at 320, step-6
   fit run). The whole h1 takes the size at which the line fits the column with 5px to spare,
   (100vw - 45px) / 5.4605 (63.2px at 390, 83 %; 50.4px at 320: no size from 75 % fits, 57px makes it
   311px in 280px), both lines together, so the heading keeps its two-line composition. */
@media (max-width: 459px) {
  h1[data-dc-tpl='32'] {
    font-size: calc((100vw - 45px) / 5.4605) !important;
  }
}

/* D27 Home "Start – Der Lift", the slope drawing (a.scp4, LinkPistenplanKarte): aspect-ratio 16/9
   with min-height 240px on a content box (the button's all: unset leaves box-sizing content-box),
   so it is at least 426.7px + 4px border = 430.7px wide and cuts out of the 100vw - 40px column below
   471px (the original's own break, harvest shot 390x844: "1.289 m" past the screen edge; fit run:
   61px at 390, 131px at 320). Below 471px the min-height goes: the drawing keeps its 16:9 (the slope
   of its clip-path and of the yellow line, rotate(-19deg), belong to that ratio) at the column's width,
   196.9px high at 390 and 157.5px at 320. */
@media (max-width: 470px) {
  a[data-dc-tpl='118'] {
    min-height: 0 !important;
  }
}

/* D28 /der-lift/ "ca. 360 m · 67 Hm · Piste leicht (blau)" (IBM Plex Mono 12px, 0.12em, padding
   8px 14px, nowrap, centred in the profile box): 365px wide, its text 337px = 28.08 x the size
   (port-fit-spec der-lift row 28); the box's inner width is 100vw - 44px below 500px, so the box cuts
   the text below 381px (31px on each side at 320, step-6 fit run; at 390 only the label's yellow
   padding meets the box edges, as in the original). Below 381px the label takes the size at which it
   fits with 5px on each side, its padding with it ((12px + 28px) / 12 = 30.41 x the size), never
   below 75 % (9px: 273.7px in 276px at 320). */
@media (max-width: 380px) {
  div[data-dc-tpl='291'] {
    font-size: max(9px, calc((100vw - 54px) / 30.41)) !important;
    padding: calc(max(9px, calc((100vw - 54px) / 30.41)) * 8 / 12) calc(max(9px, calc((100vw - 54px) / 30.41)) * 14 / 12) !important;
  }
}

/* D29 the Bildnachweis table of the Impressum on phones (our own addition): its columns need 376.1px
   at least (picture 96px = 72px and 2 x 12px padding, "Verwendung" 107.6px, "Urheber / ©" 82.5px,
   "Quelle" 90px; port-fit-spec impressum table), wider than the legal column (100vw - 40px) below
   416px; the scroll wrapper cut "Quelle" (48px at 320, step-6 fit run). Below 416px the picture
   column is 40px with 6px cell padding, the cells' type 13px and the heads 10px, so the table fits
   the column and keeps its table semantics (as kuvo-at D25). */
@media (max-width: 415px) {
  .lf-sec .lf-col table.bildnachweis {
    font-size: 13px;
  }
  .lf-sec .lf-col table.bildnachweis :is(th, td) {
    padding: 6px;
  }
  .lf-sec .lf-col table.bildnachweis th {
    font-size: 10px;
    letter-spacing: 0.08em;
  }
  .lf-sec .lf-col table.bildnachweis img {
    width: 40px;
    max-width: 40px;
  }
}
