/* ==========================================================================
   Linard Bardill – static site styles
   ========================================================================== */

/* Fonts ------------------------------------------------------------------- */

@font-face {
  font-family: "Neue Helvetica";
  src: url("../assets/fonts/neue-helvetica.woff2") format("woff2"),
       url("../assets/fonts/neue-helvetica.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("../assets/fonts/open-sans-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

/* Tokens ------------------------------------------------------------------ */

:root {
  --font: "Neue Helvetica", Helvetica, Arial, sans-serif;
  --font-nav: "Open Sans", Arial, sans-serif;

  --color-text: #000;
  --color-muted: #666;
  --color-heading: #333;
  --color-link: #2ea3f2;
  --color-border: #d9d9d9;
  --color-toggle-bg: #f4f4f4;
  --color-bg: #fff;

  --header-height: 80px;
  --header-height-scrolled: 54px;

  --container: 1080px;
  --gutter: 5.5%;
  --module-gap: 30px;
  --section-pad: clamp(30px, 4vw, 54px);
  --row-pad: clamp(15px, 2vw, 27px);
}

/* Base -------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  padding-top: var(--header-height);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding-bottom: 10px;
  color: var(--color-heading);
  font-weight: 700;
  line-height: 1em;
}

h1 { font-size: 30px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

p {
  margin: 0;
  padding-bottom: 1em;
}

p:last-child {
  padding-bottom: 0;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0 0 23px 1em;
  line-height: 26px;
}

ul {
  list-style: disc;
}

blockquote {
  margin: 20px 0 30px;
  padding-left: 20px;
  border-left: 5px solid var(--color-link);
}

blockquote p {
  padding-bottom: 0;
}

:focus-visible {
  outline: 2px solid var(--color-link);
  outline-offset: 2px;
}

/* Layout ------------------------------------------------------------------ */

.container {
  position: relative;
  width: 80%;
  max-width: var(--container);
  margin: 0 auto;
}

.section {
  position: relative;
  padding: var(--section-pad) 0;
}

.section--tight-top { padding-top: 0; }
.section--tight-bottom { padding-bottom: 0; }
.section--flush { padding: 0; }
.section--footer { padding-top: 0; padding-bottom: 52px; }

.row {
  display: flex;
  gap: var(--gutter);
  padding: var(--row-pad) 0;
}

.col {
  display: flex;
  flex-direction: column;
  gap: var(--module-gap);
  min-width: 0;
}

.col-4-4 { flex: 0 0 100%; }
.col-3-4 { flex: 0 0 73.625%; }
.col-2-3 { flex: 0 0 64.833%; }
.col-1-2 { flex: 0 0 47.25%; }
.col-1-3 { flex: 0 0 29.6667%; }
.col-1-4 { flex: 0 0 20.875%; }

@media (max-width: 980px) {
  .container {
    width: 80%;
  }

  .section {
    padding: 50px 0;
  }

  .section--tight-top { padding-top: 0; }
  .section--tight-bottom { padding-bottom: 0; }
  .section--flush { padding: 0; }
  .section--footer { padding-top: 0; }

  .row {
    flex-direction: column;
    gap: var(--module-gap);
    padding: 30px 0;
  }

  .col {
    flex-basis: auto;
    width: 100%;
  }

  .image {
    text-align: center;
  }
}

/* Header ------------------------------------------------------------------ */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.4s ease-in-out;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  transition: height 0.4s ease-in-out;
}

.site-header.is-scrolled {
  box-shadow: 0 0 7px rgba(0, 0, 0, 0.1);
}

.site-header.is-scrolled .site-header__inner {
  height: var(--header-height-scrolled);
}

.site-logo {
  display: flex;
  align-items: center;
  height: 54%;
}

.site-logo img {
  width: auto;
  max-height: 100%;
}

.site-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1;
}

.site-nav li + li {
  margin-left: 22px;
}

.site-nav a {
  display: block;
  color: rgba(0, 0, 0, 0.6);
  font-family: var(--font-nav);
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.4s ease-in-out;
}

.page-home .site-nav a {
  color: var(--color-link);
}

.site-nav a:hover {
  opacity: 0.7;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: rgba(0, 0, 0, 0.6);
  font-family: var(--font-nav);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-link);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle__icon {
  position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__icon::before { top: -8px; }
.nav-toggle__icon::after { top: 8px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 980px) {
  :root {
    --header-height: 80px;
    --header-height-scrolled: 80px;
  }

  .site-logo {
    height: 38%;
    max-width: calc(100% - 90px);
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 5%;
    border-top: 3px solid var(--color-link);
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .site-nav li + li {
    margin-left: 0;
  }

  .site-nav a {
    padding: 10px 5%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  }
}

@media (max-width: 767px) {
  .nav-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* Hero -------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 50px 0;
  background-color: #fff;
}

/* Parallax background: js/main.js sets the height and the scroll offset of
   .hero__bg (same behaviour as the former Divi "true parallax"). Without JS,
   or on touch devices, the image simply covers the section. */
.hero__bg-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: url("../assets/images/UH_L8667a.png") top / cover no-repeat;
  will-change: transform;
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
}

.hero__bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: var(--row-pad) 0;
  font-size: 20px;
  font-weight: 700;
}

.hero__link {
  color: var(--color-link);
}

.lang-switch {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 400;
}

.lang-switch a {
  color: var(--color-text);
  font-size: 20px;
  font-weight: 700;
}

.hero__title {
  margin-top: calc(50px + 2 * var(--row-pad) - 6px);
  padding-bottom: 0;
  color: var(--color-text);
  font-size: 100px;
  line-height: 1em;
}

.hero__spacer {
  height: 1500px;
}

.hero__subtitle {
  padding: 0;
  color: var(--color-heading);
  font-size: 100px;
  font-weight: 700;
  line-height: 1em;
}

@media (max-width: 980px) {
  .hero__bar {
    flex-direction: column;
    gap: 0;
  }

  .hero__title,
  .hero__subtitle {
    font-size: 85px;
  }

  .hero__spacer {
    height: 425px;
  }

  .hero--title-below-mobile .hero__title {
    font-size: 65px;
  }
}

@media (max-width: 767px) {
  .hero__title {
    font-size: 50px;
  }

  .hero__subtitle {
    font-size: 35px;
  }

  .hero__spacer {
    height: 300px;
  }

  .hero--title-below-mobile .hero__title {
    order: 1;
    margin-top: 0;
    padding-bottom: 20px;
    font-size: 40px;
  }

  .hero--title-below-mobile .hero__subtitle {
    order: 2;
  }
}

/* Text modules ------------------------------------------------------------ */

.text {
  overflow-wrap: break-word;
}

.text > :last-child {
  padding-bottom: 0;
  margin-bottom: 0;
}

.lead {
  color: var(--color-muted);
  font-size: 40px;
  line-height: 1em;
}

.quote-lg {
  font-size: 30px;
  font-weight: 500;
  line-height: 1em;
}

.quote-lg blockquote {
  margin-top: 0;
}

.body-lg {
  font-size: 25px;
  line-height: 1em;
}

.blog-list p {
  padding-bottom: 0.4em;
}

.statement {
  font-size: 35px;
  font-weight: 700;
  line-height: 1em;
}

.statement-sm {
  font-size: 20px;
  font-weight: 700;
  line-height: 1em;
}

.heading-sm,
.heading-sm h3 {
  font-size: 25px;
  font-weight: 700;
}

.section-title h2,
.name-title h2,
.bio h3,
.article__title {
  color: var(--color-text);
}

.section-title h2 {
  padding-bottom: 0;
  font-size: 30px;
}

.quote-xl {
  font-size: 30px;
  font-weight: 700;
  line-height: 1em;
}

.name-title h2 {
  font-size: 30px;
}

.smiley-title h2 {
  font-size: 100px;
}

.smiley-title img {
  width: 0.74em;
  height: auto;
  vertical-align: baseline;
}

.text-md {
  font-size: 20px;
  font-weight: 500;
}

.text-md h3 {
  font-size: 22px;
  font-weight: 500;
}

.text-md blockquote {
  line-height: 1.1;
}

.bio h3 {
  font-size: 25px;
}

.mt-lg {
  margin-top: 35px;
}

.small {
  font-size: 15px;
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 980px) {
  .quote-lg { font-size: 25px; }
  .body-lg { font-size: 20px; }
  .statement { font-size: 30px; }
  .smiley-title h2 { font-size: 85px; }
}

@media (max-width: 767px) {
  .lead { font-size: 28px; }
  .quote-lg { font-size: 20px; }
  .body-lg,
  .text-md { font-size: 15px; }
  .statement { font-size: 22px; }
  .quote-xl { font-size: 25px; }
  .smiley-title h2 { font-size: 40px; }
  .mt-lg { margin-top: 0; }
}

/* Toggles (quotes) -------------------------------------------------------- */

.toggle {
  padding: 20px;
  border: 1px solid var(--color-border);
  background: var(--color-toggle-bg);
  font-size: 15px;
}

.toggle[open] {
  background: #fff;
}

.toggle summary {
  position: relative;
  padding-right: 30px;
  color: var(--color-muted);
  font-size: 20px;
  font-weight: 700;
  line-height: 1em;
  list-style: none;
  cursor: pointer;
}

.toggle[open] summary {
  color: var(--color-heading);
}

.toggle summary::-webkit-details-marker {
  display: none;
}

.toggle summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ccc;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  transform: translateY(-50%);
}

.toggle[open] summary::after {
  content: "\2212";
}

.toggle-content {
  padding-top: 20px;
  color: var(--color-muted);
}

/* Articles ---------------------------------------------------------------- */

.article__header {
  padding: var(--row-pad) 0 0;
}

.article__title {
  padding-bottom: 10px;
  font-size: 25px;
}

.article__meta {
  padding-bottom: 0;
}

.article .text p:has(> strong:only-child) {
  padding-bottom: 0;
}

/* Catalogue grids (CDs, Bücher) ------------------------------------------- */

.page-title {
  padding: var(--row-pad) 0;
  font-size: 70px;
  font-weight: 700;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 54px 5.5%;
  margin: 0;
  padding: var(--row-pad) 0;
  list-style: none;
  line-height: 1.7;
}

.card img {
  display: block;
  width: auto;
  max-height: 190px;
  margin-bottom: 30px;
}

.card__title {
  padding-bottom: 30px;
  font-size: 18px;
  line-height: 1.2;
}

.card__meta {
  margin: 0;
}

.card__meta dt {
  font-weight: 700;
}

.card__meta dd {
  margin: 0;
}

@media (max-width: 980px) {
  .page-title { font-size: 50px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 479px) {
  .page-title { font-size: 36px; }
  .card-grid { grid-template-columns: 1fr; }
}

/* Buttons ----------------------------------------------------------------- */

.button-wrap {
  padding: var(--row-pad) 0 0;
}

.button {
  display: inline-block;
  padding: 0.3em 1em;
  border: 2px solid var(--color-link);
  border-radius: 3px;
  color: var(--color-link);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.7em;
  transition: all 0.2s;
}

.button:hover {
  border-color: transparent;
  background: rgba(0, 0, 0, 0.05);
  text-decoration: none;
}
