/* OTTRIA site shell — Header, Nav, Footer, Content-Wrapper */
/* Aus dem ursprünglichen index.css extrahierte Schicht für die Generator-Templates. */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: rgba(0, 0, 0, 1);
  line-height: 1.6;
}
body.hide {
  overflow-y: hidden;
}

.container {
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  max-width: 100%;
}

/* Header */
.header_main_section {
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform ease 0.5s;
}
#header_main_section.sticky {
  transform: translateY(-150%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
#header_main_section.active {
  transform: translateY(0);
}
.header_wrapper {
  padding-block: 15px;
  padding-inline: 10px;
  display: flex;
  justify-content: space-between;
  position: relative;
  align-items: center;
}
.header_logo {
  width: 150px;
  max-width: none;
  border-radius: 0;
  margin-bottom: 0;
}

/* Mobile-Nav (Drawer) */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 60vw;
  height: 100vh;
  background-color: #fff;
  display: flex;
  justify-content: center;
  padding-top: 50px;
  z-index: 50;
  transform: translateX(-150%);
  transition: all 0.4s ease;
}
nav.active {
  transform: translateX(0);
}
nav ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: 0;
  margin-bottom: 0;
}
nav ul li {
  list-style: none;
  margin-bottom: 0;
}
nav ul li a {
  text-decoration: none;
  font-size: 1rem;
  color: rgba(0, 0, 0, 1);
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  padding: 10px 5px;
  display: block;
  white-space: nowrap;
  position: relative;
}
nav ul li a.active::before {
  content: "";
  width: 100%;
  height: 2px;
  background-color: rgba(41, 121, 170, 1);
  transform: translateY(10px);
  display: block;
  position: absolute;
  bottom: 15px;
  left: 0;
}
.nav_close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  font-family: inherit;
  color: rgba(0, 0, 0, 1);
}
.nav_open {
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  font-family: inherit;
  color: rgba(0, 0, 0, 1);
}
.shadow {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(0, 0, 0, 0.341);
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}
.shadow.active {
  opacity: 1;
  visibility: visible;
}

/* Content-Wrapper für generierte Markdown-Seiten */
.content_wrapper {
  max-width: 970px;
  margin: auto;
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Footer */
footer {
  background-color: rgba(41, 121, 170, 1);
  padding-block: 40px;
  margin-top: 60px;
}
.footer_wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
footer img {
  width: 234px;
  height: 75px;
  max-width: none;
  border-radius: 0;
  margin-bottom: 0;
}
.footer_links_wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.footer_links_wrapper ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 0;
  margin-bottom: 0;
}
.footer_links_wrapper ul li {
  list-style: none;
  margin-bottom: 0;
}
.footer_links_wrapper p {
  max-width: 319px;
  font-size: 1rem;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  color: white;
  margin-bottom: 0;
}
.footer_links_wrapper ul li a {
  text-decoration: none;
  font-size: 1rem;
  color: #fff;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
}
.footer_company {
  font-weight: 600;
}
.footer_phone {
  margin-top: 10px;
  display: block;
}

/* Content-Typografie für generierte Markdown-Seiten.
   Element-Selektoren wo eindeutig; .content_wrapper-Scoping nur dort,
   wo Header/Footer dasselbe Element mit anderen Regeln benutzen. */

h1 {
  font-size: 45px;
  font-weight: 800;
  font-family: "Montserrat", sans-serif;
  color: rgba(41, 121, 170, 1);
  letter-spacing: -0.9px;
  line-height: 110%;
  margin-bottom: 30px;
}
h2 {
  font-size: 24px;
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  color: rgba(0, 0, 0, 1);
  margin-bottom: 30px;
  padding-bottom: 20px;
  padding-inline: 10px;
  border-bottom: 2px solid rgba(41, 121, 170, 1);
  max-width: 653px;
}
h3 {
  font-size: 22px;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  color: rgba(0, 0, 0, 1);
  margin-bottom: 20px;
}
h4 {
  font-size: 20px;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  color: rgba(41, 121, 170, 1);
  margin-bottom: 16px;
}
h5 {
  font-size: 18px;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  color: rgba(0, 0, 0, 1);
  margin-bottom: 12px;
}
h6 {
  font-size: 16px;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  color: rgba(0, 0, 0, 1);
  margin-bottom: 10px;
}
b,
strong {
  font-weight: 600;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid rgba(41, 121, 170, 1);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}
td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
blockquote.legal-paragraph {
  margin: 0 0 20px 0;
  padding: 16px 20px;
  border-left: 4px solid rgba(41, 121, 170, 1);
  background-color: rgba(41, 121, 170, 0.06);
  white-space: pre-line;
}

p {
  margin-bottom: 20px;
}
ul,
ol {
  margin-bottom: 20px;
  padding-left: 1.5em;
}
li {
  margin-bottom: 8px;
}
a {
  color: rgba(41, 121, 170, 1);
  font-weight: 600;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin-bottom: 20px;
}

/* sm 640 */
@media (min-width: 640px) {
  .container {
    padding-left: 0;
    padding-right: 0;
    max-width: 33.75rem;
  }
}

/* md 768 — Desktop-Nav */
@media (min-width: 768px) {
  .container { max-width: 45rem; }
  .header_wrapper {
    align-items: center;
    justify-content: flex-start;
    gap: 100px;
    padding-block: 20px;
    padding-inline: 20px;
  }
  .nav_open { display: none; }
  .nav_close { display: none; }
  nav {
    position: relative;
    transform: translate(0);
    display: block;
    padding: 0;
    height: fit-content;
    width: fit-content;
  }
  nav ul { flex-direction: row; }
  nav ul li { position: relative; }
  nav ul li a::after {
    content: "";
    width: 100%;
    height: 2px;
    background-color: rgba(41, 121, 170, 1);
    display: block;
    position: absolute;
    bottom: 15px;
    left: 0;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.2s ease;
  }
  nav ul li a:hover::after {
    transform: translateY(4px);
    opacity: 1;
  }
  nav ul li a.active:hover::after { opacity: 0; }
}

/* lg 1024 */
@media (min-width: 1024px) {
  .container { max-width: 60rem; }
  .header_wrapper {
    padding-block: 30px;
    padding-inline: 86px;
  }
  .header_logo { width: 234px; }
  nav ul li a { padding: 15px 20px; }
  body { font-size: 18px; }
  .footer_links_wrapper {
    padding-left: 100px;
    gap: 200px;
    padding-bottom: 40px;
    border-bottom: 2px solid rgba(255, 255, 255, 1);
  }
  .footer_links_wrapper ul { gap: 20px; }
}

/* xl 1280 */
@media (min-width: 1280px) {
  .container { max-width: 71.25rem; }
  .header_wrapper {
    gap: 200px;
    justify-content: space-between;
  }
  .content_wrapper {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  footer {
    padding-block: 60px;
    margin-top: 100px;
  }
  .footer_wrapper { justify-content: center; }
  nav ul li a.active::before { transform: translateY(4px); }
}

/* 2xl 1536 */
@media (min-width: 1536px) {
  .container { max-width: 86.25rem; }
}
