/* MashUp GmbH – mashup.ch
   Gemeinsames Stylesheet für Start- und Unterseiten.
   Farbtokens und Grundraster aus dem Zwischendesign. */

:root { color-scheme: light dark; }
* , *::before, *::after { box-sizing: border-box; }

body {
  --mh-paper: light-dark(#ffffff, #151a1e);
  --mh-ink: light-dark(#252c30, #eef0f1);
  --mh-muted: light-dark(#60696e, #b4bfc5);
  --mh-blue: light-dark(#006d86, #87c7d7);
  --mh-line: light-dark(#dce2e4, #344149);
  --mh-soft: light-dark(#f1f4f4, #202a30);
  --mh-button: light-dark(#006d86, #87c7d7);
  --mh-button-text: light-dark(#ffffff, #142329);
  margin: 0;
  background: var(--mh-paper);
  color: var(--mh-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.mh-page { max-width: 1280px; margin-inline: auto; }
h1, h2, h3, p { margin: 0; color: inherit; }
img { max-width: 100%; }
a { color: var(--mh-blue); }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.mh-skip {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  background: var(--mh-button); color: var(--mh-button-text); padding: 10px 16px;
}
.mh-skip:focus { left: 8px; top: 8px; }

/* ---------- Kopf ---------- */
.mh-header {
  display: grid; grid-template-columns: 160px 1fr; grid-template-rows: auto auto;
  gap: 16px 28px; padding: 22px 32px 0;
}
.mh-logo { grid-row: 1 / span 2; align-self: start; margin-bottom: 19px; display: block; }
.mh-logo img { display: block; width: 160px; height: auto; }
.mh-logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .mh-logo-light { display: none; }
  .mh-logo-dark { display: block; }
}
.mh-utility {
  display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap;
  gap: 22px; font-size: 12px; color: var(--mh-muted);
}
.mh-utility a { color: inherit; text-decoration: none; }
.mh-utility a:hover { color: var(--mh-blue); }
.mh-utility button {
  border: 0; padding: 0; background: transparent; font: inherit; font-size: 12px;
  color: var(--mh-blue); cursor: pointer;
}
.mh-navigation { display: flex; align-items: stretch; justify-content: flex-end; flex-wrap: wrap; gap: 0 24px; }
.mh-navigation a {
  border-bottom: 3px solid transparent; padding: 7px 0 16px;
  font-size: 14px; white-space: nowrap; text-decoration: none; color: inherit;
}
.mh-navigation a[aria-current='page'] { border-bottom-color: var(--mh-blue); color: var(--mh-blue); }
.mh-navigation a:hover { color: var(--mh-blue); }
.mh-support-info {
  padding: 17px 32px; background: var(--mh-soft);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px;
}
.mh-support-info h2 { font-size: 16px; font-weight: 500; }
.mh-support-info p { color: var(--mh-muted); font-size: 12px; }
.mh-support-info a { color: var(--mh-blue); }

/* ---------- Bildkopf ---------- */
.mh-photo { position: relative; background: #293b43; margin: 0; aspect-ratio: 8 / 3; }
.mh-photo img { width: 100%; height: 100%; position: absolute; inset: 0; display: block; object-fit: cover; object-position: center; }
.mh-photo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, #07181fd9, #07181f05 80%);
}
.mh-caption { position: absolute; z-index: 1; left: 32px; right: 32px; bottom: 30px; color: #fff; }
.mh-caption h1 { font-size: 46px; line-height: 1.15; font-weight: 500; letter-spacing: -1px; }
.mh-caption p { font-size: 16px; line-height: 1.5; margin-top: 9px; max-width: 540px; }

/* ---------- Einleitung ---------- */
.mh-summary { padding: 40px 32px 36px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; }
.mh-summary h2 { font-size: 26px; line-height: 1.3; letter-spacing: -0.35px; font-weight: 500; max-width: 480px; }
.mh-summary p { color: var(--mh-muted); font-size: 14px; line-height: 1.75; margin-top: 16px; max-width: 520px; }
.mh-project {
  display: inline-flex; gap: 22px; align-items: center; justify-content: space-between;
  padding: 11px 17px; border: 0; border-radius: 2px; margin-top: 23px;
  background: var(--mh-button); color: var(--mh-button-text);
  font: inherit; font-size: 13px; text-decoration: none; cursor: pointer;
}
.mh-project:hover { filter: brightness(1.05); }
.mh-offer { padding-top: 4px; }
.mh-offer h2, .mh-offer h3 { font-size: 14px; font-weight: 500; margin-bottom: 10px; }
.mh-offer ul { list-style: none; padding: 0; margin: 0; }
.mh-offer li { padding: 11px 0; border-bottom: 1px solid var(--mh-line); font-size: 13px; color: var(--mh-muted); }

/* ---------- Bereichskacheln (Startseite) ---------- */
.mh-tiles { padding: 4px 32px 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mh-tile {
  display: flex; flex-direction: column; gap: 9px;
  padding: 20px 20px 22px; border: 1px solid var(--mh-line); border-radius: 2px;
  text-decoration: none; color: inherit; background: var(--mh-paper);
}
.mh-tile:hover { border-color: var(--mh-blue); }
.mh-tile h2 { font-size: 17px; font-weight: 500; }
.mh-tile p { font-size: 13px; color: var(--mh-muted); line-height: 1.7; }
.mh-tile span { margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--mh-blue); }

/* ---------- Fliesstext und Stichpunkte ---------- */
.mh-prose { padding: 8px 32px 38px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; }
.mh-prose h2 { font-size: 20px; font-weight: 500; margin-bottom: 12px; }
.mh-prose p { color: var(--mh-muted); font-size: 14px; line-height: 1.75; margin-bottom: 14px; max-width: 520px; }
.mh-prose p:last-child { margin-bottom: 0; }
.mh-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.mh-points li { position: relative; padding-left: 18px; font-size: 13px; color: var(--mh-muted); line-height: 1.7; }
.mh-points li::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--mh-blue); }
.mh-partners { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mh-partners a, .mh-partners span {
  border: 1px solid var(--mh-line); border-radius: 999px; padding: 5px 13px;
  font-size: 12px; text-decoration: none; color: var(--mh-ink);
}
.mh-partners a:hover { border-color: var(--mh-blue); color: var(--mh-blue); }

/* ---------- Fragen ---------- */
.mh-faq { padding: 0 32px 40px; }
.mh-faq h2 { font-size: 20px; font-weight: 500; margin-bottom: 14px; }
.mh-faq details { border-bottom: 1px solid var(--mh-line); }
.mh-faq summary { padding: 13px 0; font-size: 14px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.mh-faq summary::-webkit-details-marker { display: none; }
.mh-faq summary::after { content: '+'; color: var(--mh-blue); }
.mh-faq details[open] summary::after { content: '–'; }
.mh-faq details p { padding: 0 0 15px; font-size: 13px; line-height: 1.75; color: var(--mh-muted); max-width: 760px; }

/* ---------- Referenzen ---------- */
.mh-references { padding: 19px 32px; display: flex; align-items: center; gap: 30px; flex-wrap: wrap; border-top: 1px solid var(--mh-line); }
.mh-references-label { color: var(--mh-muted); font-size: 12px; }
.mh-customer { display: flex; align-items: baseline; gap: 9px; font-size: 14px; }
.mh-customer small { font-size: 11px; color: var(--mh-muted); }

/* ---------- Kontakt und Fuss ---------- */
.mh-contact { background: var(--mh-soft); padding: 30px 32px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; }
.mh-contact h2 { font-size: 23px; line-height: 1.3; font-weight: 500; }
.mh-contact p { font-size: 13px; color: var(--mh-muted); margin-top: 10px; }
.mh-contact-address { font-size: 13px; line-height: 1.8; }
.mh-contact-address strong { font-weight: 500; }
.mh-contact-address span { display: block; }
.mh-contact-address a { color: inherit; text-decoration: none; }
.mh-contact-address a:hover { text-decoration: underline; }
.mh-direct { color: var(--mh-blue); font-size: 17px; margin-top: 9px; }
.mh-direct a { color: var(--mh-blue); }
.mh-bottom {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 25px;
  justify-content: space-between; padding: 14px 32px; font-size: 11px; color: var(--mh-muted);
}
.mh-bottom a { color: inherit; }
.mh-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Inhaltsseiten (Impressum etc.) ---------- */
.mh-legal { padding: 36px 32px 48px; max-width: 760px; }
.mh-legal h1 { font-size: 30px; font-weight: 500; letter-spacing: -0.5px; margin-bottom: 20px; }
.mh-legal h2 { font-size: 17px; font-weight: 500; margin: 28px 0 8px; }
.mh-legal p { color: var(--mh-muted); font-size: 14px; line-height: 1.8; }

/* ---------- Schmale Viewports ---------- */
@media (max-width: 850px) {
  .mh-header { gap: 12px 20px; }
  .mh-logo { grid-row: 1; margin-bottom: 2px; }
  .mh-logo img { width: 132px; }
  .mh-header { grid-template-columns: 132px 1fr; }
  .mh-utility { align-self: center; }
  .mh-navigation { grid-column: 1 / span 2; justify-content: space-between; gap: 0 18px; }
  .mh-navigation a { font-size: 13px; }
  .mh-caption h1 { font-size: 37px; }
  .mh-summary, .mh-contact, .mh-prose { gap: 32px; }
  .mh-tiles { grid-template-columns: repeat(2, 1fr); }
  .mh-customer { flex-wrap: wrap; gap: 0 8px; }
}
@media (max-width: 580px) {
  .mh-header { padding: 20px 20px 0; grid-template-columns: 120px 1fr; gap: 12px; }
  .mh-logo img { width: 120px; }
  .mh-utility { gap: 7px; flex-direction: column; align-items: flex-end; font-size: 11px; }
  .mh-utility button, .mh-utility a { min-height: 28px; font-size: 11px; }
  .mh-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .mh-navigation a { text-align: left; padding: 10px 0; min-height: 44px; display: flex; align-items: center; }
  .mh-photo { aspect-ratio: auto; height: 270px; }
  .mh-photo img { object-position: 68% center; }
  .mh-caption { left: 20px; right: 20px; bottom: 22px; }
  .mh-caption h1 { font-size: 31px; letter-spacing: -0.65px; overflow-wrap: anywhere; }
  .mh-caption p { font-size: 14px; }
  .mh-summary { padding: 27px 20px; grid-template-columns: 1fr; gap: 26px; }
  .mh-summary h2 { font-size: 24px; }
  .mh-prose { grid-template-columns: 1fr; padding: 0 20px 30px; gap: 26px; }
  .mh-tiles { grid-template-columns: 1fr; padding: 0 20px 30px; }
  .mh-faq { padding: 0 20px 32px; }
  .mh-offer { padding-top: 0; }
  .mh-references { padding: 20px; align-items: flex-start; flex-direction: column; gap: 12px; }
  .mh-contact { grid-template-columns: 1fr; padding: 25px 20px; gap: 22px; }
  .mh-bottom { padding: 14px 20px; }
  .mh-support-info { padding: 17px 20px; }
  .mh-legal { padding: 28px 20px 40px; }
}
@media (pointer: coarse) {
  .mh-utility button { min-height: 44px; }
  .mh-navigation a, .mh-project { min-height: 44px; }
}
