* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: #171717;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

main {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

header {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ddd;
}

.brand {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .03em;
}

nav {
  display: flex;
  gap: 28px;
}

nav a, .contact a {
  color: inherit;
  text-decoration: none;
}

nav a:hover, .contact a:hover { text-decoration: underline; }

.hero {
  min-height: 68vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 980px;
}

.eyebrow {
  margin: 0 0 22px;
  font-size: 13px;
  letter-spacing: .12em;
  color: #666;
}

h1 {
  margin: 0 0 28px;
  font-size: clamp(42px, 6.5vw, 82px);
  line-height: .98;
  font-weight: 500;
  letter-spacing: -.045em;
  color: #0077B6;
}

.lead {
  max-width: 760px;
  font-size: 22px;
  color: #555;
  text-align: justify;
}

.section {
  padding: 120px 0;
  max-width: 850px;
  border-top: 1px solid #ddd;
}

h2 {
  margin: 0 0 36px;
  font-size: 18px;
  font-weight: 700;
}

.section p {
  max-width: 760px;
  font-size: 19px;
  text-align: justify;
}

.profile {
  margin: 64px 0;
  padding-top: 28px;
  border-top: 1px solid #ddd;
}

.profile h3,
.reference-group h3 {
  margin: 0 0 20px;
  font-size: 17px;
  font-weight: 700;
}

.reference-group {
  margin-top: 64px;
}

.reference-group:first-of-type { margin-top: 0; }

ul {
  margin: 0;
  padding-left: 1.25em;
}

li {
  margin: 0 0 10px;
  padding-left: 5px;
  text-align: justify;
}

.contact {
  padding-bottom: 160px;
}

footer {
  padding: 28px 0 40px;
  border-top: 1px solid #ddd;
  color: #777;
  font-size: 14px;
}

.impressum {
  margin-top: 14px;
  font-size: 12px;
  color: #999;
}

.impressum summary {
  cursor: pointer;
  display: inline-block;
  list-style: none;
}

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

.impressum summary::after {
  content: " +";
}

.impressum[open] summary::after {
  content: " −";
}

.impressum-content {
  margin-top: 14px;
  max-width: 560px;
  color: #888;
  line-height: 1.6;
}

.impressum-content p {
  margin: 0 0 8px;
}

.impressum-content strong {
  font-weight: 600;
}

@media (max-width: 700px) {
  main { width: min(100% - 32px, 1200px); }

  header {
    height: auto;
    min-height: 76px;
    padding: 18px 0;
    gap: 20px;
  }

  nav {
    gap: 14px;
    font-size: 14px;
  }

  .hero { min-height: 72vh; }

  .section { padding: 80px 0; }

  .section p { font-size: 17px; }

  .reference-group { margin-top: 48px; }
}


.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: #171717;
  text-decoration: none;
  font-size: 23px;
  line-height: 1;
  transition: background .2s, border-color .2s;
}

.back-to-top:hover {
  background: #f5f5f5;
  border-color: #999;
}

.address-link {
  text-decoration: none;
}

.address-link:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 38px;
    height: 38px;
  }
}

/* Extra spacing between mobile and email */
.contact .email-link { display: inline-block; margin-top: 10px; }
