/* =========================================================
   Five Point GmbH – Stylesheet
   Masse 1:1 vom Original (fivepoint.ch, Stand Okt. 2026) übernommen.
   Breakpoints wie Original: Desktop >= 981px, Tablet 768–980px, Phone <= 767px
   ========================================================= */

:root {
  --c-dark: #212125;
  --c-light: #f0f0f0;
  --c-gray: #88898b;
  --c-accent: #c4b69f;
  --veil-dark: rgba(33, 33, 37, .7);
  --veil-light: rgba(240, 240, 240, .7);

  /* Ersatz für Adobe Fonts "pressio-x-compressed" (siehe README) */
  --f-display: "Six Caps", "Arial Narrow", sans-serif;
  /* Das Original rendert Fliesstexte in der System-Sans-Serif des Browsers */
  --f-text: sans-serif;

  --row-pad: 10%;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7em;
  color: #666;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); text-decoration: none; }
p { margin: 0; padding-bottom: 1em; }
p:last-of-type { padding-bottom: 0; }
h1, h2, h3 { margin: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 10000;
  padding: .6rem 1rem; background: var(--c-dark); color: #fff;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

/* ---------- Typo-Bausteine ---------- */

/* Display-Headline (Original: Pressio X Compressed 150px / ls 15px) */
.h-display {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 127px;          /* entspricht optisch 150px Pressio */
  line-height: 150px;
  letter-spacing: 15px;
  text-transform: uppercase;
  padding-bottom: 10px;
  color: var(--c-dark);
  text-shadow: 3px 3px 6px rgba(33, 33, 37, .56);
  overflow-wrap: break-word;
}

/* 23px Grossbuchstaben-Zeile */
.t-caps {
  font-family: var(--f-text);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.2em;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 .1em .11em rgba(0, 0, 0, .4);
  color: var(--c-dark);
}
.t-caps--loose { line-height: 23.8px; }

/* 17px Fliesstext */
.t-body {
  font-family: var(--f-text);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5em;
  letter-spacing: 1px;
  color: var(--c-dark);
}
.t-bold { font-weight: 700; }

.row { padding-left: var(--row-pad); padding-right: var(--row-pad); }

/* ---------- Seiten-Hintergrund (fixiert) ---------- */

.page {
  position: relative;
  background-color: #fff;
  background-position: 50% 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;   /* Inhalt scrollt über das stehende Bild */
}
.page--home       { background-image: url("../assets/bg-beton.jpg"); }
.page--leistungen { background-image: url("../assets/bg-putz-hell.jpg"); }
.page--about      { background-image: url("../assets/bg-holz.jpg"); }
.page--kontakt    { background-image: url("../assets/bg-steine.jpg"); }
.page--dark       { background: var(--c-dark); }

/* iOS/iPadOS ignoriert background-attachment: fixed.
   Fallback: fixierte Ebene, die per clip-path auf den Wrapper begrenzt wird. */
@supports (-webkit-touch-callout: none) {
  @media (min-width: 981px) {
    .page:not(.page--dark) { background-image: none; clip-path: inset(0); isolation: isolate; }
    .page:not(.page--dark)::before {
      content: "";
      position: fixed;
      inset: 0;
      z-index: -1;
      background-position: 50% 0;
      background-size: cover;
      background-repeat: no-repeat;
    }
    .page--home::before       { background-image: url("../assets/bg-beton.jpg"); }
    .page--leistungen::before { background-image: url("../assets/bg-putz-hell.jpg"); }
    .page--about::before      { background-image: url("../assets/bg-holz.jpg"); }
    .page--kontakt::before    { background-image: url("../assets/bg-steine.jpg"); }
  }
}

/* ---------- Header / Navigation ---------- */

.site-header {
  position: relative;
  z-index: 50;
  padding: 30px 50px 90px;   /* 30 Modul + 60 Sektionsabstand */
}
.site-header .bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 76px;
}
.brand { display: block; flex: none; }
.main-nav { margin-left: auto; }
.brand img { width: auto; height: 80px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.main-nav a {
  display: block;
  padding: 33px 0 29px;
  font-family: var(--f-text);
  font-size: 17px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--nav-color, var(--c-dark));
  transition: all .4s ease-in-out;
}
.main-nav a:hover { opacity: .7; }
.main-nav a[aria-current="page"] { color: var(--c-gray); }

.site-header--light { --nav-color: var(--c-light); }
.site-header--dark  { --nav-color: var(--c-dark); }
.page--dark .site-header { background: var(--c-dark); }

.nav-toggle {
  display: none;
  width: 32px; height: 32px;
  padding: 0; border: 0; background: none;
  color: var(--c-light);
  cursor: pointer;
}
.nav-toggle svg { display: block; width: 32px; height: 32px; transform: translateY(3.5px); }

.mobile-menu { display: none; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--c-dark);
  padding: 120px 0;
}
.site-footer .footer-text { padding-bottom: 60px; }
.site-footer .footer-text > div { width: 56.842%; }
.site-footer .footer-text p {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5em;
  letter-spacing: 1px;
  color: var(--c-light);
}
.social { list-style: none; margin: 0; display: flex; column-gap: calc(21.58% - 43.75px); }
.social a { display: block; color: var(--c-accent); line-height: 0; }
.social svg { width: 43.75px; height: 50px; fill: currentColor; }

/* =========================================================
   STARTSEITE
   ========================================================= */

.home-main { padding-bottom: 120px; }
.home-logo { width: 20%; margin: 100px auto 230px; }
.home-logo img { width: 100%; }
.home-claim { margin-bottom: 120px; }

.home-intro {
  margin-bottom: 120px;
  padding: 100px var(--row-pad);
  background: var(--veil-dark);
  color: #fff;
}
.home-intro p { color: #fff; }

.home-services-head { margin-bottom: 120px; }

.tiles { list-style: none; margin: 0; padding: 0; }
.tile-row {
  padding-left: calc(var(--row-pad) * var(--n));
  transition: padding 300ms ease 0ms;
}
.tile-row:hover { padding-left: calc(var(--row-pad) * var(--n) + 5%); }
.tile { display: block; color: inherit; cursor: pointer; }
.tile-num {
  display: block;
  background: var(--veil-light);
  border-top: 2px solid var(--c-gray);
  border-left: 2px solid var(--c-gray);
  padding-left: 20px;
  box-shadow: 0 -12px 18px -6px rgba(0, 0, 0, .3);
}
.tile-label {
  display: block;
  margin-bottom: 20px;
  padding: 0 0 20px 20px;
  background: var(--veil-light);
  border-bottom: 2px solid var(--c-gray);
  border-left: 2px solid var(--c-gray);
  box-shadow: 0 12px 18px -6px rgba(0, 0, 0, .3);
}

/* =========================================================
   LEISTUNGEN
   ========================================================= */

.services-main { padding-bottom: 60px; }
.services-head { padding-bottom: 60px; }
.services-head .t-caps { margin-bottom: 20px; }
.services {
  display: flex;
  gap: 8.07%;
}
.services .col { width: 45.965%; }
.service + .service,
.services .col--right .service:first-child { margin-top: 250px; }
.service .t-caps { margin-bottom: 20px; }

/* =========================================================
   ABOUT
   ========================================================= */

.about-head { padding-bottom: 120px; }
.about-head .h-display { color: var(--c-light); width: 56.842%; }

.founder {
  margin-bottom: 120px;
  background: var(--veil-dark);
  display: grid;
  grid-template-columns: 56.842% 35.175%;
  column-gap: 7.983%;
}
.founder .quote { margin-top: 20%; text-align: center; }
.founder blockquote { margin: 0 0 20px; }
.founder blockquote p { color: var(--c-light); }
.founder .name {
  padding-bottom: 10px;
  font-size: 59.3px;
  line-height: 70px;
  letter-spacing: 6px;
  text-align: center;
  color: var(--c-accent);
}
.founder .portrait { padding-top: 40px; align-self: start; }
.founder .portrait img { width: 100%; }

.cv {
  list-style: none; margin: 0;
  padding-bottom: 120px;
  display: grid;
  grid-template-columns: 45.965% 45.965%;
  column-gap: 8.07%;
}
.cv-card > * { background: var(--veil-light); }
.cv-card .nr { padding: 20px 75% 20px 20px; }
.cv-card .nr img { width: 100%; }
.cv-card .period { padding: 20px 20px 10px; }
.cv-card .co,
.cv-card .role { padding: 0 20px; }
.cv-card .tasks { padding: 20px; height: 100px; margin-bottom: 50px; }
.cv-card--long .tasks { height: 380px; margin-bottom: 0; }
.only-mobile { display: none; }

.meaning {
  background: var(--veil-dark);
  display: grid;
  grid-template-columns: 19.04% 72.98%;
  column-gap: 7.98%;
  align-items: start;
}
.meaning .big {
  margin-top: -90px;
  font-size: 254px;
  line-height: 300px;
  letter-spacing: 15px;
  color: var(--c-accent);
  text-shadow: 6px 6px 12px rgba(33, 33, 37, .56);
}
.meaning .t-caps { margin: 60px 0; text-align: center; color: var(--c-light); }

/* =========================================================
   KONTAKT
   ========================================================= */

.contact-head { padding-bottom: 150px; }
.contact-head .h-display,
.contact-head .t-caps { color: var(--c-light); }
.contact-head .t-caps { margin-bottom: 20px; }

.contact-panel {
  position: relative;
  margin-top: -34px;
  padding-top: 490px;
  background: rgba(136, 137, 139, .8);
  box-shadow: 0 2px 35px -2px var(--c-dark);
}
.contact-panel .rock { width: 100%; }
.contact-card {
  position: absolute;
  top: 34px; left: 0; right: 0;
  z-index: 1;
  text-align: center;
}
.contact-card .logo { width: 130px; margin: 20px auto; }
.contact-card .firm { margin-top: 20px; color: #000; }
.contact-card address { margin-top: 60px; font-style: normal; color: var(--c-accent); }
.contact-card address p { padding-bottom: 1em; }
.contact-card address p:last-child { padding-bottom: 0; }
.contact-card a { color: inherit; }

/* =========================================================
   DATENSCHUTZ
   ========================================================= */

.legal-head { padding-bottom: 120px; min-height: 382.6px; }
.legal-head .h-display,
.legal-head .t-caps { color: var(--c-accent); }
.legal-head .t-caps { margin: 20px 0; }
.legal-body { padding-bottom: 120px; }
.legal-body h2 { margin-bottom: 20px; color: var(--c-accent); }
.legal-body .block { padding: 1px 0 50px; color: var(--c-light); }
.legal-body .block:last-child { padding-bottom: 0; }

/* =========================================================
   TABLET + PHONE (<= 980px)
   ========================================================= */

@media (max-width: 980px) {
  /* Hintergrund steht wie auf Desktop fest, Inhalt scrollt darüber.
     background-attachment: fixed greift auf Mobile nicht, und position: fixed
     zeichnet Safari (iOS 26) nicht hinter die untere Adressleiste – dort
     blieb ein weisser Balken. Daher eine sticky Ebene: Sie klebt oben am
     Screen, gilt aber als normaler Inhalt und reicht bis ganz nach unten. */
  .page { background-image: none !important; background-color: #fff; }
  .page--dark { background: var(--c-dark); }
  .page:not(.page--dark) > main { position: relative; clip-path: inset(0); isolation: isolate; }
  .page:not(.page--dark) > main::before {
    /* --bg-h: Screenhöhe plus Reserve für Status- und Adressleiste.
       --main-pt: padding-top von <main>, damit die Ebene bündig oben beginnt. */
    --bg-h: calc(100lvh + 160px);
    content: "";
    display: block;
    position: sticky;
    top: 0;
    z-index: -1;
    height: calc(100vh + 160px);
    height: var(--bg-h);
    /* Ebene nimmt keinen Platz ein, Inhalt liegt darüber */
    margin-top: calc(-1 * var(--main-pt, 0px));
    margin-bottom: calc(var(--main-pt, 0px) - var(--bg-h));
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;          /* nur so weit zoomen, bis der Screen bedeckt ist */
  }
  .page--home > main::before       { background-image: url("../assets/bg-beton.jpg"); }
  .page--leistungen > main::before { background-image: url("../assets/bg-putz-hell.jpg"); }
  .page--kontakt > main::before    { background-image: url("../assets/bg-steine.jpg"); }
  .page--about > main::before      { background-image: url("../assets/bg-holz-mobile.jpg"); }
  .services-main, .about-main, .contact-main { --main-pt: 60px; }

  .site-header {
    background: var(--c-dark);
    padding: 30px 0;
    --nav-color: var(--c-light);
  }
  .site-header .bar {
    width: 80%;
    margin: 0 auto;
    height: 81px;
    min-height: 0;
    align-items: center;
  }
  .brand img { height: 60px; }
  .main-nav { display: none; }
  .nav-toggle { display: block; margin: 2px 6px 0 auto; }

  .mobile-menu {
    position: absolute;
    top: 111px; left: 10%;
    width: 80%;
    z-index: 9999;
    overflow: hidden;
    padding: 15px;
    background: var(--veil-dark);
    border-top: 3px solid var(--c-light);
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
  }
  .mobile-menu.is-open { display: block; }
  .mobile-menu ul { list-style: none; margin: 0; padding: 0; }
  .mobile-menu a {
    display: block;
    padding: 10px 5%;
    border-bottom: 1px solid rgba(0, 0, 0, .03);
    font-family: var(--f-text);
    font-size: 17px;
    font-weight: 600;
    line-height: 26px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--c-light);
    transition: all .4s ease-in-out;
  }
  .mobile-menu a:hover { background-color: rgba(0, 0, 0, .03); opacity: .7; }
  .mobile-menu a[aria-current="page"] { color: var(--c-gray); }

  .site-footer { padding: 50px 0; }
  .site-footer .footer-text { padding-bottom: 0; }
  .site-footer .footer-text > div { width: 100%; margin-bottom: 40px; }
  .social { flex-direction: column; align-items: center; row-gap: 30px; }

  /* Startseite */
  .home-main { padding-bottom: 120px; }
  .home-top, .home-claim, .home-services-head { padding: 40px 60px 0; }
  .home-logo { width: 40%; margin: 60px auto 100px; }
  .home-claim, .home-intro, .home-services-head { margin-bottom: 100px; }

  /* Leistungen */
  .services-main { padding: 60px 0 120px; }
  .services { display: flex; flex-direction: column; gap: 0; padding-bottom: 30px; }
  .services .col { display: contents; }
  .service + .service,
  .services .col--right .service:first-child { margin-top: 0; }
  .service { order: var(--o); }
  .service .t-body { padding-bottom: 60px; }
  #leistung-5 .t-body { padding-bottom: 0; }
  .service .t-caps { margin-bottom: 20px; }

  /* About */
  .about-main { padding-top: 60px; }
  .about-head { padding-bottom: 130px; }
  .founder { display: flow-root; margin-bottom: 100px; }
  .founder .portrait { margin-top: 30px; }
  .cv { display: block; padding-bottom: 200px; }
  .cv-card > * { background: rgba(240, 240, 240, .74); }
  .cv-card .nr { padding: 20px 480px 20px 20px; }
  .cv-card .tasks,
  .cv-card--long .tasks { height: auto; margin-bottom: 50px; }
  .cv-card:last-child .tasks { margin-bottom: 0; }
  .only-desktop { display: none; }
  .only-mobile { display: inline; }
  .meaning { display: block; }
  .meaning .big { margin-top: -54px; font-size: 127px; line-height: 150px; }
  .meaning .t-caps { margin: 30px 0 80px; }

  /* Kontakt */
  .contact-main { padding-top: 60px; }
  .contact-head { padding-bottom: 120px; }
  .contact-panel { padding-top: 470px; }

  /* Datenschutz */
  .legal-head .t-caps { display: none; }
}

/* =========================================================
   PHONE (<= 767px)
   ========================================================= */

@media (max-width: 767px) {
  .h-display {
    font-size: 68px;
    line-height: 80px;
    letter-spacing: 8px;
    text-shadow: 1.6px 1.6px 3.2px rgba(33, 33, 37, .56);
  }
  .t-caps { font-size: 18px; }
  .t-body { font-size: 14px; }

  .site-footer .footer-text p { font-size: 14px; }
  .social svg { width: 35px; height: 40px; }
  .social a { height: 42px; display: flex; align-items: center; }

  /* Startseite */
  .home-main { padding-bottom: 60px; }
  .home-top, .home-claim, .home-services-head { padding: 40px 40px 0; }
  .home-logo { margin: 60px auto; }
  .home-claim, .home-intro, .home-services-head { margin-bottom: 60px; }
  .tile-label { margin-bottom: 10px; }

  /* Leistungen */
  .services-main { padding: 60px 0; }
  .services-head .t-caps { margin-bottom: 10px; }
  .service .t-caps { margin-bottom: 10px; }
  #leistung-1 .t-caps { margin-bottom: 20px; }

  /* About */
  .about-head { padding-bottom: 90px; }
  .founder { margin-bottom: 60px; }
  .founder .quote { margin-top: 20%; }
  .founder blockquote { margin-bottom: 10px; }
  .founder .name { font-size: 47.4px; line-height: 56px; }
  .cv { padding-bottom: 100px; }
  .cv-card .nr { padding: 20px 240px 0 20px; }
  .cv-card .co--pad { padding-bottom: 20px; }
  .meaning .big {
    margin-top: -28px;
    font-size: 71px;
    line-height: 84px;
    letter-spacing: 8px;
    text-shadow: 1.7px 1.7px 3.4px rgba(33, 33, 37, .56);
  }
  .meaning .t-caps { margin: 10px 0 60px; }

  /* Kontakt */
  .contact-head { padding-bottom: 90px; }
  .contact-head .t-caps { margin-bottom: 10px; }
  .contact-panel { margin-top: -39px; padding-top: 432px; }
  .contact-card { top: 39px; }
  .contact-card .firm { margin-bottom: 0; }
  .contact-card address { margin-top: 50px; }
  .contact-card address p { padding-bottom: 1em; }

  /* Datenschutz */
  .legal-head { padding-top: 60px; padding-bottom: 100px; margin-bottom: -126px; }
  .legal-body { padding-top: 60px; padding-bottom: 100px; }
  .page--dark .brand { display: none; }
  .legal-body h2 { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- "Nach oben"-Button (wie Divi: ab 800px Scrolltiefe) ---------- */
.to-top {
  position: fixed;
  right: 0;
  bottom: 125px;
  z-index: 99999;
  display: none;
  width: 40px; height: 40px;
  padding: 5px;
  border: 0;
  border-radius: 5px 0 0 5px;
  background: rgba(0, 0, 0, .4);
  color: #fff;
  cursor: pointer;
}
.to-top svg { display: block; width: 30px; height: 30px; fill: currentColor; }
.to-top.is-visible { display: block; opacity: 1; animation: toTopIn 1s 1 cubic-bezier(.77, 0, .175, 1); }
.to-top.is-hidden  { display: block; opacity: 0; pointer-events: none; animation: toTopOut 1s 1 cubic-bezier(.77, 0, .175, 1); }
@keyframes toTopIn  { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes toTopOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(100%); } }
