/* Halden & Rowe Builders - Demo-Website von GL Tools (fiktive Firma)
   Design-System: ui-ux-pro-max "Scroll-Triggered Storytelling" (Kapitel vorher -> Arbeit -> nachher,
   CTA am Ende jedes Kapitels, ohne Scroll-Effekte voll lesbar). Farbe statt Schwarz/Weiss an die
   Branche angepasst: Gips-Weiss, Waldgruen, Ocker als einziger Akzent. Signatur: Vorher/Nachher-Regler. */

@font-face { font-family: "Schibsted"; src: url("fonts/schibsted.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --plaster: #f4f2ed;
  --plaster-2: #e9e5dc;
  --white: #fffefb;
  --forest: #1e3a2f;
  --forest-2: #284a3c;
  --ink: #1b231f;
  --muted: #56605a;
  --on-forest: #f1f3ef;
  --on-forest-muted: #b9c6bd;
  --ochre: #d29b2a;
  --ochre-dark: #8a6210;
  --line: rgba(27, 35, 31, .13);
  --line-forest: rgba(241, 243, 239, .16);
  --r: 1rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(1rem, 4vw, 2.75rem);
  --max: 80rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; font-family: "Instrument", system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.62; color: var(--ink); background: var(--plaster); overflow-x: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: "Schibsted", "Instrument", sans-serif; margin: 0; line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; }
p { margin: 0; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ochre); color: var(--ink); padding: .6rem 1rem; z-index: 100; font-weight: 700; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--ochre-dark); outline-offset: 3px; }
.forest :focus-visible { outline-color: var(--ochre); }

.demo-note { background: var(--ink); color: #c9cfca; font-size: .8125rem; text-align: center; padding: .45rem var(--gutter); }
.demo-note a { color: #fff; text-underline-offset: 3px; }

/* ---------- Kopf ---------- */
.head { position: sticky; top: 0; z-index: 40; background: rgba(244, 242, 237, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.logo svg { width: 2.3rem; height: 2.3rem; flex: none; }
.logo b { font-family: "Schibsted", sans-serif; font-size: 1.15rem; letter-spacing: -.02em; display: block; line-height: 1; }
.logo small { font-size: .74rem; color: var(--muted); display: block; margin-top: .2rem; }
.menu { display: none; list-style: none; margin: 0; padding: 0; gap: .25rem; }
.menu a { text-decoration: none; font-weight: 500; font-size: .96875rem; padding: .5rem .8rem; border-radius: .5rem; transition: background-color .4s var(--ease); }
.menu a:hover { background: rgba(27,35,31,.06); }
.head-right { display: flex; gap: .5rem; align-items: center; }
.lang { font-size: .8125rem; font-weight: 600; text-decoration: none; padding: .45rem .65rem; border-radius: .5rem; border: 1px solid var(--line); }
.head .tel { display: none; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.1rem; padding: .7rem 1.4rem; border-radius: .6rem; border: 0; font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform .5s var(--ease), background-color .5s var(--ease), box-shadow .5s var(--ease); }
.btn:active { transform: scale(.98); }
.btn svg { width: 1.1rem; height: 1.1rem; transition: transform .6s var(--ease); flex: none; }
.btn:hover svg { transform: translateX(3px); }
.btn-ochre { background: var(--ochre); color: var(--ink); }
.btn-ochre:hover { background: #e0aa38; }
.btn-forest { background: var(--forest); color: var(--on-forest); }
.btn-forest:hover { background: #163026; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(27,35,31,.28); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.head .btn { min-height: 2.75rem; padding: .5rem 1rem; font-size: .9375rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.chapter { display: inline-flex; align-items: center; gap: .6rem; font-size: .9rem; font-weight: 600; color: var(--forest); }
.chapter::before { content: ""; width: 2rem; height: 2px; background: var(--ochre); }
.hero h1 { font-size: clamp(2.6rem, 7.4vw, 5.4rem); margin: 1.2rem 0 1.3rem; max-width: 12ch; }
.hero .lede { font-size: clamp(1.06rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 34rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.creds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); max-width: 36rem; }
.creds b { display: block; font-family: "Schibsted", sans-serif; font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.15; }
.creds span { display: block; font-size: .8125rem; color: var(--muted); line-height: 1.35; margin-top: .25rem; }
.hero-media { position: relative; }
.hero-media .frame { border-radius: var(--r); overflow: hidden; }
.hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-card { position: absolute; right: -.5rem; bottom: 1.5rem; width: min(17rem, 76%); background: var(--white); border-radius: .8rem; padding: 1rem 1.1rem; box-shadow: 0 0 0 1px var(--line), 0 28px 50px -28px rgba(27,35,31,.55); font-size: .875rem; }
.hero-card b { font-family: "Schibsted", sans-serif; font-size: 1.05rem; display: block; margin-bottom: .35rem; }
.hero-card .bar { height: .45rem; border-radius: 1rem; background: var(--plaster-2); margin: .6rem 0 .35rem; overflow: hidden; }
.hero-card .bar i { display: block; height: 100%; width: 70%; background: var(--forest); border-radius: 1rem; }
.hero-card small { color: var(--muted); }

/* ---------- Abschnitte ---------- */
.sec { padding: clamp(4.5rem, 10vw, 8.5rem) 0; }
.sec-head { display: grid; gap: 1.1rem; margin-bottom: clamp(2.25rem, 5vw, 3.75rem); }
.sec-head h2 { font-size: clamp(2.2rem, 5.6vw, 4.3rem); max-width: 16ch; }
.sec-head p { color: var(--muted); max-width: 36rem; }
.forest { background: var(--forest); color: var(--on-forest); }
.forest .sec-head p, .forest .chapter { color: var(--on-forest-muted); }

/* ---------- Vorher/Nachher ---------- */
.projects { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.project { display: grid; gap: 1.25rem; }
.ba { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 2; background: var(--plaster-2); user-select: none; touch-action: pan-y; --pos: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .after { clip-path: inset(0 0 0 var(--pos)); }
.ba .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.ba .knob { position: absolute; top: 50%; left: 50%; width: 3.2rem; height: 3.2rem; margin: -1.6rem 0 0 -1.6rem; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); color: var(--forest); }
.ba .knob svg { width: 1.5rem; height: 1.5rem; }
.ba .lbl { position: absolute; top: 1rem; font-size: .8125rem; font-weight: 700; padding: .35rem .7rem; border-radius: .45rem; background: rgba(27,35,31,.78); color: #fff; pointer-events: none; }
.ba .lbl.b { left: 1rem; }
.ba .lbl.a { right: 1rem; background: var(--ochre); color: var(--ink); }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba input[type=range]:focus-visible ~ .handle .knob { outline: 3px solid var(--ochre); outline-offset: 3px; }
.project-info h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .6rem; }
.project-info p { color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1.25rem; padding: 0; list-style: none; }
.facts li { padding-top: .75rem; border-top: 2px solid var(--forest); font-size: .8125rem; color: var(--muted); }
.facts b { display: block; color: var(--ink); font-family: "Schibsted", sans-serif; font-size: 1.15rem; letter-spacing: -.02em; }
.note-demo { font-size: .875rem; color: var(--muted); margin-top: 2rem; }

/* ---------- Leistungen ---------- */
.services { display: grid; gap: 1px; background: var(--line-forest); border-radius: var(--r); overflow: hidden; }
.svc { background: var(--forest); padding: 1.6rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.svc h3 { font-size: 1.45rem; }
.svc p { color: var(--on-forest-muted); font-size: .98rem; }
.svc .range { margin-top: auto; padding-top: 1rem; font-weight: 600; color: var(--ochre); font-variant-numeric: tabular-nums; }
.svc-photos { display: grid; gap: 1rem; margin-top: 1rem; }
.svc-photos figure { margin: 0; }
.svc-photos img { border-radius: var(--r); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.svc-photos figcaption { font-size: .875rem; color: var(--on-forest-muted); margin-top: .6rem; }

/* ---------- Ablauf ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.steps li::before { counter-increment: s; content: counter(s); font-family: "Schibsted", sans-serif; font-weight: 800; font-size: 2rem; line-height: 1; color: var(--ochre-dark); }
.steps h3 { font-size: 1.35rem; margin-bottom: .35rem; }
.steps p { color: var(--muted); }
.steps .when { display: block; font-size: .875rem; font-weight: 600; color: var(--forest); margin-top: .5rem; }

/* ---------- Vertrauen ---------- */
.trust { display: grid; gap: 1rem; margin-bottom: 1rem; }
.badge-card { background: var(--white); border-radius: var(--r); padding: 1.5rem; box-shadow: 0 0 0 1px var(--line); display: grid; gap: .6rem; align-content: start; }
.badge-card svg { width: 2.3rem; height: 2.3rem; color: var(--forest); }
.badge-card h3 { font-size: 1.3rem; }
.badge-card p { color: var(--muted); font-size: .96875rem; }
.badge-card .num { font-family: "Schibsted", sans-serif; font-weight: 800; font-size: 2.6rem; letter-spacing: -.04em; line-height: 1; color: var(--forest); }
.reviews { display: grid; gap: 1rem; }
.review { margin: 0; background: var(--white); border-radius: var(--r); padding: 1.5rem; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: .9rem; }
.stars { display: flex; gap: .2rem; color: var(--ochre); }
.stars svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }
.review blockquote { margin: 0; flex: 1; font-size: 1.02rem; line-height: 1.55; }
.review figcaption { display: flex; justify-content: space-between; gap: .75rem; font-size: .875rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.review figcaption span { color: var(--muted); text-align: right; }

/* ---------- Formular ---------- */
.est-grid { display: grid; gap: 1.5rem; }
.est { background: var(--white); border-radius: var(--r); padding: clamp(1.25rem, 3.5vw, 2.5rem); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 1.6rem; }
.est fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 1rem; }
.est legend { font-family: "Schibsted", sans-serif; font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; padding: 0; margin-bottom: .2rem; display: flex; align-items: center; gap: .6rem; }
.est legend span { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--forest); color: var(--on-forest); font-size: .85rem; letter-spacing: 0; }
.types { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.type { position: relative; }
.type input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.type span { display: flex; align-items: center; min-height: 3.2rem; padding: .6rem .9rem; border-radius: .6rem; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; font-size: .95rem; cursor: pointer; transition: box-shadow .4s var(--ease), background-color .4s var(--ease); line-height: 1.25; }
.type input:checked + span { background: var(--forest); color: var(--on-forest); box-shadow: none; }
.type input:focus-visible + span { outline: 3px solid var(--ochre-dark); outline-offset: 2px; }
.field { display: grid; gap: .4rem; }
.field label, .field .lab { font-size: .9rem; font-weight: 600; }
.hint { font-weight: 400; color: var(--muted); font-size: .8rem; }
input, select, textarea { font: inherit; font-size: 1rem; color: var(--ink); width: 100%; min-height: 3rem; padding: .7rem .9rem; border-radius: .6rem; border: 0; background: var(--plaster); box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .4s var(--ease); }
textarea { min-height: 6.5rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--forest); }
.row2 { display: grid; gap: 1rem; }
.drop { display: grid; place-items: center; text-align: center; gap: .4rem; padding: 1.5rem 1rem; border-radius: .8rem; border: 2px dashed rgba(27,35,31,.25); background: var(--plaster); cursor: pointer; transition: border-color .4s var(--ease), background-color .4s var(--ease); }
.drop:hover, .drop.over { border-color: var(--forest); background: #eef1ec; }
.drop svg { width: 2rem; height: 2rem; color: var(--forest); }
.drop b { font-size: .98rem; }
.drop small { color: var(--muted); font-size: .8125rem; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.thumbs { display: flex; flex-wrap: wrap; gap: .5rem; }
.thumbs img { width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: .5rem; }
.thumbs span { font-size: .8125rem; color: var(--muted); }
.form-msg { display: none; padding: 1rem 1.1rem; border-radius: .8rem; background: #e6f1ea; color: #1d5a37; font-size: .95rem; }
.form-msg.show { display: block; }
.form-msg strong { display: block; }
.est-aside { display: grid; gap: 1rem; align-content: start; }
.est-aside img { border-radius: var(--r); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- Fuss ---------- */
.foot { background: var(--ink); color: #b5bdb7; padding: 4rem 0 7.5rem; font-size: .9rem; }
.foot-grid { display: grid; gap: 2rem; }
.foot h2 { color: #fff; font-size: clamp(1.9rem, 5vw, 3.3rem); max-width: 15ch; margin-bottom: 1.4rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.foot a { color: #fff; text-underline-offset: 3px; }
.foot .btn-ochre { color: var(--ink); text-decoration: none; }
.foot .credits { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.5rem; padding-top: 1.5rem; display: grid; gap: .6rem; font-size: .8rem; }
.foot .demo-badge { color: #fff; font-weight: 600; }

.mbar { position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 30; display: grid; grid-template-columns: 1fr 1.3fr; gap: .5rem; padding: .45rem; border-radius: .9rem; background: rgba(30,58,47,.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 18px 40px -18px rgba(0,0,0,.5); }
.mbar a { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 3rem; border-radius: .6rem; text-decoration: none; font-weight: 700; font-size: .9375rem; color: var(--on-forest); }
.mbar a svg { width: 1.1rem; height: 1.1rem; }
.mbar .call { box-shadow: inset 0 0 0 1px var(--line-forest); }
.mbar .est-btn { background: var(--ochre); color: var(--ink); }

/* ---------- Bewegung ---------- */
.up { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.up.in { opacity: 1; transform: none; }
.hero .up:nth-child(2) { transition-delay: .08s; } .hero .up:nth-child(3) { transition-delay: .16s; } .hero .up:nth-child(4) { transition-delay: .24s; } .hero .up:nth-child(5) { transition-delay: .32s; }
.no-js .up { opacity: 1; transform: none; }
.ba.hint-move .after, .ba.hint-move .handle { transition: clip-path 1.4s var(--ease), left 1.4s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
  .up { opacity: 1; transform: none; }
}

@media (min-width: 640px) {
  .services { grid-template-columns: 1fr 1fr; }
  .svc-photos { grid-template-columns: 1fr 1fr; }
  .types { grid-template-columns: repeat(3, 1fr); }
  .row2 { grid-template-columns: 1fr 1fr; }
  .trust, .reviews { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .menu { display: flex; }
  .head .tel { display: inline; }
  .mbar { display: none; }
  .foot { padding-bottom: 4rem; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 4.5rem; }
  .hero-card { right: auto; left: -2.5rem; }
  .sec-head { grid-template-columns: 1.1fr .9fr; align-items: end; }
  .project { grid-template-columns: 1.55fr .45fr; align-items: end; gap: 2.5rem; }
  .project:nth-child(even) { grid-template-columns: .45fr 1.55fr; }
  .project:nth-child(even) .ba { order: 2; }
  .facts { grid-template-columns: 1fr; }
  .services { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; border-top: 0; }
  .steps li { grid-template-columns: 1fr; border-bottom: 0; border-top: 2px solid var(--ink); padding-top: 1.2rem; }
  .trust { grid-template-columns: 1.2fr 1fr 1fr; }
  .reviews { grid-template-columns: repeat(4, 1fr); }
  .est-grid { grid-template-columns: 1.4fr .6fr; align-items: start; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (max-width: 420px) { .logo small { display: none; } .creds b { font-size: 1.05rem; } .facts b { font-size: 1rem; } .hero-card { right: .75rem; } }
@media (max-width: 999px) { .head .btn { display: none; } }
