/* Local web fonts for headings (same files and approach as frankfurt.css / simmershausen.css / wahlsburg.css).
   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 Rothwesten
   Standalone page stylesheet. Every selector is scoped to .rothwesten-page.
   Brand variables from global.css only. Mobile-first; breakpoints 700px, 1100px.
   Layout idea: hero on top, then a content column with a sticky contact
   card on the right (desktop only).
   ========================================================================= */

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

.rothwesten-page h1,
.rothwesten-page h2,
.rothwesten-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: auto;
}
.rothwesten-page h1{ font-size: clamp(2rem, 6.6vw, 3.4rem) !important; line-height: 1.08 !important; }
.rothwesten-page h2{ font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.2; }
.rothwesten-page h3{ font-size: 1.08rem; line-height: 1.3; }

.rothwesten-page :focus-visible{ outline: 3px solid var(--dark); outline-offset: 3px; border-radius: 6px; }
.rothwesten-page .rw-contact :focus-visible{ outline-color: #fff; }

.rothwesten-page .rw-wrap{ width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.rothwesten-page .rw-kicker{
  display: inline-block; margin-bottom: 10px;
  font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--primary-hover);
}
.rothwesten-page .rw-head p{ margin-top: 12px; max-width: 62ch; }

.rothwesten-page .rw-link{
  display: inline-flex; align-items: center; gap: .4rem; margin-top: 8px;
  font-weight: 700; font-size: .92rem; color: var(--primary-hover);
}
.rothwesten-page .rw-link:hover{ text-decoration: underline; }
.rothwesten-page .rw-ico{
  width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-l); color: var(--primary-hover); font-size: 1.1rem;
}

/* ---- buttons ---------------------------------------------------------- */
.rothwesten-page .rw-actions{ display: flex; flex-direction: column; gap: 12px; }
.rothwesten-page .rw-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);
}
.rothwesten-page .rw-btn:hover{ transform: translateY(-1px); }
.rothwesten-page .rw-btn-call{ background: var(--primary); color: #fff; box-shadow: var(--shadow-glow); }
.rothwesten-page .rw-btn-call:hover{ background: var(--primary-hover); color: #fff; }
.rothwesten-page .rw-btn-wa{ background: var(--btn-wh); color: var(--c-dark); }
.rothwesten-page .rw-btn-wa:hover{ background: #1ebe5b; color: var(--c-dark); }

/* ---- hero: copy + "polaroid" photo ----------------------------------------------- */
.rothwesten-page .rw-hero{ background: var(--c-bg-alt); padding: 22px 0 54px; }
.rothwesten-page .rw-crumbs{ font-size: .85rem; color: var(--c-text-soft); margin-bottom: 22px; }
.rothwesten-page .rw-crumbs ol{ display: flex; flex-wrap: wrap; gap: .4rem; }
.rothwesten-page .rw-crumbs li + li::before{ content: "/"; margin-right: .4rem; color: var(--c-muted); }
.rothwesten-page .rw-crumbs a{ color: var(--c-text-soft); }
.rothwesten-page .rw-crumbs a:hover{ color: var(--primary-hover); text-decoration: underline; }

.rothwesten-page .rw-hero-grid{ display: grid; gap: 34px; }
.rothwesten-page .rw-badge{
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 16px;
  background: var(--primary-l); color: var(--primary-hover);
  font-weight: 800; font-size: .85rem; padding: .45rem .95rem; border-radius: var(--radius-pill);
}
.rothwesten-page .rw-sub{
  display: block; margin-top: 14px;
  font-size: clamp(1.05rem, 2.6vw, 1.4rem); font-weight: 700; line-height: 1.3; color: var(--primary-hover);
}
.rothwesten-page .rw-lead{ margin: 20px 0 26px; font-size: 1.05rem; max-width: 60ch; }
.rothwesten-page .rw-lead strong{ color: var(--dark); }
.rothwesten-page .rw-facts{ margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.rothwesten-page .rw-facts li{ display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: .95rem; color: var(--dark); }
.rothwesten-page .rw-facts i{ color: var(--primary-hover); font-size: 1.15rem; }
.rothwesten-page .rw-note{ margin-top: 18px; font-size: .9rem; line-height: 1.55; }
.rothwesten-page .rw-note a{ color: var(--primary-hover); font-weight: 700; text-decoration: underline; }

/* photo keeps its natural ratio (510 x 638), never cropped */
.rothwesten-page .rw-polaroid{
  margin: 0 auto; width: 100%; max-width: 360px; padding: 12px 12px 14px;
  background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 14px; box-shadow: var(--shadow-lg);
}
.rothwesten-page .rw-polaroid img{ width: 100%; height: auto; aspect-ratio: 510 / 638; border-radius: 6px; }
.rothwesten-page .rw-polaroid figcaption{ margin-top: 12px; font-size: .84rem; line-height: 1.5; color: var(--c-text-soft); }

/* ---- layout: content column + sticky contact card ----------------------------------------- */
.rothwesten-page .rw-layout{ display: grid; gap: 0; }
.rothwesten-page .rw-block{ padding: 52px 0; border-top: 1px solid var(--c-border); }
.rothwesten-page .rw-block:first-child{ border-top: 0; }
.rothwesten-page .rw-side{ display: none; }

/* ---- emergencies: numbered list -------------------------------------------------------------- */
.rothwesten-page .rw-cases{ margin-top: 26px; border-top: 2px solid var(--dark); }
.rothwesten-page .rw-case{ display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--c-border); }
.rothwesten-page .rw-num{
  font-family: 'Plus Jakarta Sans', var(--font-display), sans-serif; font-weight: 800; font-size: 2rem; line-height: 1; color: var(--primary);
}
.rothwesten-page .rw-case h3{ margin-bottom: 4px; }
.rothwesten-page .rw-case p{ font-size: .95rem; }

/* ---- services: zebra rows ------------------------------------------------------------------------ */
.rothwesten-page .rw-rows{ margin-top: 26px; border: 1px solid var(--c-border); border-radius: var(--rw-r); overflow: hidden; }
.rothwesten-page .rw-row{ display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 16px; padding: 20px; align-items: start; background: var(--c-bg); }
.rothwesten-page .rw-row:nth-child(even){ background: var(--c-bg-alt); }
.rothwesten-page .rw-row-main{ background: var(--primary-l) !important; }
.rothwesten-page .rw-row-main .rw-ico{ background: var(--c-bg); }
.rothwesten-page .rw-row h3{ margin-bottom: 4px; }
.rothwesten-page .rw-row-main h3{ font-size: 1.25rem; }
.rothwesten-page .rw-row p{ font-size: .94rem; }
.rothwesten-page .rw-row-main p{ color: var(--c-text); }

/* ---- process: minute scale + stepper ----------------------------------------------------------------- */
.rothwesten-page .rw-scale{ margin-top: 26px; padding: 20px 20px 16px; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--rw-r); }
.rothwesten-page .rw-scale-title{ font-size: .76rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--c-text-soft); }
.rothwesten-page .rw-track{ position: relative; height: 16px; margin: 44px 14px 0; background: var(--c-bg-alt); border: 1px solid var(--c-border); border-radius: var(--radius-pill); }
.rothwesten-page .rw-zone{ position: absolute; left: 40%; width: 40%; top: -1px; bottom: -1px; background: var(--primary); border-radius: var(--radius-pill); }
.rothwesten-page .rw-zone-label{
  position: absolute; left: 40%; width: 40%; top: -32px; text-align: center; white-space: nowrap;
  font-family: 'Plus Jakarta Sans', var(--font-display), sans-serif; font-weight: 800; font-size: .95rem; color: var(--primary-hover);
}
.rothwesten-page .rw-ticks{ display: flex; justify-content: space-between; margin: 10px 14px 0; }
.rothwesten-page .rw-ticks li{ position: relative; width: 0; height: 1.2em; }
.rothwesten-page .rw-ticks span{ position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .78rem; color: var(--c-text-soft); }
.rothwesten-page .rw-scale-foot{ margin-top: 12px; font-size: .84rem; }

.rothwesten-page .rw-steps{ margin-top: 26px; display: grid; gap: 14px; counter-reset: rwstep; }
.rothwesten-page .rw-steps li{ counter-increment: rwstep; display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 14px; align-items: start; }
.rothwesten-page .rw-steps li::before{
  content: counter(rwstep); width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--primary); color: var(--primary-hover); background: var(--c-bg);
  font-family: 'Plus Jakarta Sans', var(--font-display), sans-serif; font-weight: 800;
}
.rothwesten-page .rw-steps h3{ margin: 6px 0 3px; }
.rothwesten-page .rw-steps p{ font-size: .94rem; }

/* ---- trust: standards ---------------------------------------------------------------------------------- */
.rothwesten-page .rw-std{ margin-top: 26px; display: grid; gap: 14px; }
.rothwesten-page .rw-std li{ padding: 20px; background: var(--c-bg); border: 1px solid var(--c-border); border-bottom: 4px solid var(--primary); border-radius: var(--rw-r) var(--rw-r) 0 0; }
.rothwesten-page .rw-std i{ display: block; margin-bottom: 10px; font-size: 1.5rem; color: var(--primary-hover); }
.rothwesten-page .rw-std h3{ margin-bottom: 4px; }
.rothwesten-page .rw-std p{ font-size: .94rem; }
.rothwesten-page .rw-honest{ margin-top: 18px; padding: 16px 18px; border-left: 4px solid var(--dark); background: var(--c-bg-alt); border-radius: 0 12px 12px 0; }
.rothwesten-page .rw-honest p{ font-size: .95rem; color: var(--c-text); }

/* ---- FAQ ---------------------------------------------------------------------------------------------------- */
.rothwesten-page .rw-faq-list{ margin-top: 24px; }
.rothwesten-page .rw-faq{ border: 1px solid var(--c-border); border-left: 4px solid var(--c-border); border-radius: 12px; margin-bottom: 10px; background: var(--c-bg); }
.rothwesten-page .rw-faq[open]{ border-left-color: var(--primary); background: var(--c-bg-alt); }
.rothwesten-page .rw-faq summary{
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 15px 16px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: .98rem; line-height: 1.4; color: var(--dark);
}
.rothwesten-page .rw-faq summary::-webkit-details-marker{ display: none; }
.rothwesten-page .rw-faq summary i{ color: var(--primary-hover); transition: transform .2s ease; flex: 0 0 auto; }
.rothwesten-page .rw-faq[open] summary i{ transform: rotate(180deg); }
.rothwesten-page .rw-faq p{ padding: 0 16px 16px; font-size: .95rem; }

/* ---- final contact ---------------------------------------------------------------------------------------------- */
.rothwesten-page .rw-contact{ margin: 8px 0 60px; background: var(--c-dark); color: #fff; border-radius: var(--radius-lg); padding: 30px 24px; }
.rothwesten-page .rw-contact h2{ color: #fff; }
.rothwesten-page .rw-contact p{ margin-top: 12px; color: rgba(255,255,255,.82); }
.rothwesten-page .rw-contact .rw-actions{ margin-top: 22px; }
.rothwesten-page .rw-contact-links{ margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .92rem; }
.rothwesten-page .rw-contact-links a{ color: #fff; font-weight: 700; text-decoration: underline; }

/* ---- >= 700px ------------------------------------------------------------------------------------------------------ */
@media (min-width: 700px){
  .rothwesten-page .rw-actions{ flex-direction: row; flex-wrap: wrap; }
  .rothwesten-page .rw-btn{ width: auto; }
  .rothwesten-page .rw-steps{ grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; position: relative; }
  .rothwesten-page .rw-steps li{ grid-template-columns: 1fr; gap: 10px; }
  .rothwesten-page .rw-steps li{ position: relative; }
  .rothwesten-page .rw-steps li:not(:last-child)::after{
    content: ""; position: absolute; top: 19px; left: 52px; right: -14px; height: 0; border-top: 2px dashed var(--c-border);
  }
  .rothwesten-page .rw-steps li::before{ position: relative; z-index: 1; }
  .rothwesten-page .rw-std{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ---- >= 1100px: sticky contact card ----------------------------------------------------------------------------------- */
@media (min-width: 1100px){
  .rothwesten-page .rw-hero{ padding: 32px 0 72px; }
  .rothwesten-page .rw-hero-grid{ grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); gap: 64px; align-items: center; }
  .rothwesten-page .rw-polaroid{ max-width: 400px; margin: 0 0 0 auto; transform: rotate(1.5deg); }

  .rothwesten-page .rw-layout{ grid-template-columns: minmax(0,1fr) 340px; gap: 56px; align-items: start; }
  .rothwesten-page .rw-block{ padding: 64px 0; }
  .rothwesten-page .rw-side{ display: block; position: sticky; top: calc(var(--header-h) + 28px); margin-top: 64px; }
  .rothwesten-page .rw-side-card{
    background: var(--c-bg); border: 1px solid var(--c-border); border-top: 8px solid var(--primary);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-md); padding: 24px;
  }
  .rothwesten-page .rw-side-title{ font-size: .76rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--c-text-soft); }
  .rothwesten-page .rw-side-phone{
    display: block; margin: 6px 0 14px; font-family: 'Plus Jakarta Sans', var(--font-display), sans-serif; font-weight: 800;
    font-size: 1.6rem; line-height: 1.1; color: var(--primary-hover);
  }
  .rothwesten-page .rw-side-phone:hover{ color: var(--primary); }
  .rothwesten-page .rw-side-list{ display: grid; gap: 10px; padding: 14px 0; border-top: 1px dashed var(--c-border); border-bottom: 1px dashed var(--c-border); margin-bottom: 16px; }
  .rothwesten-page .rw-side-list li{ display: flex; gap: 10px; align-items: center; font-size: .92rem; font-weight: 600; color: var(--dark); }
  .rothwesten-page .rw-side-list i{ color: var(--primary-hover); }
  .rothwesten-page .rw-side .rw-actions{ flex-direction: column; }
  .rothwesten-page .rw-side .rw-btn{ width: 100%; font-size: 1rem; min-height: 52px; }
  .rothwesten-page .rw-side-more{ margin-top: 14px; font-size: .86rem; line-height: 1.6; }
  .rothwesten-page .rw-side-more a{ color: var(--primary-hover); font-weight: 700; text-decoration: underline; }
  .rothwesten-page .rw-contact{ margin-bottom: 72px; padding: 36px 36px; }
}

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