/* ==========================================================================
   Hallenbau Padeffke – "Stahl & Beton"
   Concrete-grey surfaces, graphite, signal red from the logo, hairline
   drawing lines and a roof-pitch motif. System fonts only, no external
   requests.
   ========================================================================== */

:root {
  --red: #d40031;
  --red-dark: #a8002a;
  --graphite: #1c2023;
  --graphite-2: #262b2f;
  --steel: #a3a698;          /* logo grey */
  --concrete: #eeede9;
  --concrete-2: #e2e1dc;
  --paper: #fbfbf9;
  --text: #22272b;
  --muted: #5f666b;
  --line: #cfcdc6;
  --line-dark: #3a4146;
  --on-dark: #eef0ef;
  --on-dark-muted: #a9b0b3;

  --wrap: 1200px;
  --radius: 4px;
  --shadow: 0 22px 44px -24px rgba(20, 24, 27, .45);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Arial Narrow", "Roboto Condensed", "Helvetica Neue Condensed", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--paper); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-stretch: condensed; line-height: 1.05; margin: 0 0 .5em; color: var(--graphite); letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
@media (max-width: 600px) { h1, h2 { -webkit-hyphens: auto; hyphens: auto; } }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 800px) { .wrap { padding: 0 32px; } }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--graphite); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Kicker with drawing-style number ---------- */
.kicker {
  display: flex; align-items: center; gap: 12px; margin: 0 0 16px;
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.kicker::after { content: ""; flex: 0 0 48px; height: 2px; background: var(--red); }
.kicker .num { font-family: var(--display); font-size: 1rem; color: var(--red); letter-spacing: .04em; }
.kicker-light { color: var(--on-dark-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border: 2px solid transparent; border-radius: var(--radius);
  font-weight: 700; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); font-family: inherit; }
.btn-line:hover { background: #fff; color: var(--graphite); border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.text-link { font-weight: 700; text-decoration: none; color: var(--red-dark); letter-spacing: .02em; }
.text-link::after { content: " →"; }
.text-link:hover { color: var(--red); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 251, 249, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.site-header::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 120px; height: 3px; background: var(--red); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand img { width: 220px; }
@media (min-width: 900px) { .brand img { width: 265px; } }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 10px 12px; font-size: .88rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--graphite); }
.nav a:hover { color: var(--red); }
.nav a.nav-cta { margin-left: 8px; background: var(--graphite); color: #fff; border-radius: var(--radius); padding: 10px 16px; }
.nav a.nav-cta:hover { background: var(--red); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--graphite); margin: 6px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a.nav-cta { margin: 12px 0 0; text-align: center; border: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--graphite); overflow: hidden; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(20, 24, 27, .92) 0%, rgba(20, 24, 27, .78) 42%, rgba(20, 24, 27, .25) 75%, rgba(20, 24, 27, .1) 100%);
}
/* roof-pitch motif */
.hero::after {
  content: ""; position: absolute; z-index: 1; left: 0; top: 0; width: min(46vw, 560px); height: 14px;
  background: var(--red); transform-origin: left top; transform: skewY(-3deg);
}
.hero-inner { position: relative; z-index: 2; padding: clamp(90px, 14vw, 170px) 20px clamp(60px, 9vw, 110px); }
@media (min-width: 800px) { .hero-inner { padding-left: 32px; padding-right: 32px; } }
.hero h1 { color: #fff; max-width: 13ch; }
.hero h1 span { color: #fff; -webkit-text-stroke: 0; background: linear-gradient(transparent 62%, rgba(212, 0, 49, .85) 62%, rgba(212, 0, 49, .85) 92%, transparent 92%); }
.hero .lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 600px; color: #dfe3e3; }
.hero-strip { position: relative; z-index: 2; background: rgba(20, 24, 27, .82); border-top: 1px solid rgba(255, 255, 255, .14); }
.strip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 420px) { .strip-grid > div { padding: 16px 10px; } .strip-grid strong { font-size: 1.05rem; } }
@media (min-width: 800px) { .strip-grid { grid-template-columns: repeat(4, 1fr); } }
.strip-grid > div { padding: 20px 18px; border-left: 1px solid rgba(255, 255, 255, .14); }
.strip-grid > div:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 799px) { .strip-grid > div:nth-child(3) { border-left: 0; padding-left: 0; } .strip-grid > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); } }
.strip-grid strong { display: block; font-family: var(--display); font-stretch: condensed; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .02em; }
.strip-grid span { font-size: .88rem; color: var(--on-dark-muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-concrete {
  background-color: var(--concrete);
  /* faint drawing grid */
  background-image: linear-gradient(rgba(34, 39, 43, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 39, 43, .045) 1px, transparent 1px);
  background-size: 40px 40px;
}
.section-dark { background: var(--graphite); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a:not(.btn) { color: #ff8aa3; }
.section-red { background: var(--red); color: #fff; }
.section-red h2 { color: #fff; }
.section-red .kicker-light { color: rgba(255, 255, 255, .8); }
.section-red .kicker::after { background: #fff; }
.section-red .kicker .num { color: #fff; }
.section-head { max-width: 780px; margin-bottom: 48px; }
.section-lead { font-size: 1.12rem; color: var(--muted); }
.section-dark .section-lead { color: var(--on-dark-muted); }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .split-top { align-items: start; } }

/* Intro */
.intro-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .intro-grid { grid-template-columns: 5fr 7fr; gap: 72px; } }
.intro-text .big { font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.45; color: var(--graphite); font-weight: 600; border-left: 4px solid var(--red); padding-left: 20px; }
.intro-text p:not(.big) { color: var(--muted); }

/* Services */
.services { display: grid; gap: 20px; }
@media (min-width: 760px) { .services { grid-template-columns: repeat(2, 1fr); } }
.service {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px 28px; box-shadow: 0 1px 0 rgba(0, 0, 0, .03);
  transition: transform .2s, box-shadow .2s;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service::before { content: ""; position: absolute; left: 0; top: 0; width: 64px; height: 4px; background: var(--red); }
.service-no {
  position: absolute; right: 22px; top: 18px; font-family: var(--display); font-stretch: condensed;
  font-size: 3rem; font-weight: 800; line-height: 1; color: var(--concrete-2);
}
.service h3 { font-size: 1.5rem; text-transform: uppercase; padding-right: 48px; }
.service p { color: var(--muted); }
.service-dark { background: var(--graphite); border-color: var(--graphite); color: var(--on-dark); }
.service-dark h3 { color: #fff; }
.service-dark p { color: var(--on-dark-muted); }
.service-dark .service-no { color: var(--graphite-2); }
.service-dark .text-link { color: #ff8aa3; }
.ticks { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 24px; font-size: .95rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .6em; width: 12px; height: 2px; background: var(--red); }

/* Steps: along a steel beam */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(6, 1fr); gap: 20px; } }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0;
  width: 42px; height: 42px; display: grid; place-items: center; background: var(--red); color: #fff;
  font-family: var(--display); font-stretch: condensed; font-weight: 800; font-size: 1.1rem;
}
.steps li::after { content: ""; position: absolute; top: 20px; left: 50px; right: -20px; height: 2px; background: repeating-linear-gradient(90deg, var(--steel) 0 12px, transparent 12px 18px); }
.steps li:last-child::after { display: none; }
@media (max-width: 1099px) { .steps li::after { display: none; } }
.steps h3 { text-transform: uppercase; font-size: 1.2rem; margin-bottom: 6px; }
.steps p { color: var(--on-dark-muted); font-size: .95rem; margin: 0; }

/* Framed photo with drawing corner marks */
.frame { position: relative; margin: 0; padding: 14px; }
.frame img { width: 100%; box-shadow: var(--shadow); }
.frame::before, .frame::after { content: ""; position: absolute; width: 60px; height: 60px; border: 3px solid var(--red); }
.frame::before { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.frame::after { right: 0; bottom: 0; border-left: 0; border-top: 0; }

/* Building types */
.types { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .types { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .types { grid-template-columns: repeat(5, 1fr); } }
.types li { background: var(--paper); padding: 28px 22px; position: relative; }
.types li::before { content: ""; display: block; width: 44px; height: 22px; margin-bottom: 18px; background: var(--steel); clip-path: polygon(0 100%, 0 40%, 50% 0, 100% 40%, 100% 100%, 84% 100%, 84% 48%, 50% 20%, 16% 48%, 16% 100%); }
.types li:hover::before { background: var(--red); }
.types h3 { font-size: 1.15rem; text-transform: uppercase; }
.types p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Gallery (replaces the old slider) */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; } }
.shot { position: relative; padding: 0; border: 0; background: var(--graphite); cursor: zoom-in; overflow: hidden; border-radius: var(--radius); aspect-ratio: 23 / 15; }
@media (min-width: 900px) { .shot { aspect-ratio: auto; } .shot-wide { grid-column: span 2; grid-row: span 2; } }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.shot:hover img { transform: scale(1.05); opacity: .85; }
.shot span {
  position: absolute; left: 0; bottom: 0; right: 0; padding: 28px 14px 12px; text-align: left;
  font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff;
  background: linear-gradient(transparent, rgba(20, 24, 27, .85));
}
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); }
.lightbox::backdrop { background: rgba(14, 16, 18, .9); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; }
.lightbox-caption { color: #fff; text-align: center; margin: 12px 0 0; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; }
.lightbox-close { position: absolute; top: -4px; right: 0; background: var(--red); color: #fff; border: 0; width: 42px; height: 42px; font-size: 1.6rem; cursor: pointer; z-index: 1; }

/* Experience */
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.benefits li { padding: 14px 0 14px 36px; border-bottom: 1px solid rgba(255, 255, 255, .28); position: relative; font-weight: 600; }
.benefits li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 18px; height: 10px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg); }

/* Jobs */
.jobs { display: grid; gap: 20px; }
@media (min-width: 900px) { .jobs { grid-template-columns: repeat(3, 1fr); } }
.job { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--graphite); border-radius: var(--radius); padding: 26px; text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s, box-shadow .2s; }
.job:hover { border-top-color: var(--red); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.job-tag { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red-dark); margin-bottom: 10px; }
.job h3 { text-transform: uppercase; }
.job h3 small { font-size: .8rem; color: var(--muted); font-weight: 600; }
.job p { color: var(--muted); }
.job .text-link { margin-top: auto; }
.jobs-apply { margin-top: 28px; color: var(--muted); }

/* Contact */
.address { font-style: normal; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line-dark); color: var(--on-dark-muted); }
.address strong { color: #fff; }
.map { min-height: 380px; background: var(--graphite-2); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; display: flex; }
.map iframe { width: 100%; min-height: 380px; border: 0; }
.map-placeholder { margin: auto; padding: 32px; max-width: 420px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.map-placeholder p { margin: 0; }
.map-note { font-size: .85rem; color: var(--on-dark-muted); }

/* Footer */
.site-footer { background: var(--paper); border-top: 4px solid var(--red); padding: 48px 0 28px; }
.footer-inner { display: grid; gap: 28px; }
@media (min-width: 800px) { .footer-inner { grid-template-columns: 2fr 1fr; align-items: end; } }
.site-footer p { color: var(--muted); margin: 14px 0 0; max-width: 520px; font-size: .95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
@media (min-width: 800px) { .footer-links { justify-content: flex-end; } }
.footer-links a { color: var(--graphite); font-weight: 700; text-decoration: none; font-size: .9rem; }
.footer-links a:hover { color: var(--red); }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

/* Legal pages */
.page-head { background: var(--graphite); color: #fff; padding: 72px 0 56px; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; left: 0; top: 0; width: 320px; height: 10px; background: var(--red); transform-origin: left top; transform: skewY(-3deg); }
.page-head h1 { color: #fff; font-size: clamp(2.2rem, 6vw, 3.6rem); }
.legal { max-width: 820px; padding-top: 56px; padding-bottom: 80px; }
.legal h2 { font-size: 1.6rem; margin-top: 2em; }
.legal h3 { font-size: 1.15rem; margin-top: 1.6em; }
.legal ul { padding-left: 1.2em; }
.legal .note { background: var(--concrete); border-left: 4px solid var(--red); padding: 14px 18px; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .service, .job, .shot img { transition: none; }
}

/* Gallery CTA tile (fills the last row) */
.shot-cta {
  grid-column: 1 / -1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  padding: 28px; border-radius: var(--radius); text-decoration: none; color: #fff;
  background: var(--red) linear-gradient(135deg, transparent 0 60%, rgba(0, 0, 0, .12) 60% 100%);
}
@media (min-width: 900px) { .shot-cta { grid-column: span 2; grid-row: span 2; padding: 36px; } }
.shot-cta:hover { color: #fff; background-color: var(--red-dark); }
.shot-cta-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.shot-cta strong { font-family: var(--display); font-stretch: condensed; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.05; text-transform: uppercase; }
.shot-cta .text-link { color: #fff; }

/* Accessibility */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.section-dark .kicker .num, .page-head .kicker .num { color: #ff5c7a; }   /* red on graphite needs a lighter tone for 4.5:1 */
.section-dark .kicker::after { background: #ff5c7a; }
