/* ===========================================================
   ArkStahl — Layout & Components
   =========================================================== */

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(22, 24, 27, 0.55);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled { background: rgba(22, 24, 27, 0.94); border-bottom-color: var(--steel-line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.logo { display: flex; align-items: center; }
.logo-wordmark { height: 55px; width: auto; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { font-size: 14px; font-family: var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-mid); transition: color 0.2s ease; }
.main-nav a:hover { color: var(--text-hi); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { font-family: var(--font-mono); font-size: 14px; color: var(--text-mid); white-space: nowrap; }
.nav-toggle { display: none; background: none; border: none; color: var(--text-hi); cursor: pointer; padding: 8px; }

@media (max-width: 900px) {
  .main-nav, .header-phone { display: none; }
  .nav-toggle { display: block; }
  .main-nav.mobile-open {
    display: flex; flex-direction: column;
    position: absolute; top: 78px; left: 0; right: 0;
    background: rgba(22, 24, 27, 0.98);
    padding: 20px 24px 28px; gap: 18px;
    border-bottom: 1px solid var(--steel-line);
  }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; background: var(--steel-950); }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(22,24,27,0.92) 0%, rgba(22,24,27,0.6) 48%, rgba(22,24,27,0.3) 100%),
    linear-gradient(to bottom, rgba(22,24,27,0.5) 0%, transparent 30%, transparent 65%, rgba(22,24,27,0.85) 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: var(--container); margin: 0 auto; padding: 140px 32px 80px; width: 100%; }
.hero-copy { max-width: 640px; }
.hero-copy h1 { font-size: clamp(36px, 5vw, 58px); }
.hero-sub { margin-top: 22px; font-size: 18px; color: var(--text-mid); max-width: 540px; font-family: var(--font-body); text-transform: none; }
.hero-cta-row { display: flex; align-items: center; gap: 16px; margin-top: 34px; flex-wrap: wrap; }

.hero-spec {
  margin-top: 48px; display: inline-flex; gap: 30px;
  padding: 16px 24px;
  border: 1px solid var(--steel-line);
  background: rgba(36, 40, 45, 0.55);
  backdrop-filter: blur(6px);
}
.spec-value { font-family: var(--font-mono); font-size: 20px; color: var(--weld-orange); }
.spec-label { font-family: var(--font-mono); font-size: 11px; color: var(--text-low); letter-spacing: 0.05em; text-transform: uppercase; margin-top: 4px; }

@media (max-width: 700px) {
  .hero-inner { padding: 120px 24px 60px; }
  .hero-spec { flex-wrap: wrap; gap: 20px; }
}

/* ---------- Section headers ---------- */
.sec-head { max-width: 640px; margin-bottom: 56px; }
.sec-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 38px); }
.sec-head p { margin-top: 16px; color: var(--text-mid); font-size: 16.5px; font-family: var(--font-body); text-transform: none; }

/* ---------- Leistungen (services) — asymmetric list ---------- */
.leistungen-section { background: var(--steel-900); }
.leistungen-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
.leistungen-list { display: flex; flex-direction: column; }
.leistungen-item { display: grid; grid-template-columns: 70px 1fr; gap: 22px; padding: 26px 0; border-top: 1px solid var(--steel-line); }
.leistungen-item:last-child { border-bottom: 1px solid var(--steel-line); }
.leistungen-num { font-family: var(--font-mono); font-size: 14px; color: var(--weld-orange); padding-top: 3px; }
.leistungen-item h3 { font-size: 17px; margin-bottom: 8px; text-transform: none; letter-spacing: 0; font-family: var(--font-display); font-weight: 600; }
.leistungen-item p { color: var(--text-mid); font-size: 15px; }

.leistungen-visual { position: sticky; top: 110px; overflow: hidden; border: 1px solid var(--steel-line); }
.leistungen-visual img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }

@media (max-width: 900px) {
  .leistungen-layout { grid-template-columns: 1fr; }
  .leistungen-visual { position: static; }
  .leistungen-item { grid-template-columns: 50px 1fr; }
}

/* ---------- Portfolio grid ---------- */
.portfolio-section { background: var(--steel-950); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--steel-line); }
.portfolio-card { background: var(--steel-800); overflow: hidden; }
.portfolio-media { aspect-ratio: 4/3; overflow: hidden; }
.portfolio-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.portfolio-card:hover .portfolio-media img { transform: scale(1.05); }
.portfolio-body { padding: 22px 24px; }
.portfolio-body .cat { font-family: var(--font-mono); font-size: 11px; color: var(--weld-orange); text-transform: uppercase; letter-spacing: 0.06em; }
.portfolio-body h3 { font-size: 17px; margin: 8px 0 6px; text-transform: none; letter-spacing: 0; }
.portfolio-body p { color: var(--text-mid); font-size: 14px; }

@media (max-width: 900px) { .portfolio-grid { grid-template-columns: 1fr; } }

/* ---------- Materialien (light section) ---------- */
.material-section { background: var(--off-white); color: var(--text-hi-dark); }
.material-section .sec-head h2 { color: var(--text-hi-dark); }
.material-section .sec-head p { color: var(--text-mid-dark); }
.material-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.material-inner p { color: var(--text-mid-dark); font-size: 17px; margin-top: 18px; font-family: var(--font-body); }
.material-inner .btn { margin-top: 32px; }
.material-spec-row { display: flex; justify-content: center; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.material-spec { text-align: left; }
.material-spec .mono { font-size: 22px; color: var(--weld-orange); display: block; }
.material-spec .lbl { font-family: var(--font-mono); font-size: 11px; color: var(--text-mid-dark); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Ablauf ---------- */
.ablauf-section { background: var(--steel-900); }
.ablauf-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.ablauf-steps::before { content: ''; position: absolute; top: 18px; left: 0; right: 0; height: 2px; background: var(--weld-gradient); opacity: 0.4; }
.ablauf-step { position: relative; padding-right: 24px; }
.ablauf-num {
  font-family: var(--font-mono); font-size: 13px; color: var(--steel-900);
  background: var(--weld-gradient);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; position: relative; z-index: 1;
  clip-path: polygon(15% 0, 100% 0, 85% 100%, 0 100%);
}
.ablauf-step h3 { font-size: 16px; margin-bottom: 8px; }
.ablauf-step p { color: var(--text-mid); font-size: 14.5px; font-family: var(--font-body); text-transform: none; }

@media (max-width: 900px) {
  .ablauf-steps { grid-template-columns: 1fr; gap: 32px; }
  .ablauf-steps::before { display: none; }
}

/* ---------- FAQ ---------- */
.faq-section { background: var(--steel-950); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--steel-line); background: var(--steel-800); overflow: hidden; }
.faq-q { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 20px 22px; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 15px; text-transform: none; letter-spacing: 0; }
.faq-chevron { flex-shrink: 0; color: var(--weld-orange); transition: transform 0.25s ease; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--text-mid); font-size: 14.5px; font-family: var(--font-body); }
.faq-item.open .faq-a { max-height: 240px; }

/* ---------- Kontakt ---------- */
.kontakt-section { position: relative; background: var(--steel-950); overflow: hidden; }
.kontakt-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.kontakt-bg-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(22,24,27,0.95) 20%, rgba(22,24,27,0.78) 100%); }
.kontakt-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.kontakt-left h2 { font-size: clamp(26px, 3.2vw, 36px); }
.kontakt-left p { color: var(--text-mid); margin-top: 18px; font-size: 16px; font-family: var(--font-body); text-transform: none; }
.kontakt-info { display: flex; flex-direction: column; gap: 8px; margin-top: 28px; }
.kontakt-info a, .kontakt-info span { font-size: 14.5px; color: var(--text-mid); font-family: var(--font-body); }
.kontakt-info a:hover { color: var(--weld-orange); }

.form-card { background: rgba(36, 40, 45, 0.7); backdrop-filter: blur(10px); border: 1px solid var(--steel-line); padding: 34px; }
.form-card h3 { font-size: 19px; margin-bottom: 8px; }
.form-card > p { color: var(--text-mid); font-size: 14px; margin-bottom: 24px; font-family: var(--font-body); text-transform: none; }
.form-row { display: flex; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; flex: 1; }
.form-field label { font-size: 13px; color: var(--text-mid); font-family: var(--font-mono); }
.form-field input, .form-field textarea {
  font-family: var(--font-body); font-size: 15px; padding: 13px 14px;
  border: 1px solid var(--steel-line);
  background: rgba(22,24,27,0.5);
  color: var(--text-hi);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--weld-orange); }
.form-consent { font-size: 12.5px; color: var(--text-low); margin-top: 14px; font-family: var(--font-body); }
.form-success { display: none; text-align: center; padding: 30px 0; }
.form-success.visible { display: block; }

@media (max-width: 900px) { .kontakt-layout { grid-template-columns: 1fr; gap: 40px; } .form-row { flex-direction: column; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--steel-950); border-top: 1px solid var(--steel-line); padding: 64px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--steel-line); }
.footer-brand { max-width: 340px; display: flex; flex-direction: column; gap: 14px; }
.footer-brand p { color: var(--text-mid); font-size: 14px; font-family: var(--font-body); }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-low); margin-bottom: 14px; font-family: var(--font-mono); }
.footer-col a, .footer-col span { display: block; font-size: 14px; color: var(--text-mid); margin-bottom: 9px; font-family: var(--font-body); }
.footer-col a:hover { color: var(--weld-orange); }
.footer-bottom { padding-top: 22px; text-align: center; color: var(--text-low); font-size: 13px; font-family: var(--font-body); }

@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; max-width: 100%; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Legal pages ---------- */
.legal-section { padding: 160px 0 100px; max-width: 780px; margin: 0 auto; }
.legal-section h1 { font-size: 30px; margin-bottom: 40px; }
.legal-section .legal-body p { color: var(--text-mid); margin-bottom: 20px; white-space: pre-line; font-size: 15px; font-family: var(--font-body); }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
