/* Local web fonts for headings (same files as the other local pages).
   Plus Jakarta Sans 700/800 for H1-H3. Roboto (body, UI) comes from global.css. */
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../../fonts/PlusJakartaSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../../fonts/PlusJakartaSans-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* =========================================================================
   Adam Haustechnik – Schlüsseldienst Martinhagen
   Standalone page stylesheet. Every selector is scoped to .martinhagen-page.
   Colours, radii and shadows come from global.css variables only.
   Composition: dark hero with stat strip and tall photo rail, numbered
   situation tiles, service rows with "wann" tags, dotted timeline,
   statement-style trust band, centred FAQ, phone-number CTA.
   Mobile-first; breakpoints 640px, 960px.
   ========================================================================= */

.martinhagen-page{
  background: var(--c-bg);
  color: var(--c-text);
  overflow-x: clip;
}
.martinhagen-page *{ box-sizing: border-box; }
.martinhagen-page a{ text-decoration: none; }
.martinhagen-page ul,
.martinhagen-page ol,
.martinhagen-page dl{ list-style: none; margin: 0; padding: 0; }
.martinhagen-page dd{ margin: 0; }
.martinhagen-page p{ margin: 0; color: var(--c-text-soft); line-height: 1.7; }
.martinhagen-page img{ max-width: 100%; height: auto; display: block; }

.martinhagen-page h1,
.martinhagen-page h2,
.martinhagen-page h3{
  font-family: 'Plus Jakarta Sans', var(--font-display), sans-serif;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.01em;
  margin: 0;
  overflow-wrap: break-word;
  hyphens: manual;
}
.martinhagen-page h1{ font-size: clamp(2.1rem, 7vw, 3.5rem) !important; line-height: 1.08 !important; color: #fff; }
.martinhagen-page h2{ font-size: clamp(1.55rem, 3.4vw, 2.3rem); line-height: 1.2; }
.martinhagen-page h3{ font-size: 1.1rem; line-height: 1.3; }

.martinhagen-page :focus-visible{ outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.martinhagen-page .mh-wrap{ width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.martinhagen-page .mh-narrow{ max-width: 860px; }

/* ---- shared bits ----------------------------------------------------------- */
.martinhagen-page .mh-kicker{
  display: inline-block; margin-bottom: 12px;
  font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary-hover);
}
.martinhagen-page .mh-head{ max-width: 720px; margin-bottom: 40px; }
.martinhagen-page .mh-head-center{ margin-inline: auto; text-align: center; }
.martinhagen-page .mh-section{ padding: 64px 0; scroll-margin-top: calc(var(--header-h) + 12px); }
.martinhagen-page .mh-alt{ background: var(--c-bg-alt); border-block: 1px solid var(--c-border); }

.martinhagen-page .mh-link{
  display: inline-flex; align-items: center; gap: .4rem; margin-top: 12px;
  font-weight: 700; font-size: .95rem; color: var(--primary-hover);
}
.martinhagen-page .mh-link:hover{ text-decoration: underline; }
.martinhagen-page .mh-link i{ transition: transform .2s; }
.martinhagen-page .mh-link:hover i{ transform: translateX(3px); }

/* ---- buttons --------------------------------------------------------------- */
.martinhagen-page .mh-actions{ display: grid; gap: 12px; }
.martinhagen-page .mh-btn{
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  width: 100%; min-height: 56px; padding: .9rem 1.5rem;
  border: 2px solid transparent; border-radius: var(--radius-pill);
  font-weight: 800; font-size: 1.1rem; line-height: 1.2; text-align: center;
  transition: background var(--transition), transform .2s, box-shadow var(--transition);
}
.martinhagen-page .mh-btn:hover{ transform: translateY(-1px); }
.martinhagen-page .mh-btn-call{ background: var(--primary); color: #fff; box-shadow: var(--shadow-glow); }
.martinhagen-page .mh-btn-call:hover{ background: var(--primary-hover); color: #fff; }
.martinhagen-page .mh-btn-wa{ background: var(--btn-wh); color: var(--c-dark); }
.martinhagen-page .mh-btn-wa:hover{ background: var(--c-success); color: var(--c-dark); }

/* ---- hero ------------------------------------------------------------------- */
.martinhagen-page .mh-hero{
  background: var(--c-dark);
  color: #fff;
  padding: 20px 0 64px;
}
.martinhagen-page .mh-crumbs{ font-size: .85rem; margin-bottom: 26px; }
.martinhagen-page .mh-crumbs ol{ display: flex; flex-wrap: wrap; gap: .4rem; }
.martinhagen-page .mh-crumbs li{ color: var(--c-muted); }
.martinhagen-page .mh-crumbs li + li::before{ content: "/"; margin-right: .4rem; }
.martinhagen-page .mh-crumbs a{ color: var(--c-muted); }
.martinhagen-page .mh-crumbs a:hover{ color: #fff; text-decoration: underline; }
.martinhagen-page .mh-crumbs [aria-current]{ color: #fff; }

.martinhagen-page .mh-hero-grid{ display: grid; gap: 36px; }
.martinhagen-page .mh-badge{
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 18px;
  padding: .45rem .9rem; border-radius: var(--radius-pill);
  background: var(--primary-l); color: var(--primary-hover);
  font-size: .8rem; font-weight: 800; letter-spacing: .04em;
}
.martinhagen-page .mh-sub{
  display: block; margin-top: 14px;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem); font-weight: 700; line-height: 1.3;
  color: var(--primary-l);
}
.martinhagen-page .mh-lead{ margin: 22px 0 28px; max-width: 580px; font-size: 1.08rem; color: #fff; }
.martinhagen-page .mh-lead strong{ color: #fff; }

.martinhagen-page .mh-stats{
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; margin-top: 32px;
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); overflow: hidden;
}
.martinhagen-page .mh-stats div{ padding: 14px 10px; text-align: center; }
.martinhagen-page .mh-stats div + div{ border-left: 1px solid rgba(255,255,255,.2); }
.martinhagen-page .mh-stats dt{ font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }
.martinhagen-page .mh-stats dd{
  margin-top: 4px;
  font-family: 'Plus Jakarta Sans', var(--font-display), sans-serif;
  font-size: clamp(1.05rem, 3.4vw, 1.5rem); font-weight: 800; color: #fff;
}

/* very tall photo (1440x3120): fixed width keeps its ratio, nothing is cropped */
.martinhagen-page .mh-photo{ position: relative; margin: 0 auto; width: 100%; max-width: 240px; }
.martinhagen-page .mh-photo::before{
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border: 3px solid var(--primary); border-radius: var(--radius-lg);
}
.martinhagen-page .mh-photo img{
  position: relative; width: 100%; height: auto;
  border-radius: var(--radius-lg);
  background: var(--c-bg-alt);
}

/* ---- tiles ------------------------------------------------------------------- */
.martinhagen-page .mh-tiles{ display: grid; gap: 16px; }
.martinhagen-page .mh-tile{
  position: relative; padding: 26px 24px 22px;
  background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.martinhagen-page .mh-num{
  position: absolute; top: 14px; right: 18px;
  font-family: 'Plus Jakarta Sans', var(--font-display), sans-serif;
  font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--primary-l);
}
.martinhagen-page .mh-tile-ico{ display: block; margin-bottom: 14px; font-size: 1.7rem; color: var(--primary); }
.martinhagen-page .mh-tile h3{ margin-bottom: 8px; }
.martinhagen-page .mh-tile p{ font-size: .98rem; }

/* ---- services ------------------------------------------------------------------ */
.martinhagen-page .mh-svc-list{ display: grid; gap: 0; border-top: 3px solid var(--primary); }
.martinhagen-page .mh-svc{ display: grid; gap: 12px; padding: 28px 0; border-bottom: 1px solid var(--c-border); }
.martinhagen-page .mh-svc h3{ display: flex; align-items: center; gap: .7rem; font-size: 1.3rem; }
.martinhagen-page .mh-svc h3 i{ flex: none; color: var(--primary); font-size: 1.5rem; }
.martinhagen-page .mh-svc p{ font-size: 1rem; }
.martinhagen-page .mh-when-list{ display: flex; flex-wrap: wrap; gap: 8px; }
.martinhagen-page .mh-when-list li{
  padding: .3rem .8rem; border-radius: var(--radius-pill);
  background: var(--c-bg); border: 1px solid var(--c-border);
  font-size: .82rem; font-weight: 700; color: var(--c-text);
}
.martinhagen-page .mh-svc .mh-link{ margin-top: 0; }
.martinhagen-page .mh-more{ margin-top: 24px; }

/* ---- timeline ------------------------------------------------------------------- */
.martinhagen-page .mh-line{ position: relative; display: grid; gap: 28px; padding-left: 34px; }
.martinhagen-page .mh-line::before{
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--primary) 0 8px, transparent 8px 14px);
}
.martinhagen-page .mh-line li{ position: relative; }
.martinhagen-page .mh-dot{
  position: absolute; left: -34px; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary); border: 4px solid var(--c-bg); box-shadow: 0 0 0 2px var(--primary);
}
.martinhagen-page .mh-when{
  display: inline-block; margin-bottom: 4px;
  font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary-hover);
}
.martinhagen-page .mh-line h3{ margin-bottom: 4px; }
.martinhagen-page .mh-line p{ font-size: .98rem; }

/* ---- trust ---------------------------------------------------------------------- */
.martinhagen-page .mh-trust{
  background: var(--c-dark-soft); color: #fff;
  padding: 64px 0; scroll-margin-top: calc(var(--header-h) + 12px);
}
.martinhagen-page .mh-trust-grid{ display: grid; gap: 36px; }
.martinhagen-page .mh-trust .mh-kicker{ color: var(--primary-l); }
.martinhagen-page .mh-trust h2{ color: #fff; font-size: clamp(1.6rem, 4vw, 2.5rem); }
.martinhagen-page .mh-trust-main > p{ margin-top: 16px; font-size: 1.05rem; color: #fff; max-width: 620px; }
.martinhagen-page .mh-promises{ display: grid; gap: 18px; margin-top: 30px; counter-reset: mh-p; }
.martinhagen-page .mh-promises li{
  position: relative; counter-increment: mh-p; padding-left: 52px;
}
.martinhagen-page .mh-promises li::before{
  content: counter(mh-p);
  position: absolute; left: 0; top: 0; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-family: 'Plus Jakarta Sans', var(--font-display), sans-serif; font-weight: 800;
}
.martinhagen-page .mh-promises h3{ color: #fff; margin-bottom: 2px; }
.martinhagen-page .mh-promises p{ font-size: .96rem; color: var(--c-muted); }

.martinhagen-page .mh-note-card{
  align-self: start; padding: 28px 24px;
  background: var(--c-bg); border-radius: var(--radius-lg);
  border-top: 8px solid var(--primary);
}
.martinhagen-page .mh-note-card h3{ display: flex; align-items: center; gap: .6rem; margin-bottom: 16px; font-size: 1.2rem; }
.martinhagen-page .mh-note-card h3 i{ color: var(--primary); }
.martinhagen-page .mh-note-card ul{ display: grid; gap: 12px; }
.martinhagen-page .mh-note-card li{ display: flex; gap: .6rem; line-height: 1.55; color: var(--c-text-soft); }
.martinhagen-page .mh-note-card li i{ flex: none; margin-top: 2px; color: var(--c-success); }

/* ---- FAQ ------------------------------------------------------------------------- */
.martinhagen-page .mh-faq-list{ display: grid; gap: 12px; }
.martinhagen-page .mh-faq{
  background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.martinhagen-page .mh-faq[open]{ border-color: var(--primary); box-shadow: var(--shadow-sm); }
.martinhagen-page .mh-faq summary{
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.02rem; line-height: 1.4; color: var(--dark);
}
.martinhagen-page .mh-faq summary::-webkit-details-marker{ display: none; }
.martinhagen-page .mh-faq summary i{ flex: none; color: var(--primary); transition: transform .25s; }
.martinhagen-page .mh-faq[open] summary i{ transform: rotate(45deg); }
.martinhagen-page .mh-faq p{ padding: 0 20px 20px; }
.martinhagen-page .mh-footnote{ margin-top: 28px; font-size: .95rem; text-align: center; }
.martinhagen-page .mh-footnote a{ color: var(--primary-hover); font-weight: 700; text-decoration: underline; }

/* ---- final CTA ------------------------------------------------------------------- */
.martinhagen-page .mh-cta{
  background: var(--c-bg-alt); border-top: 1px solid var(--c-border);
  padding: 64px 0; text-align: center; scroll-margin-top: calc(var(--header-h) + 12px);
}
.martinhagen-page .mh-cta-inner{ display: grid; justify-items: center; gap: 16px; max-width: 760px; }
.martinhagen-page .mh-phone{
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  width: 100%; padding: .9rem 1.2rem; border-radius: var(--radius-lg);
  background: var(--primary); color: #fff; box-shadow: var(--shadow-glow);
  font-family: 'Plus Jakarta Sans', var(--font-display), sans-serif;
  font-size: clamp(1.4rem, 6vw, 2.2rem); font-weight: 800; line-height: 1.2;
  transition: background var(--transition), transform .2s;
}
.martinhagen-page .mh-phone:hover{ background: var(--primary-hover); color: #fff; transform: translateY(-1px); }
.martinhagen-page .mh-cta .mh-btn{ max-width: 420px; }

/* ---- >= 640px -------------------------------------------------------------------- */
@media (min-width: 640px){
  .martinhagen-page .mh-actions{ grid-template-columns: repeat(2, auto); justify-content: start; }
  .martinhagen-page .mh-btn{ width: auto; }
  .martinhagen-page .mh-tiles{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .martinhagen-page .mh-phone{ width: auto; padding-inline: 2.4rem; }
}

/* ---- >= 960px -------------------------------------------------------------------- */
@media (min-width: 960px){
  .martinhagen-page .mh-section{ padding: 96px 0; }
  .martinhagen-page .mh-hero{ padding: 28px 0 88px; }
  .martinhagen-page .mh-hero-grid{ grid-template-columns: minmax(0,1fr) 300px; gap: 96px; align-items: center; }
  .martinhagen-page .mh-photo{ max-width: 300px; margin: 0; }
  .martinhagen-page .mh-stats{ max-width: 520px; }

  .martinhagen-page .mh-tiles{ grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }

  .martinhagen-page .mh-svc{ grid-template-columns: minmax(0,.8fr) minmax(0,1.3fr) minmax(0,.7fr); gap: 40px; align-items: start; padding: 36px 0; }
  .martinhagen-page .mh-svc h3{ grid-column: 1; }
  .martinhagen-page .mh-svc p{ grid-column: 2; grid-row: 1 / span 2; }
  .martinhagen-page .mh-when-list{ grid-column: 3; grid-row: 1; }
  .martinhagen-page .mh-svc .mh-link{ grid-column: 3; grid-row: 2; justify-self: start; }

  .martinhagen-page .mh-line{ grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; padding: 40px 0 0; }
  .martinhagen-page .mh-line::before{
    left: 10px; right: 10px; top: 9px; bottom: auto; width: auto; height: 2px;
    background: repeating-linear-gradient(to right, var(--primary) 0 8px, transparent 8px 14px);
  }
  .martinhagen-page .mh-dot{ left: 0; top: -40px; }

  .martinhagen-page .mh-trust{ padding: 96px 0; }
  .martinhagen-page .mh-trust-grid{ grid-template-columns: minmax(0,1.3fr) minmax(0,.7fr); gap: 72px; align-items: center; }
  .martinhagen-page .mh-note-card{ padding: 34px 30px; }

  .martinhagen-page .mh-cta{ padding: 96px 0; }
}

@media (prefers-reduced-motion: reduce){
  .martinhagen-page *{ transition: none !important; }
}
