@font-face {
  font-display: swap;
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/atkinson-hyperlegible-v11-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/inter-v13-latin-700.woff2') format('woff2');
}

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

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1, h2, h3, h4 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
  font: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.flow > * + * {
  margin-top: var(--flow-space, 1em);
}

:is(h1, h2, h3) {
    --flow-space: 1.5em;
  }
  
  :is(h1, h2, h3) + * {
    --flow-space: 1em;
  }

:root {
  --color-dark: #252525;
  --color-light: #efefef;
  --color-white: #ffffff;
  --color-primary: #00539B;
  --color-accent: rgb(135, 187, 64);
  --active-link-color: #003366;
  --transparenz: rgba(0, 83, 156, 0.9);
  --transition-effect: 0.3s ease-in-out;
  --size-step-0: clamp(1rem, calc(0.96rem + 0.22vw), 1.13rem);
  --size-step-1: clamp(1.25rem, calc(1.16rem + 0.43vw), 1.5rem);
  --size-step-2: clamp(1.56rem, calc(1.41rem + 0.76vw), 2rem);
  --size-step-3: clamp(1.95rem, calc(1.71rem + 1.24vw), 2.66rem);
  --size-step-4: clamp(2.44rem, calc(2.05rem + 1.93vw), 3.55rem);
}

body {
  background: var(--color-light);
  color: var(--color-dark);
  line-height: 1.6;
  font-family: 'Atkinson Hyperlegible', sans-serif;
  font-size: var(--size-step-0);
  font-weight: 400;
}

.skiplink {
	position: absolute;
	transform: translateX(-100%);
  background-color: var(--color-light);
  color: var(--color-dark);
	z-index: 3;
	left: 0;
	top: 0;
	padding: 20px;
	font-size: 1.25rem;
}

.skiplink:focus {
	transform: translateX(0);
}

h1, h2, h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.1;
}
h1 {
  font-size: var(--size-step-3);
}
h2 {
  font-size: var(--size-step-2);
}
h3 {
  font-size: var(--size-step-1);
}
h1 {
  max-width: 20ch;
}
h2,
h3 {
  max-width: 25ch;
}
dt {
    font-weight: bold;
}

a {
  color: currentColor;
  text-decoration-color: var(--color-dark);
  text-decoration-thickness: 0.3ex;
  text-underline-offset: 0.3ex;
}

footer {
  background-color: rgba(0, 83, 156, 0.2);
  color: var(--color-dark);
  border-top: 1px solid var(--color-primary);
  margin-top: 2em;
  padding: 2em 0;
}

footer h2 {
  font-size: var(--size-step-1);
}

footer a {
  color: var(--color-dark);
  text-decoration-color: var(--color-dark);
  text-decoration-thickness: 0.3ex;
  text-underline-offset: 0.3ex;
}

footer .wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 1rem;
}

.footer-col {
  padding-bottom: 1em;
}

:focus {
  outline: 2px solid #252525;
  outline-offset: 0.2rem;
}

p,
li,
dl {
  max-width: 70ch;
}

dt {
  margin-top: 1rem;
}

article {
  margin-top: 2.5rem;
  font-size: 1.25rem;
}

main:focus {
  outline: none;
}

.wrapper {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.site-head {
  padding: 0.6rem 0;
  background: var(--color-primary);
  border-bottom: 5px solid var(--color-primary);
  color: var(--color-light);
  line-height: 1.1;
}

.site-head :focus {
  outline-color: var(--color-light);
}

.site-head__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0 1rem;
}

.site-head__brand {
  display: block;
}

.navigation ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.8rem;
  padding: 0;
}

.navigation li {
  margin: 0.1rem;
}

.navigation a {
  text-decoration: none;
  color: var(--color-white);
  padding: 0.7rem 1.2rem;
  display: block;
  border: 1px solid var(--primary-color);
  transition: color var(--transition-effect);
}

.navigation a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

nav a.active {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  border-radius: 5px;
}

nav li:last-child a {
  border-radius: 5px;
  color: var(--color-dark);
  background-color: var(--color-accent);
  border: 1px solid var(--color-dark);
}

nav li:last-child a:hover {
  color: var(--color-primary);
  border-radius: 5px;
  background-color: var(--color-light);
}

.burger-menu__trigger {
  display: none;
}

.burger-menu__bar,
.burger-menu__bar::before,
.burger-menu__bar::after {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--color-light);
  border: 1px solid var(--color-light);
  position: absolute;
  border-radius: 3px;
  left: 50%;
  margin-left: -12px;
  transition: transform 350ms ease-in-out;
}

.burger-menu__bar {
  top: 50%;
  transform: translateY(-50%);
}

.burger-menu__bar::before,
.burger-menu__bar::after {
  content: '';
}

.burger-menu__bar::before {
  top: -8px;
}

.burger-menu__bar::after {
  bottom: -8px;
}

.burger-menu[enabled='true'] .burger-menu__trigger {
  display: block;
  width: 2rem;
  height: 2rem; /* Nice big tap target */
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  cursor: pointer;
}

.burger-menu[enabled='true'] .burger-menu__panel {
  position: absolute;
  top: 0;
  left: 0;
  z-index:1000;
  padding: 5rem 1.5rem 2rem 1.5rem;
  width: 100%;
  height: 100%;
  visibility: hidden;
  opacity: 0;
  background: var(--color-primary);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.burger-menu[enabled='true'] .navigation ul {
  display: block;
}

.burger-menu[enabled='true'] .navigation ul > * + * {
  margin-top: 2rem;
}

.burger-menu[enabled='true'] .navigation li {
  font-size: 1.5rem;
}

.burger-menu[enabled='true'][status='open'] .burger-menu__panel {
  visibility: visible;
  opacity: 1;
  transition: opacity 400ms ease;
}

.burger-menu[enabled='true'][status='closed'] .burger-menu__panel > * {
  opacity: 0;
  transform: translateY(5rem);
}

.burger-menu[enabled='true'][status='open'] .burger-menu__panel > * {
  transform: translateY(0);
  opacity: 1;
  transition: transform 500ms cubic-bezier(0.17, 0.67, 0, 0.87) 700ms, opacity 500ms ease 800ms;
}

.burger-menu[enabled='true'][status='open'] .burger-menu__bar::before {
  top: 0;
  transform: rotate(45deg);
}

.burger-menu[enabled='true'][status='open'] .burger-menu__bar::after {
  top: 0;
  transform: rotate(-45deg);
}

.burger-menu[enabled='true'][status='open'] .burger-menu__bar {
  background: transparent;
  border-color: transparent;
  transform: rotate(180deg);
}

ul li::marker {
  color: var(--color-primary);
}

.slider {
	max-width: 800px;
}

.slider ul,
.slider li {
	padding: 0;
	margin: 0;
	list-style-type: none;
}

.slider__slides {
	aspect-ratio: 10 / 7;
	overflow-x: scroll;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	width: 100%;
	white-space: nowrap;
	min-height: 100%;
	transition: transform 500ms;
	display: flex;
	background-color: var(--color-light);
}

.slider__slide {
	position: relative;
	scroll-snap-align: start;
	flex: 0 0 100%;
}

.slider__image {
	position: absolute;
	object-fit: contain;
	height: 100%;
	width: 100%;
	padding: 0;
}

.slider__footer {
	margin-top: 5px;
	gap: 10px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: start;
}

.slider__controls {
	display: flex;
	gap: 5px;
}

.slider__controls > button {
	cursor: pointer;
	border: 3px solid #00539B;
	background-color: #00539B;
	color: white;
	height: 40px;
	aspect-ratio: 1 / 1;
	background-repeat: no-repeat;
	background-position: center;
}

.slider__controls > button:hover,
.slider__controls > button:focus {
	background-color: transparent;
	color: #00539B;
}

.slider [role="tablist"] {
	display: flex;
	gap: 5px;
}

.slider [role="tab"] {
	background-color: transparent;
	padding: 0;
	margin: 0;
	cursor: pointer;
	width: 50px;
	height: 50px;
	border: 2px solid transparent;
}

.slider [role="tab"] img {
	object-fit: cover;
	width: 100%;
	height: 100%;
}

.slider [role="tab"][aria-selected="true"],
.slider__nav-button:hover,
.slider__nav-button:focus {
	border: 2px solid var(--color-primary);
}

.slider [role="tab"][aria-selected="true"] img {
	opacity: 0.7;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2em 0;
  }
  
  .hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  
  .hero-text h1 {
    margin-bottom: 1rem;
  }
  
  .hero-cta {
    display: inline-block;
    background: var(--color-accent);
    border: 1px solid var(--color-dark);
    padding: 0.7rem 1.2rem;
    color: var(--color-dark);
    border-radius: 5px;
    margin-top: 1.5rem;
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  }
  
  .hero-cta:hover {
    background-color: var(--color-light);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
  }
  
  @media screen and (max-width: 768px) {
    .hero {
      grid-template-columns: 1fr;
    }
    
    footer .wrapper {
      display: grid;
      grid-template-columns: 1fr;
      grid-gap: 1rem;
    }

    .footer-col {
      border-bottom: 1px solid rgba(0, 83, 156, 0.5);
      padding-bottom: 1em;
    }
  }

@media (min-width: 500px) {
	.slider__footer {
		align-items: center;
		flex-direction: row;
	}

	.slider [role="tab"] {
		height: 74px;
		width: 74px;
	}
}
