/* ==========================================================================
   Stadtholz — static rebuild of the former Framer site (stadtholz.at)
   Breakpoints mirror the Framer design:
     phone  < 810px   (designed at 390)
     tablet ≥ 810px   (designed at 810)
     laptop ≥ 1200px  (designed at 1200)
     wide   ≥ 1920px  (designed at 1920)
   ========================================================================== */

/* LEGAL DISCLAIMER
 *
 * These Fonts are licensed only for use on these domains and their subdomains:
 * stadtholz.at
 *
 * It is illegal to download or use them on other websites.
 *
 * While the @font-face statements below may be modified by the client, this
 * disclaimer may not be removed.
 *
 * Optimo webfonts are protected by copyright law and provided under license. To modify, alter, translate, convert, decode or reverse engineer in any manner whatsoever, including converting the Font Software into a different format is strictly prohibited. The webfont files are not to be used for anything other than web font use.
 *
 * optimo.ch
 */
@font-face {
  font-family: "Px Grotesk";
  src: url("../assets/fonts/Px-Grotesk-Regular.woff2") format("woff2"),
       url("../assets/fonts/Px-Grotesk-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---- Design tokens ------------------------------------------------------ */
:root {
  --orange: rgb(253, 103, 78);
  --ink: #050505;
  --white: #fff;
  --pill: rgb(247, 247, 247);

  --font: "Px Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* type scale (phone) */
  --fs-label: 12px;
  --fs-hero: 36px;
  --fs-body: 18px;
  --fs-small: 18px;
  --fs-button: 16px;
  --fs-author: 10px;
  --fs-menu: 15px;
  --lh-hero: 1;

  /* nav */
  --nav-top: 18px;
  --nav-right: 13px;

  --shadow: -0.77px -0.59px 1.75px -0.47px rgba(0, 0, 0, 0.07),
            -1.83px -1.39px 4.14px -0.94px rgba(0, 0, 0, 0.07),
            -3.34px -2.54px 7.56px -1.41px rgba(0, 0, 0, 0.06),
            -5.55px -4.23px 12.56px -1.88px rgba(0, 0, 0, 0.06),
            -8.97px -6.82px 20.28px -2.34px rgba(0, 0, 0, 0.06),
            -14.68px -11.17px 33.2px -2.81px rgba(0, 0, 0, 0.05),
            -25.28px -19.23px 57.17px -3.28px rgba(0, 0, 0, 0.04),
            -46px -35px 104.04px -3.75px rgba(0, 0, 0, 0.02);
}
@media (min-width: 810px) {
  :root {
    --fs-label: 14px;
    --fs-hero: 55px;
    --fs-body: 26px;
    --fs-small: 27px;
    --fs-button: 21px;
    --fs-author: 14px;
    --fs-menu: 13px;
    --lh-hero: 1.2;
    --nav-top: 20px;
    --nav-right: 32px;
  }
}
@media (min-width: 1200px) {
  :root {
    --fs-label: 20px;
    --fs-hero: 64px;
    --fs-body: 38px;
    --fs-small: 34px;
    --fs-button: 30px;
    --fs-author: 19px;
    --fs-menu: 17px;
    --lh-hero: 1;
    --nav-right: 30px;
  }
}
@media (min-width: 1920px) {
  :root {
    --fs-label: 32px;
    --fs-hero: 86px;
    --fs-body: 60px;
    --fs-small: 42px;
    --fs-button: 48px;
    --fs-author: 24px;
    --fs-menu: 21px;
    --lh-hero: 1.2;
  }
}

/* ---- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--white); padding: 8px 14px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Anchor targets: the hero is 100vh, sections start at their own padding */
section[id] { scroll-margin-top: 0; }

/* ---- Logo --------------------------------------------------------------- */
.logo {
  position: absolute;
  z-index: 10;
  top: 14px;
  left: 14px;
  display: block;
}
.logo svg { display: block; width: 52px; height: auto; }
@media (min-width: 810px)  { .logo { top: 20px; left: 32px; } .logo svg { width: 53px; } }
@media (min-width: 1200px) { .logo { left: 50px; } .logo svg { width: 62px; } }
@media (min-width: 1920px) { .logo { left: 80px; } .logo svg { width: 76px; } }

/* ---- Navigation --------------------------------------------------------- */
.nav {
  position: fixed;
  z-index: 50;
  top: var(--nav-top);
  right: var(--nav-right);
  background: var(--pill);
  border-radius: 40px;
  transition: transform 0.4s cubic-bezier(0.34, 1.35, 0.64, 1), opacity 0.4s ease,
              border-radius 0.4s ease;
}
.nav.is-hidden { transform: translateY(-150px); opacity: 0; pointer-events: none; }

.nav__list { display: none; align-items: center; }
.nav__link {
  display: flex;
  align-items: center;
  height: 29px;
  font-size: var(--fs-menu);
  text-transform: uppercase;
  color: var(--orange);
  -webkit-text-stroke: 0.4px var(--orange);
  white-space: nowrap;
  transition: color 0.2s ease, -webkit-text-stroke-color 0.2s ease;
}
.nav__link:hover { color: var(--ink); -webkit-text-stroke-color: var(--ink); }

/* hamburger (phone only) */
.nav__toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 40px;
  background: transparent;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 20px;
  height: 3px;
  background: var(--orange);
  transition: transform 0.3s ease;
}
.nav.is-open { border-radius: 20px; padding: 48px 24px 18px; }
.nav.is-open .nav__list { display: flex; flex-direction: column; gap: 10px; }
.nav.is-open .nav__toggle {
  position: absolute; top: 0; right: 0; width: 40px; height: 40px; gap: 0;
}
.nav.is-open .nav__toggle span { position: absolute; }
.nav.is-open .nav__toggle span:first-child { transform: rotate(-45deg); }
.nav.is-open .nav__toggle span:last-child  { transform: rotate(45deg); }

@media (min-width: 810px) {
  .nav { padding: 8px 21px; }
  .nav__toggle { display: none; }
  .nav__list { display: flex; flex-direction: row; gap: 12px; }
  .nav.is-open { padding: 8px 21px; border-radius: 40px; }
}
@media (min-width: 1200px) {
  .nav { padding: 12px 32px; }
  .nav__list { gap: 18px; }
  .nav.is-open { padding: 12px 32px; }
}
@media (min-width: 1920px) {
  .nav { padding: 18px 50px; }
  .nav__list { gap: 30px; }
  .nav.is-open { padding: 18px 50px; }
}

/* ---- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  height: 100vh;
  overflow: hidden;
  background: var(--orange);
}
.hero__collage {
  position: absolute;
  left: 0;
  right: 0;
  top: -115px;
  bottom: 0;
}
.hero__item {
  position: absolute;
  left: var(--cx);
  top: var(--cy);
  translate: -50% -50%;
  width: var(--w);
  height: var(--h, auto);
  z-index: var(--z, 1);
  will-change: transform;
}
.hero__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__item--shadow { border-radius: 8px; box-shadow: var(--shadow); }
.hero__item--shadow img { border-radius: 8px; }

.hero__title {
  position: absolute;
  z-index: 20;
  left: 11px;
  bottom: 166px;
  width: 94.1%;
  font-size: var(--fs-hero);
  line-height: var(--lh-hero);
  color: var(--white);
}

/* --- phone (default) positions; container = hero height + 115px --- */
.hero__item--stack, .hero__item--tag, .hero__item--sawdust { display: none; }
.hero__item--stump  { --cx: 85.13%; --cy: auto; top: 86px; --w: 46.15%; --h: 18.77%; --z: -1; translate: -50% 0; }
.hero__item--man    { --w: 75.128%; --h: auto; --z: 9; left: -16.5px; top: 230.5px; translate: none; aspect-ratio: 1; }
.hero__item--hands  { --cx: 22%;    --cy: 95%;   --w: 60%;  --z: 1; aspect-ratio: 1.24; }
.hero__item--worker { --cx: 81.03%; --cy: 68.51%; --w: 375px; --h: 350px; --z: 1; }

/* --- tablet --- */
@media (min-width: 810px) {
  .hero__title { left: 34px; bottom: 72px; width: 716px; }
  .hero__item--tag { display: block; --cx: 6.17%; --cy: 71.97%; --w: 24.691%; --h: auto; --z: 1; aspect-ratio: 1; }
  .hero__item--stump {
    --cx: 95.31%; --cy: 9.04%; --w: 350px; --h: 350px; --z: 2; top: var(--cy); translate: -50% -50%;
    border-radius: 8px; box-shadow: var(--shadow);
  }
  .hero__item--stump img { border-radius: 8px; }
  .hero__item--man   { --cx: 19%; --cy: 20.92%; --w: 40%; --h: auto; left: var(--cx); top: var(--cy); translate: -50% -50%; }
  .hero__item--hands { --cx: 33%; --cy: 94.9%; --w: 34.938%; }
  .hero__item--worker { --cx: 69.88%; --cy: 57.99%; --w: 656px; --h: 648px; }
}

/* --- laptop --- */
@media (min-width: 1200px) {
  .hero__title { left: 81px; bottom: 63px; width: 65%; }
  .hero__item--tag { --cx: 6.57%; --cy: 61.04%; --h: 26.178%; --w: auto; aspect-ratio: 1; }
  .hero__item--stump { --cx: 95.31%; --cy: 8.6%; }
  .hero__item--man   { --cx: 41.08%; --cy: 44%; --w: 23.417%; }
  .hero__item--hands { --cx: 34.5%; --cy: 101.5%; --w: 22.167%; }
  .hero__item--sawdust {
    display: block; --cx: 62.33%; --cy: 38.25%; --w: 650px; --h: 650px; --z: 1;
    border-radius: 8px; box-shadow: var(--shadow);
  }
  .hero__item--sawdust img { border-radius: 8px; }
  .hero__item--worker {
    --cx: 70.08%; --cy: 77%; --w: 600px; --h: 600px;
    border-radius: 8px; box-shadow: var(--shadow);
  }
  .hero__item--worker img { border-radius: 8px; }
  .hero__collage { top: 0; }
}

/* --- wide --- */
@media (min-width: 1920px) {
  .hero__title { left: 80px; bottom: 150px; }
  .hero__item--stack {
    display: block; --cx: 56.04%; --cy: 5.65%; --w: 31.25%; aspect-ratio: 600 / 420; --z: 1;
  }
  .hero__item--tag { --cx: 6.56%; --cy: 61.05%; }
  .hero__item--stump { --cx: 95.31%; --cy: 8.59%; }
  .hero__item--man   { --cx: 46.09%; --cy: 45.23%; --w: 23.4375%; }
  .hero__item--hands { --cx: 36.51%; --cy: 98.32%; --w: 22.135%; }
  .hero__item--sawdust { --cx: 66.46%; --cy: 41.99%; }
  .hero__item--worker { --cx: 72.55%; --cy: 73.19%; }
}
/* ---- Content sections --------------------------------------------------- */
.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.block { display: flex; flex-direction: column; align-items: center; width: 100%; }

.label {
  width: 100%;
  text-align: center;
  font-size: var(--fs-label);
  line-height: 1.2;
}
.text-body  { font-size: var(--fs-body);  line-height: 1.2; text-align: center; }
.text-small { font-size: var(--fs-small); line-height: 1.2; text-align: center; }

/* Approach ----------------------------------------------------------------- */
.approach { padding: 68px 9px 0; gap: 28px; }
.approach .block { gap: 10px; }
.approach .text-body { width: 95%; }
.video { width: 100%; }
.video iframe { display: block; width: 100%; height: 100%; border: 0; }
.video--desktop { display: none; }
.video--mobile  { height: 276px; }

/* Team --------------------------------------------------------------------- */
.team { padding: 68px 10px 0; gap: 28px; }
.team .block { gap: 10px; }
.names {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 10px;
  row-gap: 0;
  width: 100%;
}
.names > * { white-space: nowrap; }
.names__br { flex-basis: 100%; height: 0; }
.team__photo { width: 100%; height: auto; aspect-ratio: 2560 / 1807; object-fit: cover; }

/* Association -------------------------------------------------------------- */
.association { padding: 68px 10px 0; gap: 28px; }
.association .block { gap: 7px; }
.association .text-small { width: 95%; }
.button-wrap { width: 100%; display: flex; justify-content: center; }
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70%;
  height: 48px;
  border-radius: 100px;
  background: var(--orange);
  color: var(--white);
  font-size: var(--fs-button);
  line-height: 1.2;
  transition: background-color 0.2s cubic-bezier(0.12, 0.23, 0.5, 1),
              color 0.2s cubic-bezier(0.12, 0.23, 0.5, 1);
}
.button:hover, .button:active { background: var(--ink); color: var(--orange); }

/* Projects ----------------------------------------------------------------- */
.projects { padding: 72px 10px 0; gap: 28px; }
.projects .block { gap: 10px; }
.projects .text-small { width: 95%; }
.cards { display: flex; align-items: flex-start; gap: 2px; width: 100%; }
.card { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.card__img { width: 100%; height: auto; object-fit: cover; }
.card__img--1 { aspect-ratio: 547 / 554; }
.card__img--2 { aspect-ratio: 547 / 730; }
.card__text { display: flex; flex-direction: column; }
.card__author { font-size: var(--fs-author); line-height: 1; text-align: left; }
.card__link   { font-size: var(--fs-body); line-height: 1.2; text-align: left; }

/* Contacts / Donate -------------------------------------------------------- */
.contacts { padding: 72px 10px 0; }
.contacts .block, .donate .block { gap: 10px; }
.donate { padding: 54px 10px 0; }
.contacts .text-small, .donate .text-small { width: 100%; }

/* Footer ------------------------------------------------------------------- */
.footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 160px 9px 28px;
  font-size: var(--fs-author);
  line-height: 1;
}
.footer__group { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 3px; }
.footer a { text-decoration: none; }

/* ---- tablet ------------------------------------------------------------- */
@media (min-width: 810px) {
  .approach { padding: 92px 32px 0; gap: 50px; }
  .approach .block { gap: 17px; }
  .approach .text-body { width: 90%; }
  .video--desktop { display: block; height: auto; aspect-ratio: 16 / 9; }
  .video--mobile { display: none; }

  .team { padding: 92px 32px 0; gap: 17px; }
  .names { column-gap: 16px; }
  .names__br--phone { display: none; }

  .association { padding: 92px 32px 0; gap: 34px; }
  .association .block { gap: 17px; }
  .association .text-small { width: 90%; }
  .button { width: 50%; height: 60px; }

  .projects { padding: 102px 32px 0; gap: 80px; }
  .projects .block { gap: 40px; }
  .projects .text-small { width: 90%; }
  .cards { gap: 4px; }
  .card { gap: 10px; }

  .contacts { padding: 102px 34px 0; gap: 80px; }
  .contacts .block { gap: 40px; }
  .donate { padding: 92px 34px 0; gap: 80px; }
  .donate .block { gap: 40px; }

  .footer { padding: 180px 32px 30px; gap: 10px; }
  .footer__group { flex-direction: row; align-items: flex-start; gap: 12px; height: 36px; }
  .footer__impressum { height: 36px; }
}

/* ---- laptop ------------------------------------------------------------- */
@media (min-width: 1200px) {
  .approach { padding: 125px 50px 0; gap: 76px; }
  .approach .block { gap: 25px; }
  .approach .text-body { width: 90%; }

  .team { padding: 125px 50px 0; gap: 25px; }
  .team .block { gap: 25px; }
  .names { column-gap: 22px; }

  .association { padding: 125px 80px 0; gap: 50px; }
  .association .block { gap: 25px; }
  .association .text-small { width: 90%; }
  .button { height: 88px; }

  .projects { padding: 138px 50px 0; gap: 50px; }
  .projects .block { gap: 25px; }
  .projects .text-small { width: 85%; }
  .cards { gap: 6px; }
  .card { gap: 16px; }

  .contacts { padding: 138px 80px 0; gap: 80px; }
  .contacts .block { gap: 25px; }
  .donate { padding: 125px 80px 0; gap: 80px; }
  .donate .block { gap: 25px; }

  .footer { padding: 260px 80px 30px; }
  .footer__group { gap: 18px; }
}

/* ---- wide --------------------------------------------------------------- */
@media (min-width: 1920px) {
  .approach { padding: 200px 80px 0; gap: 120px; }
  .approach .block { gap: 40px; }
  .approach .text-body { width: 85%; }

  .team { padding: 200px 80px 0; gap: 40px; }
  .team .block { gap: 10px; }
  .names { column-gap: 36px; }

  .association { padding: 200px 80px 0; gap: 80px; }
  .association .block { gap: 40px; }
  .association .text-small { width: 85%; }
  .button { height: 140px; }

  .projects { padding: 220px 80px 0; gap: 80px; }
  .projects .block { gap: 40px; }
  .projects .text-small { width: 85%; }
  .cards { gap: 10px; }
  .card { gap: 24px; }
  .card--2 { gap: 20px; }
  .card__text { display: flex; flex-direction: column; gap: 4px; }

  .contacts { padding: 220px 80px 0; }
  .contacts .block { gap: 40px; }
  .contacts .text-small { width: 85%; }
  .donate { padding: 200px 80px 0; }
  .donate .block { gap: 40px; }
  .donate .text-small { width: 85%; }

  .footer { padding: 384px 80px 30px; }
  .footer__group { gap: 24px; }
}

/* ---- Utility pages (404) -------------------------------------------------- */
.page-orange {
  min-height: 100vh;
  background: var(--orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px;
}
.page-orange__text { max-width: 656px; text-align: center; font-size: var(--fs-body); line-height: 1.2; }

/* ---- Impressum / Datenschutz ------------------------------------------- */
.legal-head {
  background: var(--orange);
  color: var(--white);
  padding: 120px 14px 40px;
}
.legal-head, .legal { --legal-col: 100%; }
.legal-head__title {
  max-width: var(--legal-col);
  margin: 0 auto;
  font-size: var(--fs-hero);
  line-height: 1.05;
}
.legal {
  --fs-legal: 16px;
  padding: 48px 14px 0;
  font-size: var(--fs-legal);
  line-height: 1.45;
  text-align: left;
}
.legal__section { max-width: var(--legal-col); margin: 0 auto; }
.legal__section + .legal__section { margin-top: 3.5em; }
.legal__h2 { font-size: 1.6em; line-height: 1.15; margin-bottom: 0.6em; }
.legal__h3 { font-size: 1em; color: var(--orange); margin: 1.6em 0 0.25em; }
.legal p + p { margin-top: 0.8em; }
.legal a { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
.legal a:hover { color: var(--orange); }
.legal__note { color: rgba(5, 5, 5, 0.6); }
.legal__facts { margin: 1.6em 0; }
.legal__facts dt { color: var(--orange); }
.legal__facts dd { margin: 0 0 1em; }
.legal__date { margin-top: 2.5em; color: rgba(5, 5, 5, 0.6); }
.todo { background: #fff07a; }

@media (min-width: 810px) {
  .legal-head, .legal { --legal-col: 640px; }
  .legal-head { padding: 160px 32px 56px; }
  .legal { --fs-legal: 18px; padding: 72px 32px 0; }
  .legal__facts { display: grid; grid-template-columns: 13em 1fr; column-gap: 1.5em; }
}
@media (min-width: 1200px) {
  .legal-head, .legal { --legal-col: 760px; }
  .legal-head { padding: 200px 50px 72px; }
  .legal { --fs-legal: 20px; padding: 96px 50px 0; }
}
@media (min-width: 1920px) {
  .legal-head, .legal { --legal-col: 912px; }
  .legal { --fs-legal: 24px; padding: 120px 80px 0; }
}

/* ---- Motion preferences ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav, .nav__link, .button { transition: none; }
}
