:root {
  --gold: #cfb997;
  --text: #7d7d7d;
  --dark: #201f1c;
  --stone: #7d7d7d;
  --beige: #efebdc;
  --green: #00b518;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 29px;
}

strong {
  font-weight: 700;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(100% - 96px, 1320px);
  margin: 0 auto;
}

.topbar {
  min-height: 36px;
  padding: 8px 0;
  background: var(--stone);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.topbar-inner {
  position: relative;
  display: flex;
  justify-content: flex-end;
  width: min(100% - 30px, 1320px);
  height: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

.topbar ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
  font-weight: 500;
}

.topbar li {
  display: inline-flex;
  align-items: center;
  font-size: 12.6px;
  line-height: 18.9px;
  white-space: nowrap;
}

.topbar-icon {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 4px;
  background: #ffffff;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.topbar-icon.phone {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.28-.28.67-.36 1.03-.24 1.12.37 2.32.57 3.56.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1C10.61 21 3 13.39 3 4c0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.24.2 2.44.57 3.56.11.36.03.75-.25 1.03l-2.2 2.2Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.28-.28.67-.36 1.03-.24 1.12.37 2.32.57 3.56.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1C10.61 21 3 13.39 3 4c0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.24.2 2.44.57 3.56.11.36.03.75-.25 1.03l-2.2 2.2Z'/%3E%3C/svg%3E");
}

.topbar-icon.mobile {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12.5 0h-9A2.5 2.5 0 0 0 1 2.5v19A2.5 2.5 0 0 0 3.5 24h9a2.5 2.5 0 0 0 2.5-2.5v-19A2.5 2.5 0 0 0 12.5 0ZM8 22.1a1.1 1.1 0 1 1 0-2.2 1.1 1.1 0 0 1 0 2.2Zm4-4.1H4V3h8v15Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12.5 0h-9A2.5 2.5 0 0 0 1 2.5v19A2.5 2.5 0 0 0 3.5 24h9a2.5 2.5 0 0 0 2.5-2.5v-19A2.5 2.5 0 0 0 12.5 0ZM8 22.1a1.1 1.1 0 1 1 0-2.2 1.1 1.1 0 0 1 0 2.2Zm4-4.1H4V3h8v15Z'/%3E%3C/svg%3E");
}

.topbar-icon.mail {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M2 0h20c1.1 0 2 .9 2 2v14c0 1.1-.9 2-2 2H2c-1.1 0-2-.9-2-2V2C0 .9.9 0 2 0Zm10 10.2L22 3.7V2l-10 6.5L2 2v1.7l10 6.5Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M2 0h20c1.1 0 2 .9 2 2v14c0 1.1-.9 2-2 2H2c-1.1 0-2-.9-2-2V2C0 .9.9 0 2 0Zm10 10.2L22 3.7V2l-10 6.5L2 2v1.7l10 6.5Z'/%3E%3C/svg%3E");
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 100px;
  background: #ffffff;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 30px, 1320px);
  height: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
}

.logo-desktop {
  height: 50px;
  width: auto;
}

.logo-mobile {
  display: none;
}

nav a {
  display: block;
  color: #7d7d7d;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 100px;
  padding: 0 8px;
  text-decoration: none;
}

nav a::before {
  content: "";
}

nav a.active {
  color: var(--gold);
}

.scroll-up {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 1001;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: rgba(125, 125, 125, 0.55);
  color: #ffffff;
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, background-color 0.25s ease;
}

.scroll-up.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-up:hover,
.scroll-up:focus {
  background: rgba(125, 125, 125, 0.8);
}

.scroll-up span {
  transform: translateY(2px);
}


.hero {
  min-height: 548px;
  background-image: url("/images/2022/02/24/kanzelei_titelbild.jpg");
  background-position: center;
  background-size: cover;
}

.intro-section {
  padding: 130px 0 58px;
  background: #ffffff;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Verdana, Geneva, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  margin-bottom: 22px;
  color: var(--gold);
  font-size: 40px;
}

h2 {
  color: var(--text);
  font-size: 20px;
  text-align: center;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.copy p,
.side-copy p {
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 500;
  line-height: 29px;
}

.slideshow {
  position: relative;
  height: 485px;
  margin-bottom: 42px;
  overflow: hidden;
}

.slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fadeSlide 12s infinite;
}

.slideshow img:nth-child(2) {
  animation-delay: 4s;
}

.slideshow img:nth-child(3) {
  animation-delay: 8s;
}

@keyframes fadeSlide {
  0%,
  30% {
    opacity: 1;
  }
  38%,
  92% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.beige-section {
  background: var(--beige);
}

.practice-section {
  padding: 50px 0 28px;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.practice-card {
  position: relative;
  display: grid;
  min-height: 270px;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  background-image:
    linear-gradient(rgba(46, 59, 62, 0.28), rgba(46, 59, 62, 0.28)),
    url("/images/2022/02/24/kanzelei_info_desktop.jpg");
  background-position: center;
  background-size: cover;
}

.practice-card > div {
  box-sizing: border-box;
  width: 100%;
  padding: 0 20px;
}

.practice-card h3 {
  color: #ffffff;
  font-size: 26px;
  line-height: 1.15;
  overflow-wrap: break-word;
  hyphens: auto;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.practice-card p {
  max-width: 86%;
  margin: 8px auto 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.people-section {
  padding: 0 0 66px;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.portrait-card,
.flip-card {
  min-height: 270px;
  perspective: 1000px;
  outline: none;
}

.portrait-card {
  min-height: 488px;
}

.portrait-inner,
.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 488px;
  transition: transform 0.65s ease;
  transform-style: preserve-3d;
}

.flip-inner {
  min-height: 270px;
}

.portrait-card:hover .portrait-inner,
.portrait-card:focus .portrait-inner,
.flip-card:hover .flip-inner,
.flip-card:focus .flip-inner {
  transform: rotateY(180deg);
}

.portrait-static:hover .portrait-inner,
.portrait-static:focus .portrait-inner {
  transform: none;
}

.portrait-face,
.flip-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #8a8a8a;
  backface-visibility: hidden;
}

.portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-back {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 28px 34px;
  background: #1f201d;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.34;
  text-align: center;
  transform: rotateY(180deg);
}

.portrait-back h3 {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 20px;
}

.portrait-back h4 {
  margin: 8px 0 8px;
  color: #ffffff;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.portrait-back p {
  max-width: 610px;
  margin: 0 0 12px;
}

.flip-face {
  display: grid;
  place-items: center;
  padding: 28px;
}

.flip-front {
  background: var(--stone);
  color: #ffffff;
  font-size: 34px;
  font-weight: 700;
}

.flip-back {
  align-content: center;
  background: #1f201d;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.35;
  text-align: center;
  transform: rotateY(180deg);
}

.flip-back h3 {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 22px;
}

.flip-back p {
  margin: 0 0 10px;
}

.timeline-section {
  padding: 48px 0 48px;
  background: #ffffff;
}

.timeline-section h2 {
  margin-bottom: 55px;
  color: var(--gold);
  font-size: 40px;
}

.timeline {
  position: relative;
  width: min(1290px, 100%);
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 6px;
  background: var(--gold);
  transform: translateX(-50%);
}

.timeline-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 215px;
  min-height: 72px;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.timeline-year {
  text-align: right;
}

.timeline-text p {
  margin: 0 0 12px;
}

.footer-main {
  display: flex;
  align-items: center;
  min-height: 95px;
  background: var(--stone);
  color: #ffffff;
  font-size: 12px;
  line-height: 18px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: min(100% - 30px, 1320px);
  margin: 0 auto;
  padding: 0 15px;
}

footer ul {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

footer p {
  margin: 0;
  text-align: right;
}

.cookie-wrap {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99999;
  display: flex;
  justify-content: center;
  padding: 0;
}

.cookie-box {
  width: min(1210px, 100%);
  padding: 14px 22px 16px;
  border: 1px solid #d7d7d7;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  color: #6d6d6d;
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
}

.cookie-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 5px;
  color: #777777;
  font-size: 15px;
  font-weight: 700;
}

.cookie-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 7px 8px, #7d4a16 0 2px, transparent 3px),
    radial-gradient(circle at 13px 14px, #7d4a16 0 2px, transparent 3px),
    radial-gradient(circle at 16px 7px, #7d4a16 0 2px, transparent 3px),
    #b87527;
}

.cookie-box p {
  width: min(780px, 100%);
  margin: 0 auto 8px;
}

.cookie-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

.cookie-actions button {
  min-width: 92px;
  padding: 7px 12px;
  border: 0;
  border-radius: 0;
  background: var(--green);
  color: #ffffff;
  font: 700 12px Verdana, Geneva, sans-serif;
  cursor: pointer;
}

.cookie-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 6px;
  color: var(--gold);
}

.cookie-links a {
  font-weight: 700;
  text-decoration: none;
}

.legal-page {
  min-height: 70vh;
  padding: 64px 0 80px;
  background: #ffffff;
}

.legal-content {
  width: min(100% - 96px, 1040px);
  margin: 0 auto;
  color: var(--text);
  font-size: 18px;
  line-height: 29px;
}

.legal-content h1 {
  margin-bottom: 28px;
  color: var(--gold);
  font-size: 34px;
}

.legal-content h2 {
  margin: 28px 0 10px;
  color: var(--gold);
  font-size: 20px;
  text-align: left;
}

.legal-content p {
  margin: 0 0 14px;
}

.legal-content ul {
  margin: 0 0 16px 18px;
  padding: 0;
}

@media (max-width: 991px) {
  .container,
  .topbar-inner,
  .masthead-inner {
    width: min(100% - 38px, 760px);
  }

  .topbar {
    height: 62px;
    font-size: 11px;
  }

  .topbar ul {
    right: 0;
  }

  .masthead {
    height: 48px;
  }

  .logo-desktop,
  nav {
    display: none;
  }

  .logo-mobile {
    display: block;
    width: 260px;
    height: auto;
  }

  .hero {
    min-height: 184px;
    background-position: center top;
  }

  .intro-section {
    padding: 22px 0 24px;
  }

  h1 {
    max-width: 280px;
    margin-bottom: 16px;
    font-size: 30px;
  }

  .intro-grid,
  .people-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .copy p,
  .side-copy p {
    font-size: 13px;
    line-height: 1.72;
  }

  .slideshow {
    display: none;
  }

  .practice-section {
    padding: 38px 0 16px;
  }

  .practice-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 24px;
  }

  .practice-card {
    min-height: 129px;
  }

  .practice-card h3 {
    font-size: 22px;
  }

  .practice-card p {
    font-size: 10px;
  }

  .people-section {
    padding-bottom: 36px;
  }

  .portrait-card,
  .portrait-inner {
    min-height: 510px;
  }

  .portrait {
    height: 510px;
  }

  .portrait-back {
    padding: 24px;
    font-size: 13px;
  }

  .portrait-back h3 {
    font-size: 22px;
  }

  .flip-card,
  .flip-inner {
    min-height: 122px;
  }

  .flip-front {
    font-size: 24px;
  }

  .flip-back {
    font-size: 11px;
  }

  .timeline-section {
    padding: 34px 0 34px;
  }

  .timeline-section h2 {
    margin-bottom: 34px;
    font-size: 24px;
  }

  .timeline {
    width: 100%;
  }

  .timeline::before {
    left: 33%;
    width: 3px;
  }

  .timeline-row {
    grid-template-columns: 25% 1fr;
    gap: 42px;
    min-height: 68px;
    font-size: 8px;
  }

  .footer-main {
    min-height: 60px;
    font-size: 10px;
  }

  .footer-inner {
    display: block;
    width: min(100% - 38px, 760px);
    padding: 0;
  }

  footer ul {
    justify-content: center;
    gap: 16px;
    margin-bottom: 4px;
  }

  footer p {
    text-align: center;
  }

  .cookie-box {
    padding: 9px 9px 10px;
    font-size: 9px;
  }

  .cookie-head {
    font-size: 12px;
  }

  .cookie-actions {
    gap: 8px;
  }

  .cookie-actions button {
    min-width: 80px;
    padding: 5px 9px;
    font-size: 10px;
  }

  .legal-page {
    padding: 34px 0 52px;
  }

  .legal-content {
    width: min(100% - 38px, 760px);
    font-size: 13px;
  }

  .legal-content h1 {
    font-size: 30px;
  }

  .legal-content h2 {
    font-size: 16px;
  }
}
