:root {
  --color-ink: #202020;
  --color-muted: #5f6468;
  --color-line: #ded8cf;
  --color-paper: #ffffff;
  --color-soft: #f4f0ea;
  --color-accent: #9a6f42;
  --color-accent-dark: #77512d;
  --color-green: #53685a;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
}

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

picture {
  display: block;
}

a {
  color: var(--color-accent-dark);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-green);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-bar {
  display: contents;
}

.nav-toggle-checkbox {
  display: none;
}

.nav-toggle-label {
  display: none;
}

.nav-links a {
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: #f2d8b8;
  font-weight: 700;
}

.nav-links a.nav-highlight {
  color: #f2d8b8;
  font-weight: 700;
}

.button,
.nav-links .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--color-accent);
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: var(--color-accent-dark);
  color: #fff;
}

.site-header a:hover {
  color: #f2d8b8;
}

.nav-links .button {
  border-color: #f2d8b8;
  background: #f2d8b8;
  color: var(--color-ink);
}

.lang-flags {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-flags a {
  font-size: 17px;
  line-height: 1;
  text-decoration: none;
  opacity: .55;
  filter: grayscale(40%);
  transition: opacity .15s ease, filter .15s ease;
}

.lang-flags a:hover {
  opacity: .85;
  filter: grayscale(0%);
}

.lang-flags a[aria-current="true"] {
  opacity: 1;
  filter: grayscale(0%);
}

.nav-links .button:hover,
.nav-links .button[aria-current="page"] {
  background: #fff;
  color: var(--color-ink);
}

.button.secondary {
  background: transparent;
  color: var(--color-accent-dark);
}

.button.secondary:hover {
  background: var(--color-soft);
  color: var(--color-accent-dark);
}

.hero .button.secondary {
  border-color: rgba(255, 255, 255, .78);
  color: #fff;
}

.hero .button.secondary:hover {
  background: #fff;
  color: var(--color-ink);
}

.hero {
  position: relative;
  min-height: 590px;
  display: grid;
  align-items: end;
  background-color: #191919;
  background-image: image-set(url("../images/webp/wohnen1.webp") type("image/webp"), url("../images/wohnen1.jpg") type("image/jpeg"));
  background-position: center 46%;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, .66));
}

.hero-inner {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 70px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f2d8b8;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-serif);
  line-height: 1.12;
}

h1 {
  max-width: 900px;
  font-size: clamp(34px, 4.8vw, 58px);
  text-wrap: balance;
}

h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  text-wrap: balance;
}

.legal h1 {
  font-size: clamp(26px, 3.6vw, 34px);
}

.legal h2 {
  margin-top: 28px;
  font-size: 19px;
}

h3 {
  font-size: 21px;
}

.lead {
  max-width: 760px;
  margin: 20px 0 0;
  font-size: clamp(17px, 2vw, 20px);
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.section {
  padding: 72px 0;
}

.section.soft {
  background: var(--color-soft);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.intro {
  max-width: 760px;
  margin-bottom: 36px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  overflow: hidden;
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split > picture,
.split > img {
  overflow: hidden;
  border-radius: 6px;
}

.split > picture img,
.split > img {
  width: 100%;
}

.card-body {
  padding: 22px;
}

.card-body p {
  margin-bottom: 0;
}

.card-body .review-score {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-accent-dark);
}

.review-score span {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-muted);
}

.feature-list,
.plain-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.feature-list li,
.plain-list li {
  border-top: 1px solid var(--color-line);
  padding: 12px 0;
}

.fact-strip {
  background: var(--color-green);
  color: #fff;
}

.facts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
}

.fact {
  padding: 24px 12px;
  text-align: center;
}

.fact strong {
  display: block;
  font-size: 20px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 44px;
  align-items: center;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  table-layout: fixed;
}

.price-table th,
.price-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
}

.price-table td:last-child,
.price-table th:last-child {
  text-align: right;
  width: 42%;
}

.notice {
  margin-top: 24px;
  padding: 18px 20px;
  background: #fff8eb;
  border: 1px solid #ead4ad;
  border-radius: 6px;
}

.map-placeholder {
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 28px;
  background-color: #35463d;
  background-image: linear-gradient(rgba(32, 32, 32, .18), rgba(32, 32, 32, .18)), image-set(url("../images/webp/fieberbrunn.webp") type("image/webp"), url("../images/fieberbrunn.jpg") type("image/jpeg"));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  text-align: center;
}

.map-placeholder div {
  max-width: 540px;
}

.faq details {
  border-top: 1px solid var(--color-line);
  padding: 18px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.site-footer {
  padding: 52px 0 40px;
  background: #33423a;
  color: #d8ddd9;
  border-top: 3px solid var(--color-accent);
}

.site-footer strong {
  display: inline-block;
  margin-bottom: 6px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.site-footer p {
  margin: 0;
  color: #b7c0ba;
}

.site-footer a {
  color: #e7e9e6;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
}

.footer-grid > div + div {
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, .14);
}

.footer-grid a {
  display: inline-block;
  padding: 3px 0;
}

.footer-grid a[href^="mailto:"]::before,
.footer-grid a[href^="tel:"]::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 7px;
  vertical-align: -2px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.footer-grid a[href^="mailto:"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

.footer-grid a[href^="tel:"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
}

.small {
  color: var(--color-muted);
  font-size: 14px;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 16px 0;
  }

  .nav-bar {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
  }

  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
  }

  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
  }

  .nav-toggle-label span {
    position: relative;
  }

  .nav-toggle-label span::before {
    position: absolute;
    top: -7px;
  }

  .nav-toggle-label span::after {
    position: absolute;
    top: 7px;
  }

  .nav-toggle-checkbox:checked ~ .nav-bar .nav-toggle-label span {
    background: transparent;
  }

  .nav-toggle-checkbox:checked ~ .nav-bar .nav-toggle-label span::before {
    top: 0;
    transform: rotate(45deg);
  }

  .nav-toggle-checkbox:checked ~ .nav-bar .nav-toggle-label span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 10px 14px;
  }

  .nav-toggle-checkbox:not(:checked) ~ .nav-links {
    display: none;
  }

  .hero {
    min-height: 520px;
  }

  .hero-inner {
    padding: 72px 0 56px;
  }

  .section {
    padding: 56px 0;
  }

  .grid,
  .grid.two,
  .feature-list,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid > div + div {
    padding-left: 0;
    padding-top: 20px;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, .14);
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact {
    border-top: 1px solid rgba(255, 255, 255, .18);
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .brand {
    font-size: 19px;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links .button {
    grid-column: 1 / -1;
  }

  .nav-links a {
    line-height: 1.25;
  }

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

  .hero-actions,
  .actions {
    flex-direction: column;
  }

  .button,
  .nav-links .button {
    width: 100%;
  }

  .price-table,
  .price-table thead,
  .price-table tbody,
  .price-table tr,
  .price-table th,
  .price-table td {
    display: block;
  }

  .price-table thead {
    display: none;
  }

  .price-table tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-line);
  }

  .price-table td {
    padding: 2px 0;
    border-bottom: 0;
  }

  .price-table td:last-child {
    width: auto;
    text-align: left;
    font-weight: 700;
  }
}
