/* 3dmedium.de – Johannes Grieb */

@font-face {
  font-family: 'Catamaran';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/catamaran-latin.woff2') format('woff2');
}

:root {
  --green: #009839;
  --dark: #263234;
  --text: #888a8b;
  --heading: #404040;
  --footer-text: #e2e2e2;
  --bg: #ffffff;

  --font-heading: 'Catamaran', Arial, Helvetica, 'Nimbus Sans L', sans-serif;
  --font-body: Arial, Helvetica, 'Nimbus Sans L', sans-serif;

  --wrap: 1160px;
  --gutter: 40px;
  --header-top: 40px;
  --header-mid: 91px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 26px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--heading);
  margin: 0 0 20px;
}
h1 { font-size: 48px; line-height: 58px; font-weight: 700; }
h2 { font-size: 32px; line-height: 40px; font-weight: 700; margin-top: 40px; }
h3 { font-size: 26px; line-height: 32px; font-weight: 600; }
h4 { font-size: 24px; line-height: 30px; font-weight: 600; }
h5 { font-size: 20px; line-height: 26px; font-weight: 600; }
h6 { font-size: 18px; line-height: 24px; font-weight: 600; }

p, ul, ol { margin: 0 0 20px; }

.wrap {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--dark);
  color: #fff;
}

.header-top {
  height: var(--header-top);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: var(--header-top);
  white-space: pre;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-mid { height: var(--header-mid); }
.header-mid .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.logo { display: block; flex: 0 0 auto; line-height: 0; }
.logo img { width: 219px; height: auto; }

.navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
}
.navigation a {
  display: block;
  padding: 0 15px;
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 35px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s;
}
.navigation a:hover,
.navigation .current > a { color: #fff; }
.navigation .current > a { box-shadow: inset 0 -3px 0 var(--green); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  position: relative;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
  transition: transform 0.2s, background-color 0.2s;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Main ---------- */

.site-main {
  flex: 1 0 auto;
  padding-top: calc(var(--header-top) + var(--header-mid));
}

.headline {
  min-height: 350px;
  display: flex;
  align-items: center;
}
.headline .wrap { width: 100%; }
.headline h1 { margin-bottom: 10px; }
.headline .subtitle {
  margin: 0;
  white-space: pre-line;
}

.content { padding-top: 50px; padding-bottom: 50px; }
.content > :first-child { margin-top: 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--dark);
  color: var(--footer-text);
  border-top: 1px solid #ced1d6;
  font-size: 14px;
  line-height: 22px;
  text-transform: uppercase;
  text-align: center;
}
.site-footer .wrap { padding-top: 25px; padding-bottom: 25px; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  :root { --gutter: 20px; }
  h1 { font-size: 40px; line-height: 48px; }
  .headline { min-height: 260px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0;
  }
  .nav-open .navigation { display: block; }
  .navigation ul { flex-direction: column; gap: 0; }
  .navigation a { padding: 8px var(--gutter); }
  .navigation .current > a { box-shadow: inset 3px 0 0 var(--green); }
}

@media (max-width: 600px) {
  :root { --header-top: 34px; --header-mid: 76px; }
  body { font-size: 16px; line-height: 24px; }
  h1 { font-size: 32px; line-height: 40px; }
  h2 { font-size: 26px; line-height: 32px; }
  h4 { font-size: 20px; line-height: 26px; }
  .header-top { font-size: 17px; }
  .logo img { width: 170px; }
  .headline { min-height: 200px; }
}
