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

body {
  margin: 0;
  background: #f0f5f4;
  font-family: Tahoma, 'Trebuchet MS', Arial, Helvetica, sans-serif;
  font-size: 10pt;
  color: #2F4F4F;
  line-height: 1.5;
}

a {
  color: #CE1B1E;
  text-decoration: none;
}

a:hover {
  color: #FA8072;
}

p {
  margin: 0 0 0.8em;
}

ul {
  list-style-type: square;
  margin: 0 0 0.8em;
  padding-left: 1.5em;
}

ul li {
  margin-bottom: 0.2em;
}

hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  margin: 8px 16px;
}

address {
  font-style: normal;
}

/* ===== Wrapper ===== */

.site-wrapper {
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.18);
}

/* ===== Header ===== */

.site-header {
  background: #4E8F82;
  display: flex;
  flex-direction: column;
}

.header-main {
  display: flex;
  align-items: stretch;
  min-height: 160px;
}

.header-brand {
  flex: 1;
  padding: 16px 20px 16px 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.header-logo {
  height: 130px;
  width: auto;
  flex-shrink: 0;
}

.header-brand-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.header-wordmark {
  height: 120px;
  width: auto;
}

.tagline {
  margin: 0;
  font-family: Verdana, Arial, sans-serif;
  font-size: 8.5pt;
  font-weight: bold;
  color: #fff;
}

.header-photo {
  width: 180px;
  flex-shrink: 0;
  display: block;
  object-fit: cover;
}

/* ===== Top navigation ===== */

.top-nav {
  background: #3A7068;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 16px;
  height: 34px;
  gap: 2px;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  height: 100%;
  font-family: Verdana, Arial, sans-serif;
  font-size: 8pt;
  font-weight: bold;
  color: #C8E8E0;
  text-decoration: none;
}

.top-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.top-nav a[aria-current="page"] {
  color: #fff;
  border-bottom: 2px solid #FFF1C0;
}

/* ===== Body ===== */

.site-body {
  display: flex;
  align-items: stretch;
  min-height: 440px;
}

/* ===== Sidebar ===== */

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #4E8F82;
  display: flex;
  flex-direction: column;
}

.side-nav {
  flex: 1;
  padding: 18px 0 12px;
}

.nav-section-title {
  margin: 14px 0 4px;
  padding: 0 16px;
  font-family: Verdana, Arial, sans-serif;
  font-size: 7.5pt;
  font-weight: bold;
  color: #FFF1C0;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.nav-section-title:first-child {
  margin-top: 0;
}

.side-nav a {
  display: block;
  padding: 5px 16px;
  font-family: Verdana, Arial, sans-serif;
  font-size: 9pt;
  color: #D8F0EA;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.side-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-left-color: #6FBDA5;
}

.side-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border-left-color: #FFF1C0;
  font-weight: bold;
}

/* ===== Contact box ===== */

.contact-box {
  background: #3A7068;
  padding: 16px 16px 22px;
  font-size: 9pt;
  color: #A8CCc6;
  line-height: 1.8;
}

.contact-box strong {
  color: #C8E8E0;
  display: block;
  margin-bottom: 4px;
}

.contact-name {
  color: #f9f099;
  font-weight: bold;
}

.contact-box a {
  color: #C8E8E0;
}

.contact-box a:hover {
  color: #fff;
}

/* ===== Content ===== */

.content {
  flex: 1;
  background: #fff;
  padding: 20px 24px 28px;
  min-width: 0;
  border-left: 1px solid #d0e8e4;
}

.content h2 {
  font-family: Verdana, Arial, sans-serif;
  font-size: 12pt;
  font-weight: bold;
  color: #3A7068;
  margin: 0 0 0.8em;
  padding-bottom: 6px;
  border-bottom: 1px solid #d0e8e4;
}

.content h3 {
  font-family: Verdana, Arial, sans-serif;
  font-size: 10pt;
  font-weight: bold;
  color: #4B4B4B;
  margin: 1.2em 0 0.4em;
}

.content hr {
  border: none;
  border-top: 1px solid #d0e8e4;
  margin: 1.2em 0;
}

/* ===== Footer ===== */

.site-footer {
  background: #3A7068;
  padding: 9px 20px;
  text-align: right;
}

.site-footer a {
  font-size: 8pt;
  color: #9CC8C0;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

/* ===== Person profile ===== */

.person-profile {
  display: flex;
  gap: 16px;
  margin-bottom: 1.5em;
}

.person-profile img {
  width: 160px;
  height: auto;
  flex-shrink: 0;
  align-self: flex-start;
  border: 2px solid #d0e8e4;
}

/* ===== Quote ===== */

.quote {
  margin: 1.5em 0 0;
  padding: 0.8em 1em;
  border-left: 3px solid #6FBDA5;
  background: #f5fbf9;
  font-style: italic;
  color: #4B4B4B;
}

.quote cite {
  display: block;
  margin-top: 0.4em;
  font-size: 9pt;
  font-style: normal;
  color: #666;
}

/* ===== Links page ===== */

.link-item {
  display: flex;
  gap: 16px;
  margin-bottom: 1.5em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid #e0e0e0;
}

.link-item:last-child {
  border-bottom: none;
}

.link-item img {
  width: 160px;
  flex-shrink: 0;
  align-self: flex-start;
}

.link-item-text h3 {
  margin-top: 0;
}

/* ===== Anfahrt ===== */

.anfahrt-address {
  font-size: 11pt;
  line-height: 2;
  margin-bottom: 1.5em;
}

/* ===== Impressum ===== */

.impressum-section {
  margin-bottom: 1.5em;
}

.impressum-section h3 {
  margin-bottom: 0.5em;
}

/* ===== Responsive ===== */

@media (max-width: 640px) {
  .header-main {
    flex-direction: row;
  }

  .header-photo {
    width: 110px;
  }

  .site-title {
    font-size: 16pt;
  }

  .site-body {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .person-profile {
    flex-direction: column;
  }

  .link-item {
    flex-direction: column;
  }

  .link-item img {
    width: 120px;
  }
}
