/* Basics: reset, typography, content area.
   Values from design system section 02. */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--hv-buehne);
  color: var(--hv-anthrazit);
  font-family: var(--hv-serif);
  font-size: var(--hv-fs-body);
  line-height: var(--hv-lh-text);
}

/* Chinese page tree: same scale, extended font stack. */
html[lang^="zh"] body { font-family: var(--hv-serif-cjk); }

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

/* No border radius, no shadows (section 10). The only shadow in the
   design is the stage shadow of the page canvas. Set selectively
   instead of through a universal selector so that form plugins are not
   hit unintentionally. */
img, figure, input, textarea, select, button, .hv-page *:where(div, section, aside) {
  border-radius: var(--hv-radius);
  box-shadow: none;
}

h1, h2, h3, h4, h5, h6 { margin: 0 0 var(--hv-gap-innen); font-weight: 400; color: var(--hv-anthrazit); }
h1 { font-size: var(--hv-fs-h1); line-height: var(--hv-lh-tight); letter-spacing: var(--hv-ls-display); }
h2 { font-size: var(--hv-fs-h2); line-height: var(--hv-lh-tight); letter-spacing: var(--hv-ls-display); }
h3 { font-size: var(--hv-fs-h3); line-height: var(--hv-lh-tight); letter-spacing: var(--hv-ls-display); }
h4 { font-size: var(--hv-fs-h4); line-height: var(--hv-lh-tight); }
h5 { font-size: var(--hv-fs-h5); line-height: var(--hv-lh-tight); }
h6 { font-size: var(--hv-fs-h6); line-height: var(--hv-lh-tight); }

p, ul, ol, blockquote, table { margin: 0 0 var(--hv-gap-innen); }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 6px; }

/* Text link: signal red, underlined with 3px offset (section 04). */
a {
  color: var(--hv-signalrot);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Hover: the underline is dropped (section 04). */
a:hover, a:focus { color: var(--hv-tempelrot); text-decoration: none; }

:focus-visible { outline: 2px solid var(--hv-signalrot); outline-offset: 2px; }

.hv-eyebrow {
  font-size: var(--hv-fs-h6);
  line-height: var(--hv-lh-tight);
  letter-spacing: var(--hv-ls-eyebrow);
  color: var(--hv-anthrazit);
}

figure { margin: 0 0 var(--hv-gap-innen); }
/* Image caption 14 / 1.44 everywhere, on mobile too (section 02). */
figcaption { font-size: var(--hv-fs-legende); line-height: var(--hv-lh-text); margin-top: 12px; }

/* Since the version of 21.09. images no longer carry an outline, not
   even on a red background (section 12, row "Images"). */
.hv-auf-rot, .hv-auf-rot h1, .hv-auf-rot h2, .hv-auf-rot h3,
.hv-auf-rot h4, .hv-auf-rot figcaption { color: #fff; }

table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid var(--hv-sandlinie); padding: 12px 10px; text-align: left; vertical-align: top; }
th { font-weight: 700; }

blockquote { border-left: 3px solid var(--hv-sandlinie); padding-left: 20px; }

/* Separator 2px #DFC192, never all around (section 10). */
hr { border: 0; border-top: var(--hv-linie) solid var(--hv-sandlinie); margin: var(--hv-gap-block) 0; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  width: auto; height: auto; margin: 0; padding: 10px 16px;
  clip-path: none;
  background: #fff; color: var(--hv-tempelrot);
}

/* Running text in the content keeps the line width of the content column. */
.entry-content > * { max-width: var(--hv-inhalt); }
.entry-content > .alignwide,
.entry-content > .alignfull,
.entry-content > figure,
.entry-content > .hv-cols { max-width: none; }

/* <picture> is only a wrapper for the WebP fallback and must not
   affect the layout: the img stays the flex or grid item. */
picture { display: contents; }
/* The source element carries no layout. If a picture sits directly in
   a flex container, a source with display:block would otherwise become
   an invisible flex item and shift space-between: that is how the logo
   jumped to the centre in the mobile menu. */
picture > source { display: none; }
