@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");
:root {
  color-scheme: light;
  --brand-blue: #7189d2;
  --brand-navy: #173d7b;
  --accent-blue: #168ff0;
  --paper: #fff;
  --line: rgba(255, 255, 255, 0.96);
  --shadow: 2px 5px 9px rgba(16, 35, 87, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-image: linear-gradient(
    to bottom,
    var(--brand-blue),
    var(--brand-navy)
  );

  font-family: "Libre Franklin", "Lato", "Cabin", Arial, Helvetica, sans-serif;
  color: var(--brand-navy);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

nav {
  display: none;
}

.site-shell {
  width: min(100% - 48px, 1460px);
  margin-inline: auto;
}

.site-header {
  min-height: 184px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 22px 8px 24px;
  border-bottom: 4px solid var(--line);
  box-shadow: 0 5px 5px -5px rgba(14, 34, 80, 0.55);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 30px;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 104px;
  height: 156px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.brand-name {
  align-self: flex-start;
  text-shadow: 2px 4px 4px rgba(17, 39, 94, 0.48);
  white-space: nowrap;
  color: #fff;
  text-shadow: 2px 5px 4px rgba(0, 0, 0, 0.25);
  -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: #283c7f;
  font-family: "Inter", sans-serif;
  font-family: Arial;
  font-size: clamp(2.15rem, 5vw, 3.4rem);
  font-style: italic;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 5.2px;
}

.header-contact {
  font-family: lato;
  color: var(--paper);
  align-self: flex-end;
  display: grid;
  gap: 7px;
  align-content: center;
  flex: 0 0 auto;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.header-contact a,
.contact-list a {
  text-decoration: none;
}

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

.contact-pending {
  opacity: 1;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  padding-top: 26px;
}

.service-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.service-column--sanitary {
  justify-content: space-between;
}

.service-card,
.intro-card,
.motto-card,
.footer-card {
  background: var(--paper);
  border-radius: 9px;
  box-shadow: var(--shadow);
}

.heating-card {
  overflow: hidden;
  padding: 12px;
}
.sanitary-card {
  overflow: hidden;
  padding: 12px;
}

.service-card-title {
  margin: 0 5px 12px;
  font-family: ui-sans-serif, Arial, sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--brand-navy);
}

.service-card-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin-top: 10px;
  background-color: var(--brand-blue);
  border-radius: 2px;
}

.heating-card .service-art {
  display: block;
  width: 100%;
  height: auto;
}

.service-icons {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
  padding: 18px 0 12px;
  align-items: stretch;
}

.service-icons .icon-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding: 5px 6px;
  text-align: center;
}

.service-icons .icon-item:not(:last-child) {
  border-right: 2px dotted var(--brand-blue);
}

.service-icons .icon-item img {
  display: block;
  width: 48px;
  height: 48px;
  max-width: 100%;
  object-fit: contain;
}

.service-icons .icon-item span {
  display: block;
  max-width: 100%;
  font-size: 0.82rem;
  line-height: 1.2;
  color: var(--brand-navy);
  overflow-wrap: anywhere;
}

.service-art {
  display: block;
  width: 100%;
  height: auto;
}

.intro-card {
  grid-row-start: 1;
  font-family: "Lato";
  min-height: 226px;
  padding: 30px 32px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intro-card h1 {
  margin: 0 0 17px;
  font-family: "Lato";
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.intro-card p {
  margin: 0;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  line-height: 1.3;
}

.intro-card .intro-emphasis {
  margin-top: 27px;
  font-weight: 600;
}

.motto-card {
  order: 2;
  min-height: 226px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px 32px 26px;
  text-align: center;
  font-family: "Lato";
}

.motto-card h2 {
  margin: 0 0 23px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: 0.07em;
}

.motto-card p {
  margin: 0;
  font-size: clamp(1.2rem, 2.1vw, 1.8rem);
  line-height: 1.45;
  letter-spacing: 0.07em;
}

.contact-footer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 27px 0 30px;
  margin-top: 22px;
  border-top: 4px solid var(--line);
  border-radius: 2px;
  margin-bottom: 22px;
  border-bottom: 4px solid var(--line);
  box-shadow: 0 -5px 5px -5px rgba(14, 34, 80, 0.55);
  font-family: "Lato";
}

.footer-card {
  height: 100%;
  padding: 22px 24px;
  font-size: 1rem;
  /* display: flex;
  flex-direction: column;
  list-style: none; */
}

.footer-card h2 {
  margin: 0 0 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #9daee4;
  font-size: 1.05rem;
  font-weight: 500;
}

.footer-card address {
  font-style: normal;
  line-height: 1rem;
}

.links-card {
  position: relative;
}

.cookieButton {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  padding-top: 3vw;
}

.cookieButton img {
  display: block;
  width: 24px;
  height: 24px;
}

.cookie-banner {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(355px, calc(100vw - 32px));
  height: fit-content;
  max-height: calc(100vh - 32px);
  background: linear-gradient(120deg, rgb(255, 255, 255), rgb(226, 223, 223));
  box-shadow: 0px 0px 10px rgb(73, 59, 56);
  padding: 2em;
  border-radius: 8px;
  width: 38ch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: justify;
  overflow-y: auto;
  filter: none;
  transform: none;
  opacity: 1;

  font-family: "Libre Franklin", Arial, sans-serif;
  z-index: 9999;
}

.cookie-banner button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;

  font-family: inherit;
  font-size: 16px;
  padding: 10px 20px;
  cursor: pointer;
  /* font-family: "Libre Franklin";
  font-size: 16px;
  font-weight: 500;
  padding: 10px 22px;
  min-height: 38px;
  width: auto;
  cursor: pointer; */
}

.close {
  background-color: var(--brand-navy);
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
}
.close:hover {
  background-color: var(--brand-blue);
}

.datenSchutz {
  margin: 2rem auto;
  padding: 2rem;
  background-color: #fff;
  border-radius: 6px;
  margin-bottom: 24px;
}

.contact-list li {
  margin-left: -25px;
  margin-top: 2px;
  text-decoration: none;
  list-style: none;
}

.map-preview {
  position: relative;
  display: flex;
  min-height: 132px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #d4ddf4;
  background-color: #e7ebdf;
  background-image:
    linear-gradient(
      24deg,
      transparent 45%,
      rgba(255, 255, 255, 0.95) 46%,
      rgba(255, 255, 255, 0.95) 49%,
      transparent 50%
    ),
    linear-gradient(
      145deg,
      transparent 42%,
      rgba(255, 255, 255, 0.9) 43%,
      rgba(255, 255, 255, 0.9) 46%,
      transparent 47%
    ),
    linear-gradient(
      90deg,
      transparent 18%,
      #d1d9c7 18.5%,
      #d1d9c7 20%,
      transparent 20.5%,
      transparent 75%,
      #d1d9c7 75.5%,
      #d1d9c7 77%,
      transparent 77.5%
    );
  text-decoration: none;
}

.map-pin {
  position: absolute;
  color: #3287d2;
  font-size: 2.6rem;
  text-shadow: 0 2px 3px #fff;
  transform: translateY(-8px);
}

.map-label {
  position: absolute;
  right: 10px;
  bottom: 8px;
  padding: 3px 6px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
}

.review-name {
  margin: 0;
  color: #454957;
  font-size: 1.05rem;
}
.review-address {
  margin: 3px 0 8px;
  color: #656b77;
  font-size: 0.72rem;
}
.rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #59606b;
}
.rating strong {
  font-size: 1.5rem;
  font-weight: 500;
}
.rating span {
  color: #f4aa00;
  font-size: 1.15rem;
  letter-spacing: -0.08em;
}
.rating small {
  font-size: 0.72rem;
}
.review-tags {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 15px;
}
.review-tags span {
  padding: 7px 16px;
  border: 2px solid #899de2;
  border-radius: 99px;
}

.links-card li {
  margin: 12px 0 0 -20px;
}
/* --------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .site-shell {
    width: min(100% - 32px, 700px);
  }
  .site-header {
    min-height: 130px;
    padding: 16px 4px 20px;
  }
  .brand {
    gap: 17px;
  }
  .brand-mark {
    width: 73px;
    height: 110px;
  }
  .brand-name {
    font-size: clamp(1.6rem, 5vw, 2.6rem);
  }
  .header-contact {
    font-size: 0.95rem;
  }
  .service-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .service-column {
    gap: 18px;
  }
  .intro-card {
    min-height: 0;
    padding: 25px;
  }
  .motto-card {
    min-height: 160px;
  }
  .contact-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .service-icons {
    padding-top: 12px;
  }

  .service-icons .icon-item {
    padding-inline: 3px;
    gap: 6px;
  }

  .service-icons .icon-item img {
    width: 34px;
    height: 34px;
  }

  .service-icons .icon-item span {
    font-size: 0.65rem;
  }

  .site-shell {
    width: min(100% - 22px, 460px);
  }
  .site-header {
    align-items: flex-start;
    gap: 10px;
    min-height: 0;
    padding: 13px 1px 16px;
  }
  .brand {
    gap: 11px;
  }
  .brand-mark {
    width: 48px;
    height: 72px;
    border-radius: 5px;
  }
  .brand-name {
    white-space: normal;
    font-size: clamp(1.15rem, 6vw, 1.65rem);
    line-height: 1.05;
    letter-spacing: 0.015em;
  }
  .header-contact {
    gap: 6px;
    padding-top: 3px;
    font-size: 0.76rem;
  }
  .service-layout {
    padding-top: 15px;
    gap: 15px;
  }
  .service-column {
    gap: 14px;
  }
  .intro-card {
    padding: 20px;
  }
  .intro-card h1 {
    font-size: 1.28rem;
  }
  .intro-card p {
    font-size: 1.04rem;
  }
  .intro-card .intro-emphasis {
    margin-top: 17px;
  }
  .motto-card {
    min-height: 140px;
    padding: 20px 12px;
  }
  .motto-card h2 {
    margin-bottom: 15px;
    font-size: 1.14rem;
  }
  .motto-card p {
    font-size: 1rem;
    letter-spacing: 0.035em;
  }
  .desktop-break {
    display: none;
  }
  .contact-footer {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 16px;
    margin-top: 15px;
  }
  .footer-card {
    min-height: auto;
    padding: 18px 20px;
  }
  .map-preview {
    min-height: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
