@font-face {
  font-family: "Writer";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/open-sans.woff2") format("woff2");
}

:root {
  --green: #006817;
  --green-dark: #003f0e;
  --header-bg: rgba(245, 245, 245, .95);
  --max: 1170px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Writer", "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 10px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 15px; }
.center { text-align: center; }
.section { padding: 50px 0; }
.section-title { font-size: 46px; font-weight: 700; text-align: center; margin: 0 0 30px; }
.divider { border: 0; border-top: 1px solid #e5e5e5; margin: 0; }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: var(--header-bg); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo img { height: 40px; width: auto; }
.nav > ul { list-style: none; display: flex; margin: 0; padding: 0; }
.nav li { position: relative; }
.nav > ul > li > a {
  display: flex; align-items: center; gap: 6px;
  height: 80px; padding: 0 13px;
  color: #000; text-transform: uppercase; font-size: 16px;
}
.nav > ul > li > a:hover, .nav > ul > li > a.active {
  color: var(--green); background: rgba(0,0,0,.04); text-decoration: none;
  box-shadow: inset 0 -2px 0 var(--green);
}
.nav svg { width: 16px; height: 16px; fill: currentColor; }
.nav .caret { width: 10px; height: 10px; }
.sub {
  list-style: none; margin: 0; padding: 8px 0;
  position: absolute; right: 0; top: 80px; min-width: 200px;
  background: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.12);
  display: none;
}
.sub a { display: block; padding: 8px 20px; color: #000; }
.sub a:hover { color: var(--green); background: #f5f5f5; text-decoration: none; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.nav-toggle, .nav-btn { display: none; }

/* Bildbaender mit festem Hintergrund */
.band { background-size: cover; background-position: center; background-attachment: fixed; }
.band--hero { height: 221px; background-image: url("../img/hero.jpg"); }
.band--team { height: 201px; background-image: url("../img/band-team.jpg"); }
.band--kontakt { height: 333px; background-image: url("../img/band-kontakt.jpg"); }

/* Zitat */
.quote { padding: 75px 0 50px; text-align: center; }
.quote .icon { width: 28px; height: 28px; fill: #9ebb9f; margin: 0 auto 10px; }
.quote blockquote { margin: 0 auto 15px; max-width: 1000px; font-size: 24px; font-style: italic; line-height: 1.35; }
.quote .more { font-size: 16px; font-style: italic; }
.quote .name { margin-top: 30px; font-size: 14px; }
.quote .company { font-size: 14px; }

/* Ueber uns */
.about { text-align: center; font-size: 18.6px; padding: 50px 0 60px; }
.about p { max-width: 1100px; margin: 0 auto 16px; }
.about .contact { margin-top: 30px; }
.about .contact p { margin-bottom: 14px; }

/* Team */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 10px 60px; }
.team-grid h3 { font-size: 36px; font-weight: 500; margin-bottom: 8px; }
.team-grid .role { font-weight: 700; font-size: 16px; margin-bottom: 18px; }
.team-grid p { font-size: 16px; }

/* Jobs */
.jobs { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.jobs h1 { font-size: 40px; font-weight: 500; }
.jobs p { font-size: 18.6px; }
.jobs img { width: 85%; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; align-items: stretch; }
.contact-info p { font-size: 18px; }
.contact-info .btn {
  display: inline-block; background: var(--green); color: #fff;
  padding: 8px 14px; border-radius: 4px; margin: 6px 6px 0 0;
}
.contact-info .btn:hover { background: var(--green-dark); text-decoration: none; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 300px; color: #fff; text-align: center; overflow: hidden;
  background-size: cover; background-position: center;
}
.tile::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); transition: background .3s; }
.tile:hover::before { background: rgba(0,104,23,.85); }
.tile > * { position: relative; }
.tile--mail { background-image: url("../img/tile-mail.jpg"); }
.tile--phone { background-image: url("../img/tile-phone.jpg"); }
.tile .ic { width: 60px; height: 60px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.tile .ic svg { width: 25px; height: 25px; fill: var(--green); }
.tile .label { font-size: 30px; }
.tile .value { font-weight: 700; margin-top: 6px; }
.tile:hover { text-decoration: none; }

/* Anfahrt */
.map { background: #f5f5f5; padding: 60px 0; text-align: center; }
.map p { font-size: 18px; }
.map .btn { display: inline-block; background: var(--green); color: #fff; padding: 10px 18px; border-radius: 4px; margin-top: 8px; }
.map .btn:hover { background: var(--green-dark); text-decoration: none; }

/* Footer */
.footer { background: var(--green-dark); color: #fff; font-size: 14px; padding: 15px 0; }
.footer a { color: #fff; }

/* Rechtstexte */
.legal { max-width: 900px; padding: 50px 15px; }
.legal h1 { font-size: 36px; }
.legal h2 { font-size: 22px; margin-top: 1.6em; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 30px; }
.legal dt { font-weight: 700; }
.legal dd { margin: 0; }

/* 404 */
.notfound { text-align: center; padding: 100px 15px; }
.notfound .code { font-size: 96px; color: var(--green); line-height: 1; }

@media (max-width: 991px) {
  .nav-btn { display: flex; flex-direction: column; gap: 5px; padding: 10px; cursor: pointer; }
  .nav-btn span { width: 26px; height: 3px; background: var(--green); display: block; }
  .nav { position: absolute; top: 80px; left: 0; right: 0; background: #fff; box-shadow: 0 6px 10px rgba(0,0,0,.1); display: none; }
  .nav-toggle:checked ~ .nav { display: block; }
  .nav > ul { flex-direction: column; padding: 8px 0; }
  .nav > ul > li > a { height: 46px; padding: 0 20px; box-shadow: none !important; }
  .sub { position: static; display: block; box-shadow: none; padding: 0 0 0 20px; }
  .band { background-attachment: scroll; }
  .team-grid, .jobs, .contact-grid { grid-template-columns: 1fr; padding: 0; }
  .quote blockquote { font-size: 19px; }
  .section-title { font-size: 34px; }
  .tile { min-height: 200px; }
  .legal dl { grid-template-columns: 1fr; gap: 0; }
  .legal dd { margin-bottom: 8px; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
