/* ============================================================
   Holzwerkstatt Bodensteiner — multi-page additions
   Alt full-bleed hero · subpage headers · team · services ·
   projects gallery · werkstatt. Loaded after styles.css.
   ============================================================ */

/* ---- Active navigation state ----------------------------- */
.nav__link[aria-current="page"] { color: var(--hdr-fg, var(--ink-900)); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.mobile-menu a[aria-current="page"] { color: var(--accent-strong); }

/* ============================================================
   Full-bleed alternative hero (index-alt.html)
   ============================================================ */
.hero-full {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  background: var(--ink-900);
  overflow: hidden;
}
.hero-full__media { position: absolute; inset: 0; z-index: 0; }
.hero-full__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.hero-full__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(5,5,7,0.86) 0%, rgba(5,5,7,0.45) 38%, rgba(5,5,7,0.12) 66%, rgba(5,5,7,0.34) 100%),
    linear-gradient(to right, rgba(5,5,7,0.5) 0%, rgba(5,5,7,0) 55%);
}
.hero-full__copy {
  position: relative;
  z-index: 2;
  color: var(--paper-1);
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  max-width: 760px;
}
.hero-full .eyebrow { color: var(--oak-300); }
.hero-full__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 8.6vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
  color: var(--paper-1);
  margin-top: 0;
}
.hero-full__kicker {
  display: flex;
  font-family: var(--font-sans);
  line-height: var(--lh-normal);
  letter-spacing: var(--ls-label);
  margin-bottom: 1.25rem;
}
.hero-full__title .ln { display: block; overflow: hidden; }
.hero-full__title .ln > span { display: block; }
.hero-full__title em { font-style: normal; color: var(--oak-300); }
.hero-full__lead {
  font-size: var(--text-lg);
  line-height: var(--lh-normal);
  color: rgba(250, 248, 245, 0.84);
  max-width: 46ch;
  margin-top: 1.5rem;
  text-wrap: pretty;
}
.hero-full__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.hero-full__cta .btn--secondary {
  color: var(--paper-1);
  border-color: rgba(250, 248, 245, 0.55);
}
@media (hover: hover) and (pointer: fine) {
  .hero-full__cta .btn--secondary:hover { background: var(--paper-1); color: var(--ink-900); border-color: var(--paper-1); }
}
.hero-full__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(2.5rem, 6vw, 5rem);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--text-2xs);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.7);
}
.hero-full__scroll svg { width: 16px; height: 16px; animation: nudge 1.8s var(--ease-standard) infinite; }
@keyframes nudge { 0%,100%{transform:translateY(0)} 50%{transform:translateY(4px)} }
.js .hero-full__title .ln > span,
.js .hero-full [data-hero] { opacity: 0; }
.no-js .hero-full__title .ln > span,
.no-js .hero-full [data-hero] { opacity: 1; }

/* ============================================================
   Subpage header
   ============================================================ */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem));
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  background: var(--paper-1);
  border-bottom: 1px solid var(--border-hairline);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
@media (hover: hover) and (pointer: fine) {
  .breadcrumb a:hover { color: var(--ink-900); }
}
.breadcrumb svg { width: 13px; height: 13px; opacity: 0.6; }
.page-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 0.94;
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
  color: var(--text-strong);
  margin-top: 0;
}
.page-hero__lead {
  font-family: var(--font-sans);
  font-size: clamp(1.125rem, 2vw, var(--text-xl));
  line-height: var(--lh-normal);
  color: var(--text-body);
  max-width: 40ch;
  margin-top: 1.5rem;
  text-wrap: pretty;
}

/* legal prose (Impressum / Datenschutz) */
.legal { max-width: 75ch; }
.legal h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-xl);
  line-height: 1.25;
  color: var(--text-strong);
  margin-top: 2.75rem;
}
.legal h2:first-child { margin-top: 0; }
.legal h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-md);
  color: var(--text-strong);
  margin-top: 1.6rem;
}
.legal p, .legal li {
  font-size: var(--text-md);
  line-height: var(--lh-relaxed);
  color: var(--text-muted);
}
.legal p { margin-top: 0.9rem; }
.legal address {
  font-style: normal;
  color: var(--text-body);
  line-height: var(--lh-relaxed);
  margin-top: 0.9rem;
}
.legal a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .legal a:hover { color: var(--ink-900); }
}
.legal ul { margin-top: 0.9rem; padding-left: 1.1rem; list-style: disc; }
.legal li { margin-top: 0.4rem; }
.legal .note {
  margin-top: 2.5rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--border-hairline);
  background: var(--paper-2);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.legal .meta-updated {
  margin-top: 2.5rem;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

/* generic prose */
.prose-narrow { max-width: 62ch; }
.prose-narrow p {
  font-size: var(--text-md);
  line-height: var(--lh-relaxed);
  color: var(--text-muted);
}
.prose-narrow p + p { margin-top: 1.1rem; }

/* ============================================================
   Team (Über uns)
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}
.team-card {
  display: flex;
  flex-direction: column;
}
.team-card__photo {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--shadow-sm);
}
.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .team-card:hover .team-card__photo img { transform: scale(1.03); }
}
.team-card__name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--text-xl);
  color: var(--text-strong);
  margin-top: 1.1rem;
}
.team-card__role {
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-top: 0.35rem;
}
.team-card__bio {
  font-size: var(--text-sm);
  line-height: var(--lh-normal);
  color: var(--text-muted);
  margin-top: 0.85rem;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.value {
  padding-top: 1.4rem;
  border-top: 1.5px solid var(--ink-900);
}
.value h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--text-lg);
  color: var(--text-strong);
}
.value p {
  font-size: var(--text-sm);
  line-height: var(--lh-normal);
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ============================================================
   Services editorial list (Leistungen)
   ============================================================ */
.svc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid var(--border-hairline);
}
.svc:first-of-type { border-top: none; }
.svc__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--shadow-sm);
}
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .svc:hover .svc__media img { transform: scale(1.04); }
}
.svc:nth-child(even) .svc__media { order: 2; }
.svc__num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  letter-spacing: 0.04em;
  color: var(--oak-500);
  line-height: 1;
}
.svc__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, var(--text-4xl));
  line-height: 0.98;
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
  color: var(--text-strong);
  margin-top: 0.5rem;
}
.svc__text {
  font-size: var(--text-md);
  line-height: var(--lh-relaxed);
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 46ch;
}

/* ============================================================
   Projects gallery (Projekte)
   ============================================================ */
.gallery {
  columns: 3;
  column-gap: 1.25rem;
  margin-top: 3rem;
}
.gallery__item {
  position: relative;
  display: block;
  break-inside: avoid;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper-2);
}
.gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 700ms var(--ease-out);
}
.gallery__cap {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.4rem 1.2rem 1.1rem;
  background: linear-gradient(to top, rgba(5,5,7,0.8) 0%, rgba(5,5,7,0.28) 55%, rgba(5,5,7,0) 100%);
  color: var(--paper-1);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-normal) var(--ease-standard), transform var(--dur-normal) var(--ease-standard);
}
.gallery__item:focus-visible .gallery__cap { opacity: 1; transform: none; }
/* no hover on touch screens: keep title and material visible */
@media (hover: none) {
  .gallery__cap { opacity: 1; transform: none; }
}
@media (hover: hover) and (pointer: fine) {
  .gallery__item:hover img { transform: scale(1.04); }
  .gallery__item:hover .gallery__cap { opacity: 1; transform: none; }
}
.gallery__cap h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: italic;
  font-size: var(--text-lg);
  line-height: 1.1;
}
.gallery__cap .badge { flex: none; }

/* ============================================================
   Werkstatt
   ============================================================ */
.wk-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.wk-split__media {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.wk-split__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-list { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 1.1rem; }
.feature-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  font-size: var(--text-md);
  line-height: var(--lh-normal);
  color: var(--text-body);
}
.feature-list svg { flex: none; width: 22px; height: 22px; color: var(--oak-700); margin-top: 2px; }
.feature-list b { color: var(--text-strong); font-weight: 600; }

.wk-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.wk-stat { padding-top: 1.4rem; border-top: 1.5px solid var(--ink-900); }
.wk-stat b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 5vw, var(--text-5xl));
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--ink-900);
}
.wk-stat span {
  display: block;
  font-size: var(--text-2xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.wk-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.wk-gallery .ph { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 1 / 1; background: var(--paper-2); }
.wk-gallery .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .wk-gallery .ph:hover img { transform: scale(1.05); }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .gallery { columns: 2; }
  .wk-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero-full { min-height: 88svh; }
  .hero-full__scrim {
    background: linear-gradient(to top, rgba(5,5,7,0.9) 0%, rgba(5,5,7,0.5) 40%, rgba(5,5,7,0.2) 70%, rgba(5,5,7,0.4) 100%);
  }
  .hero-full__scroll { display: none; }
  .svc { grid-template-columns: 1fr; gap: 1.25rem; }
  .svc:nth-child(even) .svc__media { order: 0; }
  .svc__media { aspect-ratio: 16 / 10; }
  .wk-split { grid-template-columns: 1fr; }
  .wk-split__media { max-width: 460px; aspect-ratio: 4 / 3; }
  .values { grid-template-columns: 1fr; gap: 0; }
  .value { border-top: 1px solid var(--border-hairline); padding: 1.25rem 0; }
  .value:first-child { border-top: 1.5px solid var(--ink-900); }
}

@media (max-width: 620px) {
  .team-grid { grid-template-columns: 1fr; max-width: 420px; }
  .gallery { columns: 1; }
  .wk-gallery { grid-template-columns: 1fr 1fr; }
  .wk-stats { grid-template-columns: 1fr; gap: 0; }
  .wk-stat { border-top: 1px solid var(--border-hairline); padding: 1.1rem 0; }
  .wk-stat:first-child { border-top: 1.5px solid var(--ink-900); }
  .hero-full__cta { flex-direction: column; align-items: stretch; }
  .hero-full__cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-full__scroll svg { animation: none; }
  .js .hero-full__title .ln > span,
  .js .hero-full [data-hero] { opacity: 1; }
}

/* ============================================================
   Kontakt (kontakt.html): Stepper im dunklen Band + Direktkontakt
   ============================================================ */
.contact-info__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, var(--text-4xl, 3rem));
  line-height: 1;
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
  color: var(--text-strong);
}
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem 2rem;
  margin-top: 2rem;
}
.contact-info__item {
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-soft);
}
.contact-info__item h3 {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-info__item a,
.contact-info__item p {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: var(--text-lg);
  line-height: var(--lh-normal);
  color: var(--text-strong);
}
@media (hover: hover) and (pointer: fine) {
  .contact-info__item a:hover { color: var(--accent-strong); }
}
