:root {
  --color-primary: #003c58;
  --color-accent: #b0d243;
  --color-white: #ffffff;
  --color-text: #003c58;

  --container: min(100% - 12vw, 1380px);
  --font-main: "urw-din", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  background: #ffffff;
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-weight: 400;
  font-style: normal;
  color: var(--color-text);
  background: #ffffff;
  line-height: 1.35;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.75;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Startseite */

.home {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto auto;
  background: #ffffff;
}

.hero {
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  min-height: 76svh;
  padding-block: clamp(4rem, 8vw, 9rem);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 7vw, 7rem);
}

.hero__headline {
  margin: 0;
  max-width: 1280px;
  font-size: clamp(1.9rem, 2.75vw, 2.45rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.hero__headline span {
  color: var(--color-accent);
}

.hero__logo {
  width: clamp(180px, 20vw, 300px);
  height: auto;
}

.contact {
  background: #ffffff;
  padding-block: clamp(2rem, 3.5vw, 3.5rem);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.25fr 1.25fr 1.2fr auto;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: end;
}

.contact p {
  margin: 0;
  font-size: clamp(1rem, 1.15vw, 1.875rem);
  letter-spacing: 0.03em;
  line-height: 1.45;
}

.contact strong {
  font-weight: 500;
}

.contact__links {
  display: flex;
  gap: clamp(1.25rem, 2vw, 2.5rem);
  font-size: clamp(0.9rem, 0.95vw, 1rem);
  letter-spacing: 0.03em;
}

/* Unterseiten */

.site-header {
  background: var(--color-primary);
  padding-block: clamp(1.4rem, 2.2vw, 2.2rem);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-header img {
  width: clamp(150px, 14vw, 230px);
  height: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: clamp(1.25rem, 2vw, 2.25rem);
  color: var(--color-white);
  font-size: clamp(0.9rem, 0.9vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 1;
}

.content {
  padding-block: clamp(5rem, 9vw, 9rem);
}

.content__inner {
  width: min(100% - 12vw, 900px);
  margin-inline: auto;
}

.content h1 {
  margin: 0 0 2rem;
  color: var(--color-accent);
  font-size: 4rem;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.content h2 {
  margin: clamp(2.25rem, 3.5vw, 3.5rem) 0 0.75rem;
  font-size: clamp(1.35rem, 1.7vw, 1.75rem);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: 0.035em;
}

.content h3 {
  margin: 2rem 0 0.65rem;
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.content h4 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.025em;
}

.content p,
.content li {
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  line-height: 1.55;
  letter-spacing: 0.025em;
}

.content ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Tablet */

@media (max-width: 900px) {
  .contact__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .contact__links {
    align-self: start;
  }
}

/* Smartphone Portrait */

@media (max-width: 640px) and (orientation: portrait) {
  :root {
    --container: min(100% - 3rem, 1380px);
  }

  .hero {
    min-height: auto;
    padding-block: 8rem;
  }

  .hero__inner {
    gap: 3rem;
  }

  .hero__headline {
    max-width: 100%;
    font-size: clamp(1.35rem, 6.2vw, 1.75rem);
    line-height: 1.42;
    letter-spacing: 0.025em;
  }

  .hero__logo {
    width: clamp(180px, 52vw, 230px);
  }

  .contact {
    padding-block: 3rem 4rem;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .contact p {
    font-size: clamp(1.05rem, 5vw, 1.25rem);
    line-height: 1.45;
    letter-spacing: 0.025em;
  }

  .contact__links {
    gap: 1.5rem;
    padding-top: 0.25rem;
    font-size: 0.95rem;
  }

  .site-header {
    padding-block: 1.25rem;
  }

  .site-header__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .site-header img {
    width: clamp(120px, 34vw, 160px);
  }

  .site-nav {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .content {
    padding-block: 5rem 4rem;
  }

  .content__inner {
    width: min(100% - 3rem, 900px);
  }

  .content h1 {
    font-size: clamp(2.2rem, 10vw, 3rem);
    margin-bottom: 1.75rem;
    letter-spacing: 0.03em;
  }

  .content h2 {
    font-size: 1.2rem;
    margin: 2rem 0 0.65rem;
  }

  .content h3 {
    font-size: 1rem;
    margin: 1.5rem 0 0.5rem;
  }

  .content h4 {
    font-size: 0.9rem;
    margin: 1.25rem 0 0.45rem;
  }

  .content p,
  .content li {
    font-size: 0.95rem;
    line-height: 1.55;
    letter-spacing: 0.015em;
  }
}

/* Smartphone Landscape */

@media (orientation: landscape) and (max-width: 980px) {
  :root {
    --container: min(100% - 6rem, 1380px);
  }

  .hero {
    min-height: auto;
    padding-block: 2.5rem;
  }

  .hero__inner {
    gap: 1.75rem;
  }

  .hero__headline {
    max-width: 760px;
    font-size: 1rem;
    line-height: 1.3;
    letter-spacing: 0.018em;
  }

  .hero__logo {
    width: 140px;
  }

  .contact {
    padding-block: 2rem 2.5rem;
  }

  .contact__grid {
    grid-template-columns: 1.2fr 1.2fr 1fr auto;
    gap: 1.5rem;
    align-items: start;
  }

  .contact p {
    font-size: 0.8rem;
    line-height: 1.3;
    letter-spacing: 0.015em;
  }

  .contact__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.8rem;
    line-height: 1.15;
  }

  .site-header {
    padding-block: 1rem;
  }

  .site-header__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .site-header img {
    width: 130px;
  }

  .site-nav {
    font-size: 0.8rem;
    gap: 1rem;
    font-weight: 400;
  }

  .content {
    padding-block: 4rem 3rem;
  }

  .content__inner {
    width: min(100% - 6rem, 900px);
  }

  .content h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
  }

  .content h2 {
    font-size: 1.1rem;
    margin: 2rem 0 0.65rem;
  }

  .content h3 {
    font-size: 0.9rem;
    margin: 1.5rem 0 0.5rem;
  }

  .content h4 {
    font-size: 0.82rem;
    margin: 1.15rem 0 0.4rem;
  }

  .content p,
  .content li {
    font-size: 0.72rem;
    line-height: 1.45;
    letter-spacing: 0.01em;
  }
}