/* =========================================================
   Messinger Engineering – Website CSS
   ========================================================= */

/* ---------- Variables ---------- */

:root {
  --brand: #205baf;
  --text: #3a3a3a;
  --muted: #6b6b6b;
  --dark: #0d0d0d;
  --light-bg: #f5f5f5;
  --max-text: 76ch;
}


/* ---------- Base ---------- */

body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: var(--text);
}

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


/* ---------- Typography ---------- */

h1,
h2,
h3 {
  margin: 0 0 0.6em;
  color: var(--dark);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}

h1,
.hero-title {
  font-size: clamp(32px, 6vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(24px, 3vw, 30px);
}

h3 {
  font-size: clamp(20px, 2.2vw, 24px);
}

p,
ul,
ol {
  margin: 0 0 0.85rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

p {
  max-width: var(--max-text);
}

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.35rem;
}

.lead {
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  line-height: 1.7;
}

.kicker {
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.gross,
.hero-subtitle {
  margin: 0 0 1rem;
  color: #2a2a2a;
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.3px;
  text-wrap: balance;
}

.bildunterschrift {
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
  color: #555;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.4;
  hyphens: auto;
}


/* ---------- Bootstrap Container Adjustment ---------- */

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1000px;
  }
}


/* ---------- Links & Navigation ---------- */

a {
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: none;
}

.navbar {
  background-color: var(--light-bg);
  padding: 0;
}

.navbar-brand {
  margin-left: 2px;
  padding-top: 10px;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.1em !important;
  font-weight: 600 !important;
}

.nav-link {
  color: #343a40;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 14px;
  padding: 0.4rem 0.6rem;
}

.nav-link:hover,
.nav-link:focus {
  color: #000;
}

.dropdown-menu {
  color: #343a40;
  font-size: 14px;
}

.nav-item,
li.nav-item.dropdown {
  margin: 2px;
  padding-left: 0.4rem;
}


/* ---------- Layout Helpers ---------- */

.grid {
  display: grid;
  gap: 1rem;
}

.grid-2,
.grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.headspace {
  display: flex;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .headspace {
    height: 70px;
  }
}

.text {
  margin-left: 0;
  margin-right: 2%;
}

@media (max-width: 767px) {
  .text {
    margin-right: 0;
  }
}


/* ---------- Images ---------- */

.img-custom {
  display: block;
  width: 100%;
  margin-left: 0;
  margin-right: auto;
}


/* ---------- Components ---------- */

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: #000;
  background-size: 50% 50%;
}


/* ---------- Utilities ---------- */

.b {
  font-weight: 600;
}

.bg-brand {
  background-color: var(--brand);
}

.bi {
  color: #000;
}

.border-left {
  border-left: 1px solid gray;
}

.important {
  border-top: 1px solid #000;
}

.link {
  color: #0d6efd;
}

.mark {
  display: inline;
  margin: 0;
  padding: 0;
  background: transparent;
  font-weight: 600;
  hyphens: auto;
}

.no-border {
  border: none !important;
}

.white {
  color: #fff;
}


/* ---------- Special Content ---------- */

.math-container {
  display: flex;
  justify-content: center;
}

.math-container math {
  max-width: 100%;
  height: auto;
}

li.checklist,
li.strich {
  position: relative;
  max-width: 67ch;
  list-style: none;
  overflow-wrap: break-word;
}

li.checklist {
  margin-left: 14px;
  padding-left: 1rem;
}

li.strich {
  padding-left: 1.2rem;
}

li.strich::before {
  content: "-";
  position: absolute;
  left: 0;
}


/* ---------- Print ---------- */

@media print {
  @page {
    size: A4;
    margin: 2cm 2cm 2cm 2.5cm;
  }

  * {
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    margin: 0 8%;
    color: #000 !important;
    background: #fff !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10pt;
    line-height: 1.35;
  }

  a,
  a:visited {
    color: #000 !important;
    text-decoration: none !important;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
  }

  a[href^="#"]::after,
  a[href^="mailto:"]::after {
    content: "";
  }

  h1,
  h2,
  h3 {
    color: #000 !important;
    margin: 0.2em 0 0.35em !important;
    page-break-after: avoid;
  }

  h1 {
    font-size: 16pt;
  }

  h2 {
    font-size: 13pt;
  }

  h3 {
    font-size: 11.5pt;
  }

  p,
  ul,
  ol,
  li,
  table,
  blockquote,
  figure {
    color: #000 !important;
    font-size: 10pt;
    line-height: 1.35;
  }

  p {
    margin-bottom: 0.6em !important;
  }

  ul,
  ol {
    margin: 0.25em 0 0.6em 1.2em !important;
    padding: 0 !important;
  }

  hr {
    height: 1px !important;
    margin: 10pt 0 !important;
    border: 0 !important;
    background: #000 !important;
    opacity: 0.2 !important;
  }

  table {
    page-break-inside: avoid;
  }

  .noprint {
    display: none !important;
  }
}


/* ---------- Page Break ---------- */

.pagebreak {
  break-before: page;
  page-break-before: always;
}
